diff --git a/.gitignore b/.gitignore index 7f227cc..ae99920 100644 --- a/.gitignore +++ b/.gitignore @@ -136,6 +136,7 @@ REDEPLOY /dsql-data/* !/dsql-data/static-config !/dsql-data/db-config +!/dsql-data/db-load-balancer-config new-user.json update-user.json diff --git a/dsql-app/.local_dist/BUILD_ID b/dsql-app/.local_dist/BUILD_ID index 220936a..9fa5a97 100644 --- a/dsql-app/.local_dist/BUILD_ID +++ b/dsql-app/.local_dist/BUILD_ID @@ -1 +1 @@ -JWcGy7ApzQNGHJR0-bv4k \ No newline at end of file +oGdR-cyIqmUbg3SEpT2k4 \ No newline at end of file diff --git a/dsql-app/.local_dist/build-manifest.json b/dsql-app/.local_dist/build-manifest.json index 9533cae..55915b6 100644 --- a/dsql-app/.local_dist/build-manifest.json +++ b/dsql-app/.local_dist/build-manifest.json @@ -1,628 +1,667 @@ { "polyfillFiles": [ - "static/chunks/polyfills-c67a75d1b6f99dc8.js" + "static/chunks/polyfills-42372ed130431b0a.js" ], "devFiles": [], "ampDevFiles": [], "lowPriorityFiles": [ - "static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js", - "static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" + "static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js", + "static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" ], "rootMainFiles": [], + "rootMainFilesTree": {}, "pages": { "/": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/3935-eea593fa60dfd620.js", - "static/css/65efe10b506f9812.css", - "static/chunks/pages/index-c2ab88c2111475dd.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1105-7897faceec5c28c2.js", + "static/chunks/9654-126cc84864d517d8.js", + "static/css/60c48dd4b3301227.css", + "static/chunks/pages/index-532424a20b7a2bf0.js" ], "/404": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/404-d04d8d42f75218d9.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/404-ea399aa435cfea80.js" ], "/500": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/500-7db225cc6b4dea2c.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/500-7ba9270f0440a8d8.js" ], "/_app": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/css/38c6a6484b610a50.css", - "static/chunks/pages/_app-881c4f419bb13dab.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/css/9e0355af56c249a3.css", + "static/chunks/pages/_app-cd983c5392320351.js" ], "/_error": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/_error-f2496e8b9fdedb89.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/_error-69472128dcb42fe2.js" ], "/about": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/3935-eea593fa60dfd620.js", - "static/chunks/pages/about-76deaa37497c062c.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9654-126cc84864d517d8.js", + "static/chunks/pages/about-4d0a17a30a0500d1.js" ], "/admin": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/3181-1097b37499196dce.js", - "static/chunks/5667-9e7b94f8ce529764.js", - "static/chunks/pages/admin-81e2733c0d783481.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/8866-9b36026d12284c11.js", + "static/chunks/7538-4d24663ed2f4cf5c.js", + "static/chunks/820-56dea9360dca328f.js", + "static/chunks/pages/admin-49478fe846117a0e.js" ], "/admin/[user_id]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/3181-1097b37499196dce.js", - "static/chunks/5667-9e7b94f8ce529764.js", - "static/chunks/pages/admin/[user_id]-e36cc5d13c2aa929.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/8866-9b36026d12284c11.js", + "static/chunks/7538-4d24663ed2f4cf5c.js", + "static/chunks/820-56dea9360dca328f.js", + "static/chunks/pages/admin/[user_id]-feea3c942d7835c6.js" ], "/admin/[user_id]/api-keys": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/pages/admin/[user_id]/api-keys-ad926df40536b287.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/pages/admin/[user_id]/api-keys-573e321568dd09df.js" ], "/admin/[user_id]/connect": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/pages/admin/[user_id]/connect-8973f4ea35b17adf.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/pages/admin/[user_id]/connect-790f9099b66fef32.js" ], "/admin/[user_id]/databases": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/3181-1097b37499196dce.js", - "static/chunks/pages/admin/[user_id]/databases-2ede91ae9bfe108a.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/8866-9b36026d12284c11.js", + "static/chunks/7538-4d24663ed2f4cf5c.js", + "static/chunks/pages/admin/[user_id]/databases-59484629b8b44f12.js" ], "/admin/[user_id]/databases/[single]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/pages/admin/[user_id]/databases/[single]-91b6e8d432bef987.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/8866-9b36026d12284c11.js", + "static/chunks/pages/admin/[user_id]/databases/[single]-8ce2d76060c9ed77.js" ], "/admin/[user_id]/databases/[single]/connect": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/connect-6fe32fdcf255139c.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/connect-8cc9395e06e17172.js" ], "/admin/[user_id]/databases/[single]/edit-database": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/8887-5917115e54cd417b.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a60b50dd21c29ae2.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/3293-731fa0758fa0e0aa.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-ff76b5ff2ba45d36.js" ], "/admin/[user_id]/databases/[single]/schema": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/8473-1a1faf3d4d34beef.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/8887-5917115e54cd417b.js", - "static/chunks/7200-4c384098300f07db.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/schema-7b76b5c228e273d4.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1105-7897faceec5c28c2.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/3293-731fa0758fa0e0aa.js", + "static/chunks/1950-50556c64bfd6a337.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/schema-4662715012e5fbec.js" ], "/admin/[user_id]/databases/[single]/shell": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/3795-b7a314b891092ea4.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/shell-cb2910aa3bd12a22.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/8949-61dcde8a69a04065.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/shell-b7f2eb4ea57ef7f4.js" ], "/admin/[user_id]/databases/[single]/tables": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables-512e452212994e35.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables-83300661b97dcb65.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/94726e6d-f5320de901b4c44f.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/9572-f67b1194a0e6ae72.js", - "static/chunks/1502-965711da5f99a5c8.js", - "static/chunks/8446-a36a685092b53a06.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/4893-e30c16360c86c67d.js", - "static/chunks/9788-84477f8e20625988.js", - "static/chunks/9035-b11038b244e852f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-0d9a8a82c8b584d3.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/94726e6d-127d67a0a413791e.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/2913-7d2040b72d4074a0.js", + "static/chunks/3838-4945afef2ebfef04.js", + "static/chunks/5680-7669f210caba7d73.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/6156-05a27ce6a6fd29e7.js", + "static/chunks/8012-d8811518e02e800f.js", + "static/chunks/6460-4b0051e1ff7a0e1a.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-af1b385f3aca5922.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/94726e6d-f5320de901b4c44f.js", - "static/chunks/9572-f67b1194a0e6ae72.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/4893-e30c16360c86c67d.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-4d03eae9a64fe6a7.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/94726e6d-127d67a0a413791e.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/2913-7d2040b72d4074a0.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/6156-05a27ce6a6fd29e7.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-208bed39283e9dc2.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/1502-965711da5f99a5c8.js", - "static/chunks/8446-a36a685092b53a06.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9788-84477f8e20625988.js", - "static/chunks/9035-b11038b244e852f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-3a14a471d2dc7b00.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/3838-4945afef2ebfef04.js", + "static/chunks/5680-7669f210caba7d73.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/8012-d8811518e02e800f.js", + "static/chunks/6460-4b0051e1ff7a0e1a.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-27bbdc1d677f8cb1.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/1502-965711da5f99a5c8.js", - "static/chunks/8446-a36a685092b53a06.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9788-84477f8e20625988.js", - "static/chunks/9035-b11038b244e852f0.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-a15e553c68e1ca23.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/3838-4945afef2ebfef04.js", + "static/chunks/5680-7669f210caba7d73.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/8012-d8811518e02e800f.js", + "static/chunks/6460-4b0051e1ff7a0e1a.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-d7fa8978def2325e.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/1502-965711da5f99a5c8.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9788-84477f8e20625988.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-0ecd226005afec57.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/3838-4945afef2ebfef04.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/8012-d8811518e02e800f.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-03d47072a48fb2bd.js" ], "/admin/[user_id]/databases/[single]/tables/[single_table]/fields": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/94726e6d-f5320de901b4c44f.js", - "static/chunks/9572-f67b1194a0e6ae72.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/4893-e30c16360c86c67d.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab993bc50ce1e800.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/94726e6d-127d67a0a413791e.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/2913-7d2040b72d4074a0.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/6156-05a27ce6a6fd29e7.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-45a4105fe834745e.js" ], "/admin/[user_id]/databases/[single]/tables/add-table": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/94726e6d-f5320de901b4c44f.js", - "static/chunks/9572-f67b1194a0e6ae72.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/4893-e30c16360c86c67d.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-09cebcb0b429f6de.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/94726e6d-127d67a0a413791e.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/2913-7d2040b72d4074a0.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/6156-05a27ce6a6fd29e7.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-4cda86686f4c8cb1.js" ], "/admin/[user_id]/databases/[single]/users": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/8264-5901ddfeb3cb03ce.js", - "static/chunks/5949-b1c68b62cd5dbfee.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users-c33e649f1474fb77.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/6836-dd09a62c09c3ff54.js", + "static/chunks/6946-fbee9d68cca6962a.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users-0c592ccf1f7e3651.js" ], "/admin/[user_id]/databases/[single]/users/[user]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/2870-4390329ae1d5a1f2.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f7cdffc0b0c094c6.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5580-b9a6e4d2e2b38b6e.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-01317598688f942e.js" ], "/admin/[user_id]/databases/[single]/users/[user]/change-password": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-21db218c89054e75.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-db21c3e58e866586.js" ], "/admin/[user_id]/databases/[single]/users/add-social-logins": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/2870-4390329ae1d5a1f2.js", - "static/chunks/9719-14cc8b76a1deed3c.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-3e4d353e902f53ae.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5580-b9a6e4d2e2b38b6e.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-21166663519cfa71.js" ], "/admin/[user_id]/databases/[single]/users/add-user": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/2870-4390329ae1d5a1f2.js", - "static/chunks/9719-14cc8b76a1deed3c.js", - "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-36cc73c2fdadfc25.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5580-b9a6e4d2e2b38b6e.js", + "static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-a3576b8aed90e1dc.js" ], "/admin/[user_id]/databases/add-database": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/8887-5917115e54cd417b.js", - "static/chunks/pages/admin/[user_id]/databases/add-database-e3a5509e700b0e80.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/3293-731fa0758fa0e0aa.js", + "static/chunks/pages/admin/[user_id]/databases/add-database-2e2159e3727905b1.js" ], "/admin/[user_id]/media": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/4156-f3d2d008f94f3178.js", - "static/chunks/pages/admin/[user_id]/media-922d349166d14d18.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/4750-16db76b374e35273.js", + "static/chunks/pages/admin/[user_id]/media-ef0346e9805aaaa0.js" ], "/admin/[user_id]/media/[...folder]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/4156-f3d2d008f94f3178.js", - "static/chunks/pages/admin/[user_id]/media/[...folder]-773d7108b2688df4.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/4750-16db76b374e35273.js", + "static/chunks/pages/admin/[user_id]/media/[...folder]-b99187fae5addc2e.js" ], "/admin/[user_id]/schema": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/8473-1a1faf3d4d34beef.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/194-6fbe0e1d9cd931e6.js", - "static/chunks/7200-4c384098300f07db.js", - "static/chunks/pages/admin/[user_id]/schema-d264203c84a34e72.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1105-7897faceec5c28c2.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/304-44c7b2ac8964083c.js", + "static/chunks/1950-50556c64bfd6a337.js", + "static/chunks/pages/admin/[user_id]/schema-f60cf262b3635f37.js" ], "/admin/[user_id]/settings": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/9967-c027b915261dae19.js", - "static/chunks/3181-1097b37499196dce.js", - "static/chunks/8374-f28680e628b18bd5.js", - "static/chunks/5667-9e7b94f8ce529764.js", - "static/chunks/5114-a70f18877cc7f8bc.js", - "static/chunks/pages/admin/[user_id]/settings-fed09966c6dcd870.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/5160-e9f06aec35447872.js", + "static/chunks/8866-9b36026d12284c11.js", + "static/chunks/7538-4d24663ed2f4cf5c.js", + "static/chunks/9907-8d988ae445ccee04.js", + "static/chunks/820-56dea9360dca328f.js", + "static/chunks/4147-1eea8c52da913e77.js", + "static/chunks/pages/admin/[user_id]/settings-50a4a062813bf738.js" ], "/admin/[user_id]/users": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/5949-b1c68b62cd5dbfee.js", - "static/chunks/pages/admin/[user_id]/users-6de0335d6b77da5f.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/6946-fbee9d68cca6962a.js", + "static/chunks/pages/admin/[user_id]/users-f0479d26f1775a63.js" ], "/admin/[user_id]/users/add-user": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/pages/admin/[user_id]/users/add-user-c50fb941e687320a.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/pages/admin/[user_id]/users/add-user-34fb11350f30238b.js" ], "/admin/[user_id]/users/databases": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/5949-b1c68b62cd5dbfee.js", - "static/chunks/pages/admin/[user_id]/users/databases-ee8daf5a492656f7.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/6946-fbee9d68cca6962a.js", + "static/chunks/pages/admin/[user_id]/users/databases-0fb69664f52ac655.js" ], "/admin/[user_id]/users/databases/[database]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/5949-b1c68b62cd5dbfee.js", - "static/chunks/pages/admin/[user_id]/users/databases/[database]-8ce86ff54e77daca.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/6946-fbee9d68cca6962a.js", + "static/chunks/pages/admin/[user_id]/users/databases/[database]-a73c4085df69b849.js" ], "/admin/[user_id]/users/databases/[database]/[user]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/9365-101d5c9d637cef9a.js", - "static/chunks/2870-4390329ae1d5a1f2.js", - "static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-cba9dda9369d222a.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9799-f2854771cb0bce5c.js", + "static/chunks/5580-b9a6e4d2e2b38b6e.js", + "static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-013219dc3d51c500.js" ], "/blog": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/blog-be6db5dd2389f8c4.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/blog-1c6218c89ee93213.js" ], "/contact": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/contact-513427eea0db408d.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/contact-cbdd66383d45e846.js" ], "/create-account": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/8374-f28680e628b18bd5.js", - "static/chunks/5114-a70f18877cc7f8bc.js", - "static/chunks/pages/create-account-c97da041b7809649.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9907-8d988ae445ccee04.js", + "static/chunks/4147-1eea8c52da913e77.js", + "static/chunks/pages/create-account-7b359cd1beeea50d.js" ], "/docs": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/docs-de42203d30b1880d.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/docs-4aeb92deffd949be.js" ], "/docs/[page]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/docs/[page]-3602862f9a9542f8.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/docs/[page]-37b36feefe045092.js" ], "/docs/[page]/[sub-page]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/docs/[page]/[sub-page]-b3641ae1942e2312.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/docs/[page]/[sub-page]-75f4e2d6a034367b.js" + ], + "/docs/test": [ + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/docs/test-8c05e3dd64c32fff.js" ], "/email-verification": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/email-verification-2643dd10f1b54d59.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/email-verification-ac88bebd78b54c3b.js" ], "/login": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/8374-f28680e628b18bd5.js", - "static/chunks/pages/login-5453e8ec28f13db7.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/9907-8d988ae445ccee04.js", + "static/chunks/pages/login-c85193f251d3e601.js" ], "/logout": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/logout-3c3e2d0c564c405f.js" - ], - "/pricing": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/pricing-e193043fd895ccd5.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/logout-6ece04ed45dbe82e.js" ], "/privacy": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/privacy-6a6371ab4eda9c15.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/privacy-b8ca421ac2b66641.js" ], "/redirect": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/redirect-f189e8f0d6ae1482.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/redirect-5a5c5e9981d5bf24.js" ], "/reset-password": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/29107295-4a69275373f23f88.js", - "static/chunks/pages/reset-password-a754110c3b3e20fb.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/29107295-a5c0cca9b8761d61.js", + "static/chunks/pages/reset-password-aa61ba3768f9e7a8.js" ], "/send-password-reset-link": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/send-password-reset-link-62def12808387ec7.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/send-password-reset-link-9afa85f55bcb85d8.js" ], "/su": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/3695-c03f5685e1b79345.js", - "static/chunks/pages/su-0929bdda8a625d2f.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su-953c49bfd46c3c67.js" ], "/su/backups": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/pages/su/backups-4a9e96c30acc4626.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/backups-72459caf9e16f9e2.js" ], "/su/console": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/ed150ef9-713e0b995a8779c6.js", - "static/chunks/493-ec86d71e0fece010.js", - "static/chunks/5313-568ff7314fa4913c.js", + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/ed150ef9-f63505ffd7e6bb38.js", + "static/chunks/2793-4754da072494369e.js", + "static/chunks/2016-4bbb027201c6a476.js", "static/css/85fa6dafca566008.css", - "static/chunks/pages/su/console-46c6d0d0303e04b9.js" + "static/chunks/pages/su/console-0b061e9801d3c9fc.js" ], "/su/docs": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/5622-0b01b71a2de3acf8.js", - "static/chunks/pages/su/docs-b48cfe163578ba42.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/8135-acf650078aafbbbc.js", + "static/chunks/pages/su/docs-5762f53dd5fa7244.js" ], "/su/docs/create-page": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/2452-ed265b549204d978.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/2378-3a97fbefe0f48bac.js", - "static/chunks/pages/su/docs/create-page-9be0d237216b00cd.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/8521-4c189a61028357c2.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/3127-b32b189c8e4fbfb2.js", + "static/chunks/pages/su/docs/create-page-74f6d09fc2c1819c.js" ], "/su/docs/edit-page": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/2452-ed265b549204d978.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/2378-3a97fbefe0f48bac.js", - "static/chunks/pages/su/docs/edit-page-4892c3a874c645b3.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/8521-4c189a61028357c2.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/3127-b32b189c8e4fbfb2.js", + "static/chunks/pages/su/docs/edit-page-2d4fe8c62f2d73c1.js" ], "/su/docs/pages": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/5622-0b01b71a2de3acf8.js", - "static/chunks/pages/su/docs/pages-5eee4e47bc092505.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/8135-acf650078aafbbbc.js", + "static/chunks/pages/su/docs/pages-8262745ea3d391a3.js" ], "/su/docs/pages/[id]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/1179-5a248a7a76a74928.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/2452-ed265b549204d978.js", - "static/chunks/7901-841b99c96481dd31.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/2378-3a97fbefe0f48bac.js", - "static/chunks/pages/su/docs/pages/[id]-abedeaddb98ac372.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1522-ce4ccdc1c57d7ec8.js", + "static/chunks/8521-4c189a61028357c2.js", + "static/chunks/5414-7768ca31c29a305e.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/3127-b32b189c8e4fbfb2.js", + "static/chunks/pages/su/docs/pages/[id]-12cf238802cfc75a.js" ], "/su/envar": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/pages/su/envar-42f3065b06c71be8.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/envar-b17015aaf656ff9f.js" ], "/su/error-logs": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/3695-c03f5685e1b79345.js", - "static/chunks/pages/su/error-logs-5c9265bc2ac8176f.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/error-logs-6201f610e535041d.js" + ], + "/su/load-balancing": [ + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/load-balancing-ada5fc7dba043021.js" ], "/su/login": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/su/login-522c70b6952cc65b.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/su/login-a58f756481824c74.js" + ], + "/su/servers": [ + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/8717-b60634778115f32f.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/servers-6a4797f957e21c7e.js" ], "/su/users": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/pages/su/users-464900047fbc0228.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/users-2b8c6d69a8e01bc4.js" ], "/su/users/[single]": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/4185-b4c9a571bd713be6.js", - "static/chunks/8473-1a1faf3d4d34beef.js", - "static/chunks/3795-b7a314b891092ea4.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/pages/su/users/[single]-65b1051395f52052.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/7623-2ea9f881dc00955d.js", + "static/chunks/1105-7897faceec5c28c2.js", + "static/chunks/8949-61dcde8a69a04065.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/users/[single]-1ee222aaae1ecc52.js" ], "/su/users/new": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/5313-568ff7314fa4913c.js", - "static/chunks/pages/su/users/new-6cf4001cfdd2ec66.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/2016-4bbb027201c6a476.js", + "static/chunks/pages/su/users/new-83a5e7c9d1345b34.js" ], "/terms": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/terms-da8c5b5b6b17b132.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/terms-6ed8d3b12b9e850e.js" ], "/unsubscribe": [ - "static/chunks/webpack-309fbebe2073f18c.js", - "static/chunks/framework-4ed89e9640adfb9e.js", - "static/chunks/main-fd9fe2eccf11c307.js", - "static/chunks/pages/unsubscribe-b9517fbaaacff29b.js" + "static/chunks/webpack-e67b0ff03d96edf5.js", + "static/chunks/framework-c2373564c69ff406.js", + "static/chunks/main-02c55c0c38989d0c.js", + "static/chunks/pages/unsubscribe-647ad141423ff7eb.js" ] }, "ampFirstPages": [] diff --git a/dsql-app/.local_dist/cache/config.json b/dsql-app/.local_dist/cache/config.json index f0bcac1..1033833 100644 --- a/dsql-app/.local_dist/cache/config.json +++ b/dsql-app/.local_dist/cache/config.json @@ -1,7 +1,7 @@ { "telemetry": { - "notifiedAt": "1732727159063", - "anonymousId": "f2e11bd1d663763cae6484ea95ac15d21c82e9f41210d579ed3534c3be101973", - "salt": "ec1001fc65a100749ca913db791bc81c" + "notifiedAt": "1733381940702", + "anonymousId": "5d24cac332882d2f217e531c4a8385aadd4c29462533bb5298dded168fa6c45d", + "salt": "74b70355ffe776d3977e1e6fe58ea345" } } \ No newline at end of file diff --git a/dsql-app/.local_dist/cache/next-server.js.nft.json b/dsql-app/.local_dist/cache/next-server.js.nft.json deleted file mode 100644 index 4229bb4..0000000 --- a/dsql-app/.local_dist/cache/next-server.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"cacheKey":"d36430d6f9de914f8fc7c2132f215cf0c8542693788bb58f95082591142e00f6","files":["../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/node-polyfill-fetch.js","../node_modules/next/dist/server/node-polyfill-web-streams.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/server/server-route-utils.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/server/render.js","../node_modules/next/dist/server/app-render.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/load-components.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/utils.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/server/lib/recursive-readdir-sync.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/server/api-utils/node.js","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/build/webpack/require-hook.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/querystring.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../node_modules/next/dist/build/webpack/loaders/next-serverless-loader/utils.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/server/send-payload/index.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/shared/lib/router/utils/index.js","../node_modules/next/dist/lib/redirect-status.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/shared/lib/amp-mode.js","../node_modules/next/dist/shared/lib/amp-context.js","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/shared/lib/head-manager-context.js","../node_modules/next/dist/shared/lib/loadable.js","../node_modules/next/dist/shared/lib/loadable-context.js","../node_modules/next/dist/shared/lib/router-context.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/shared/lib/html-context.js","../node_modules/next/dist/server/render-result.js","../node_modules/next/dist/server/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/image-config-context.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/shared/lib/flush-effects.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/server/lib/squoosh/main.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/client/components/match-segments.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/client/components/hooks-server.js","../node_modules/next/dist/lib/chalk.js","../node_modules/next/dist/shared/lib/runtime-config.js","../node_modules/next/dist/server/router.js","../node_modules/next/dist/server/send-payload/revalidate-headers.js","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js","../node_modules/next/dist/server/accept-header.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/web/sandbox/sandbox.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/server/font-utils.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/next/dist/compiled/react-server-dom-webpack/writer.browser.server.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/compiled/react-server-dom-webpack/package.json","../node_modules/next/dist/lib/web/chalk.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/streams.js","../node_modules/next/dist/shared/lib/router/utils/format-url.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/package.json","../node_modules/next/dist/compiled/@next/react-dev-overlay/dist/middleware.js","../node_modules/next/dist/server/google-font-metrics.json","../node_modules/styled-jsx/package.json","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/react-dom/package.json","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/compiled/react-server-dom-webpack/index.js","../node_modules/next/dist/compiled/node-fetch/package.json","../node_modules/next/dist/compiled/node-fetch/index.js","../node_modules/next/dist/compiled/compression/package.json","../node_modules/next/dist/compiled/compression/index.js","../node_modules/next/dist/compiled/http-proxy/package.json","../node_modules/next/dist/compiled/http-proxy/index.js","../node_modules/next/dist/compiled/send/package.json","../node_modules/next/dist/compiled/send/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/react-dom/server.node.js","../node_modules/next/dist/compiled/@next/react-dev-overlay/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/react-dom/server.js","../node_modules/@next/env/package.json","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/compiled/get-orientation/package.json","../node_modules/next/dist/compiled/get-orientation/index.js","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/chalk/package.json","../node_modules/next/dist/compiled/chalk/index.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/styled-jsx/index.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/sharp/package.json","../node_modules/sharp/lib/index.js","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/content-type/package.json","../node_modules/next/dist/compiled/content-type/index.js","../node_modules/next/dist/compiled/raw-body/package.json","../node_modules/next/dist/compiled/raw-body/index.js","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/@swc/helpers/lib/_async_to_generator.js","../node_modules/@swc/helpers/lib/_extends.js","../node_modules/@swc/helpers/lib/_interop_require_default.js","../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js","../node_modules/react-dom/cjs/react-dom-server.node.production.min.js","../node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js","../node_modules/react-dom/cjs/react-dom-server.node.development.js","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/cjs/react.development.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/next/dist/compiled/node-html-parser/package.json","../node_modules/next/dist/compiled/node-html-parser/index.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/next/dist/compiled/micromatch/package.json","../node_modules/next/dist/compiled/micromatch/index.js","../node_modules/styled-jsx/dist/index/index.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/next/dist/compiled/jest-worker/package.json","../node_modules/next/dist/compiled/jest-worker/index.js","../node_modules/use-sync-external-store/package.json","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/compiled/debug/index.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/semver/index.js","../node_modules/sharp/node_modules/semver/functions/coerce.js","../node_modules/sharp/node_modules/semver/functions/gte.js","../node_modules/sharp/node_modules/semver/functions/satisfies.js","../node_modules/sharp/node_modules/semver/package.json","../node_modules/color/index.js","../node_modules/detect-libc/package.json","../node_modules/detect-libc/lib/detect-libc.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/console.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/encoding.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/blob.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/url.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/fetch.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/cache.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/crypto.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/structured-clone.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/events.js","../node_modules/color/package.json","../node_modules/sharp/node_modules/semver/functions/parse.js","../node_modules/sharp/node_modules/semver/functions/compare.js","../node_modules/sharp/node_modules/semver/classes/semver.js","../node_modules/sharp/node_modules/semver/internal/re.js","../node_modules/sharp/node_modules/semver/classes/range.js","../node_modules/detect-libc/lib/process.js","../node_modules/detect-libc/lib/filesystem.js","../node_modules/sharp/node_modules/semver/internal/debug.js","../node_modules/sharp/node_modules/semver/internal/constants.js","../node_modules/sharp/node_modules/semver/internal/parse-options.js","../node_modules/sharp/node_modules/semver/internal/identifiers.js","../node_modules/sharp/node_modules/semver/classes/comparator.js","../node_modules/color/node_modules/color-convert/index.js","../node_modules/color/node_modules/color-convert/package.json","../node_modules/sharp/node_modules/semver/functions/cmp.js","../node_modules/color-string/index.js","../node_modules/color/node_modules/color-convert/conversions.js","../node_modules/color/node_modules/color-convert/route.js","../node_modules/color-string/package.json","../node_modules/sharp/node_modules/semver/functions/eq.js","../node_modules/sharp/node_modules/semver/functions/neq.js","../node_modules/sharp/node_modules/semver/functions/gt.js","../node_modules/sharp/node_modules/semver/functions/lt.js","../node_modules/sharp/node_modules/semver/functions/lte.js","../node_modules/lru-cache/package.json","../node_modules/lru-cache/index.js","../node_modules/color/node_modules/color-name/package.json","../node_modules/color/node_modules/color-name/index.js","../node_modules/color-name/package.json","../node_modules/color-name/index.js","../node_modules/simple-swizzle/index.js","../node_modules/simple-swizzle/package.json","../node_modules/yallist/package.json","../node_modules/yallist/yallist.js","../node_modules/yallist/iterator.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/simple-swizzle/node_modules/is-arrayish/package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/cache/webpack/client-production/0.pack b/dsql-app/.local_dist/cache/webpack/client-production/0.pack index cc95df6..ed77999 100644 Binary files a/dsql-app/.local_dist/cache/webpack/client-production/0.pack and b/dsql-app/.local_dist/cache/webpack/client-production/0.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/client-production/index.pack b/dsql-app/.local_dist/cache/webpack/client-production/index.pack index 5600129..5c6b74b 100644 Binary files a/dsql-app/.local_dist/cache/webpack/client-production/index.pack and b/dsql-app/.local_dist/cache/webpack/client-production/index.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/edge-server-production/0.pack b/dsql-app/.local_dist/cache/webpack/edge-server-production/0.pack new file mode 100644 index 0000000..f22dcaf Binary files /dev/null and b/dsql-app/.local_dist/cache/webpack/edge-server-production/0.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack b/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack new file mode 100644 index 0000000..5c1025d Binary files /dev/null and b/dsql-app/.local_dist/cache/webpack/edge-server-production/index.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/server-production/0.pack b/dsql-app/.local_dist/cache/webpack/server-production/0.pack index c1a6a9a..6473471 100644 Binary files a/dsql-app/.local_dist/cache/webpack/server-production/0.pack and b/dsql-app/.local_dist/cache/webpack/server-production/0.pack differ diff --git a/dsql-app/.local_dist/cache/webpack/server-production/index.pack b/dsql-app/.local_dist/cache/webpack/server-production/index.pack index de9c44a..89822cf 100644 Binary files a/dsql-app/.local_dist/cache/webpack/server-production/index.pack and b/dsql-app/.local_dist/cache/webpack/server-production/index.pack differ diff --git a/dsql-app/.local_dist/diagnostics/build-diagnostics.json b/dsql-app/.local_dist/diagnostics/build-diagnostics.json new file mode 100644 index 0000000..5ccdc35 --- /dev/null +++ b/dsql-app/.local_dist/diagnostics/build-diagnostics.json @@ -0,0 +1,6 @@ +{ + "buildStage": "static-generation", + "buildOptions": { + "useBuildWorker": "false" + } +} \ No newline at end of file diff --git a/dsql-app/.local_dist/diagnostics/framework.json b/dsql-app/.local_dist/diagnostics/framework.json new file mode 100644 index 0000000..c9d2db9 --- /dev/null +++ b/dsql-app/.local_dist/diagnostics/framework.json @@ -0,0 +1 @@ +{"name":"Next.js","version":"15.0.3"} \ No newline at end of file diff --git a/dsql-app/.local_dist/images-manifest.json b/dsql-app/.local_dist/images-manifest.json index a611415..71515d6 100644 --- a/dsql-app/.local_dist/images-manifest.json +++ b/dsql-app/.local_dist/images-manifest.json @@ -1 +1 @@ -{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}} \ No newline at end of file +{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}} \ No newline at end of file diff --git a/dsql-app/.local_dist/next-minimal-server.js.nft.json b/dsql-app/.local_dist/next-minimal-server.js.nft.json new file mode 100644 index 0000000..bb05f2c --- /dev/null +++ b/dsql-app/.local_dist/next-minimal-server.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/build/next-dir-paths.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/caniuse-lite/package.json","../node_modules/caniuse-lite/data/agents.js","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/next-server.js.nft.json b/dsql-app/.local_dist/next-server.js.nft.json index 4229bb4..bed9036 100644 --- a/dsql-app/.local_dist/next-server.js.nft.json +++ b/dsql-app/.local_dist/next-server.js.nft.json @@ -1 +1 @@ -{"version":1,"cacheKey":"d36430d6f9de914f8fc7c2132f215cf0c8542693788bb58f95082591142e00f6","files":["../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/node-polyfill-fetch.js","../node_modules/next/dist/server/node-polyfill-web-streams.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/server/server-route-utils.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/server/render.js","../node_modules/next/dist/server/app-render.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/load-components.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/utils.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/server/lib/recursive-readdir-sync.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/server/api-utils/node.js","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/build/webpack/require-hook.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/querystring.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../node_modules/next/dist/build/webpack/loaders/next-serverless-loader/utils.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/server/send-payload/index.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/shared/lib/router/utils/index.js","../node_modules/next/dist/lib/redirect-status.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/shared/lib/amp-mode.js","../node_modules/next/dist/shared/lib/amp-context.js","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/shared/lib/head-manager-context.js","../node_modules/next/dist/shared/lib/loadable.js","../node_modules/next/dist/shared/lib/loadable-context.js","../node_modules/next/dist/shared/lib/router-context.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/shared/lib/html-context.js","../node_modules/next/dist/server/render-result.js","../node_modules/next/dist/server/node-web-streams-helper.js","../node_modules/next/dist/shared/lib/image-config-context.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/shared/lib/flush-effects.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/server/lib/squoosh/main.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/client/components/match-segments.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/client/components/hooks-server.js","../node_modules/next/dist/lib/chalk.js","../node_modules/next/dist/shared/lib/runtime-config.js","../node_modules/next/dist/server/router.js","../node_modules/next/dist/server/send-payload/revalidate-headers.js","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/next/dist/shared/lib/i18n/get-locale-redirect.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/shared/lib/i18n/detect-locale-cookie.js","../node_modules/next/dist/server/accept-header.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/web/sandbox/sandbox.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/server/font-utils.js","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/next/dist/compiled/react-server-dom-webpack/writer.browser.server.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/compiled/react-server-dom-webpack/package.json","../node_modules/next/dist/lib/web/chalk.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/streams.js","../node_modules/next/dist/shared/lib/router/utils/format-url.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/package.json","../node_modules/next/dist/compiled/@next/react-dev-overlay/dist/middleware.js","../node_modules/next/dist/server/google-font-metrics.json","../node_modules/styled-jsx/package.json","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/react-dom/package.json","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/compiled/react-server-dom-webpack/index.js","../node_modules/next/dist/compiled/node-fetch/package.json","../node_modules/next/dist/compiled/node-fetch/index.js","../node_modules/next/dist/compiled/compression/package.json","../node_modules/next/dist/compiled/compression/index.js","../node_modules/next/dist/compiled/http-proxy/package.json","../node_modules/next/dist/compiled/http-proxy/index.js","../node_modules/next/dist/compiled/send/package.json","../node_modules/next/dist/compiled/send/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/react-dom/server.node.js","../node_modules/next/dist/compiled/@next/react-dev-overlay/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/react-dom/server.js","../node_modules/@next/env/package.json","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/compiled/get-orientation/package.json","../node_modules/next/dist/compiled/get-orientation/index.js","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/chalk/package.json","../node_modules/next/dist/compiled/chalk/index.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/styled-jsx/index.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.production.min.server.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/sharp/package.json","../node_modules/sharp/lib/index.js","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/content-type/package.json","../node_modules/next/dist/compiled/content-type/index.js","../node_modules/next/dist/compiled/raw-body/package.json","../node_modules/next/dist/compiled/raw-body/index.js","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/@swc/helpers/lib/_async_to_generator.js","../node_modules/@swc/helpers/lib/_extends.js","../node_modules/@swc/helpers/lib/_interop_require_default.js","../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack.production.min.js","../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack.development.js","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../node_modules/react-dom/cjs/react-dom-server-legacy.node.production.min.js","../node_modules/react-dom/cjs/react-dom-server.node.production.min.js","../node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js","../node_modules/react-dom/cjs/react-dom-server.node.development.js","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/react/cjs/react.production.min.js","../node_modules/react/cjs/react.development.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/next/dist/compiled/node-html-parser/package.json","../node_modules/next/dist/compiled/node-html-parser/index.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/next/dist/compiled/micromatch/package.json","../node_modules/next/dist/compiled/micromatch/index.js","../node_modules/styled-jsx/dist/index/index.js","../node_modules/use-sync-external-store/shim/index.js","../node_modules/next/dist/compiled/jest-worker/package.json","../node_modules/next/dist/compiled/jest-worker/index.js","../node_modules/use-sync-external-store/package.json","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/compiled/debug/index.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/compiled/semver/index.js","../node_modules/sharp/node_modules/semver/functions/coerce.js","../node_modules/sharp/node_modules/semver/functions/gte.js","../node_modules/sharp/node_modules/semver/functions/satisfies.js","../node_modules/sharp/node_modules/semver/package.json","../node_modules/color/index.js","../node_modules/detect-libc/package.json","../node_modules/detect-libc/lib/detect-libc.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/console.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/encoding.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/blob.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/url.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/fetch.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/cache.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/abort-controller.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/crypto.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/structured-clone.js","../node_modules/next/dist/compiled/@edge-runtime/primitives/events.js","../node_modules/color/package.json","../node_modules/sharp/node_modules/semver/functions/parse.js","../node_modules/sharp/node_modules/semver/functions/compare.js","../node_modules/sharp/node_modules/semver/classes/semver.js","../node_modules/sharp/node_modules/semver/internal/re.js","../node_modules/sharp/node_modules/semver/classes/range.js","../node_modules/detect-libc/lib/process.js","../node_modules/detect-libc/lib/filesystem.js","../node_modules/sharp/node_modules/semver/internal/debug.js","../node_modules/sharp/node_modules/semver/internal/constants.js","../node_modules/sharp/node_modules/semver/internal/parse-options.js","../node_modules/sharp/node_modules/semver/internal/identifiers.js","../node_modules/sharp/node_modules/semver/classes/comparator.js","../node_modules/color/node_modules/color-convert/index.js","../node_modules/color/node_modules/color-convert/package.json","../node_modules/sharp/node_modules/semver/functions/cmp.js","../node_modules/color-string/index.js","../node_modules/color/node_modules/color-convert/conversions.js","../node_modules/color/node_modules/color-convert/route.js","../node_modules/color-string/package.json","../node_modules/sharp/node_modules/semver/functions/eq.js","../node_modules/sharp/node_modules/semver/functions/neq.js","../node_modules/sharp/node_modules/semver/functions/gt.js","../node_modules/sharp/node_modules/semver/functions/lt.js","../node_modules/sharp/node_modules/semver/functions/lte.js","../node_modules/lru-cache/package.json","../node_modules/lru-cache/index.js","../node_modules/color/node_modules/color-name/package.json","../node_modules/color/node_modules/color-name/index.js","../node_modules/color-name/package.json","../node_modules/color-name/index.js","../node_modules/simple-swizzle/index.js","../node_modules/simple-swizzle/package.json","../node_modules/yallist/package.json","../node_modules/yallist/yallist.js","../node_modules/yallist/iterator.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/simple-swizzle/node_modules/is-arrayish/package.json"]} \ No newline at end of file +{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/server/next-server.js","../node_modules/next/package.json","../node_modules/next/dist/server/node-environment.js","../node_modules/next/dist/server/require-hook.js","../node_modules/next/dist/server/base-server.js","../node_modules/next/dist/server/node-polyfill-crypto.js","../node_modules/next/dist/server/request-meta.js","../node_modules/next/dist/lib/find-pages-dir.js","../node_modules/next/dist/server/send-payload.js","../node_modules/next/dist/server/require.js","../node_modules/next/dist/server/load-components.js","../node_modules/next/dist/lib/is-error.js","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/server/setup-http-agent-env.js","../node_modules/next/dist/lib/constants.js","../node_modules/next/dist/server/pipe-readable.js","../node_modules/next/dist/server/load-manifest.js","../node_modules/next/dist/lib/interop-default.js","../node_modules/next/dist/lib/format-dynamic-import-path.js","../node_modules/next/dist/lib/generate-interception-routes-rewrites.js","../node_modules/next/dist/server/route-kind.js","../node_modules/next/dist/server/image-optimizer.js","../node_modules/next/dist/server/serve-static.js","../node_modules/next/dist/lib/format-server-error.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/shared/lib/utils.js","../node_modules/next/dist/server/base-http/node.js","../node_modules/next/dist/build/output/log.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/server/route-matches/pages-api-route-match.js","../node_modules/next/dist/server/lib/node-fs-methods.js","../node_modules/next/dist/server/lib/mock-request.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/server/lib/module-loader/route-module-loader.js","../node_modules/next/dist/server/route-modules/pages/module.render.js","../node_modules/next/dist/server/route-modules/app-page/module.render.js","../node_modules/next/dist/shared/lib/router/utils/route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/parse-url.js","../node_modules/next/dist/shared/lib/router/utils/middleware-route-matcher.js","../node_modules/next/dist/shared/lib/router/utils/querystring.js","../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js","../node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js","../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../node_modules/next/dist/shared/lib/router/utils/route-regex.js","../node_modules/next/dist/server/web/spec-extension/adapters/next-request.js","../node_modules/react-dom/package.json","../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../node_modules/react/jsx-runtime.js","../node_modules/next/dist/server/api-utils/index.js","../node_modules/next/dist/server/response-cache/index.js","../node_modules/sharp/package.json","../node_modules/next/dist/server/lib/incremental-cache/index.js","../node_modules/next/dist/experimental/testmode/server.js","../node_modules/next/dist/server/web/sandbox/index.js","../node_modules/@next/env/package.json","../node_modules/sharp/lib/index.js","../node_modules/react-dom/index.js","../node_modules/next/dist/server/node-environment-baseline.js","../node_modules/next/dist/lib/wait.js","../node_modules/next/dist/lib/detached-promise.js","../node_modules/next/dist/server/client-component-renderer-logger.js","../node_modules/next/dist/lib/url.js","../node_modules/@next/env/dist/index.js","../node_modules/next/dist/server/node-environment-extensions/error-inspect.js","../node_modules/next/dist/server/node-environment-extensions/random.js","../node_modules/next/dist/server/node-environment-extensions/date.js","../node_modules/next/dist/server/node-environment-extensions/web-crypto.js","../node_modules/next/dist/server/node-environment-extensions/node-crypto.js","../node_modules/next/dist/server/lib/etag.js","../node_modules/next/dist/server/lib/revalidate.js","../node_modules/next/dist/server/lib/lru-cache.js","../node_modules/next/dist/server/app-render/encryption-utils.js","../node_modules/next/dist/server/app-render/action-utils.js","../node_modules/next/dist/shared/lib/is-plain-object.js","../node_modules/next/dist/lib/metadata/is-metadata-route.js","../node_modules/next/dist/shared/lib/deep-freeze.js","../node_modules/next/dist/server/lib/interception-routes.js","../node_modules/next/dist/shared/lib/image-blur-svg.js","../node_modules/next/dist/shared/lib/match-local-pattern.js","../node_modules/next/dist/shared/lib/match-remote-pattern.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/head.js","../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js","../node_modules/next/dist/server/base-http/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/shared/lib/is-thenable.js","../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../node_modules/next/dist/server/lib/module-loader/node-module-loader.js","../node_modules/next/dist/server/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/route-modules/pages/module.compiled.js","../node_modules/next/dist/shared/lib/segment.js","../node_modules/next/dist/shared/lib/escape-regexp.js","../node_modules/next/dist/server/base-http/helpers.js","../node_modules/next/dist/lib/scheduler.js","../node_modules/next/dist/lib/batcher.js","../node_modules/next/dist/server/web/spec-extension/request.js","../node_modules/next/dist/server/response-cache/types.js","../node_modules/next/dist/server/response-cache/utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js","../node_modules/next/dist/shared/lib/router/utils/prepare-destination.js","../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js","../node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js","../node_modules/react-dom/cjs/react-dom.production.min.js","../node_modules/next/dist/experimental/testmode/context.js","../node_modules/next/dist/experimental/testmode/fetch.js","../node_modules/next/dist/experimental/testmode/httpget.js","../node_modules/next/dist/server/lib/to-route.js","../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../node_modules/next/dist/server/web/spec-extension/adapters/headers.js","../node_modules/next/dist/compiled/fresh/package.json","../node_modules/next/dist/compiled/path-to-regexp/package.json","../node_modules/next/dist/compiled/image-size/package.json","../node_modules/next/dist/compiled/content-disposition/package.json","../node_modules/next/dist/compiled/is-animated/package.json","../node_modules/next/dist/compiled/send/package.json","../node_modules/next/dist/server/lib/incremental-cache/fetch-cache.js","../node_modules/next/dist/server/lib/incremental-cache/file-system-cache.js","../node_modules/next/dist/server/lib/incremental-cache/shared-revalidate-timings.js","../node_modules/next/dist/server/web/sandbox/sandbox.js","../node_modules/next/dist/server/web/sandbox/context.js","../node_modules/next/dist/lib/redirect-status.js","../node_modules/next/dist/lib/is-edge-runtime.js","../node_modules/next/dist/server/utils.js","../node_modules/next/dist/server/render-result.js","../node_modules/next/dist/server/server-utils.js","../node_modules/next/dist/server/send-response.js","../node_modules/next/dist/lib/fallback.js","../node_modules/next/dist/compiled/@hapi/accept/package.json","../node_modules/next/dist/shared/lib/router/utils/index.js","../node_modules/next/dist/server/request/fallback-params.js","../node_modules/next/dist/server/lib/format-hostname.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/shared/lib/get-hostname.js","../node_modules/next/dist/server/normalizers/locale-route-normalizer.js","../node_modules/next/dist/server/route-matcher-managers/default-route-matcher-manager.js","../node_modules/next/dist/server/route-matcher-providers/app-page-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/app-route-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-api-route-matcher-provider.js","../node_modules/next/dist/server/route-matcher-providers/pages-route-matcher-provider.js","../node_modules/next/dist/server/lib/i18n-provider.js","../node_modules/next/dist/server/lib/match-next-data-pathname.js","../node_modules/next/dist/server/app-render/strip-flight-headers.js","../node_modules/next/dist/server/route-modules/checks.js","../node_modules/next/dist/server/lib/server-action-request-meta.js","../node_modules/next/dist/server/lib/patch-set-header.js","../node_modules/next/dist/server/after/builtin-request-context.js","../node_modules/next/dist/server/stream-utils/encodedTags.js","../node_modules/next/dist/server/web/adapter.js","../node_modules/next/dist/server/instrumentation/utils.js","../node_modules/next/dist/server/resume-data-cache/resume-data-cache.js","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/server/patch-error-inspect.js","../node_modules/next/dist/server/lib/router-utils/decode-path-params.js","../node_modules/next/dist/server/normalizers/request/rsc.js","../node_modules/next/dist/server/normalizers/request/prefetch-rsc.js","../node_modules/next/dist/server/normalizers/request/next-data.js","../node_modules/next/dist/server/lib/experimental/ppr.js","../node_modules/next/dist/server/api-utils/node/try-get-preview-data.js","../node_modules/next/dist/server/node-environment-extensions/utils.js","../node_modules/next/dist/shared/lib/router/utils/is-bot.js","../node_modules/next/dist/server/route-matcher-providers/helpers/manifest-loaders/server-manifest-loader.js","../node_modules/next/dist/shared/lib/router/utils/get-route-from-asset-path.js","../node_modules/next/dist/shared/lib/invariant-error.js","../node_modules/next/dist/server/app-render/work-async-storage.external.js","../node_modules/react-dom/server.browser.js","../node_modules/next/dist/compiled/fresh/index.js","../node_modules/next/dist/compiled/path-to-regexp/index.js","../node_modules/next/dist/compiled/image-size/index.js","../node_modules/next/dist/compiled/content-disposition/index.js","../node_modules/next/dist/compiled/is-animated/index.js","../node_modules/next/dist/compiled/send/index.js","../node_modules/next/dist/shared/lib/side-effect.js","../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../node_modules/next/dist/shared/lib/amp-mode.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/next/dist/client/components/redirect-status-code.js","../node_modules/next/dist/server/api-utils/get-cookie-parser.js","../node_modules/next/dist/shared/lib/utils/warn-once.js","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/cookie/package.json","../node_modules/next/dist/compiled/@hapi/accept/index.js","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/server/web/next-url.js","../node_modules/next/dist/server/web/error.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/ws/package.json","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/server/web/spec-extension/cookies.js","../node_modules/next/dist/compiled/cookie/index.js","../node_modules/next/dist/server/app-render/async-local-storage.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/lib/pick.js","../node_modules/next/dist/server/stream-utils/node-web-streams-helper.js","../node_modules/next/dist/compiled/picomatch/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../node_modules/next/dist/lib/is-app-page-route.js","../node_modules/next/dist/lib/is-app-route-route.js","../node_modules/next/dist/lib/is-api-route.js","../node_modules/next/dist/server/internal-utils.js","../node_modules/next/dist/shared/lib/router/utils/parse-path.js","../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../node_modules/next/dist/shared/lib/isomorphic/path.js","../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../node_modules/next/dist/server/web/sandbox/fetch-inline-assets.js","../node_modules/next/dist/server/web/sandbox/resource-managers.js","../node_modules/@img/sharp-libvips-linux-x64/package.json","../node_modules/@img/sharp-libvips-linux-x64/versions.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../node_modules/@img/sharp-linux-x64/LICENSE","../node_modules/@img/sharp-linux-x64/package.json","../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../node_modules/@img/sharp-linuxmusl-x64/package.json","../node_modules/next/dist/server/lib/is-ipv6.js","../node_modules/next/dist/server/route-matchers/locale-route-matcher.js","../node_modules/next/dist/server/route-matchers/app-page-route-matcher.js","../node_modules/next/dist/server/route-matcher-providers/manifest-route-matcher-provider.js","../node_modules/next/dist/server/route-matchers/app-route-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-api-route-matcher.js","../node_modules/next/dist/server/route-matchers/pages-route-matcher.js","../node_modules/next/dist/server/web/globals.js","../node_modules/next/dist/server/async-storage/request-store.js","../node_modules/next/dist/server/async-storage/work-store.js","../node_modules/next/dist/server/web/web-on-close.js","../node_modules/next/dist/server/web/get-edge-preview-props.js","../node_modules/next/dist/server/resume-data-cache/cache-store.js","../node_modules/scheduler/package.json","../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../node_modules/next/dist/server/crypto-utils.js","../node_modules/next/dist/server/web/spec-extension/adapters/reflect.js","../node_modules/next/dist/shared/lib/router/utils/path-match.js","../node_modules/next/dist/compiled/next-server/app-page-turbo-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-experimental.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page-turbo.runtime.prod.js","../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../node_modules/next/dist/compiled/next-server/pages-turbo.runtime.prod.js","../node_modules/next/dist/client/components/react-dev-overlay/server/middleware.js","../node_modules/next/dist/server/web/spec-extension/fetch-event.js","../node_modules/next/dist/server/web/spec-extension/response.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/server/route-modules/app-page/module.js","../node_modules/next/dist/server/route-modules/pages/module.js","../node_modules/next/dist/server/app-render/dynamic-rendering.js","../node_modules/next/dist/shared/lib/router/utils/relativize-url.js","../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../node_modules/next/dist/server/normalizers/request/suffix.js","../node_modules/next/dist/server/normalizers/request/prefix.js","../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../node_modules/next/dist/client/components/react-dev-overlay/server/shared.js","../node_modules/scheduler/index.js","../node_modules/next/dist/shared/lib/router/utils/escape-path-delimiters.js","../node_modules/next/dist/compiled/picomatch/index.js","../node_modules/sharp/lib/constructor.js","../node_modules/sharp/lib/input.js","../node_modules/sharp/lib/resize.js","../node_modules/sharp/lib/composite.js","../node_modules/sharp/lib/operation.js","../node_modules/sharp/lib/colour.js","../node_modules/sharp/lib/channel.js","../node_modules/sharp/lib/output.js","../node_modules/sharp/lib/utility.js","../node_modules/next/dist/experimental/testmode/server-edge.js","../node_modules/next/dist/server/normalizers/built/app/index.js","../node_modules/next/dist/server/normalizers/built/pages/index.js","../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/package.json","../node_modules/next/dist/compiled/edge-runtime/package.json","../node_modules/next/dist/compiled/source-map/package.json","../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js","../node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js","../node_modules/next/dist/server/stream-utils/uint8array-helpers.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/scheduler/cjs/scheduler.development.js","../node_modules/scheduler/cjs/scheduler.production.min.js","../node_modules/next/dist/server/route-matchers/route-matcher.js","../node_modules/next/dist/server/async-storage/draft-mode-provider.js","../node_modules/next/dist/server/after/after-context.js","../node_modules/next/dist/build/next-dir-paths.js","../node_modules/next/dist/compiled/edge-runtime/index.js","../node_modules/next/dist/server/dynamic-rendering-utils.js","../node_modules/next/dist/server/route-matcher-providers/helpers/cached-route-matcher-provider.js","../node_modules/next/dist/server/render.js","../node_modules/sharp/lib/is.js","../node_modules/sharp/lib/sharp.js","../node_modules/sharp/lib/libvips.js","../node_modules/next/dist/compiled/source-map/source-map.js","../node_modules/next/dist/compiled/@mswjs/interceptors/ClientRequest/index.js","../node_modules/next/dist/client/components/hooks-server-context.js","../node_modules/next/dist/client/components/static-generation-bailout.js","../node_modules/next/dist/lib/metadata/metadata-constants.js","../node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js","../node_modules/next/dist/server/app-render/app-render.js","../node_modules/next/dist/server/route-modules/route-module.js","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/shared/lib/is-internal.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-from-file.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/launchEditor.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/node-stack-frames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/webpack-module-path.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/rsc/entrypoints.js","../node_modules/next/dist/server/route-modules/app-page/vendored/ssr/entrypoints.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/package.json","../node_modules/next/dist/compiled/bytes/package.json","../node_modules/next/dist/compiled/path-browserify/package.json","../node_modules/next/dist/server/normalizers/built/app/app-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/app/app-pathname-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-bundle-path-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-filename-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-page-normalizer.js","../node_modules/next/dist/server/normalizers/built/pages/pages-pathname-normalizer.js","../node_modules/next/dist/server/app-render/action-async-storage.external.js","../node_modules/next/dist/server/app-render/clean-async-snapshot.external.js","../node_modules/next/dist/compiled/babel/code-frame.js","../node_modules/next/dist/compiled/source-map08/package.json","../node_modules/detect-libc/package.json","../node_modules/next/dist/lib/is-serializable-props.js","../node_modules/next/dist/server/post-process.js","../node_modules/next/dist/server/after/revalidation-utils.js","../node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js","../node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js","../node_modules/next/dist/shared/lib/router/utils/add-locale.js","../node_modules/next/dist/compiled/@edge-runtime/cookies/index.js","../node_modules/next/dist/shared/lib/loadable.shared-runtime.js","../node_modules/next/dist/shared/lib/loadable-context.shared-runtime.js","../node_modules/next/dist/shared/lib/router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/html-context.shared-runtime.js","../node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js","../node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js","../node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js","../node_modules/color/index.js","../node_modules/next/dist/compiled/babel/package.json","../node_modules/next/dist/shared/lib/router/adapters.js","../node_modules/next/dist/compiled/bytes/index.js","../node_modules/next/dist/compiled/path-browserify/index.js","../node_modules/next/dist/lib/metadata/metadata-context.js","../node_modules/next/dist/client/components/not-found.js","../node_modules/next/dist/client/components/redirect.js","../node_modules/next/dist/server/lib/implicit-tags.js","../node_modules/next/dist/server/app-render/flight-render-result.js","../node_modules/next/dist/server/app-render/create-error-handler.js","../node_modules/next/dist/server/app-render/get-short-dynamic-param-type.js","../node_modules/next/dist/server/app-render/get-segment-param.js","../node_modules/next/dist/server/app-render/get-script-nonce-from-header.js","../node_modules/next/dist/server/app-render/parse-and-validate-flight-router-state.js","../node_modules/next/dist/server/app-render/create-flight-router-state-from-loader-tree.js","../node_modules/next/dist/server/app-render/action-handler.js","../node_modules/next/dist/server/app-render/server-inserted-html.js","../node_modules/next/dist/server/app-render/required-scripts.js","../node_modules/next/dist/server/app-render/make-get-server-inserted-html.js","../node_modules/next/dist/server/app-render/walk-tree-with-flight-router-state.js","../node_modules/next/dist/server/app-render/create-component-tree.js","../node_modules/next/dist/server/app-render/get-asset-query-string.js","../node_modules/next/dist/server/app-render/postponed-state.js","../node_modules/next/dist/server/app-render/use-flight-response.js","../node_modules/next/dist/client/components/app-router.js","../node_modules/next/dist/server/app-render/app-render-prerender-utils.js","../node_modules/next/dist/server/app-render/prospective-render-utils.js","../node_modules/next/dist/server/app-render/app-render-render-utils.js","../node_modules/next/dist/server/app-render/cache-signal.js","../node_modules/next/dist/server/app-render/create-component-styles-and-scripts.js","../node_modules/next/dist/server/app-render/parse-loader-tree.js","../node_modules/next/dist/client/components/dev-root-not-found-boundary.js","../node_modules/color/package.json","../node_modules/detect-libc/lib/detect-libc.js","../node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js","../node_modules/next/dist/client/components/router-reducer/create-initial-router-state.js","../node_modules/next/dist/shared/lib/router/action-queue.js","../node_modules/next/dist/server/lib/trace/utils.js","../node_modules/next/dist/compiled/source-map08/source-map.js","../node_modules/sharp/node_modules/semver/functions/gte.js","../node_modules/sharp/node_modules/semver/functions/coerce.js","../node_modules/sharp/node_modules/semver/functions/satisfies.js","../node_modules/next/dist/server/ReactDOMServerPages.js","../node_modules/next/dist/client/components/is-hydration-error.js","../node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js","../node_modules/sharp/node_modules/semver/package.json","../node_modules/next/dist/compiled/p-queue/package.json","../node_modules/next/dist/compiled/strip-ansi/package.json","../node_modules/next/dist/compiled/react-is/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-source-map-url.js","../node_modules/next/dist/lib/page-types.js","../node_modules/next/dist/server/normalizers/normalizers.js","../node_modules/next/dist/server/normalizers/prefixing-normalizer.js","../node_modules/next/dist/server/normalizers/absolute-filename-normalizer.js","../node_modules/next/dist/server/normalizers/wrap-normalizer-fn.js","../node_modules/next/dist/server/normalizers/underscore-normalizer.js","../node_modules/next/dist/lib/non-nullable.js","../node_modules/next/dist/server/optimize-amp.js","../node_modules/next/dist/compiled/nanoid/package.json","../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../node_modules/next/dist/server/app-render/clean-async-snapshot-instance.js","../node_modules/next/dist/compiled/babel/bundle.js","../node_modules/detect-libc/lib/process.js","../node_modules/detect-libc/lib/filesystem.js","../node_modules/next/dist/shared/lib/image-config.js","../node_modules/next/dist/server/htmlescape.js","../node_modules/next/dist/lib/client-reference.js","../node_modules/next/dist/client/add-base-path.js","../node_modules/next/dist/client/remove-base-path.js","../node_modules/next/dist/client/has-base-path.js","../node_modules/next/dist/client/app-call-server.js","../node_modules/next/dist/compiled/p-queue/index.js","../node_modules/next/dist/compiled/strip-ansi/index.js","../node_modules/next/dist/compiled/react-is/index.js","../node_modules/next/dist/client/components/is-next-router-error.js","../node_modules/next/dist/server/app-render/types.js","../node_modules/next/dist/server/app-render/csrf-protection.js","../node_modules/next/dist/server/app-render/react-server.node.js","../node_modules/next/dist/shared/lib/encode-uri-path.js","../node_modules/next/dist/client/components/match-segments.js","../node_modules/next/dist/server/app-render/get-css-inlined-link-tags.js","../node_modules/next/dist/server/app-render/get-preloadable-fonts.js","../node_modules/next/dist/server/app-render/has-loading-component-in-tree.js","../node_modules/next/dist/server/lib/app-dir-module.js","../node_modules/next/dist/server/app-render/interop-default.js","../node_modules/next/dist/server/app-render/get-layer-assets.js","../node_modules/next/dist/server/lib/patch-fetch.js","../node_modules/next/dist/client/components/parallel-route-default.js","../node_modules/next/dist/client/components/use-reducer.js","../node_modules/next/dist/client/components/error-boundary.js","../node_modules/next/dist/client/components/redirect-boundary.js","../node_modules/next/dist/client/components/app-router-announcer.js","../node_modules/next/dist/client/components/unresolved-thenable.js","../node_modules/next/dist/client/components/nav-failure-handler.js","../node_modules/next/dist/client/components/not-found-boundary.js","../node_modules/react/jsx-dev-runtime.js","../node_modules/next/dist/client/flight-data-helpers.js","../node_modules/next/dist/server/lib/server-ipc/utils.js","../node_modules/next/dist/client/components/router-reducer/router-reducer-types.js","../node_modules/next/dist/client/components/router-reducer/create-href-from-url.js","../node_modules/next/dist/client/components/router-reducer/compute-changed-path.js","../node_modules/next/dist/compiled/nanoid/index.cjs","../node_modules/next/dist/client/components/router-reducer/reducers/find-head-in-cache.js","../node_modules/next/dist/client/components/react-dev-overlay/app/hot-reloader-client.js","../node_modules/next/dist/shared/lib/router/utils/as-path-to-search-params.js","../node_modules/next/dist/compiled/data-uri-to-buffer/package.json","../node_modules/next/dist/compiled/shell-quote/package.json","../node_modules/next/dist/compiled/stacktrace-parser/package.json","../node_modules/next/dist/client/components/router-reducer/router-reducer.js","../node_modules/next/dist/client/components/router-reducer/fill-lazy-items-till-leaf-with-head.js","../node_modules/next/dist/client/components/router-reducer/prefetch-cache-utils.js","../node_modules/next/dist/client/components/router-reducer/refetch-inactive-parallel-segments.js","../node_modules/sharp/node_modules/semver/functions/compare.js","../node_modules/sharp/node_modules/semver/functions/parse.js","../node_modules/sharp/node_modules/semver/classes/semver.js","../node_modules/sharp/node_modules/semver/internal/re.js","../node_modules/sharp/node_modules/semver/classes/range.js","../node_modules/busboy/package.json","../node_modules/color-string/index.js","../node_modules/color-convert/index.js","../node_modules/next/dist/compiled/data-uri-to-buffer/index.js","../node_modules/next/dist/compiled/shell-quote/index.js","../node_modules/next/dist/compiled/stacktrace-parser/stack-trace-parser.cjs.js","../node_modules/color-string/package.json","../node_modules/color-convert/package.json","../node_modules/next/dist/compiled/string-hash/package.json","../node_modules/next/dist/compiled/superstruct/package.json","../node_modules/react/cjs/react-jsx-dev-runtime.production.min.js","../node_modules/next/dist/shared/lib/page-path/absolute-path-to-page.js","../node_modules/busboy/lib/index.js","../node_modules/next/dist/client/normalize-trailing-slash.js","../node_modules/next/dist/server/lib/dedupe-fetch.js","../node_modules/next/dist/client/components/navigation-untracked.js","../node_modules/next/dist/client/components/navigation.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.production.js","../node_modules/next/dist/compiled/react-is/cjs/react-is.development.js","../node_modules/next/dist/compiled/string-hash/index.js","../node_modules/next/dist/compiled/superstruct/index.cjs","../node_modules/sharp/node_modules/semver/internal/debug.js","../node_modules/sharp/node_modules/semver/internal/constants.js","../node_modules/sharp/node_modules/semver/internal/parse-options.js","../node_modules/sharp/node_modules/semver/internal/identifiers.js","../node_modules/sharp/node_modules/semver/internal/lrucache.js","../node_modules/sharp/node_modules/semver/classes/comparator.js","../node_modules/color-convert/conversions.js","../node_modules/color-convert/route.js","../node_modules/next/dist/server/dev/hot-reloader-types.js","../node_modules/next/dist/server/dev/extract-modules-from-turbopack-message.js","../node_modules/next/dist/client/components/router-reducer/create-router-cache-key.js","../node_modules/next/dist/client/components/react-dev-overlay/shared.js","../node_modules/next/dist/client/components/router-reducer/fetch-server-response.js","../node_modules/next/dist/client/components/router-reducer/apply-flight-data.js","../node_modules/next/dist/client/components/react-dev-overlay/app/ReactDevOverlay.js","../node_modules/next/dist/client/components/router-reducer/reducers/navigate-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-patch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/restore-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/prefetch-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/hmr-refresh-reducer.js","../node_modules/next/dist/client/components/router-reducer/reducers/server-action-reducer.js","../node_modules/next/dist/compiled/babel-packages/package.json","../node_modules/next/dist/compiled/browserslist/package.json","../node_modules/next/dist/compiled/json5/package.json","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/semver/package.json","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/format-webpack-messages.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/runtime-error-handler.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/parse-component-stack.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-websocket.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stitched-error.js","../node_modules/busboy/lib/utils.js","../node_modules/busboy/lib/types/multipart.js","../node_modules/busboy/lib/types/urlencoded.js","../node_modules/color-name/package.json","../node_modules/next/dist/lib/metadata/get-metadata-route.js","../node_modules/next/dist/compiled/babel-packages/packages-bundle.js","../node_modules/next/dist/shared/lib/page-path/remove-page-path-tail.js","../node_modules/next/dist/compiled/browserslist/index.js","../node_modules/next/dist/compiled/json5/index.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/semver/index.js","../node_modules/simple-swizzle/index.js","../node_modules/color-name/index.js","../node_modules/next/dist/client/components/navigation.react-server.js","../node_modules/next/dist/client/components/bailout-to-client-rendering.js","../node_modules/simple-swizzle/package.json","../node_modules/next/dist/client/components/router-reducer/reducers/get-segment-value.js","../node_modules/sharp/node_modules/semver/functions/cmp.js","../node_modules/next/dist/client/app-find-source-map-url.js","../node_modules/next/dist/shared/lib/hash.js","../node_modules/next/dist/client/assign-location.js","../node_modules/next/dist/client/components/router-reducer/fill-cache-with-new-subtree-data.js","../node_modules/next/dist/client/components/promise-queue.js","../node_modules/next/dist/client/components/router-reducer/apply-router-state-patch-to-tree.js","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-below-flight-segmentpath.js","../node_modules/next/dist/client/components/router-reducer/should-hard-navigate.js","../node_modules/next/dist/client/components/router-reducer/is-navigating-to-new-root-layout.js","../node_modules/next/dist/client/components/router-reducer/handle-mutable.js","../node_modules/next/dist/client/components/router-reducer/ppr-navigations.js","../node_modules/next/dist/client/components/router-reducer/clear-cache-node-data-for-segment-path.js","../node_modules/next/dist/client/components/router-reducer/aliased-prefetch-navigations.js","../node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js","../node_modules/next/dist/client/lib/console.js","../node_modules/next/dist/client/components/router-reducer/reducers/has-interception-route-in-current-tree.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/ShadowPortal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/BuildError.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/Errors.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/Base.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/StaticIndicator.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/ComponentStyles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/styles/CssReset.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/root-layout-missing-tags-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/attach-hydration-error-state.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/hydration-error-info.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/enqueue-client-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/console-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-socket-url.js","../node_modules/next/dist/client/components/unstable-rethrow.js","../node_modules/streamsearch/package.json","../node_modules/sharp/node_modules/semver/functions/neq.js","../node_modules/sharp/node_modules/semver/functions/eq.js","../node_modules/sharp/node_modules/semver/functions/gt.js","../node_modules/sharp/node_modules/semver/functions/lt.js","../node_modules/sharp/node_modules/semver/functions/lte.js","../node_modules/caniuse-lite/dist/unpacker/agents.js","../node_modules/caniuse-lite/dist/unpacker/feature.js","../node_modules/caniuse-lite/dist/unpacker/region.js","../node_modules/streamsearch/lib/sbmh.js","../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../node_modules/next/dist/compiled/babel/core.js","../node_modules/next/dist/compiled/babel/parser.js","../node_modules/next/dist/compiled/babel/traverse.js","../node_modules/next/dist/compiled/babel/types.js","../node_modules/caniuse-lite/package.json","../node_modules/next/dist/client/components/router-reducer/invalidate-cache-by-router-state.js","../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../node_modules/next/dist/shared/lib/normalized-asset-prefix.js","../node_modules/next/dist/export/helpers/is-dynamic-usage-error.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/noop-template.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/get-error-by-type.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CloseIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/nodejs-inspector.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/LightningBolt.js","../node_modules/caniuse-lite/data/agents.js","../node_modules/next/dist/server/lib/router-utils/is-postpone.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/component-stack-pseudo-html.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/styles.js","../node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json","../node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json","../node_modules/caniuse-lite/dist/unpacker/browsers.js","../node_modules/caniuse-lite/dist/unpacker/browserVersions.js","../node_modules/caniuse-lite/dist/lib/statuses.js","../node_modules/caniuse-lite/dist/lib/supported.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/hot-linked-text/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/copy-button/index.js","../node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json","../node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs","../node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs","../node_modules/caniuse-lite/data/browsers.js","../node_modules/caniuse-lite/data/browserVersions.js","../node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/stack-frame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/CollapseIcon.js","../node_modules/next/dist/shared/lib/magic-identifier.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/group-stack-frames-by-framework.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/Dialog.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogBody.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogContent.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/DialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Dialog/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/Overlay.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/Terminal.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/VersionStalenessInfo/VersionStalenessInfo.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/LeftRightDialogHeader/LeftRightDialogHeader.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/styles.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Toast/Toast.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/GroupedStackFrames.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/hooks/use-on-click-outside.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/icons/FrameworkIcon.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/maintain--tab-focus.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Overlay/body-locker.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/Terminal/EditorLink.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/container/RuntimeError/CallStackFrame.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/components/CodeFrame/CodeFrame.js","../node_modules/next/dist/compiled/anser/package.json","../node_modules/next/dist/compiled/anser/index.js","../node_modules/next/dist/client/components/react-dev-overlay/internal/helpers/use-open-in-editor.js","../node_modules/next/dist/compiled/platform/package.json","../node_modules/next/dist/compiled/css.escape/package.json","../node_modules/next/dist/compiled/platform/platform.js","../node_modules/next/dist/compiled/css.escape/css.escape.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/route-modules/pages/vendored/contexts/server-inserted-html.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/prerender-manifest.json b/dsql-app/.local_dist/prerender-manifest.json index 2d7dfa7..b8835d4 100644 --- a/dsql-app/.local_dist/prerender-manifest.json +++ b/dsql-app/.local_dist/prerender-manifest.json @@ -1 +1 @@ -{"version":3,"routes":{"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/quick-start.json"},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/gui-reference.json"},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/api-reference.json"},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/getting-started.json"},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/database-reference.json"},"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/gui-reference/getting-started.json"},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/gui-reference/upload-media.json"},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/api-reference/get.json"},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/api-reference/post.json"},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/database-reference/data-types.json"},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/database-reference/querying-data.json"}},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/([^/]+?)\\.json$"},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/JWcGy7ApzQNGHJR0-bv4k/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/([^/]+?)/([^/]+?)\\.json$"}},"notFoundRoutes":[],"preview":{"previewModeId":"baea329f42fab065df2ae58f429ca2d3","previewModeSigningKey":"1c301e84f7303ef08555bb8044f002caa4515b27e8f4dc401292c8965e178809","previewModeEncryptionKey":"3ec50cd6723be41bb5c28cf1b0997586240279bf523534693df920a04a553ee3"}} \ No newline at end of file +{"version":4,"routes":{"/docs/quick-start":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/quick-start.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/gui-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/api-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/database-reference.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/getting-started":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/gui-reference/getting-started.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/gui-reference/upload-media":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/gui-reference/upload-media.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/get":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/api-reference/get.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/api-reference/post":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/api-reference/post.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/data-types":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/database-reference/data-types.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/database-reference/querying-data":{"initialRevalidateSeconds":false,"srcRoute":"/docs/[page]/[sub-page]","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/database-reference/querying-data.json","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"dynamicRoutes":{"/docs/[page]":{"routeRegex":"^/docs/([^/]+?)(?:/)?$","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/[page].json","fallback":false,"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]},"/docs/[page]/[sub-page]":{"routeRegex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","dataRoute":"/_next/data/oGdR-cyIqmUbg3SEpT2k4/docs/[page]/[sub-page].json","fallback":false,"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/([^/]+?)/([^/]+?)\\.json$","allowHeader":["x-matched-path","x-prerender-revalidate","x-prerender-revalidate-if-generated","x-next-revalidated-tags","x-next-revalidate-tag-token"]}},"notFoundRoutes":[],"preview":{"previewModeId":"728c552f2b4532705c882ec783d20514","previewModeSigningKey":"e683f68eb79eef906f767e994606d1f93b03b8272582fca1ec4411515032eea3","previewModeEncryptionKey":"5fccb521ed9a7854b2293781e1e232ae2004b42e8d84f01be9792521ff351e21"}} \ No newline at end of file diff --git a/dsql-app/.local_dist/required-server-files.json b/dsql-app/.local_dist/required-server-files.json index f1865be..c49a3f3 100644 --- a/dsql-app/.local_dist/required-server-files.json +++ b/dsql-app/.local_dist/required-server-files.json @@ -1 +1 @@ -{"version":1,"config":{"env":{},"webpack":null,"webpackDevMiddleware":null,"eslint":{"ignoreDuringBuilds":true},"typescript":{"ignoreBuildErrors":true,"tsconfigPath":"tsconfig.json"},"distDir":".local_dist","cleanDistDir":true,"assetPrefix":"","configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["tsx","ts","jsx","js"],"target":"server","poweredByHeader":true,"compress":true,"analyticsId":"","images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","remotePatterns":[],"unoptimized":false},"devIndicators":{"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":15000,"pagesBufferLength":2},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"optimizeFonts":true,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactStrictMode":true,"httpAgentOptions":{"keepAlive":true},"outputFileTracing":true,"staticPageGenerationTimeout":60,"swcMinify":false,"experimental":{"optimisticClientCache":true,"manualClientBasePath":false,"legacyBrowsers":true,"browsersListForSwc":false,"newNextLinkBehavior":false,"cpus":15,"sharedPool":true,"profiling":false,"isrFlushToDisk":true,"workerThreads":false,"pageEnv":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"swcFileReading":true,"craCompat":false,"esmExternals":true,"appDir":false,"isrMemoryCacheSize":52428800,"serverComponents":false,"fullySpecified":false,"outputFileTracingRoot":"","swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"adjustFontFallbacks":false,"trustHostHeader":false},"configFileName":"next.config.js"},"appDir":"/app","files":[".local_dist/routes-manifest.json",".local_dist/server/pages-manifest.json",".local_dist/build-manifest.json",".local_dist/prerender-manifest.json",".local_dist/server/middleware-manifest.json",".local_dist/react-loadable-manifest.json",".local_dist/server/font-manifest.json",".local_dist/BUILD_ID"],"ignore":["node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]} \ No newline at end of file +{"version":1,"config":{"env":{},"eslint":{"ignoreDuringBuilds":true},"typescript":{"ignoreBuildErrors":true,"tsconfigPath":"tsconfig.json"},"distDir":".local_dist","cleanDistDir":true,"assetPrefix":"","cacheMaxMemorySize":52428800,"configOrigin":"next.config.js","useFileSystemPublicRoutes":true,"generateEtags":true,"pageExtensions":["js","jsx","ts","tsx","md","mdx"],"poweredByHeader":true,"compress":true,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"attachment","remotePatterns":[],"unoptimized":false},"devIndicators":{"appIsrStatus":true,"buildActivity":true,"buildActivityPosition":"bottom-right"},"onDemandEntries":{"maxInactiveAge":60000,"pagesBufferLength":5},"amp":{"canonicalBase":""},"basePath":"","sassOptions":{},"trailingSlash":false,"i18n":null,"productionBrowserSourceMaps":false,"excludeDefaultMomentLocales":true,"serverRuntimeConfig":{},"publicRuntimeConfig":{},"reactProductionProfiling":false,"reactStrictMode":true,"reactMaxHeadersLength":6000,"httpAgentOptions":{"keepAlive":true},"logging":{},"expireTime":31536000,"staticPageGenerationTimeout":60,"modularizeImports":{"@mui/icons-material":{"transform":"@mui/icons-material/{{member}}"},"lodash":{"transform":"lodash/{{member}}"}},"outputFileTracingRoot":"/app","experimental":{"cacheLife":{"default":{"stale":300,"revalidate":900,"expire":4294967294},"seconds":{"stale":0,"revalidate":1,"expire":60},"minutes":{"stale":300,"revalidate":60,"expire":3600},"hours":{"stale":300,"revalidate":3600,"expire":86400},"days":{"stale":300,"revalidate":86400,"expire":604800},"weeks":{"stale":300,"revalidate":604800,"expire":2592000},"max":{"stale":300,"revalidate":2592000,"expire":4294967294}},"cacheHandlers":{},"multiZoneDraftMode":false,"appNavFailHandling":false,"prerenderEarlyExit":true,"serverMinification":true,"serverSourceMaps":false,"linkNoTouchStart":false,"caseSensitiveRoutes":false,"preloadEntriesOnStart":true,"clientRouterFilter":true,"clientRouterFilterRedirects":false,"fetchCacheKeyPrefix":"","middlewarePrefetch":"flexible","optimisticClientCache":true,"manualClientBasePath":false,"cpus":15,"memoryBasedWorkersCount":false,"imgOptConcurrency":null,"imgOptTimeoutInSeconds":7,"imgOptMaxInputPixels":268402689,"imgOptSequentialRead":null,"isrFlushToDisk":true,"workerThreads":false,"optimizeCss":false,"nextScriptWorkers":false,"scrollRestoration":false,"externalDir":false,"disableOptimizedLoading":false,"gzipSize":true,"craCompat":false,"esmExternals":true,"fullySpecified":false,"swcTraceProfiling":false,"forceSwcTransforms":false,"largePageDataBytes":128000,"turbo":{"rules":{"*.mdx":{"loaders":[{"loader":"/app/node_modules/@mdx-js/loader/index.cjs","options":{"providerImportSource":"next-mdx-import-source-file"}}],"as":"*.tsx"}},"resolveAlias":{"next-mdx-import-source-file":"@vercel/turbopack-next/mdx-import-source"},"root":"/app"},"typedRoutes":false,"typedEnv":false,"parallelServerCompiles":false,"parallelServerBuildTraces":false,"ppr":false,"reactOwnerStack":false,"webpackMemoryOptimizations":false,"optimizeServerReact":true,"useEarlyImport":false,"staleTimes":{"dynamic":0,"static":300},"after":false,"serverComponentsHmrCache":true,"staticGenerationMaxConcurrency":8,"staticGenerationMinPagesPerWorker":25,"dynamicIO":false,"optimizePackageImports":["lucide-react","date-fns","lodash-es","ramda","antd","react-bootstrap","ahooks","@ant-design/icons","@headlessui/react","@headlessui-float/react","@heroicons/react/20/solid","@heroicons/react/24/solid","@heroicons/react/24/outline","@visx/visx","@tremor/react","rxjs","@mui/material","@mui/icons-material","recharts","react-use","effect","@effect/schema","@effect/platform","@effect/platform-node","@effect/platform-browser","@effect/platform-bun","@effect/sql","@effect/sql-mssql","@effect/sql-mysql2","@effect/sql-pg","@effect/sql-squlite-node","@effect/sql-squlite-bun","@effect/sql-squlite-wasm","@effect/sql-squlite-react-native","@effect/rpc","@effect/rpc-http","@effect/typeclass","@effect/experimental","@effect/opentelemetry","@material-ui/core","@material-ui/icons","@tabler/icons-react","mui-core","react-icons/ai","react-icons/bi","react-icons/bs","react-icons/cg","react-icons/ci","react-icons/di","react-icons/fa","react-icons/fa6","react-icons/fc","react-icons/fi","react-icons/gi","react-icons/go","react-icons/gr","react-icons/hi","react-icons/hi2","react-icons/im","react-icons/io","react-icons/io5","react-icons/lia","react-icons/lib","react-icons/lu","react-icons/md","react-icons/pi","react-icons/ri","react-icons/rx","react-icons/si","react-icons/sl","react-icons/tb","react-icons/tfi","react-icons/ti","react-icons/vsc","react-icons/wi"],"trustHostHeader":false,"isExperimentalCompile":false},"bundlePagesRouterDependencies":false,"configFileName":"next.config.js"},"appDir":"/app","relativeAppDir":"","files":[".local_dist/routes-manifest.json",".local_dist/server/pages-manifest.json",".local_dist/build-manifest.json",".local_dist/prerender-manifest.json",".local_dist/server/middleware-manifest.json",".local_dist/server/middleware-build-manifest.js",".local_dist/server/middleware-react-loadable-manifest.js",".local_dist/react-loadable-manifest.json",".local_dist/BUILD_ID",".local_dist/server/next-font-manifest.js",".local_dist/server/next-font-manifest.json"],"ignore":["node_modules/next/dist/compiled/@ampproject/toolbox-optimizer/**/*"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/routes-manifest.json b/dsql-app/.local_dist/routes-manifest.json index d2757d7..89f5532 100644 --- a/dsql-app/.local_dist/routes-manifest.json +++ b/dsql-app/.local_dist/routes-manifest.json @@ -1 +1 @@ -{"version":3,"pages404":true,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/admin/[user_id]","regex":"^/admin/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/api-keys","regex":"^/admin/([^/]+?)/api\\-keys(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/api\\-keys(?:/)?$"},{"page":"/admin/[user_id]/connect","regex":"^/admin/([^/]+?)/connect(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases","regex":"^/admin/([^/]+?)/databases(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/databases(?:/)?$"},{"page":"/admin/[user_id]/databases/add-database","regex":"^/admin/([^/]+?)/databases/add\\-database(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/databases/add\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]","regex":"^/admin/([^/]+?)/databases/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/connect","regex":"^/admin/([^/]+?)/databases/([^/]+?)/connect(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","regex":"^/admin/([^/]+?)/databases/([^/]+?)/edit\\-database(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/schema","regex":"^/admin/([^/]+?)/databases/([^/]+?)/schema(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/shell","regex":"^/admin/([^/]+?)/databases/([^/]+?)/shell(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/shell(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table","single_entry":"single_entry"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"user_id":"user_id","single":"single"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","user":"user"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password(?:/)?$","routeKeys":{"user_id":"user_id","single":"single","user":"user"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password(?:/)?$"},{"page":"/admin/[user_id]/media","regex":"^/admin/([^/]+?)/media(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/media(?:/)?$"},{"page":"/admin/[user_id]/media/[...folder]","regex":"^/admin/([^/]+?)/media/(.+?)(?:/)?$","routeKeys":{"user_id":"user_id","folder":"folder"},"namedRegex":"^/admin/(?[^/]+?)/media/(?.+?)(?:/)?$"},{"page":"/admin/[user_id]/schema","regex":"^/admin/([^/]+?)/schema(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/settings","regex":"^/admin/([^/]+?)/settings(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/settings(?:/)?$"},{"page":"/admin/[user_id]/users","regex":"^/admin/([^/]+?)/users(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/users/add-user","regex":"^/admin/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/users/databases","regex":"^/admin/([^/]+?)/users/databases(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/admin/(?[^/]+?)/users/databases(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","database":"database"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"user_id":"user_id","database":"database","user":"user"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/api/admin/docs/[action]","regex":"^/api/admin/docs/([^/]+?)(?:/)?$","routeKeys":{"action":"action"},"namedRegex":"^/api/admin/docs/(?[^/]+?)(?:/)?$"},{"page":"/api/query/[user_id]/add-file","regex":"^/api/query/([^/]+?)/add\\-file(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-file(?:/)?$"},{"page":"/api/query/[user_id]/add-image","regex":"^/api/query/([^/]+?)/add\\-image(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-image(?:/)?$"},{"page":"/api/query/[user_id]/delete-file","regex":"^/api/query/([^/]+?)/delete\\-file(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/delete\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get","regex":"^/api/query/([^/]+?)/get(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/get(?:/)?$"},{"page":"/api/query/[user_id]/get-private-file","regex":"^/api/query/([^/]+?)/get\\-private\\-file(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-private\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get-schema","regex":"^/api/query/([^/]+?)/get\\-schema(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-schema(?:/)?$"},{"page":"/api/query/[user_id]/post","regex":"^/api/query/([^/]+?)/post(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/post(?:/)?$"},{"page":"/api/query/[user_id]/update-schema-from-single-database","regex":"^/api/query/([^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/query/(?[^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$"},{"page":"/api/stream/[path]","regex":"^/api/stream/([^/]+?)(?:/)?$","routeKeys":{"path":"path"},"namedRegex":"^/api/stream/(?[^/]+?)(?:/)?$"},{"page":"/api/user/[user_id]/add-user","regex":"^/api/user/([^/]+?)/add\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/add\\-user(?:/)?$"},{"page":"/api/user/[user_id]/delete-user","regex":"^/api/user/([^/]+?)/delete\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/delete\\-user(?:/)?$"},{"page":"/api/user/[user_id]/get-user","regex":"^/api/user/([^/]+?)/get\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/get\\-user(?:/)?$"},{"page":"/api/user/[user_id]/github-login","regex":"^/api/user/([^/]+?)/github\\-login(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/github\\-login(?:/)?$"},{"page":"/api/user/[user_id]/google-login","regex":"^/api/user/([^/]+?)/google\\-login(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/google\\-login(?:/)?$"},{"page":"/api/user/[user_id]/grab-google-user-from-token","regex":"^/api/user/([^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$"},{"page":"/api/user/[user_id]/login-user","regex":"^/api/user/([^/]+?)/login\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/login\\-user(?:/)?$"},{"page":"/api/user/[user_id]/reauth-user","regex":"^/api/user/([^/]+?)/reauth\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/reauth\\-user(?:/)?$"},{"page":"/api/user/[user_id]/send-email-code","regex":"^/api/user/([^/]+?)/send\\-email\\-code(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/send\\-email\\-code(?:/)?$"},{"page":"/api/user/[user_id]/update-user","regex":"^/api/user/([^/]+?)/update\\-user(?:/)?$","routeKeys":{"user_id":"user_id"},"namedRegex":"^/api/user/(?[^/]+?)/update\\-user(?:/)?$"},{"page":"/docs/[page]","regex":"^/docs/([^/]+?)(?:/)?$","routeKeys":{"page":"page"},"namedRegex":"^/docs/(?[^/]+?)(?:/)?$"},{"page":"/docs/[page]/[sub-page]","regex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"page":"page","subpage":"sub-page"},"namedRegex":"^/docs/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/su/docs/pages/[id]","regex":"^/su/docs/pages/([^/]+?)(?:/)?$","routeKeys":{"id":"id"},"namedRegex":"^/su/docs/pages/(?[^/]+?)(?:/)?$"},{"page":"/su/users/[single]","regex":"^/su/users/([^/]+?)(?:/)?$","routeKeys":{"single":"single"},"namedRegex":"^/su/users/(?[^/]+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/about","regex":"^/about(?:/)?$","routeKeys":{},"namedRegex":"^/about(?:/)?$"},{"page":"/admin","regex":"^/admin(?:/)?$","routeKeys":{},"namedRegex":"^/admin(?:/)?$"},{"page":"/blog","regex":"^/blog(?:/)?$","routeKeys":{},"namedRegex":"^/blog(?:/)?$"},{"page":"/contact","regex":"^/contact(?:/)?$","routeKeys":{},"namedRegex":"^/contact(?:/)?$"},{"page":"/create-account","regex":"^/create\\-account(?:/)?$","routeKeys":{},"namedRegex":"^/create\\-account(?:/)?$"},{"page":"/docs","regex":"^/docs(?:/)?$","routeKeys":{},"namedRegex":"^/docs(?:/)?$"},{"page":"/email-verification","regex":"^/email\\-verification(?:/)?$","routeKeys":{},"namedRegex":"^/email\\-verification(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/logout","regex":"^/logout(?:/)?$","routeKeys":{},"namedRegex":"^/logout(?:/)?$"},{"page":"/pricing","regex":"^/pricing(?:/)?$","routeKeys":{},"namedRegex":"^/pricing(?:/)?$"},{"page":"/privacy","regex":"^/privacy(?:/)?$","routeKeys":{},"namedRegex":"^/privacy(?:/)?$"},{"page":"/redirect","regex":"^/redirect(?:/)?$","routeKeys":{},"namedRegex":"^/redirect(?:/)?$"},{"page":"/reset-password","regex":"^/reset\\-password(?:/)?$","routeKeys":{},"namedRegex":"^/reset\\-password(?:/)?$"},{"page":"/send-password-reset-link","regex":"^/send\\-password\\-reset\\-link(?:/)?$","routeKeys":{},"namedRegex":"^/send\\-password\\-reset\\-link(?:/)?$"},{"page":"/su","regex":"^/su(?:/)?$","routeKeys":{},"namedRegex":"^/su(?:/)?$"},{"page":"/su/backups","regex":"^/su/backups(?:/)?$","routeKeys":{},"namedRegex":"^/su/backups(?:/)?$"},{"page":"/su/console","regex":"^/su/console(?:/)?$","routeKeys":{},"namedRegex":"^/su/console(?:/)?$"},{"page":"/su/docs","regex":"^/su/docs(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs(?:/)?$"},{"page":"/su/docs/create-page","regex":"^/su/docs/create\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/create\\-page(?:/)?$"},{"page":"/su/docs/edit-page","regex":"^/su/docs/edit\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/edit\\-page(?:/)?$"},{"page":"/su/docs/pages","regex":"^/su/docs/pages(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/pages(?:/)?$"},{"page":"/su/envar","regex":"^/su/envar(?:/)?$","routeKeys":{},"namedRegex":"^/su/envar(?:/)?$"},{"page":"/su/error-logs","regex":"^/su/error\\-logs(?:/)?$","routeKeys":{},"namedRegex":"^/su/error\\-logs(?:/)?$"},{"page":"/su/login","regex":"^/su/login(?:/)?$","routeKeys":{},"namedRegex":"^/su/login(?:/)?$"},{"page":"/su/users","regex":"^/su/users(?:/)?$","routeKeys":{},"namedRegex":"^/su/users(?:/)?$"},{"page":"/su/users/new","regex":"^/su/users/new(?:/)?$","routeKeys":{},"namedRegex":"^/su/users/new(?:/)?$"},{"page":"/terms","regex":"^/terms(?:/)?$","routeKeys":{},"namedRegex":"^/terms(?:/)?$"},{"page":"/unsubscribe","regex":"^/unsubscribe(?:/)?$","routeKeys":{},"namedRegex":"^/unsubscribe(?:/)?$"}],"dataRoutes":[{"page":"/admin","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table","single_entry":"single_entry"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","routeKeys":{"user_id":"user_id","single":"single","single_table":"single_table"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","routeKeys":{"user_id":"user_id","single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","routeKeys":{"user_id":"user_id","single":"single","user":"user"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","routeKeys":{"user_id":"user_id","single":"single","user":"user"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"user_id":"user_id","folder":"folder"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"user_id":"user_id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"user_id":"user_id","database":"database"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"user_id":"user_id","database":"database","user":"user"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs.json$"},{"page":"/docs/[page]","routeKeys":{"page":"page"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"page":"page","subpage":"sub-page"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"id":"id"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/error-logs.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/login.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"single":"single"},"dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/JWcGy7ApzQNGHJR0\\-bv4k/unsubscribe.json$"}],"rewrites":[]} \ No newline at end of file +{"version":3,"pages404":true,"caseSensitive":false,"basePath":"","redirects":[{"source":"/:path+/","destination":"/:path+","internal":true,"statusCode":308,"regex":"^(?:/((?:[^/]+?)(?:/(?:[^/]+?))*))/$"}],"headers":[],"dynamicRoutes":[{"page":"/admin/[user_id]","regex":"^/admin/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/api-keys","regex":"^/admin/([^/]+?)/api\\-keys(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/api\\-keys(?:/)?$"},{"page":"/admin/[user_id]/connect","regex":"^/admin/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases","regex":"^/admin/([^/]+?)/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases(?:/)?$"},{"page":"/admin/[user_id]/databases/add-database","regex":"^/admin/([^/]+?)/databases/add\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/databases/add\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]","regex":"^/admin/([^/]+?)/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/connect","regex":"^/admin/([^/]+?)/databases/([^/]+?)/connect(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/connect(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","regex":"^/admin/([^/]+?)/databases/([^/]+?)/edit\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/schema","regex":"^/admin/([^/]+?)/databases/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/shell","regex":"^/admin/([^/]+?)/databases/([^/]+?)/shell(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/shell(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","regex":"^/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","regex":"^/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password(?:/)?$"},{"page":"/admin/[user_id]/media","regex":"^/admin/([^/]+?)/media(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/media(?:/)?$"},{"page":"/admin/[user_id]/media/[...folder]","regex":"^/admin/([^/]+?)/media/(.+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"namedRegex":"^/admin/(?[^/]+?)/media/(?.+?)(?:/)?$"},{"page":"/admin/[user_id]/schema","regex":"^/admin/([^/]+?)/schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/schema(?:/)?$"},{"page":"/admin/[user_id]/settings","regex":"^/admin/([^/]+?)/settings(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/settings(?:/)?$"},{"page":"/admin/[user_id]/users","regex":"^/admin/([^/]+?)/users(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users(?:/)?$"},{"page":"/admin/[user_id]/users/add-user","regex":"^/admin/([^/]+?)/users/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/add\\-user(?:/)?$"},{"page":"/admin/[user_id]/users/databases","regex":"^/admin/([^/]+?)/users/databases(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/admin/(?[^/]+?)/users/databases(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)(?:/)?$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","regex":"^/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"namedRegex":"^/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/api/admin/docs/[action]","regex":"^/api/admin/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPaction":"nxtPaction"},"namedRegex":"^/api/admin/docs/(?[^/]+?)(?:/)?$"},{"page":"/api/query/[user_id]/add-file","regex":"^/api/query/([^/]+?)/add\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-file(?:/)?$"},{"page":"/api/query/[user_id]/add-image","regex":"^/api/query/([^/]+?)/add\\-image(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/add\\-image(?:/)?$"},{"page":"/api/query/[user_id]/delete-file","regex":"^/api/query/([^/]+?)/delete\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/delete\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get","regex":"^/api/query/([^/]+?)/get(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get(?:/)?$"},{"page":"/api/query/[user_id]/get-private-file","regex":"^/api/query/([^/]+?)/get\\-private\\-file(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-private\\-file(?:/)?$"},{"page":"/api/query/[user_id]/get-schema","regex":"^/api/query/([^/]+?)/get\\-schema(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/get\\-schema(?:/)?$"},{"page":"/api/query/[user_id]/post","regex":"^/api/query/([^/]+?)/post(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/post(?:/)?$"},{"page":"/api/query/[user_id]/update-schema-from-single-database","regex":"^/api/query/([^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/query/(?[^/]+?)/update\\-schema\\-from\\-single\\-database(?:/)?$"},{"page":"/api/stream/[path]","regex":"^/api/stream/([^/]+?)(?:/)?$","routeKeys":{"nxtPpath":"nxtPpath"},"namedRegex":"^/api/stream/(?[^/]+?)(?:/)?$"},{"page":"/api/user/[user_id]/add-user","regex":"^/api/user/([^/]+?)/add\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/add\\-user(?:/)?$"},{"page":"/api/user/[user_id]/delete-user","regex":"^/api/user/([^/]+?)/delete\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/delete\\-user(?:/)?$"},{"page":"/api/user/[user_id]/get-user","regex":"^/api/user/([^/]+?)/get\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/get\\-user(?:/)?$"},{"page":"/api/user/[user_id]/github-login","regex":"^/api/user/([^/]+?)/github\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/github\\-login(?:/)?$"},{"page":"/api/user/[user_id]/google-login","regex":"^/api/user/([^/]+?)/google\\-login(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/google\\-login(?:/)?$"},{"page":"/api/user/[user_id]/grab-google-user-from-token","regex":"^/api/user/([^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/grab\\-google\\-user\\-from\\-token(?:/)?$"},{"page":"/api/user/[user_id]/login-user","regex":"^/api/user/([^/]+?)/login\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/login\\-user(?:/)?$"},{"page":"/api/user/[user_id]/reauth-user","regex":"^/api/user/([^/]+?)/reauth\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/reauth\\-user(?:/)?$"},{"page":"/api/user/[user_id]/send-email-code","regex":"^/api/user/([^/]+?)/send\\-email\\-code(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/send\\-email\\-code(?:/)?$"},{"page":"/api/user/[user_id]/update-user","regex":"^/api/user/([^/]+?)/update\\-user(?:/)?$","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"namedRegex":"^/api/user/(?[^/]+?)/update\\-user(?:/)?$"},{"page":"/docs/[page]","regex":"^/docs/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage"},"namedRegex":"^/docs/(?[^/]+?)(?:/)?$"},{"page":"/docs/[page]/[sub-page]","regex":"^/docs/([^/]+?)/([^/]+?)(?:/)?$","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"namedRegex":"^/docs/(?[^/]+?)/(?[^/]+?)(?:/)?$"},{"page":"/su/docs/pages/[id]","regex":"^/su/docs/pages/([^/]+?)(?:/)?$","routeKeys":{"nxtPid":"nxtPid"},"namedRegex":"^/su/docs/pages/(?[^/]+?)(?:/)?$"},{"page":"/su/users/[single]","regex":"^/su/users/([^/]+?)(?:/)?$","routeKeys":{"nxtPsingle":"nxtPsingle"},"namedRegex":"^/su/users/(?[^/]+?)(?:/)?$"}],"staticRoutes":[{"page":"/","regex":"^/(?:/)?$","routeKeys":{},"namedRegex":"^/(?:/)?$"},{"page":"/404","regex":"^/404(?:/)?$","routeKeys":{},"namedRegex":"^/404(?:/)?$"},{"page":"/500","regex":"^/500(?:/)?$","routeKeys":{},"namedRegex":"^/500(?:/)?$"},{"page":"/about","regex":"^/about(?:/)?$","routeKeys":{},"namedRegex":"^/about(?:/)?$"},{"page":"/admin","regex":"^/admin(?:/)?$","routeKeys":{},"namedRegex":"^/admin(?:/)?$"},{"page":"/blog","regex":"^/blog(?:/)?$","routeKeys":{},"namedRegex":"^/blog(?:/)?$"},{"page":"/contact","regex":"^/contact(?:/)?$","routeKeys":{},"namedRegex":"^/contact(?:/)?$"},{"page":"/create-account","regex":"^/create\\-account(?:/)?$","routeKeys":{},"namedRegex":"^/create\\-account(?:/)?$"},{"page":"/docs","regex":"^/docs(?:/)?$","routeKeys":{},"namedRegex":"^/docs(?:/)?$"},{"page":"/docs/test","regex":"^/docs/test(?:/)?$","routeKeys":{},"namedRegex":"^/docs/test(?:/)?$"},{"page":"/email-verification","regex":"^/email\\-verification(?:/)?$","routeKeys":{},"namedRegex":"^/email\\-verification(?:/)?$"},{"page":"/login","regex":"^/login(?:/)?$","routeKeys":{},"namedRegex":"^/login(?:/)?$"},{"page":"/logout","regex":"^/logout(?:/)?$","routeKeys":{},"namedRegex":"^/logout(?:/)?$"},{"page":"/privacy","regex":"^/privacy(?:/)?$","routeKeys":{},"namedRegex":"^/privacy(?:/)?$"},{"page":"/redirect","regex":"^/redirect(?:/)?$","routeKeys":{},"namedRegex":"^/redirect(?:/)?$"},{"page":"/reset-password","regex":"^/reset\\-password(?:/)?$","routeKeys":{},"namedRegex":"^/reset\\-password(?:/)?$"},{"page":"/send-password-reset-link","regex":"^/send\\-password\\-reset\\-link(?:/)?$","routeKeys":{},"namedRegex":"^/send\\-password\\-reset\\-link(?:/)?$"},{"page":"/su","regex":"^/su(?:/)?$","routeKeys":{},"namedRegex":"^/su(?:/)?$"},{"page":"/su/backups","regex":"^/su/backups(?:/)?$","routeKeys":{},"namedRegex":"^/su/backups(?:/)?$"},{"page":"/su/console","regex":"^/su/console(?:/)?$","routeKeys":{},"namedRegex":"^/su/console(?:/)?$"},{"page":"/su/docs","regex":"^/su/docs(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs(?:/)?$"},{"page":"/su/docs/create-page","regex":"^/su/docs/create\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/create\\-page(?:/)?$"},{"page":"/su/docs/edit-page","regex":"^/su/docs/edit\\-page(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/edit\\-page(?:/)?$"},{"page":"/su/docs/pages","regex":"^/su/docs/pages(?:/)?$","routeKeys":{},"namedRegex":"^/su/docs/pages(?:/)?$"},{"page":"/su/envar","regex":"^/su/envar(?:/)?$","routeKeys":{},"namedRegex":"^/su/envar(?:/)?$"},{"page":"/su/error-logs","regex":"^/su/error\\-logs(?:/)?$","routeKeys":{},"namedRegex":"^/su/error\\-logs(?:/)?$"},{"page":"/su/load-balancing","regex":"^/su/load\\-balancing(?:/)?$","routeKeys":{},"namedRegex":"^/su/load\\-balancing(?:/)?$"},{"page":"/su/login","regex":"^/su/login(?:/)?$","routeKeys":{},"namedRegex":"^/su/login(?:/)?$"},{"page":"/su/servers","regex":"^/su/servers(?:/)?$","routeKeys":{},"namedRegex":"^/su/servers(?:/)?$"},{"page":"/su/users","regex":"^/su/users(?:/)?$","routeKeys":{},"namedRegex":"^/su/users(?:/)?$"},{"page":"/su/users/new","regex":"^/su/users/new(?:/)?$","routeKeys":{},"namedRegex":"^/su/users/new(?:/)?$"},{"page":"/terms","regex":"^/terms(?:/)?$","routeKeys":{},"namedRegex":"^/terms(?:/)?$"},{"page":"/unsubscribe","regex":"^/unsubscribe(?:/)?$","routeKeys":{},"namedRegex":"^/unsubscribe(?:/)?$"}],"dataRoutes":[{"page":"/admin","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin.json$"},{"page":"/admin/[user_id]","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/api-keys","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/api\\-keys\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/api\\-keys\\.json$"},{"page":"/admin/[user_id]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases\\.json$"},{"page":"/admin/[user_id]/databases/add-database","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/add\\-database\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/add\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/connect","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/connect\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/connect\\.json$"},{"page":"/admin/[user_id]/databases/[single]/edit-database","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/edit\\-database\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/edit\\-database\\.json$"},{"page":"/admin/[user_id]/databases/[single]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/databases/[single]/shell","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/shell\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/shell\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/add-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/add\\-table\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/add\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/edit\\-table\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/edit\\-table\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/add\\-entry\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/add\\-entry\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table","nxtPsingle_entry":"nxtPsingle_entry"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/entries/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/entries/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/tables/[single_table]/fields","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPsingle_table":"nxtPsingle_table"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/tables/([^/]+?)/fields\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/tables/(?[^/]+?)/fields\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-social-logins","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/users/add\\-social\\-logins\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-social\\-logins\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/databases/[single]/users/[user]/change-password","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPsingle":"nxtPsingle","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/databases/([^/]+?)/users/([^/]+?)/change\\-password\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/databases/(?[^/]+?)/users/(?[^/]+?)/change\\-password\\.json$"},{"page":"/admin/[user_id]/media","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/media\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/media\\.json$"},{"page":"/admin/[user_id]/media/[...folder]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPfolder":"nxtPfolder"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/media/(.+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/media/(?.+?)\\.json$"},{"page":"/admin/[user_id]/schema","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/schema\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/schema\\.json$"},{"page":"/admin/[user_id]/settings","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/settings\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/settings\\.json$"},{"page":"/admin/[user_id]/users","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/users\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/users\\.json$"},{"page":"/admin/[user_id]/users/add-user","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/users/add\\-user\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/users/add\\-user\\.json$"},{"page":"/admin/[user_id]/users/databases","routeKeys":{"nxtPuser_id":"nxtPuser_id"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/users/databases\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/users/databases\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/users/databases/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/users/databases/(?[^/]+?)\\.json$"},{"page":"/admin/[user_id]/users/databases/[database]/[user]","routeKeys":{"nxtPuser_id":"nxtPuser_id","nxtPdatabase":"nxtPdatabase","nxtPuser":"nxtPuser"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/([^/]+?)/users/databases/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/admin/(?[^/]+?)/users/databases/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/create-account","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/create-account.json$"},{"page":"/docs","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs.json$"},{"page":"/docs/[page]","routeKeys":{"nxtPpage":"nxtPpage"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/(?[^/]+?)\\.json$"},{"page":"/docs/[page]/[sub-page]","routeKeys":{"nxtPpage":"nxtPpage","nxtPsubpage":"nxtPsub-page"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/([^/]+?)/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/docs/(?[^/]+?)/(?[^/]+?)\\.json$"},{"page":"/email-verification","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/email-verification.json$"},{"page":"/login","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/login.json$"},{"page":"/logout","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/logout.json$"},{"page":"/reset-password","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/reset-password.json$"},{"page":"/send-password-reset-link","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/send-password-reset-link.json$"},{"page":"/su","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su.json$"},{"page":"/su/backups","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/backups.json$"},{"page":"/su/console","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/console.json$"},{"page":"/su/docs","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs.json$"},{"page":"/su/docs/create-page","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs/create-page.json$"},{"page":"/su/docs/edit-page","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs/edit-page.json$"},{"page":"/su/docs/pages","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs/pages.json$"},{"page":"/su/docs/pages/[id]","routeKeys":{"nxtPid":"nxtPid"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs/pages/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/docs/pages/(?[^/]+?)\\.json$"},{"page":"/su/envar","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/envar.json$"},{"page":"/su/error-logs","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/error-logs.json$"},{"page":"/su/load-balancing","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/load-balancing.json$"},{"page":"/su/login","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/login.json$"},{"page":"/su/servers","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/servers.json$"},{"page":"/su/users","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/users.json$"},{"page":"/su/users/new","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/users/new.json$"},{"page":"/su/users/[single]","routeKeys":{"nxtPsingle":"nxtPsingle"},"dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/users/([^/]+?)\\.json$","namedDataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/su/users/(?[^/]+?)\\.json$"},{"page":"/unsubscribe","dataRouteRegex":"^/_next/data/oGdR\\-cyIqmUbg3SEpT2k4/unsubscribe.json$"}],"rsc":{"header":"RSC","varyHeader":"RSC, Next-Router-State-Tree, Next-Router-Prefetch, Next-Router-Segment-Prefetch","prefetchHeader":"Next-Router-Prefetch","didPostponeHeader":"x-nextjs-postponed","contentTypeHeader":"text/x-component","suffix":".rsc","prefetchSuffix":".prefetch.rsc"},"rewrites":[]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1007.js b/dsql-app/.local_dist/server/chunks/1007.js deleted file mode 100644 index 4c2829d..0000000 --- a/dsql-app/.local_dist/server/chunks/1007.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -exports.id = 1007; -exports.ids = [1007]; -exports.modules = { - -/***/ 1007: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const decrypt = __webpack_require__(5425); -/** @type {import("../../types").CheckApiCredentialsFn} */ const grabApiCred = ({ key , database , table , user_id })=>{ - if (!key) return null; - if (!user_id) return null; - try { - const allowedKeysPath = process.env.DSQL_API_KEYS_PATH; - if (!allowedKeysPath) throw new Error("process.env.DSQL_API_KEYS_PATH variable not found"); - const ApiJSON = decrypt(key); - /** @type {import("../../types").ApiKeyObject} */ const ApiObject = JSON.parse(ApiJSON || ""); - const isApiKeyValid = fs.existsSync(`${allowedKeysPath}/${ApiObject.sign}`); - if (String(ApiObject.user_id) !== String(user_id)) return null; - if (!isApiKeyValid) return null; - if (!ApiObject.target_database) return ApiObject; - if (!database && ApiObject.target_database) return null; - const isDatabaseAllowed = ApiObject.target_database?.split(",").includes(String(database)); - if (isDatabaseAllowed && !ApiObject.target_table) return ApiObject; - if (isDatabaseAllowed && !table && ApiObject.target_table) return null; - const isTableAllowed = ApiObject.target_table?.split(",").includes(String(table)); - if (isTableAllowed) return ApiObject; - return null; - } catch (/** @type {any} */ error) { - console.log(`api-cred ERROR: ${error.message}`); - return null; - } -}; -module.exports = grabApiCred; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1137.js b/dsql-app/.local_dist/server/chunks/1137.js new file mode 100644 index 0000000..b6175cd --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/1137.js @@ -0,0 +1,13 @@ +"use strict";exports.id=1137,exports.ids=[1137],exports.modules={64535:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(8732);function t({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}s(82015)},70045:(e,a,s)=>{let l;s.d(a,{A:()=>u});var t=s(8732),r=s(82015),n=s.n(r),i=s(63715);async function o({e,setLoading:a,user:s,image:l,query:t}){a(!0);let r={first_name:e.target.first_name.value,last_name:e.target.last_name.value,email:s?null:e.target.email_address.value,username:s?null:e.target.username.value,password:s?null:e.target.password.value,image:l||null};t?.invite&&(r.inviteObject=t),(0,i.A)(s?"/api/updateUser":"/api/registerUser",{method:"post",body:r},!!s).then(e=>{console.log(e),!s&&e?.insertId?(localStorage.setItem("id",e.insertId),(0,i.A)("/api/loginUser",{method:"post",body:{email:r.email,password:r.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):s&&e?.user?window.location.reload():e?.msg&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{a(!1)},2e3)})}var m=s(64535),d=s(32415),c=s(72414);function u({user:e,query:a,image:s}){let r=a?.email?a.email:e?.email?e.email:"",[u,p]=n().useState(null),[g,x]=n().useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[g&&(0,t.jsx)(d.A,{}),!e&&(0,t.jsxs)(n().Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(c.A,{user:null,userType:"admin",setLoading:x}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:l=>{l.preventDefault(),o({e:l,setLoading:x,user:e,image:s,query:a})},children:[u&&(0,t.jsx)(m.A,{message:u}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:e?e.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning")},defaultValue:e?e.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),p(null)):a.classList.add("warning"),window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=username&value=${a.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Username Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:e?e.username:"",required:!e,readOnly:!!e})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let a=e.target;window.clearTimeout(l),l=setTimeout(()=>{(0,i.A)(`/api/checkDuplicateData?type=email&value=${a.value}&tableName=users`).then(e=>{console.log(e),e?.result?(p("Email Already Exists"),a.classList.add("warning")):(p(null),a.classList.remove("warning"))})},300)},defaultValue:r,required:!0,readOnly:!!e})]}),!e&&(0,t.jsxs)(n().Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let a=e.target;a.closest("form")?.password.value===a.value?a.classList.remove("warning"):a.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:e?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!e&&(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}},22373:(e,a,s)=>{let l=s(29021);e.exports=async function({user:e,message:a,component:s,noMail:t}){let r=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${a} +Component: ${s} +Date: ${Date()} +========================================`;l.existsSync("./.tmp/error.log")||l.writeFileSync("./.tmp/error.log","","utf-8");let n=l.readFileSync("./.tmp/error.log","utf-8");l.writeFileSync("./.tmp/error.log",r),l.appendFileSync("./.tmp/error.log",` + + + + +${n}`)}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1206.js b/dsql-app/.local_dist/server/chunks/1206.js deleted file mode 100644 index 3f28cf3..0000000 --- a/dsql-app/.local_dist/server/chunks/1206.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; -exports.id = 1206; -exports.ids = [1206]; -exports.modules = { - -/***/ 7410: -/***/ ((module) => { - -// @ts-check -/** - * Regular expression to match default fields - * - * @description Regular expression to match default fields - */ -const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = defaultFieldsRegexp; - - -/***/ }), - -/***/ 7432: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const decrypt = __webpack_require__(5304); -const defaultFieldsRegexp = __webpack_require__(7410); -/** - * Parse Database results - * ============================================================================== - * @description this function takes a database results array gotten from a DB handler - * function, decrypts encrypted fields, and returns an updated array with no encrypted - * fields - * - * @param {object} params - Single object params - * @param {any[]} params.unparsedResults - Array of data objects containing Fields(keys) - * and corresponding values of the fields(values) - * @param {import("../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @returns {Promise} - */ module.exports = async function parseDbResults({ unparsedResults , tableSchema , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ let parsedResults = []; - try { - /** - * Declare variables - * - * @description Declare "results" variable - */ for(let pr = 0; pr < unparsedResults.length; pr++){ - let result = unparsedResults[pr]; - let resultFieldNames = Object.keys(result); - for(let i = 0; i < resultFieldNames.length; i++){ - const resultFieldName = resultFieldNames[i]; - let resultFieldSchema = tableSchema?.fields[i]; - if (resultFieldName?.match(defaultFieldsRegexp)) { - continue; - } - let value = result[resultFieldName]; - if (typeof value !== "number" && !value) { - continue; - } - if (resultFieldSchema?.encrypted) { - if (value?.match(/./)) { - result[resultFieldName] = decrypt(value); - } - } - } - parsedResults.push(result); - } - /** - * Declare variables - * - * @description Declare "results" variable - */ return parsedResults; - } catch (/** @type {any} */ error) { - console.log("ERROR in parseDbResults Function =>", error.message); - return unparsedResults; - } -}; - - -/***/ }), - -/***/ 1206: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const parseDbResults = __webpack_require__(7432); -const serverError = __webpack_require__(7023); -const DB_HANDLER = __webpack_require__(9395); -const DSQL_USER_DB_HANDLER = __webpack_require__(8682); -/** - * DB handler for specific database - * ============================================================================== - * @async - * @param {object} params - Single object params - * @param {string} params.queryString - SQL string - * @param {*[]} [params.queryValuesArray] - Values Array - * @param {string} [params.database] - Database name - * @param {import("../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @returns {Promise} - */ module.exports = async function varDatabaseDbHandler({ queryString , queryValuesArray , database , tableSchema , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ const isMaster = database?.match(/^datasquirel$/) ? true : false; - /** @type {any} */ const FINAL_DB_HANDLER = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - if (queryString && queryValuesArray && Array.isArray(queryValuesArray) && queryValuesArray[0]) { - results = isMaster ? await FINAL_DB_HANDLER(queryString, queryValuesArray) : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString, - queryValues: queryValuesArray - }); - } else { - results = isMaster ? await FINAL_DB_HANDLER(queryString) : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "varDatabaseDbHandler/lines-29-32", - message: error.message - }); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results && tableSchema) { - try { - const unparsedResults = results; - const parsedResults = await parseDbResults({ - unparsedResults: unparsedResults, - tableSchema: tableSchema - }); - return parsedResults; - } catch (/** @type {any} */ error1) { - console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>", database, error1); - serverError({ - component: "varDatabaseDbHandler/lines-52-53", - message: error1.message - }); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else if (results) { - return results; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else { - return null; - } -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1223.js b/dsql-app/.local_dist/server/chunks/1223.js new file mode 100644 index 0000000..6c96a06 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/1223.js @@ -0,0 +1 @@ +"use strict";exports.id=1223,exports.ids=[1223],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},14587:(e,a,t)=>{t.d(a,{A:()=>x});var s=t(8732),l=t(82015),d=t.n(l),i=t(86173),n=t(55158),r=t(63715),c=t(32415),o=t(62506),h=t(6070);function x({database:e,setTargetDatabase:a,delegated:t,icons:l,user:x}){let m=`/admin/${x?.id}/databases/${e.db_slug}`+(t?`?delegated=true&dbUserId=${e.user_id}`:""),{active_clone:p,active_clone_parent_db:u}=e,[v,j]=d().useState(!1);return(0,s.jsxs)("a",{href:m,className:"card",onClick:a=>{(a.target.closest(".db-list-item-actions-block")||a.target.closest(".cancel-link"))&&a.preventDefault(),t&&(a.preventDefault(),j(!0),(0,r.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:e.user_id,priviledges:e.user_priviledge,database:e.db_slug}},!0).then(e=>{e.success&&(window.location.href=m)}),setTimeout(()=>{j(!1)},1e3))},children:[v&&(0,s.jsx)(c.A,{width:"20px"}),(0,s.jsx)("img",{src:e.db_image?e.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:e.db_image?"avatar":"avatar opacity-50"}),(0,s.jsxs)("div",{className:"flex-col items-start grow",children:[(0,s.jsx)("span",{className:"title",children:e.db_name}),u&&(0,s.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,s.jsx)("b",{children:u.replace(/datasquirel_user_\d+_/,"")})]}),(0,s.jsx)("div",{className:"-mt-2",children:(0,s.jsx)(i.A,{slugText:e.db_slug,smaller:!0})}),(0,s.jsx)("div",{className:"-mt-1 gap-1",children:(0,s.jsx)(i.A,{slugText:e.db_full_name,smaller:!0,full:!0})}),!t&&(0,s.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]}),t&&(0,s.jsxs)("div",{className:"flex items-center mt-2",children:[(0,s.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600",children:[e.first_name," ",e.last_name]}),(0,s.jsx)("span",{className:"text-xs text-slate-400",children:e.email})]})]}),(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,s.jsxs)(o.A,{children:[!t&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${x?.id}/databases/${e.db_slug}/edit-database`},children:(0,s.jsx)("span",{children:"Edit"})}),!t&&!p&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${x?.id}/databases/add-database?duplicate=${e.db_full_name}`},children:(0,s.jsx)("span",{children:"Duplicate"})}),!t&&(0,s.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{a&&a(e),(0,n.PB)("delete-database-confirmation")},children:(0,s.jsx)("span",{children:"Delete"})})]})}),(0,s.jsx)(h.A,{className:"text-slate-600",size:20})]})]})]})}},37515:(e,a,t)=>{t.d(a,{A:()=>h});var s=t(8732),l=t(82015),d=t.n(l),i=t(86176),n=t(58548),r=t(24671),c=t(42602),o=t(92736);function h(e){let{databases:a,setTargetDatabase:t,user:l}=d().useContext(i.DatabasesContext);return(0,s.jsxs)(d().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,s.jsxs)("a",{href:`/admin/${l?.id}/databases/add-database`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Database"})]})]}),(0,s.jsx)(n.A,{user:l})]}),l?.verification_status?.toString().match(/1/)?(0,s.jsxs)(d().Fragment,{children:[(0,s.jsx)(c.A,{databases:a,setTargetDatabase:t,user:l}),(0,s.jsx)(o.A,{user:l})]}):(0,s.jsx)(r.A,{})]})}},42602:(e,a,t)=>{t.d(a,{A:()=>x});var s=t(8732),l=t(82015),d=t.n(l),i=t(14587),n=t(6078),r=t(18129),c=t(8248),o=t(69290),h=t(68253);function x({databases:e,setTargetDatabase:a,title:t,more:l,user:x}){return(0,s.jsx)(d().Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:t||"Database List"}),x&&e&&e[0]&&a&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:e.map(e=>(0,s.jsx)(i.A,{database:e,setTargetDatabase:a,icons:{edit:n.A,duplicate:r.A,delete:c.A,copy:o.A},user:x},e.id))}),l&&e&&e[0]&&(0,s.jsx)("a",{href:`/admin/${x?.id}/databases`,className:"button w-full more-padding",children:"See All Databases"}),!e||!e[0]&&(0,s.jsxs)("a",{href:`/admin/${x?.id}/databases/add-database`,className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(h.A,{color:"action",sx:{fontSize:80},className:"opacity-40"}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},92736:(e,a,t)=>{t.d(a,{A:()=>x});var s=t(8732),l=t(82015),d=t.n(l),i=t(6078),n=t(18129),r=t(8248),c=t(69290),o=t(32415);t(63715);var h=t(14587);function x({user:e}){let[a,t]=d().useState(null),[l,x]=d().useState(!1);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),l&&(0,s.jsx)(o.A,{}),e&&a?a[0]?(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(a=>(0,s.jsx)(h.A,{database:a,delegated:!0,icons:{edit:i.A,duplicate:n.A,delete:r.A,copy:c.A},user:e},a.id))})}):(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,s.jsx)(d().Fragment,{children:(0,s.jsx)("div",{className:"w-full justify-center",children:(0,s.jsx)(o.A,{position:"relative",width:"20px"})})})]})}},34033:(e,a,t)=>{t.d(a,{A:()=>c});var s=t(8732),l=t(82015),d=t.n(l),i=t(63715),n=t(55158),r=t(32415);function c({targetDatabase:e}){let[a,t]=d().useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-database-confirmation",children:[a&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,i.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},86173:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(8732);t(82015);var l=t(69290);function d({slugText:e,smaller:a,outlined:t,full:d}){return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(t?" outlined gray":"light-gray")+(a?" small-text":""),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`${d?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(l.A,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,s.jsx)("span",{children:e})]})}},55158:(e,a,t)=>{t.d(a,{Ay:()=>n,PB:()=>r,fs:()=>c});var s=t(8732),l=t(58150),d=t(82015),i=t.n(d);function n({children:e,title:a,data:t,fullPage:d,wrapperClasses:n,closePopupDispatch:r,wrapperStyle:o,noContainer:h}){return d?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":a||null,style:o,children:[h?(0,s.jsx)(i().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),r&&r()},children:(0,s.jsx)(l.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),r&&r()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[h?(0,s.jsx)(i().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),h&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),r&&r()}})]})}function r(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a&&a(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},24671:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8732);function l(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(82015)},26406:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},69290:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"},"1")],"CopyAllTwoTone")},8248:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M16 9H8v10h8zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteForeverTwoTone")},18129:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},6078:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06zM5.92 18H5v-.92l7.06-7.06.92.92zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75z"},"1")],"DriveFileRenameOutlineTwoTone")},68253:(e,a,t)=>{var s=t(24994);a.A=void 0;var l=s(t(30887)),d=t(8732);a.A=(0,l.default)((0,d.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageTwoTone")},92441:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},86176:(e,a,t)=>{t.r(a),t.d(a,{DatabasesContext:()=>m,default:()=>p,getServerSideProps:()=>u});var s=t(8732),l=t(82015),d=t.n(l),i=t(95222),n=t(20048),r=t.n(n),c=t(37515),o=t(34033),h=t(67216),x=t.n(h);let m=d().createContext({});function p({user:e,databases:a}){let t=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Databases | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[l,n]=d().useState(0);return(0,s.jsx)(i.A,{head:t,user:e,children:(0,s.jsxs)(m.Provider,{value:{user:e,databases:a,targetDatabase:l,setTargetDatabase:n},children:[(0,s.jsx)(c.A,{}),(0,s.jsx)(o.A,{targetDatabase:l})]})})}async function u({req:e,res:a,query:t}){let s=await r()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let l=await x()("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC",[s.id]);return{props:{user:s,databases:l}}}},9455:(e,a)=>{var t;Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1311.js b/dsql-app/.local_dist/server/chunks/1311.js deleted file mode 100644 index c253e4a..0000000 --- a/dsql-app/.local_dist/server/chunks/1311.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -exports.id = 1311; -exports.ids = [1311]; -exports.modules = { - -/***/ 1311: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const parseDbResults = __webpack_require__(8326); -const serverError = __webpack_require__(3017); -const DB_HANDLER = __webpack_require__(2224); -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** - * DB handler for specific database - * ============================================================================== - * @async - * @param {object} params - Single object params - * @param {string} params.queryString - SQL string - * @param {*[]} [params.queryValuesArray] - Values Array - * @param {string} [params.database] - Database name - * @param {import("../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @returns {Promise} - */ module.exports = async function varDatabaseDbHandler({ queryString , queryValuesArray , database , tableSchema , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ const isMaster = database?.match(/^datasquirel$/) ? true : false; - /** @type {any} */ const FINAL_DB_HANDLER = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - if (queryString && queryValuesArray && Array.isArray(queryValuesArray) && queryValuesArray[0]) { - results = isMaster ? await FINAL_DB_HANDLER(queryString, queryValuesArray) : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString, - queryValues: queryValuesArray - }); - } else { - results = isMaster ? await FINAL_DB_HANDLER(queryString) : await FINAL_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "varDatabaseDbHandler/lines-29-32", - message: error.message - }); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results && tableSchema) { - try { - const unparsedResults = results; - const parsedResults = await parseDbResults({ - unparsedResults: unparsedResults, - tableSchema: tableSchema - }); - return parsedResults; - } catch (/** @type {any} */ error1) { - console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>", database, error1); - serverError({ - component: "varDatabaseDbHandler/lines-52-53", - message: error1.message - }); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else if (results) { - return results; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else { - return null; - } -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1336.js b/dsql-app/.local_dist/server/chunks/1336.js deleted file mode 100644 index a2aea45..0000000 --- a/dsql-app/.local_dist/server/chunks/1336.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -exports.id = 1336; -exports.ids = [1336]; -exports.modules = { - -/***/ 1336: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UserCard) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").UserType} props.userObject - * @param {boolean} [props.userPage] - */ function UserCard({ userObject , userPage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userTitles = Object.keys(userObject); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const [refresh, setRefresh] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - const [collapsed, setCollapsed] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(userPage ? false : true); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card col green w-full overflow-hidden" + (collapsed ? userPage ? " h-[100px]" : " h-[85px]" : " "), - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "items-center w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: userObject["image_thumbnail"], - alt: "", - className: "rounded-full object-cover" + (userPage ? " w-16 h-16" : " w-12 h-12") - }), - !userPage && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h3", { - className: "m-0 text-xl", - children: [ - userObject["first_name"], - " ", - userObject["last_name"], - " " - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "ml-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray small-text", - onClick: (e)=>{ - if (collapsed) { - setCollapsed(false); - } else { - setCollapsed(true); - } - }, - children: collapsed ? "More Details" : "Collapse" - }), - !userPage && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/su/users/${userObject.id}`, - className: "button outlined gray small-text", - children: "View User" - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "card no-hover col w-full light-gray-bg", - children: userTitles.map((userTitle, utIndex)=>{ - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - style: { - wordBreak: "break-all" - }, - children: [ - userTitle, - ":", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: // @ts-ignore - userObject[userTitle] - }) - ] - }) - }), - utIndex < userTitles.length - 1 && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", {}) - ] - }, utIndex + 1); - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray small-text w-full", - onClick: (e)=>{ - setCollapsed(true); - }, - children: "Collapse" - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1352.js b/dsql-app/.local_dist/server/chunks/1352.js deleted file mode 100644 index 6fb3b1d..0000000 --- a/dsql-app/.local_dist/server/chunks/1352.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -exports.id = 1352; -exports.ids = [1352]; -exports.modules = { - -/***/ 1352: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const http = __webpack_require__(3685); -const decrypt = __webpack_require__(5425); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} grabDelegatedUserFromCookieReturn - * @property {number} dbUserId - * @property {number} [dbUserId] - * @property {number} [rootUserId] - * @property {string} [rootUserName] - * @property {string} [rootUserEmail] - * @property {string} [rootUserImage] - * @property {string} [databaseFullName] - * @property {string} [databaseSlug] - * @property {string[]} [allowedTables] - * @property {string} [priviledges] - * @property {string} [database] - * @property {boolean} [delegated] - */ /** - * @param {object} params - user id - * @param {import("next").NextApiRequest | http.IncomingMessage & { cookies: Partial<{ [key: string]: string; }>}} params.request - HTTPS request object - * @param {string | string[]} params.databaseSlug - Database name slug - * @param {{ id: number, first_name: string, last_name: string }} params.user - * @param {any} params.query - query params - * - * @returns {Promise} new user auth object payload - */ module.exports = async function grabDelegatedUserFromCookie({ request , databaseSlug , user , query , }) { - try { - /** - * Fetch user - * - * @description Fetch user from db - */ let dbUserId = user.id; - let delegatedUserObject = null; - if (!query?.delegated) return { - dbUserId - }; - const rootUserId = query.dbUserId; - const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${rootUserId}_${databaseSlug}`; - const tokenName = `${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${dbFullName}`; - try { - if (!request.cookies?.[tokenName]) throw new Error("Cookie not present"); - // @ts-ignore - const decryptedToken = decrypt(request.cookies[tokenName]); - if (!decryptedToken) throw new Error("Invalid Token"); - delegatedUserObject = JSON.parse(decryptedToken); - if (delegatedUserObject.databaseSlug === databaseSlug) { - dbUserId = delegatedUserObject.rootUserId; - return { - dbUserId: dbUserId, - rootUserId: delegatedUserObject.rootUserId, - rootUserName: delegatedUserObject.rootUserName, - rootUserEmail: delegatedUserObject.rootUserEmail, - rootUserImage: delegatedUserObject.rootUserImage, - databaseFullName: delegatedUserObject.databaseFullName, - databaseSlug: delegatedUserObject.databaseSlug, - allowedTables: delegatedUserObject.allowedTables, - priviledges: delegatedUserObject.priviledges, - database: delegatedUserObject.databaseSlug, - delegated: true - }; - } - } catch (error) { - // serverError({ - // component: "grabDelegatedUserFromCookie", - // message: error.message, - // user: user, - // }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return { - dbUserId - }; - } catch (error1) { - return null; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1500.js b/dsql-app/.local_dist/server/chunks/1500.js deleted file mode 100644 index 9f81ceb..0000000 --- a/dsql-app/.local_dist/server/chunks/1500.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -exports.id = 1500; -exports.ids = [1500]; -exports.modules = { - -/***/ 5012: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DeleteDatabaseConfirmationPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6729); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type | undefined} props.targetDatabase - */ function DeleteDatabaseConfirmationPopup({ targetDatabase }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "delete-database-confirmation", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0", - children: [ - "Delete '", - targetDatabase?.db_name ? targetDatabase.db_name : "This Database", - "' database?" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - if (!targetDatabase) { - alert("No Target Database Selected!"); - return; - } - setLoading(true); - if (window.confirm(`Note that you will loose all data in this database. Continue?`)) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)("/api/deleteUserDatabase", { - method: "post", - body: targetDatabase - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }); - } else { - setLoading(false); - } - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Yes" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Cancel" - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1503.js b/dsql-app/.local_dist/server/chunks/1503.js deleted file mode 100644 index 8563ea8..0000000 --- a/dsql-app/.local_dist/server/chunks/1503.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -exports.id = 1503; -exports.ids = [1503]; -exports.modules = { - -/***/ 1503: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { IncomingMessage } = __webpack_require__(3685); -const decrypt = __webpack_require__(5304); -/** - * @async - * @param {import("next").NextApiRequest | IncomingMessage & { cookies: Partial<{ [key: string]: string; }>} } req - https request object - * - * @returns {Promise<({ email: string, password: string, authKey: string, logged_in_status: boolean, date: number } | null)>} - */ module.exports = async function(req) { - /** ********************* Check for existence of required cookie */ if (!req.cookies?.datasquirelSuAdminUserAuthKey) { - return null; - } - /** ********************* Grab the payload */ let userPayload = decrypt(req.cookies.datasquirelSuAdminUserAuthKey); - /** ********************* Return if no payload */ if (!userPayload) return null; - /** ********************* Parse the payload */ let userObject = JSON.parse(userPayload); - if (userObject.password !== process.env.DSQL_USER_KEY) return null; - if (userObject.authKey !== process.env.DSQL_SPECIAL_KEY) return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* return user object */ return userObject; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1674.js b/dsql-app/.local_dist/server/chunks/1674.js deleted file mode 100644 index ff4a81b..0000000 --- a/dsql-app/.local_dist/server/chunks/1674.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -exports.id = 1674; -exports.ids = [1674]; -exports.modules = { - -/***/ 1674: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DeleteTableConfirmationPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_Breadcrumbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(424); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5472); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def | null} [props.targetTable] - */ function DeleteTableConfirmationPopup({ targetTable , database , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, { - title: "delete-table-confirmation", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0", - children: [ - "Delete '", - targetTable?.table_name ? targetTable.table_name : "This Database", - "' Table?" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/deleteUserTable", { - method: "post", - body: { - database: database, - table: targetTable - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Yes" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Cancel" - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1781.js b/dsql-app/.local_dist/server/chunks/1781.js deleted file mode 100644 index d834e59..0000000 --- a/dsql-app/.local_dist/server/chunks/1781.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -exports.id = 1781; -exports.ids = [1781]; -exports.modules = { - -/***/ 1781: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ BackButton) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ArrowBackIosRounded__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3257); -/* harmony import */ var _mui_icons_material_ArrowBackIosRounded__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ArrowBackIosRounded__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - */ function BackButton() { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full", - onClick: (e)=>{ - window.history.back(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_ArrowBackIosRounded__WEBPACK_IMPORTED_MODULE_2___default()), { - color: "inherit", - className: "opacity-50 text-black", - fontSize: "small" - }) - }); -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1790.js b/dsql-app/.local_dist/server/chunks/1790.js new file mode 100644 index 0000000..7dc6ade --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/1790.js @@ -0,0 +1 @@ +"use strict";exports.id=1790,exports.ids=[1790],exports.modules={52763:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.ClickAwayListener=function(e){let{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:u,touchEvent:s="onTouchEnd"}=e,c=o.useRef(!1),d=o.useRef(null),p=o.useRef(!1),v=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);let y=(0,a.unstable_useForkRef)((0,i.default)(t),d),b=(0,a.unstable_useEventCallback)(e=>{let t=v.current;v.current=!1;let n=(0,a.unstable_ownerDocument)(d.current);if(p.current&&d.current&&(!("clientX"in e)||!(n.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||d.current.contains(e.target))||!r&&t||u(e)}}),g=e=>r=>{v.current=!0;let n=t.props[e];n&&n(r)},O={ref:y};return!1!==s&&(O[s]=g(s)),o.useEffect(()=>{if(!1!==s){let e=f(s),t=(0,a.unstable_ownerDocument)(d.current),r=()=>{c.current=!0};return t.addEventListener(e,b),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,b),t.removeEventListener("touchmove",r)}}},[b,s]),!1!==n&&(O[n]=g(n)),o.useEffect(()=>{if(!1!==n){let e=f(n),t=(0,a.unstable_ownerDocument)(d.current);return t.addEventListener(e,b),()=>{t.removeEventListener(e,b)}}},[b,n]),(0,l.jsx)(o.Fragment,{children:o.cloneElement(t,O)})};var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var a=r(76831),i=n(r(16362)),l=r(8732);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function f(e){return e.substring(2).toLowerCase()}},47693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n.ClickAwayListener}});var n=r(52763)},32683:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),a=n(r(54893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var l=n(r(710));n(r(30729));var u=n(r(16362)),f=r(37727),s=n(r(90403)),c=r(66322),d=n(r(68660)),p=r(8732);let v=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function b(e){return`scale(${e}, ${e**2})`}let g={entering:{opacity:1,transform:b(1)},entered:{opacity:1,transform:"none"}},O="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=i.forwardRef(function(e,t){let{addEndListener:r,appear:n=!0,children:y,easing:m,in:j,onEnter:_,onEntered:P,onEntering:h,onExit:w,onExited:k,onExiting:M,style:E,timeout:C="auto",TransitionComponent:x=f.Transition}=e,D=(0,a.default)(e,v),W=(0,l.default)(),R=i.useRef(),L=(0,s.default)(),S=i.useRef(null),T=(0,d.default)(S,(0,u.default)(y),t),z=e=>t=>{if(e){let r=S.current;void 0===t?e(r):e(r,t)}},A=z(h),$=z((e,t)=>{let r;(0,c.reflow)(e);let{duration:n,delay:o,easing:a}=(0,c.getTransitionProps)({style:E,timeout:C,easing:m},{mode:"enter"});"auto"===C?(r=L.transitions.getAutoHeightDuration(e.clientHeight),R.current=r):r=n,e.style.transition=[L.transitions.create("opacity",{duration:r,delay:o}),L.transitions.create("transform",{duration:O?r:.666*r,delay:o,easing:a})].join(","),_&&_(e,t)}),N=z(P),B=z(M),F=z(e=>{let t;let{duration:r,delay:n,easing:o}=(0,c.getTransitionProps)({style:E,timeout:C,easing:m},{mode:"exit"});"auto"===C?(t=L.transitions.getAutoHeightDuration(e.clientHeight),R.current=t):t=r,e.style.transition=[L.transitions.create("opacity",{duration:t,delay:n}),L.transitions.create("transform",{duration:O?t:.666*t,delay:O?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=b(.75),w&&w(e)}),H=z(k);return(0,p.jsx)(x,(0,o.default)({appear:n,in:j,nodeRef:S,onEnter:$,onEntered:N,onEntering:A,onExit:F,onExited:H,onExiting:B,addEndListener:e=>{"auto"===C&&W.start(R.current||0,e),r&&r(S.current,e)},timeout:"auto"===C?null:C},D,{children:(e,t)=>i.cloneElement(y,(0,o.default)({style:(0,o.default)({opacity:0,transform:b(.75),visibility:"exited"!==e||j?void 0:"hidden"},g[e],E,y.props.style),ref:T},t))}))});m.muiSupportAuto=!0,t.default=m},21078:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=n(r(32683))},75075:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var l=n(r(74956));n(r(71291)),n(r(54341));var u=n(r(14036)),f=r(84781),s=n(r(88456)),c=n(r(3167)),d=r(57001);n(r(90403));var p=r(87479),v=r(8732);let y=["className","component","elevation","square","variant"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let g=e=>{let{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,u.default)(a,p.getPaperUtilityClass,o)},O=(0,s.default)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return(0,a.default)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,a.default)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,f.alpha)("#fff",(0,c.default)(t.elevation))}, ${(0,f.alpha)("#fff",(0,c.default)(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),m=i.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiPaper"}),{className:n,component:i="div",elevation:u=1,square:f=!1,variant:s="elevation"}=r,c=(0,o.default)(r,y),p=(0,a.default)({},r,{component:i,elevation:u,square:f,variant:s}),b=g(p);return(0,v.jsx)(O,(0,a.default)({as:i,ownerState:p,className:(0,l.default)(b.root,n),ref:t},c))});t.default=m},45561:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={paperClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"paperClasses",{enumerable:!0,get:function(){return i.default}});var a=n(r(75075)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(87479));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},87479:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getPaperUtilityClass=function(e){return(0,a.default)("MuiPaper",e)};var o=n(r(81699)),a=n(r(61119));let i=(0,o.default)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);t.default=i},13363:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=j(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var l=n(r(14036)),u=n(r(10179)),f=n(r(89018)),s=n(r(47693)),c=r(90627),d=r(57001),p=n(r(83922)),v=n(r(21078)),y=n(r(92111)),b=r(14151),g=r(8732);let O=["onEnter","onExited"],m=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"];function j(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(j=function(e){return e?r:t})(e)}let _=e=>{let{classes:t,anchorOrigin:r}=e,n={root:["root",`anchorOrigin${(0,p.default)(r.vertical)}${(0,p.default)(r.horizontal)}`]};return(0,l.default)(n,b.getSnackbarUtilityClass,t)},P=(0,c.styled)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`anchorOrigin${(0,p.default)(r.anchorOrigin.vertical)}${(0,p.default)(r.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>(0,a.default)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,a.default)({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===t.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===t.anchorOrigin.horizontal&&{right:24,left:"auto"})})),h=i.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiSnackbar"}),n=(0,c.useTheme)(),l={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:p,anchorOrigin:{vertical:b,horizontal:j}={vertical:"bottom",horizontal:"left"},autoHideDuration:h=null,children:w,className:k,ClickAwayListenerProps:M,ContentProps:E,disableWindowBlurListener:C=!1,message:x,open:D,TransitionComponent:W=v.default,transitionDuration:R=l,TransitionProps:{onEnter:L,onExited:S}={}}=r,T=(0,o.default)(r.TransitionProps,O),z=(0,o.default)(r,m),A=(0,a.default)({},r,{anchorOrigin:{vertical:b,horizontal:j},autoHideDuration:h,disableWindowBlurListener:C,TransitionComponent:W,transitionDuration:R}),$=_(A),{getRootProps:N,onClickAway:B}=(0,f.default)((0,a.default)({},A)),[F,H]=i.useState(!0),I=(0,u.default)({elementType:P,getSlotProps:N,externalForwardedProps:z,ownerState:A,additionalProps:{ref:t},className:[$.root,k]});return!D&&F?null:(0,g.jsx)(s.default,(0,a.default)({onClickAway:B},M,{children:(0,g.jsx)(P,(0,a.default)({},I,{children:(0,g.jsx)(W,(0,a.default)({appear:!0,in:D,timeout:R,direction:"top"===b?"down":"up",onEnter:(e,t)=>{H(!1),L&&L(e,t)},onExited:e=>{H(!0),S&&S(e)}},T,{children:w||(0,g.jsx)(y.default,(0,a.default)({message:x,action:p},E))}))}))}))});t.default=h},11790:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={snackbarClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"snackbarClasses",{enumerable:!0,get:function(){return i.default}});var a=n(r(13363)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(14151));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},14151:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getSnackbarUtilityClass=function(e){return(0,a.default)("MuiSnackbar",e)};var o=n(r(81699)),a=n(r(61119));let i=(0,o.default)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);t.default=i},89018:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015)),i=r(76831),l=n(r(47822));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}t.default=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:u,resumeHideDuration:f}=e,s=(0,i.unstable_useTimeout)();a.useEffect(()=>{if(u)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}},[u,n]);let c=(0,i.unstable_useEventCallback)((e,t)=>{null==n||n(e,t)}),d=(0,i.unstable_useEventCallback)(e=>{n&&null!=e&&s.start(e,()=>{c(null,"timeout")})});a.useEffect(()=>(u&&d(t),s.clear),[u,t,d,s]);let p=s.clear,v=a.useCallback(()=>{null!=t&&d(null!=f?f:.5*t)},[t,f,d]),y=e=>t=>{let r=e.onBlur;null==r||r(t),v()},b=e=>t=>{let r=e.onFocus;null==r||r(t),p()},g=e=>t=>{let r=e.onMouseEnter;null==r||r(t),p()},O=e=>t=>{let r=e.onMouseLeave;null==r||r(t),v()};return a.useEffect(()=>{if(!r&&u)return window.addEventListener("focus",v),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",p)}},[r,u,v,p]),{getRootProps:(t={})=>{let r=(0,o.default)({},(0,l.default)(e),(0,l.default)(t));return(0,o.default)({role:"presentation"},t,r,{onBlur:y(r),onFocus:b(r),onMouseEnter:g(r),onMouseLeave:O(r)})},onClickAway:e=>{null==n||n(e,"clickaway")}}}},36551:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var l=n(r(74956)),u=n(r(14036)),f=r(84781),s=n(r(88456)),c=r(57001),d=n(r(45561)),p=r(78835),v=r(8732);let y=["action","className","message","role"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let g=e=>{let{classes:t}=e;return(0,u.default)({root:["root"],action:["action"],message:["message"]},p.getSnackbarContentUtilityClass,t)},O=(0,s.default)(d.default,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?.8:.98,r=(0,f.emphasize)(e.palette.background.default,t);return(0,a.default)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(r),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),m=(0,s.default)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),j=(0,s.default)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),_=i.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiSnackbarContent"}),{action:n,className:i,message:u,role:f="alert"}=r,s=(0,o.default)(r,y),d=g(r);return(0,v.jsxs)(O,(0,a.default)({role:f,square:!0,elevation:6,className:(0,l.default)(d.root,i),ownerState:r,ref:t},s,{children:[(0,v.jsx)(m,{className:d.message,ownerState:r,children:u}),n?(0,v.jsx)(j,{className:d.action,ownerState:r,children:n}):null]}))});t.default=_},92111:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={snackbarContentClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"snackbarContentClasses",{enumerable:!0,get:function(){return i.default}});var a=n(r(36551)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(78835));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},78835:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getSnackbarContentUtilityClass=function(e){return(0,a.default)("MuiSnackbarContent",e)};var o=n(r(81699)),a=n(r(61119));let i=(0,o.default)("MuiSnackbarContent",["root","message","action"]);t.default=i},66322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionProps=function(e,t){var r,n;let{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}},t.reflow=void 0,t.reflow=e=>e.scrollTop}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/1926.js b/dsql-app/.local_dist/server/chunks/1926.js deleted file mode 100644 index 500b9b1..0000000 --- a/dsql-app/.local_dist/server/chunks/1926.js +++ /dev/null @@ -1,309 +0,0 @@ -"use strict"; -exports.id = 1926; -exports.ids = [1926]; -exports.modules = { - -/***/ 1926: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DbCreateDbUserForm) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6729); -/* harmony import */ var _general_FormAlertBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7037); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _form_FormInput__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7901); -/* harmony import */ var _UserImage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2733); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// - - - - - -//////////////////////////////////////// -/** @type {any} */ let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.targetDb - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} [props.database] - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {any} props.userImage - * @param {React.Dispatch>} props.setUserImage - */ function DbCreateDbUserForm({ targetDb , database , user , userImage , setUserImage , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ alert: string | null, setAlert: React.Dispatch> ]} */ // @ts-ignore - const [alert, setAlert] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - alert && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_FormAlertBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - message: alert - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600 mt-4", - children: "User information" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "First Name", - inputType: "text", - name: "first_name", - autoComplete: "given-name", - onInputHandler: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - }, - required: true - }) - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "last_name", - children: "Last Name" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "last_name", - id: "last_name", - placeholder: "Last Name", - autoComplete: "family-name", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "username", - children: "Username" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "username", - id: "username", - placeholder: "Username", - autoComplete: "username", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(`/api/checkDuplicateData?type=username&value=${inputEl.value}&tableName=users&dbFullName=${targetDb}`).then((res)=>{ - // console.log(res); - if (res?.result) { - setAlert("Username Already Exists"); - inputEl.classList.add("warning"); - } else { - setAlert(null); - inputEl.classList.remove("warning"); - } - }); - }, 300); - } - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "email_address", - children: "Email Address" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "email", - name: "email_address", - id: "email_address", - placeholder: "Email Address", - autoComplete: "email", - onInput: (e)=>{ - window.clearTimeout(timeout); - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - timeout = setTimeout(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(`/api/checkDuplicateData?type=email&value=${inputEl.value}&tableName=users&dbFullName=${targetDb}`).then((res)=>{ - // console.log(res); - if (res?.result) { - setAlert("Email Already Exists"); - inputEl.classList.add("warning"); - } else { - setAlert(null); - inputEl.classList.remove("warning"); - } - }); - }, 300); - }, - required: true - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "Phone Number", - inputType: "text", - name: "phone", - autoComplete: "tel" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "Address", - name: "address", - autoComplete: "address" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-wrap xl:flex-nowrap", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "City", - name: "city", - autoComplete: "city" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "State", - name: "state", - autoComplete: "state" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "Country", - name: "country", - autoComplete: "country" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormInput__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - title: "Zip Code", - name: "zip_code", - autoComplete: "zip_code" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "password", - children: "Password" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "password", - id: "password", - placeholder: "Password", - required: true - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "confirm_password", - children: "Confirm Password" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "confirm_password", - id: "confirm_password", - placeholder: "Confirm Password", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let passwordInput = inputEl.closest("form")?.["password"].value; - let passwordRepeatInput = inputEl.value; - if (passwordInput === passwordRepeatInput) { - inputEl.classList.remove("warning"); - } else { - inputEl.classList.add("warning"); - } - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "paper", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600", - children: "User Image" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_UserImage__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - userImage: userImage, - setUserImage: setUserImage, - className: "w-full" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2163.js b/dsql-app/.local_dist/server/chunks/2163.js deleted file mode 100644 index f569ff5..0000000 --- a/dsql-app/.local_dist/server/chunks/2163.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -exports.id = 2163; -exports.ids = [2163]; -exports.modules = { - -/***/ 2163: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -// const handleNodemailer = require("./handleNodemailer"); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * user?: { id?: number | string, first_name?: string, last_name?: string, email?: string } & *, - * message: string, - * component?: string, - * noMail?: boolean, - * }} params - user id - * - * @returns {Promise} - */ module.exports = async function serverError({ user , message , component , noMail , }) { - const log = `🚀 SERVER ERROR ===========================\nUser Id: ${user?.id}\nUser Name: ${user?.first_name} ${user?.last_name}\nUser Email: ${user?.email}\nError Message: ${message}\nComponent: ${component}\nDate: ${Date()}\n========================================`; - if (!fs.existsSync(`./.tmp/error.log`)) { - fs.writeFileSync(`./.tmp/error.log`, "", "utf-8"); - } - const initialText = fs.readFileSync(`./.tmp/error.log`, "utf-8"); - fs.writeFileSync(`./.tmp/error.log`, log); - fs.appendFileSync(`./.tmp/error.log`, `\n\n\n\n\n${initialText}`); -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2186.js b/dsql-app/.local_dist/server/chunks/2186.js deleted file mode 100644 index 04575c4..0000000 --- a/dsql-app/.local_dist/server/chunks/2186.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -exports.id = 2186; -exports.ids = [2186]; -exports.modules = { - -/***/ 2186: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormSuccessBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props - * @param {string} props.message - Message - * @param {string} [props.className] - Additional Class Names - */ function FormSuccessBlock({ message , className }) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "info green" + (className ? " " + className : ""), - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/checkmark.svg", - alt: "Warning Image Icon", - width: 22, - className: "-my-2" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: message - }) - ] - }); -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2224.js b/dsql-app/.local_dist/server/chunks/2224.js deleted file mode 100644 index 741b5d6..0000000 --- a/dsql-app/.local_dist/server/chunks/2224.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -exports.id = 2224; -exports.ids = [2224]; -exports.modules = { - -/***/ 2224: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(4824); -const MASTER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - database: process.env.DSQL_DB_NAME, - port: process.env.DSQL_DB_PORT ? Number(process.env.DSQL_DB_PORT) : undefined, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ // @ts-ignore -async function DB_HANDLER(...args) { - try { - const results = await MASTER.query(...args); - /** ********************* Clean up */ await MASTER.end(); - return JSON.parse(JSON.stringify(results)); - } catch (/** @type {any} */ error) { - console.log("DB Error =>", error); - return { - success: false, - error: error.message - }; - } -} -module.exports = DB_HANDLER; - - -/***/ }), - -/***/ 4824: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -/** - * @returns {string | (import("tls").SecureContextOptions & { rejectUnauthorized?: boolean | undefined;}) | undefined} - */ module.exports = function grabDbSSL() { - const SSL_DIR = process.env.DSQL_SSL_DIR; - if (!SSL_DIR?.match(/./)) { - return undefined; - } - const caFilePath = `${SSL_DIR}/ca-cert.pem`; - if (!fs.existsSync(caFilePath)) { - console.log(`${caFilePath} does not exist`); - return undefined; - } - return { - ca: fs.readFileSync(`${SSL_DIR}/ca-cert.pem`) - }; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2317.js b/dsql-app/.local_dist/server/chunks/2317.js deleted file mode 100644 index c7b0d05..0000000 --- a/dsql-app/.local_dist/server/chunks/2317.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -exports.id = 2317; -exports.ids = [2317]; -exports.modules = { - -/***/ 2317: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -// const handleNodemailer = require("./handleNodemailer"); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * user?: { id?: number | string, first_name?: string, last_name?: string, email?: string } & *, - * message: string, - * component?: string, - * noMail?: boolean, - * }} params - user id - * - * @returns {Promise} - */ module.exports = async function serverError({ user , message , component , noMail , }) { - const log = `🚀 SERVER ERROR ===========================\nUser Id: ${user?.id}\nUser Name: ${user?.first_name} ${user?.last_name}\nUser Email: ${user?.email}\nError Message: ${message}\nComponent: ${component}\nDate: ${Date()}\n========================================`; - if (!fs.existsSync(`./.tmp/error.log`)) { - fs.writeFileSync(`./.tmp/error.log`, "", "utf-8"); - } - const initialText = fs.readFileSync(`./.tmp/error.log`, "utf-8"); - fs.writeFileSync(`./.tmp/error.log`, log); - fs.appendFileSync(`./.tmp/error.log`, `\n\n\n\n\n${initialText}`); -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2332.js b/dsql-app/.local_dist/server/chunks/2332.js new file mode 100644 index 0000000..af60355 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/2332.js @@ -0,0 +1 @@ +"use strict";exports.id=2332,exports.ids=[2332],exports.modules={30671:(e,a)=>{Object.defineProperty(a,"M",{enumerable:!0,get:function(){return function e(a,t){return t in a?a[t]:"then"in a&&"function"==typeof a.then?a.then(a=>e(a,t)):"function"==typeof a&&"default"===t?a:void 0}}})},77826:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(8732),c=t(82015),i=t.n(c),n=t(79100);function r({user:e,userImage:a,setUserImage:t,database:c,className:r}){let d=i().useRef();return(0,l.jsxs)("div",{className:"card no-hover col"+(r?" "+r:""),children:[(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:a?"string"==typeof a?a:a.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:d,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,l.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{t(await (0,n.A)({imageInputFile:e.target.files[0],maxWidth:400}))}})]})]})}t(55158)},55158:(e,a,t)=>{t.d(a,{Ay:()=>r,PB:()=>d,fs:()=>s});var l=t(8732),c=t(58150),i=t(82015),n=t.n(i);function r({children:e,title:a,data:t,fullPage:i,wrapperClasses:r,closePopupDispatch:d,wrapperStyle:o,noContainer:p}){return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:o,children:[p?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{s(),d&&d()},children:(0,l.jsx)(c.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{s(),d&&d()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[p?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{s(),d&&d()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),p&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{s(),d&&d()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{s(),d&&d()}})]})}function d(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a&&a(t))}function s(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},79100:(e,a,t)=>{t.d(a,{A:()=>l});async function l({imageInputFile:e,maxWidth:a}){let t,l,c=document.querySelector("[data-imagepreview='image']"),i=e.name.replace(/\..*/,""),n=document.createElement("canvas"),r=e.type,d=a||null,s=URL.createObjectURL(e),o=new Image;return o.src=s,t=await new Promise((e,a)=>{o.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},o.onload=function(){if(URL.revokeObjectURL(this.src),d){let e=d/o.naturalWidth;n.width=o.naturalWidth{e.src=t}),e(t)}}),l=await new Promise((e,a)=>{n.toBlob(a=>{e(a?.size)},r,.95)}),{imageBase64:t.replace(/.*?base64,/,""),imageBase64Full:t,imageName:i,imageSize:l}}},42178:(e,a,t)=>{var l=t(24994);a.A=void 0;var c=l(t(30887)),i=t(8732);a.A=(0,c.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,a,t)=>{var l=t(24994);a.A=void 0;var c=l(t(30887)),i=t(8732);a.A=(0,c.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,a)=>{var t;Object.defineProperty(a,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2348.js b/dsql-app/.local_dist/server/chunks/2348.js deleted file mode 100644 index 457ac97..0000000 --- a/dsql-app/.local_dist/server/chunks/2348.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -exports.id = 2348; -exports.ids = [2348]; -exports.modules = { - -/***/ 2348: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormRadios) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {{ - * title: string, - * payload: string | boolean, - * default?: boolean, - * jsx?: React.ReactNode, - * onChangeHandler?: (e: any) => void, - * }[]} props.radioValues - array of objects - * @param {string} props.name - form radios collective name - * @param {(e: any) => void} [props.onChangeHandler] - when radios change - * @param {React.Dispatch>} [props.setAlert] - set an external alert dispatch - * @param {boolean} [props.flexRow] - if the radio and label are stacked on each other or side-by-side - * @param {string} [props.labelColor] - Label color using tailwind syntax - * @param {boolean} [props.baseText] - Font size regular - * @param {boolean} [props.smallText] - Font size smaller - * @param {string} [props.className] - Additional class names for the wrapper - */ function FormRadios({ radioValues , name , onChangeHandler , setAlert , flexRow , labelColor , baseText , smallText , className , }) { - try { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex items-start gap-4 flex-wrap " + (flexRow ? "" : " flex-col ") + (className ? className : ""), - children: radioValues.map((value, index)=>{ - const { payload , title , jsx } = value; - const radioPayload = payload === false ? payload : payload ? payload : title ? title : null; - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - className: "m-0" + (baseText ? " w-5 h-5" : smallText ? " w-4 h-4" : " w-6 h-6"), - type: "radio", - defaultChecked: value.default ? true : false, - name: name, - id: name + "_" + radioPayload, - onChange: (e)=>{ - if (setAlert) setAlert(null); - if (value.onChangeHandler) { - value.onChangeHandler(e); - } else if (onChangeHandler) { - onChangeHandler(e); - } - }, - value: typeof radioPayload == "string" ? radioPayload : undefined - }), - jsx ? jsx : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: name + "_" + radioPayload, - className: "text-lg m-0 " + (labelColor ? labelColor : "text-slate-800") + (baseText ? " text-base" : smallText ? " text-sm" : " text-lg"), - children: title - }) - ] - }, index + 1); - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log("ERROR in FormRadio =>", error); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: "Form Radio Error" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2378.js b/dsql-app/.local_dist/server/chunks/2378.js deleted file mode 100644 index 962983b..0000000 --- a/dsql-app/.local_dist/server/chunks/2378.js +++ /dev/null @@ -1,1495 +0,0 @@ -"use strict"; -exports.id = 2378; -exports.ids = [2378]; -exports.modules = { - -/***/ 2378: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ CreatePageContent) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./components/form/FormInput.jsx + 2 modules -var FormInput = __webpack_require__(7901); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@tinymce/tinymce-react" -var tinymce_react_ = __webpack_require__(6451); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: external "@mui/icons-material/ViewTimelineTwoTone" -var ViewTimelineTwoTone_ = __webpack_require__(5139); -var ViewTimelineTwoTone_default = /*#__PURE__*/__webpack_require__.n(ViewTimelineTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/StyleTwoTone" -var StyleTwoTone_ = __webpack_require__(723); -var StyleTwoTone_default = /*#__PURE__*/__webpack_require__.n(StyleTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DifferenceTwoTone" -var DifferenceTwoTone_ = __webpack_require__(930); -var DifferenceTwoTone_default = /*#__PURE__*/__webpack_require__.n(DifferenceTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/Close" -var Close_ = __webpack_require__(4173); -var Close_default = /*#__PURE__*/__webpack_require__.n(Close_); -// EXTERNAL MODULE: external "@mui/material" -var material_ = __webpack_require__(5692); -;// CONCATENATED MODULE: ./components/su/components/RichText/ElementStyleModalContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {HTMLElement|null} props.targetElement - * @param {React.Dispatch>} props.setOpenStyleModal - */ function ElementStyleModalContent({ targetElement , setOpenStyleModal , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!targetElement) { - return null; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-stretch p-6 max-w-lg", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xl", - children: "Element Style" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-10 h-10 plain-text", - onClick: ()=>{ - setOpenStyleModal(false); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((Close_default()), {}) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-stretch p-2 bg-slate-100 rounded add-css-block", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "CSS key" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "CSS Value", - onKeyDownCapture: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (e.key?.match(/enter/i)) { - const firstChild = inputEl.closest(".add-css-block")?.children[0]; - const secondChild = inputEl.closest(".add-css-block")?.children[1]; - // @ts-ignore - const key = firstChild?.value; - // @ts-ignore - const value = secondChild?.value; - if (!key?.match(/./) || !value?.match(/./)) return; - targetElement.style[key] = value; - } - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - /** @type {HTMLButtonElement} */ // @ts-ignore - const buttonEl = e.target; - const firstChild = buttonEl.closest(".add-css-block")?.children[0]; - const secondChild = buttonEl.closest(".add-css-block")?.children[1]; - // @ts-ignore - const key = firstChild?.value; - // @ts-ignore - const value = secondChild?.value; - if (!key?.match(/./) || !value?.match(/./)) return; - targetElement.style[key] = value; - }, - children: "Add" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - const active = targetElement.removeAttribute("style"); - }, - className: "secondary grow", - children: "Reset" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.display = "flex"; - targetElement.style.alignItems = "center"; - targetElement.style.gap = "10px"; - }, - className: "outlined black grow", - children: "Flex" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.backgroundColor = "rgb(241 245 249)"; - }, - className: "outlined black grow", - children: "BG-Slate-100" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.backgroundColor = "#F6F4F8"; - }, - className: "outlined black grow", - children: "BG-Main-light" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.padding = "10px"; - }, - className: "outlined black grow", - children: "Padding-10px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.padding = "10px 20px"; - }, - className: "outlined black grow", - children: "Padding-10px-20px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.borderRadius = "5px"; - }, - className: "outlined black grow", - children: "Border-Radius-5px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.border = "1px solid rgb(241 245 249)"; - }, - className: "outlined black grow", - children: "Border-Slate-100" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.border = "1px solid rgb(226 232 240)"; - }, - className: "outlined black grow", - children: "Border-Slate-200" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - targetElement.style.border = "1px solid rgb(203 213 225)"; - }, - className: "outlined black grow", - children: "Border-Slate-300" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-xl mt-4", - children: "Add class Name" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-stretch p-2 bg-slate-100 rounded add-class-name-block", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "Class Name", - onKeyDownCapture: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const firstChild = inputEl.closest(".add-class-name-block")?.children[0]; - if (e.key?.match(/enter/i)) { - // @ts-ignore - const className = firstChild?.value; - if (!className?.match(/./)) return; - targetElement.classList.add(className); - } - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - /** @type {HTMLButtonElement} */ // @ts-ignore - const buttonEl = e.target; - const firstChild = buttonEl.closest(".add-class-name-block")?.children[0]; - // @ts-ignore - const className = firstChild?.value; - if (!className?.match(/./)) return; - targetElement.classList.add(className); - }, - children: "Add" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - /** @type {HTMLButtonElement} */ // @ts-ignore - const buttonEl = e.target; - const firstChild = buttonEl.closest(".add-class-name-block")?.children[0]; - // @ts-ignore - const className = firstChild?.value; - if (!className?.match(/./)) return; - targetElement.classList.remove(className); - }, - className: "outlined", - children: "Remove" - }) - ] - }), - targetElement?.nodeName?.match(/^a$/i) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-xl mt-4", - children: "Add URL" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-stretch p-2 bg-slate-100 rounded href-block", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "Class Name", - onKeyDownCapture: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const firstChild = inputEl.closest(".href-block")?.children[0]; - if (e.key?.match(/enter/i)) { - // @ts-ignore - const url = firstChild?.value; - if (!url?.match(/./)) return; - // @ts-ignore - targetElement.href = url; - } - }, - // @ts-ignore - defaultValue: targetElement?.href - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const buttonEl = e.target; - const firstChild = buttonEl.closest(".href-block")?.children[0]; - // @ts-ignore - const url = firstChild?.value; - if (!url?.match(/./)) return; - // @ts-ignore - targetElement.href = url; - }, - children: "Add" - }) - ] - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/components/RichText/fns.js -// @ts-check -/** - * Imports: Handle imports - */ /** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} params.targetElement - * @param {React.Dispatch>} params.setTargetElement - */ function duplicateNode({ editor , targetElement , setTargetElement }) { - /** - * Initialize variables - */ const editorWindow = editor.getWin(); - // const currentSelectionTextNode = editorWindow.getSelection(); - // const currentSelectionTextNode = targetElement; - if (!targetElement) return; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ // const TARGET_ELEMENT = currentSelectionTextNode.anchorNode.parentElement; - // const TARGET_ELEMENT = targetElement; - /** @type {HTMLElement} */ // @ts-ignore - const newNode = targetElement.cloneNode(true); - if (newNode.nodeName.match(/html|document|body/i)) return; - targetElement.insertAdjacentElement("afterend", newNode); - targetElement.classList.remove("target-node"); - setTargetElement(newNode); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} params.targetElement - * @param {React.Dispatch>} params.setTargetElement - */ function selectParent({ editor , targetElement , setTargetElement }) { - /** - * Initialize variables - */ const editorWindow = editor.getWin(); - // const currentNode = editorWindow.getSelection()?.anchorNode.parentElement; - const currentNode = targetElement; - if (!currentNode) return; - if (currentNode.nodeName.match(/html|document|body/i)) { - return; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ /** @type {HTMLElement | null} */ // @ts-ignore - let parentNode = currentNode.parentElement; - if (!parentNode) { - setTargetElement(currentNode); - targetNode({ - editor: editor, - node: currentNode, - setTargetElement - }); - } - if (parentNode?.nodeName.match(/html|document|body/i)) { - setTargetElement(currentNode); - targetNode({ - editor: editor, - node: currentNode, - setTargetElement - }); - } else if (parentNode) { - setTargetElement(parentNode); - targetNode({ - editor: editor, - node: parentNode, - setTargetElement - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} params.targetElement - * @param {React.Dispatch>} params.setTargetElement - */ function selectChild({ editor , targetElement , setTargetElement }) { - /** - * Initialize variables - */ const editorWindow = editor.getWin(); - // const currentNode = editorWindow.getSelection()?.anchorNode.parentElement; - const currentNode = targetElement; - if (!currentNode) return; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ /** @type {HTMLElement | null} */ // @ts-ignore - const childNode = currentNode.children[0]; - if (!childNode) { - setTargetElement(currentNode); - targetNode({ - editor: editor, - node: currentNode, - setTargetElement - }); - } else { - setTargetElement(childNode); - targetNode({ - editor: editor, - node: childNode, - setTargetElement - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {HTMLElement|null} params.targetElement - * @param {boolean} [params.back] - */ function moveElement({ targetElement , back }) { - /** - * Initialize variables - */ if (!targetElement) return; - const next = targetElement.nextElementSibling; - const prev = targetElement.previousElementSibling; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ if (!back && next) { - next.after(targetElement); - } else if (back && prev) { - prev.before(targetElement); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} params.targetElement - * @param {React.Dispatch>} params.setTargetElement - */ function selectNext({ editor , targetElement , setTargetElement }) { - /** - * Initialize variables - */ const currentNode = targetElement; - if (!currentNode) return; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ /** @type {HTMLElement | null} */ // @ts-ignore - const nextNode = currentNode.nextElementSibling; - if (!nextNode) { - setTargetElement(currentNode); - targetNode({ - editor: editor, - node: currentNode, - setTargetElement - }); - } else { - setTargetElement(nextNode); - targetNode({ - editor: editor, - node: nextNode, - setTargetElement - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} params.targetElement - * @param {React.Dispatch>} params.setTargetElement - */ function selectPrevious({ editor , targetElement , setTargetElement }) { - /** - * Initialize variables - */ const currentNode = targetElement; - if (!currentNode) return; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ /** @type {HTMLElement | null} */ // @ts-ignore - const previousNode = currentNode.previousElementSibling; - if (!previousNode) { - setTargetElement(currentNode); - targetNode({ - editor: editor, - node: currentNode, - setTargetElement - }); - } else { - setTargetElement(previousNode); - targetNode({ - editor: editor, - node: previousNode, - setTargetElement - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Duplicate Node Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {import("tinymce").Editor} params.editor - * @param {HTMLElement|null} [params.node] - * @param {React.Dispatch>} [params.setTargetElement] - */ function targetNode({ editor , node , setTargetElement }) { - /** - * Initialize variables - */ const editorDocument = editor.getDoc(); - editorDocument.querySelectorAll(".target-node").forEach((elt)=>{ - elt.classList.remove("target-node"); - }); - const editorWindow = editor.getWin(); - const currentNode = editorWindow.getSelection()?.anchorNode?.parentElement; - const targetElement = node ? node : currentNode ? currentNode : null; - if (!targetElement) return; - targetElement?.classList?.add("target-node"); - if (setTargetElement) setTargetElement(targetElement); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: external "@mui/icons-material/HighlightAltTwoTone" -var HighlightAltTwoTone_ = __webpack_require__(328); -var HighlightAltTwoTone_default = /*#__PURE__*/__webpack_require__.n(HighlightAltTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/AdsClickTwoTone" -var AdsClickTwoTone_ = __webpack_require__(371); -var AdsClickTwoTone_default = /*#__PURE__*/__webpack_require__.n(AdsClickTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DoDisturbAltTwoTone" -var DoDisturbAltTwoTone_ = __webpack_require__(9361); -var DoDisturbAltTwoTone_default = /*#__PURE__*/__webpack_require__.n(DoDisturbAltTwoTone_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/su/components/RichText/HTMLSnippetsModalContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {HTMLElement?} props.targetElement - * @param {React.Dispatch>} props.setTargetElement - * @param {import("tinymce").Editor} props.editor - * @param {React.Dispatch>} props.setOpenSnippetsModal - */ function HTMLSnippetsModalContent({ targetElement , setTargetElement , editor , setOpenSnippetsModal , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(true); - const [snippets, setSnippets] = external_react_default().useState([]); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/docs/get-snippets", { - method: "post", - body: {} - }).then((res)=>{ - if (res.success) { - setSnippets(res.result); - setLoading(false); - } - }); - }, []); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(material_.Paper, { - className: "m-auto p-6 flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto relative", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xl", - children: "Snippets" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-10 h-10 plain-text", - onClick: ()=>{ - setOpenSnippetsModal(false); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((Close_default()), {}) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap relative w-full min-h-[100px] items-start", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - snippets && Array.isArray(snippets) && snippets[0] && snippets.map((snippet, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col w-full items-start p-4 border border-slate-200 border-solid rounded cursor-pointer hover:shadow-lg transition-all hover:bg-slate-100", - onClick: (e)=>{ - if (targetElement) { - // const parser = new DOMParser(); - // const parsedNode = parser.parseFromString(Object.values(snippet)[0], "text/html"); - // const newElement = parsedNode.body.firstChild - const newElement = document.createElement("div"); - newElement.innerHTML = Object.values(snippet)[0]; - /** @type {any} */ const targetNewElement = newElement.firstChild; - if (targetNewElement) { - targetElement.appendChild(targetNewElement); - targetNode({ - editor: editor, - node: targetNewElement, - setTargetElement: setTargetElement - }); - } - setOpenSnippetsModal(false); - } else { - editor.insertContent(Object.values(snippet)[0], {}); - setOpenSnippetsModal(false); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-lg", - children: Object.keys(snippet)[0] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full block border border-slate-300 border-solid rounded-sm", - dangerouslySetInnerHTML: { - __html: Object.values(snippet)[0] - } - }) - ] - }, index); - }) - ] - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -// EXTERNAL MODULE: external "@mui/icons-material/SkipNextTwoTone" -var SkipNextTwoTone_ = __webpack_require__(282); -var SkipNextTwoTone_default = /*#__PURE__*/__webpack_require__.n(SkipNextTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/SkipPreviousTwoTone" -var SkipPreviousTwoTone_ = __webpack_require__(3729); -var SkipPreviousTwoTone_default = /*#__PURE__*/__webpack_require__.n(SkipPreviousTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DeleteTwoTone" -var DeleteTwoTone_ = __webpack_require__(6502); -var DeleteTwoTone_default = /*#__PURE__*/__webpack_require__.n(DeleteTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/TextRotateVerticalTwoTone" -var TextRotateVerticalTwoTone_ = __webpack_require__(4864); -var TextRotateVerticalTwoTone_default = /*#__PURE__*/__webpack_require__.n(TextRotateVerticalTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/TextRotateUpTwoTone" -var TextRotateUpTwoTone_ = __webpack_require__(1358); -var TextRotateUpTwoTone_default = /*#__PURE__*/__webpack_require__.n(TextRotateUpTwoTone_); -;// CONCATENATED MODULE: ./components/su/components/RichText/RichTextExtensionBlock.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - - - - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {React.MutableRefObject} props.editorRef - */ function RichTextExtensionBlock({ editorRef }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[targetElement:HTMLElement | null, setTargetElement: React.Dispatch>]} */ // @ts-ignore - const [targetElement, setTargetElement] = external_react_default().useState(null); - const [openStyleModal, setOpenStyleModal] = external_react_default().useState(false); - const [openSnippetsModal, setOpenSnippetsModal] = external_react_default().useState(false); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end", - style: { - boxShadow: "0 0 40px rgba(15, 23, 42, 0.2)" - }, - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - column: true, - className: "gap-[1px]", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - targetNode({ - editor: editorRef.current, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button secondary", - children: /*#__PURE__*/ jsx_runtime_.jsx((AdsClickTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - moveElement({ - targetElement: targetElement, - back: true - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button dark", - children: /*#__PURE__*/ jsx_runtime_.jsx((TextRotateUpTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - moveElement({ - targetElement: targetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button dark", - children: /*#__PURE__*/ jsx_runtime_.jsx((TextRotateVerticalTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - setOpenSnippetsModal(true); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((ViewTimelineTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - setOpenStyleModal(true); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((StyleTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - duplicateNode({ - editor: editorRef.current, - targetElement, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((DifferenceTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - selectParent({ - editor: editorRef.current, - targetElement, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((HighlightAltTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - selectChild({ - editor: editorRef.current, - targetElement, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((HighlightAltTwoTone_default()), { - className: "rotate-180" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - selectPrevious({ - editor: editorRef.current, - targetElement, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((SkipPreviousTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - selectNext({ - editor: editorRef.current, - targetElement, - setTargetElement - }); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button", - children: /*#__PURE__*/ jsx_runtime_.jsx((SkipNextTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - if (targetElement) { - // @ts-ignore - const parentElement = targetElement.parentNode; - parentElement.removeChild(targetElement); - targetNode({ - editor: editorRef.current, - node: parentElement, - setTargetElement - }); - } - }, - style: { - width: "40px", - height: "40px" - }, - className: "button bg-red-500", - children: /*#__PURE__*/ jsx_runtime_.jsx((DeleteTwoTone_default()), {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - onClick: ()=>{ - const editorDocument = editorRef.current.getDoc(); - editorDocument.querySelectorAll(".target-node").forEach((elt)=>{ - elt.classList.remove("target-node"); - }); - // @ts-ignore - setTargetElement(null); - }, - style: { - width: "40px", - height: "40px" - }, - className: "button white", - children: /*#__PURE__*/ jsx_runtime_.jsx((DoDisturbAltTwoTone_default()), { - className: "rotate-180" - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(material_.Drawer, { - open: openStyleModal, - onClose: ()=>{ - setOpenStyleModal(false); - }, - anchor: "right", - children: /*#__PURE__*/ jsx_runtime_.jsx(ElementStyleModalContent, { - targetElement: targetElement, - setOpenStyleModal: setOpenStyleModal - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(material_.Modal, { - open: openSnippetsModal, - onClose: ()=>{ - setOpenSnippetsModal(false); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(HTMLSnippetsModalContent, { - targetElement: targetElement, - setTargetElement: setTargetElement, - editor: editorRef.current, - setOpenSnippetsModal: setOpenSnippetsModal - }) - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/components/RichText/DocsRichTextBlock.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {any} [props.blockObject] - * @param {string} [props.placeholder] - * @param {React.MutableRefObject} [props.editorRef] - * @param {number} [props.height] - * @param {boolean} [props.extend] - */ function DocsRichTextBlock({ user , blockObject , placeholder , editorRef , height , extend , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(tinymce_react_.Editor, { - tinymceScriptSrc: "/tinymce/tinymce.min.js", - onInit: (evt, editor)=>{ - if (extend) { - const editorBody = editor.getBody(); - editorBody.style.padding = "40px"; - editorBody.className = "RTE-DOCS"; - } - if (editorRef) { - editorRef.current = editor; - } - }, - initialValue: blockObject && blockObject["content"] ? blockObject["content"] : "", - init: { - height: height ? height : 400, - width: "100%", - relative_urls: false, - remove_script_host: false, - menubar: false, - plugins: extend ? [ - "advlist", - "autolink", - "lists", - "link", - "image", - "charmap", - "anchor", - "searchreplace", - "visualblocks", - "code", - "fullscreen", - "insertdatetime", - "media", - "table", - "preview", - "help", - "wordcount", - "codesample", - ] : [ - "link" - ], - toolbar: extend ? "undo redo | blocks | " + "bold italic forecolor | codesample link image | alignleft aligncenter " + "alignright alignjustify | bullist numlist outdent indent | " + "removeformat" : "undo redo | blocks | link", - content_style: "body { font-family:Helvetica,Arial,sans-serif; font-size:18px }", - placeholder: placeholder ? placeholder : "Type something ...", - content_css: extend ? "/styles/tiny.css" : undefined, - statusbar: extend ? true : false - } - }), - extend && editorRef && /*#__PURE__*/ jsx_runtime_.jsx(RichTextExtensionBlock, { - editorRef: editorRef - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -;// CONCATENATED MODULE: ./components/su/docs/CreatePageContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let timeout; -/** - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} [props.data] - Page content available - * @param {import("@/package-shared/types").UserType} props.user - */ function CreatePageContent({ data , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isUpdate = data?.title ? true : false; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [pageLevel, setPageLevel] = external_react_default().useState(data?.level); - const [pageOrder, setPageOrder] = external_react_default().useState(data?.page_order); - /** @type {[ targetParentPage: any, setTargetParentPage: React.Dispatch> ]} */ // @ts-ignore - const [parentPages, setParentPages] = external_react_default().useState(null); - /** @type {[ targetParentPage: any, setTargetParentPage: React.Dispatch> ]} */ // @ts-ignore - const [targetParentPage, setTargetParentPage] = external_react_default().useState(null); - /** @type {React.MutableRefObject} */ const descEditorRef = external_react_default().useRef(); - /** @type {React.MutableRefObject} */ const contentEditorRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - if (parseInt(pageLevel) > 1) { - window.clearTimeout(timeout); - timeout = window.setTimeout(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/docs/grab-parent-pages", { - method: "post", - body: { - pagesLevel: parseInt(pageLevel) - 1, - currentPageId: data?.id - } - }).then((res)=>{ - if (res.success && res.result && Array.isArray(res.result) && res.result[0]) { - setParentPages(res.result); - if (data.parent_id) { - const targetFilterPage = res.result.filter((/** @type {any} */ pg)=>pg.id == data.parent_id); - if (targetFilterPage[0]) { - setTargetParentPage(targetFilterPage[0]); - } else { - setTargetParentPage(res.result[0]); - } - } else { - setTargetParentPage(res.result[0]); - } - } - }); - }, 500); - } else { - setParentPages(null); - setTargetParentPage(null); - } - }, [ - pageLevel - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "items-start justify-start p-6", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "mb-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: isUpdate ? "Update page" : "Create a new Docs Page" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "mb-4", - children: /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper flex-col items-stretch gap-10 w-full relative", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - /** @type {HTMLInputElement} */ // @ts-ignore - const titleInputEl = formEl["title"]; - const editorDocument = contentEditorRef.current?.getDoc(); - const descEditorDocument = descEditorRef.current?.getDoc(); - editorDocument?.querySelectorAll(".target-node").forEach((tnode)=>tnode.classList.remove("target-node")); - /** - * ### Update URL - * @param {HTMLAnchorElement} anchor - */ function updateUrl(anchor) { - const url = anchor.href; - if (url?.match(/\~/)) { - anchor.href = url.replace(/.*?\~\//, "/"); - } - if (url?.match(/\.\.\//)) { - anchor.href = url.replace(/.*?\.\.\//, "/"); - } - } - editorDocument?.querySelectorAll("a").forEach((anchor)=>{ - updateUrl(anchor); - }); - descEditorDocument?.querySelectorAll("a").forEach((anchor)=>{ - updateUrl(anchor); - }); - const description = descEditorRef.current?.getContent(); - const content = contentEditorRef.current?.getBody().innerHTML; - const inner_text = contentEditorRef.current?.getBody().innerText; - const title = titleInputEl.value; - /** @type {any} */ let fetchObject = { - title, - description, - content, - text_content: inner_text, - level: pageLevel, - page_order: pageOrder - }; - if (isUpdate) { - fetchObject.id = data.id; - } - if (targetParentPage?.id) { - fetchObject.parent_id = targetParentPage.id; - } - (0,fetchApi/* default */.Z)(`/api/admin/docs/${isUpdate ? "update-page" : "add-page"}`, { - method: "post", - body: fetchObject - }).then((res)=>{ - if (res.success) { - // window.location.pathname = `/su/docs`; - window.location.reload(); - } else { - alert("Operation Failed!"); - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - }, - className: "flex flex-col gap-4 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - placeholder: "Enter a title", - fontSize: "30px", - name: "title", - defaultValue: isUpdate ? data.title : null - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - numberText: true, - placeholder: "Level", - defaultValue: isUpdate ? pageLevel : "1", - maxWidth: "140px", - minValue: 1, - maxValue: 4, - step: 1, - name: "page-level", - title: "Page Level", - setValue: setPageLevel - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - numberText: true, - placeholder: "Level", - defaultValue: isUpdate ? pageOrder : "1", - maxWidth: "140px", - minValue: 1, - step: 1, - name: "page-order", - title: "Page Order", - setValue: setPageOrder - }), - parentPages && Array.isArray(parentPages) && /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: parentPages.map((pageObject)=>{ - return { - title: pageObject.title, - payload: pageObject.id, - default: targetParentPage?.id == pageObject.id - }; - }), - title: "Parent Page", - required: true, - onChangeHandler: (e)=>{ - const targetPage = parentPages.filter((pg)=>pg.id == e.target.value); - if (targetPage[0]) { - setTargetParentPage(targetPage[0]); - } else { - window.alert("No Matching parent page!"); - } - } - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(DocsRichTextBlock, { - placeholder: "Describe this page briefly", - editorRef: descEditorRef, - blockObject: isUpdate ? { - content: data.description - } : null, - height: 200 - }), - /*#__PURE__*/ jsx_runtime_.jsx(DocsRichTextBlock, { - placeholder: "Page Content", - editorRef: contentEditorRef, - blockObject: isUpdate ? { - content: data.content - } : null, - height: 600, - extend: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - children: isUpdate ? "Update Page" : "Add Page" - }) - ] - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2414.js b/dsql-app/.local_dist/server/chunks/2414.js new file mode 100644 index 0000000..6d924ab --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/2414.js @@ -0,0 +1 @@ +"use strict";exports.id=2414,exports.ids=[2414],exports.modules={72414:(e,s,c)=>{function t({user:e,userType:s,setLoading:c}){return null}c.d(s,{A:()=>t}),c(8732),c(82015),c(63715),c(76601)},76601:(e,s,c)=>{c.d(s,{A:()=>t});async function t(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2434.js b/dsql-app/.local_dist/server/chunks/2434.js deleted file mode 100644 index a334067..0000000 --- a/dsql-app/.local_dist/server/chunks/2434.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; -exports.id = 2434; -exports.ids = [2434]; -exports.modules = { - -/***/ 1095: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ CodeBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6843); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9174); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * content: string, - * language: string, - * style?: React.CSSProperties, - * }} props - React component props including { children } - */ function CodeBlock({ content , language , style }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const [open, setOpen] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const handleClick = ()=>{ - setOpen(true); - }; - /** - * ## Handle Close - * @param {*} event - * @param {*} reason - * @returns - */ const handleClose = (event, reason)=>{ - if (reason === "clickaway") { - return; - } - setOpen(false); - }; - const action = /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray", - style: { - border: "none", - padding: "2px", - width: "20px", - height: "20px", - color: "white" - }, - // @ts-ignore - onClick: handleClose, - children: "✖" - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("pre", { - className: `language-${language ? language : "javascript"} w-full overflow-hidden code-block relative max-w-4xl`, - style: style ? style : {}, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("code", { - className: `w-full`, - style: { - wordBreak: "break-all" - }, - children: content - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined absolute top-2 right-2 z-20 copy-code hover:opacity-50", - style: { - padding: "2px", - border: "none" - }, - onClick: (/** @type {any} */ e)=>{ - navigator.clipboard.writeText(content).then(()=>{ - handleClick(); - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2___default()), { - fontSize: "small", - color: "action" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3___default()), { - open: open, - autoHideDuration: 2000, - onClose: handleClose, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "h-full text-white px-4 py-2 justify-between rounded", - style: { - maxWidth: "250px", - width: "250px", - backgroundColor: "#0b8862" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Code Copied!" - }), - action - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2435.js b/dsql-app/.local_dist/server/chunks/2435.js deleted file mode 100644 index 4d19e09..0000000 --- a/dsql-app/.local_dist/server/chunks/2435.js +++ /dev/null @@ -1,348 +0,0 @@ -"use strict"; -exports.id = 2435; -exports.ids = [2435]; -exports.modules = { - -/***/ 2435: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ SuDocsPageListContent) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "@mui/icons-material/ArticleTwoTone" -var ArticleTwoTone_ = __webpack_require__(1891); -var ArticleTwoTone_default = /*#__PURE__*/__webpack_require__.n(ArticleTwoTone_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/AccountTreeTwoTone" -var AccountTreeTwoTone_ = __webpack_require__(4118); -var AccountTreeTwoTone_default = /*#__PURE__*/__webpack_require__.n(AccountTreeTwoTone_); -;// CONCATENATED MODULE: ./components/su/components/PageCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").MYSQL_docs_pages_table_def} props.docPageObject - */ function PageCard({ docPageObject }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ childPages: import("@/package-shared/types").MYSQL_docs_pages_table_def[], setChildPages: React.Dispatch> ]} */ // @ts-ignore - const [childPages, setChildPages] = external_react_default().useState([]); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/docs/get-child-pages", { - method: "post", - body: { - pageId: docPageObject.id - } - }).then((res)=>{ - if (res.success) { - setChildPages(res.result); - } - }); - }, []); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card col relative cursor-pointer", - onClick: (e)=>{ - // @ts-ignore - if (e.target?.closest(".cancel-link")) { - e.preventDefault(); - } else { - window.location.pathname = `/su/docs/pages/${docPageObject.id}`; - } - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((ArticleTwoTone_default()), { - color: "inherit", - className: "opacity-40 text-gray-600" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 relative z-10", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "title", - children: docPageObject.title - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "-my-3", - dangerouslySetInnerHTML: { - __html: docPageObject.description || "" - } - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "ml-auto cancel-link", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: ()=>{ - window.location.href = `/su/docs/edit-page?id=${docPageObject.id}`; - }, - className: "outlined small-text light-gray", - children: "Edit Page" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: ()=>{ - if (window.confirm("Delete this page?")) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/admin/docs/delete-page", { - method: "post", - body: docPageObject - }).then((res)=>{ - if (res.success) { - window.location.reload(); - } else {} - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - }, - className: "outlined small-text light-gray", - children: "Delete Page" - }) - ] - }) - ] - }), - childPages && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((AccountTreeTwoTone_default()), { - className: "opacity-20", - fontSize: "small" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300 font-semibold", - children: "Children Pages" - }) - ] - }), - childPages.map((childPage, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card w-full", - onClick: ()=>{ - window.location.pathname = `/su/docs/pages/${childPage.id}`; - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((ArticleTwoTone_default()), { - color: "inherit", - className: "opacity-40 text-gray-500" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: childPage.title - }) - ] - }, index); - }) - ] - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -;// CONCATENATED MODULE: ./components/su/docs/SuDocsPageListContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Super User Page List Component - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - */ function SuDocsPageListContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { env } = data; - /** @type {import("@/package-shared/types").MYSQL_docs_pages_table_def[]} */ const docPages = data.docPages; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * ## Persist Function - * @param {boolean} pull - */ function persist(pull) { - if (window.confirm(pull ? "Update Docs DB from JSON file?" : "Update docs json file?")) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/admin/docs/persist", { - method: "post", - body: { - pull - } - }).then((res)=>{ - if (res.success) { - window.alert(pull ? "Docs database table Updated Sucessfully!" : "JSON data written Successfully!"); - } else { - window.alert("Operation failed!"); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }).catch((err)=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - } - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "items-start justify-start p-6", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex items-center justify-between w-full mb-6", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Documentation Pages" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/su/docs/create-page`, - className: "button", - children: "Create Page" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray", - onClick: ()=>{ - persist(false); - }, - children: "Push" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray", - onClick: ()=>{ - persist(true); - }, - children: "Pull" - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "paper flex-col items-stretch gap-10 w-full", - children: docPages.map((docPageObject, index)=>/*#__PURE__*/ jsx_runtime_.jsx(PageCard, { - docPageObject: docPageObject - }, index)) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2630.js b/dsql-app/.local_dist/server/chunks/2630.js deleted file mode 100644 index 17385ca..0000000 --- a/dsql-app/.local_dist/server/chunks/2630.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; -exports.id = 2630; -exports.ids = [2630]; -exports.modules = { - -/***/ 2630: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ importExportTableDataFn) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const serverError = __webpack_require__(2163); -const DB_HANDLER = __webpack_require__(2224); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} ExportTableDataFnReturn - * @property {any} [tableData] - */ /** - * ============================================================================== - * @param {Object} params - Single object parameter - * @param {"export" | "import"} params.paradigm - * @param {string | number} params.userId - * @param {string} params.dbName - * @param {string} params.tableName - * @param {any} params.payload - * @param {"JSON" | "base64" | "object"} params.payloadType - * @return {Promise} - */ async function importExportTableDataFn({ paradigm , userId , dbName , tableName , payload , payloadType , }) { - /** @type {ExportTableDataFnReturn} */ let returnObject = {}; - try { - const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${userId}_${dbName.replace(/ /g, "")}`; - switch(paradigm){ - case "export": - const tableData = await DB_HANDLER(`SELECT * FROM \`${dbFullName}\`.\`${tableName}\``); - returnObject["tableData"] = tableData; - break; - case "import": - const jsonData = payloadType == "base64" ? Buffer.from(payload, "base64").toString() : payloadType == "JSON" ? payload : payload; - const writeData = payloadType === "object" ? payload : JSON.parse(jsonData); - for(let i = 0; i < writeData.length; i++){ - const dataToWrite = writeData[i]; - const newEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - data: dataToWrite, - dbFullName: dbFullName, - tableName: tableName, - dbContext: "Dsql User", - paradigm: "Full Access", - duplicateColumnName: "id", - duplicateColumnValue: dataToWrite?.id, - update: true - }); - if (newEntry.error) { - throw new Error(newEntry.error); - } - } - break; - default: - return null; - } - return returnObject; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/importExportTableDataFn", - message: error.message - }); - return null; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2733.js b/dsql-app/.local_dist/server/chunks/2733.js deleted file mode 100644 index 877180b..0000000 --- a/dsql-app/.local_dist/server/chunks/2733.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -exports.id = 2733; -exports.ids = [2733]; -exports.modules = { - -/***/ 2733: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UserImage) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6718); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {string | import("@/package-shared/types").ImageObjectType} props.userImage - * @param {React.Dispatch>} props.setUserImage - * @param {Object} [props.database] - * @param {Object} [props.className] - */ function UserImage({ user , userImage , setUserImage , database , className , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const imagePreviewRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card no-hover col" + (className ? " " + className : ""), - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "bg-white rounded-full overflow-hidden w-24 h-24", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: userImage ? typeof userImage === "string" ? userImage : userImage.imageBase64Full : "/images/user-preset.png", - alt: "Database Image", - width: 100, - className: "w-full h-full object-cover", - // @ts-ignore - ref: imagePreviewRef, - "data-imagepreview": "image" - }) - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full flex-col image-selector-wrapper", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "button outlined secondary w-full whitespace-normal", - onClick: (e)=>{ - e.target// @ts-ignore - .closest(".image-selector-wrapper").querySelector("input").click(); - }, - children: "Upload Image" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - accept: ".png,.jpg,.jpeg,.webp", - placeholder: "Choose Database Image", - className: "hidden", - onChange: async (e)=>{ - let imageData = await (0,_functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ - // @ts-ignore - imageInputFile: e.target.files[0], - maxWidth: 400 - }); - setUserImage(imageData); - } - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2896.js b/dsql-app/.local_dist/server/chunks/2896.js deleted file mode 100644 index 525d39a..0000000 --- a/dsql-app/.local_dist/server/chunks/2896.js +++ /dev/null @@ -1,196 +0,0 @@ -"use strict"; -exports.id = 2896; -exports.ids = [2896]; -exports.modules = { - -/***/ 9350: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DocsGenereicHero) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.title - * @param {string} props.description - */ function DocsGenereicHero({ title , description }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "py-14", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start max-w-[740px] text-left", - style: { - minWidth: "45%" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "m-0 leading-tight", - children: title - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-normal text-xl -my-4", - dangerouslySetInnerHTML: { - __html: description - } - }) - ] - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/grid.webp", - alt: "Dotted image background", - className: "absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 1273: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const serverError = __webpack_require__(7023); -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(3260); -const connection = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - database: process.env.DSQL_DB_NAME, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * Main DB Handler Function - * ============================================================================== - * @async - * - * @param {any} args - * @returns {Promise} - */ module.exports = async function dbHandler(...args) { - "production"?.match(/dev/) && fs.appendFileSync("./.tmp/sqlQuery.sql", args[0] + "\n" + Date() + "\n\n\n", "utf8"); - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - results = await new Promise((resolve, reject)=>{ - // @ts-ignore - connection.query(...args, (error, result, fields)=>{ - if (error) { - resolve({ - error: error.message - }); - } else { - resolve(result); - } - }); - }); - await connection.end(); - } catch (/** @type {any} */ error) { - fs.appendFileSync("./.tmp/dbErrorLogs.txt", JSON.stringify(error, null, 4) + "\n" + Date() + "\n\n\n", "utf8"); - results = null; - serverError({ - component: "dbHandler", - message: error.message - }); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results) { - return JSON.parse(JSON.stringify(results)); - } else { - return null; - } -}; - - -/***/ }), - -/***/ 3260: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -/** - * @returns {string | (import("tls").SecureContextOptions & { rejectUnauthorized?: boolean | undefined;}) | undefined} - */ module.exports = function grabDbSSL() { - const SSL_DIR = process.env.DSQL_SSL_DIR; - if (!SSL_DIR?.match(/./)) { - return undefined; - } - const caFilePath = `${SSL_DIR}/ca-cert.pem`; - if (!fs.existsSync(caFilePath)) { - console.log(`${caFilePath} does not exist`); - return undefined; - } - return { - ca: fs.readFileSync(`${SSL_DIR}/ca-cert.pem`) - }; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/2996.js b/dsql-app/.local_dist/server/chunks/2996.js new file mode 100644 index 0000000..23bcd5a --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/2996.js @@ -0,0 +1,13 @@ +"use strict";exports.id=2996,exports.ids=[2996],exports.modules={55312:(e,a,t)=>{t.d(a,{A:()=>o});var s=t(8732),l=t(82015),i=t.n(l),r=t(32415),n=t(2471);t(27462),t(55158);var d=t(56987),c=t(12042);function o(e){let{user:a,dbImage:t,setDbImage:l,query:o}=i().useContext(n.AddDatabaseContext);if(!a)return(0,s.jsx)(i().Fragment,{});let[u,m]=i().useState(null),[p,g]=i().useState(!1);return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[p&&(0,s.jsx)(r.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),a&&t&&l&&(0,s.jsx)(d.A,{user:a,dbImage:t,setDbImage:l,setLoading:g,query:o})]}),a&&t&&l&&(0,s.jsx)(c.A,{user:a,dbImage:t,setDbImage:l})]})})}},56987:(e,a,t)=>{let s;t.d(a,{A:()=>g});var l=t(8732),i=t(82015),r=t.n(i),n=t(27462),d=t(64535);t(22326);var c=t(63715),o=t(86152);async function u({e,setLoading:a,dbImage:t,database:s,user:l}){a(!0);let i={db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null,db_name:e.target.database_name?.value?.match(/./)?e.target.database_name.value:null,db_slug:e.target.database_slug?.value?.match(/./)?e.target.database_slug.value:null,db_full_name:s.db_full_name,id:s.id,active_clone:s.active_clone,active_clone_parent_db:s.active_clone_parent_db};if(t){if("string"==typeof t)i.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:i.db_slug.replace(/_/g,"-"),type:"image"}},!0);i.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else i.db_image="/images/database-placeholder.png";(0,c.A)("/api/updateUserDatabase",{method:"post",body:i},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.pathname=`/admin/${l?.id}/databases`,setTimeout(()=>{a(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{a(!1)},1e3))})}async function m({e,setLoading:a,dbImage:t,keepUpdated:s,keepDataUpdated:l,query:i,user:r}){a(!0);let n={db_name:e.target.database_name.value,db_slug:e.target.database_slug.value,db_description:e.target.database_description?.value?.match(/./)?e.target.database_description.value:null};if(t){if("string"==typeof t)n.db_image=t;else if("object"==typeof t){let e=await (0,c.A)("/api/addUserMedia",{method:"post",body:{media:[t],folder:n.db_slug.replace(/_/g,"-"),type:"image"}},!0);n.db_image=e?.mediaData[0]?.media_thumbnail_url?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}i?.duplicate&&(n.duplicate=i.duplicate,n.keepUpdated=!!s&&s,n.keepDataUpdated=!!l&&l),(0,c.A)("/api/createUserDatabase",{method:"post",body:n},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.pathname=`/admin/${r?.id}/databases/${n.db_slug}`}):setTimeout(()=>{a(!1)},1e3)})}var p=t(58403);function g({user:e,dbImage:a,setDbImage:t,database:i,setLoading:c,query:o}){async function g(a){return i?.db_slug===a?null:await (0,n.A)({tableName:"user_databases",columnName:"db_slug",value:a,userId:e.id})}let[h,b]=r().useState(null),[x,f]=r().useState(!1),[_,w]=r().useState(!1);return(0,l.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:t=>{t.preventDefault(),i?u({e:t,setLoading:c,dbImage:a,database:i,user:e}):m({e:t,setLoading:c,dbImage:a,keepUpdated:x,keepDataUpdated:_,query:o,user:e})},children:[h&&(0,l.jsx)(d.A,{message:h}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,l.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),b(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(s),s=setTimeout(()=>{g(e).then(e=>{e?.result?(t.database_slug.classList.add("warning"),b("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),b(null))})},300)}},defaultValue:i?i.db_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,l.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),b(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(s),s=setTimeout(()=>{g(t).then(e=>{e?.result?(a.classList.add("warning"),b("Duplicate Database Name")):(a.classList.remove("warning"),b(null))})},300)},defaultValue:i?i.db_slug:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,l.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:i?i.db_description:""})]}),o?.duplicate&&(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("div",{className:"card col items-start",children:[(0,l.jsx)(p.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?f(!0):f(!1)}}]}),(0,l.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,l.jsxs)("button",{type:"submit",className:"w-full",children:[i?"Update":"Create"," Database"]})]})}},12042:(e,a,t)=>{t.d(a,{A:()=>c});var s=t(8732),l=t(82015),i=t.n(l),r=t(79100),n=t(55158),d=t(62506);function c({user:e,dbImage:a,setDbImage:t,database:l}){let c=i().useRef();return(0,s.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,s.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,s.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,s.jsx)("img",{src:a?"string"==typeof a?a:a.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:c,"data-imagepreview":"image"})}),(0,s.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,s.jsxs)(d.A,{column:!0,className:"w-full",children:[(0,s.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,n.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,s.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{let a=e.target;a?.closest("#edit-database-image-option-wrapper")?.querySelector("input")?.click()},children:"Choose Image from Computer"})]}),(0,s.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let a=e.target.files[0];t(await (0,r.A)({imageInputFile:a,maxWidth:400}))}})]})]})}},42105:(e,a,t)=>{t.d(a,{A:()=>d});var s=t(8732),l=t(82015),i=t.n(l);t(63715);var r=t(55158),n=t(32415);function d({setDbImage:e}){let[a,t]=i().useState(!0),[l,d]=i().useState(null);return(0,s.jsxs)(r.Ay,{title:"user-media-popup",children:[a&&(0,s.jsx)(n.A,{width:"20px"}),(0,s.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,s.jsx)("div",{className:"grid grid-cols-2",children:l&&l[0]&&l.filter(e=>"image"==e.media_type).map((a,t)=>(0,s.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{e(a.media_thumbnail_url||null),(0,r.fs)()},children:(0,s.jsx)("img",{src:a.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}t(64417)},58403:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8732);function l({name:e,checkBoxValues:a,setAlert:t,labelColor:l,flexRow:i,baseText:r,smallText:n,className:d}){return(0,s.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:a.map((a,i)=>{let{payload:d,title:c,onChangeHandler:o,fixed:u,jsx:m}=a,p=a.name?`${e}-${a.name}`:d?e+"-"+d:e;return(0,s.jsxs)("div",{className:"flex items-center"+(a.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(a?.className?a.className:""),children:[(0,s.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!a.default,name:p,id:p,onChange:e=>{t&&t(null),o&&o(e,a)},value:d,style:{minWidth:"20px"}}),m||(0,s.jsx)("label",{htmlFor:p,className:"m-0 "+(l||"text-slate-800 dark:text-white/80")+(r||n?" text-base":" text-lg"),children:c})]},i+1)})})}t(82015)},64535:(e,a,t)=>{t.d(a,{A:()=>l});var s=t(8732);function l({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}t(82015)},27462:(e,a,t)=>{t.d(a,{A:()=>l}),t(22326);var s=t(63715);async function l({tableName:e,columnName:a,value:t,dbFullName:l,dispatch:i,userId:r,dbId:n}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${a}&value=${t}${l?"&dbFullName="+l:""}${r?"&userId="+r:""}${n?"&dbId="+n:""}`)}},79100:(e,a,t)=>{t.d(a,{A:()=>s});async function s({imageInputFile:e,maxWidth:a}){let t,s,l=document.querySelector("[data-imagepreview='image']"),i=e.name.replace(/\..*/,""),r=document.createElement("canvas"),n=e.type,d=a||null,c=URL.createObjectURL(e),o=new Image;return o.src=c,t=await new Promise((e,a)=>{o.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},o.onload=function(){if(URL.revokeObjectURL(this.src),d){let e=d/o.naturalWidth;r.width=o.naturalWidth{e.src=t}),e(t)}}),s=await new Promise((e,a)=>{r.toBlob(a=>{e(a?.size)},n,.95)}),{imageBase64:t.replace(/.*?base64,/,""),imageBase64Full:t,imageName:i,imageSize:s}}},41658:(e,a,t)=>{let s=t(29021),l=t(22373),i=t(13608);e.exports=async function(e){let a;"production".match(/dev/)&&s.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{a=await i(e)}catch(e){l({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return a||null}},22373:(e,a,t)=>{let s=t(29021);e.exports=async function({user:e,message:a,component:t,noMail:l}){let i=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${a} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let r=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` + + + + +${r}`)}},13608:(e,a,t)=>{let s=t(9973),l=t(31976),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function(...e){try{return new Promise((a,t)=>{i.query(...e).then(e=>{i.end(),a(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),a({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},2471:(e,a,t)=>{t.r(a),t.d(a,{AddDatabaseContext:()=>f,default:()=>_,getServerSideProps:()=>w});var s=t(8732),l=t(82015),i=t.n(l),r=t(95222),n=t(20048),d=t.n(n),c=t(41658),o=t.n(c),u=t(46437),m=t(58548),p=t(55312);function g(e){let{query:a,duplicateDb:t,user:l}=i().useContext(f),r=a?.duplicate?(0,s.jsxs)("span",{children:["Duplicate"," ",(0,s.jsx)("a",{href:`/admin/${l?.id}/databases/${t?.db_slug}`,target:"_blank",children:t?.db_name})," ","Database"]}):"Add A New Database";return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(u.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:r})]}),(0,s.jsx)(m.A,{user:l})]}),(0,s.jsx)(p.A,{})]})}var h=t(42105),b=t(67216),x=t.n(b);let f=i().createContext({});function _({user:e,databases:a,query:t,duplicateDb:l}){let n=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[d,c]=i().useState("/images/database-placeholder.png");return(0,s.jsx)(r.A,{head:n,user:e,children:(0,s.jsxs)(f.Provider,{value:{user:e,databases:a,dbImage:d,setDbImage:c,query:t,duplicateDb:l},children:[(0,s.jsx)(g,{}),(0,s.jsx)(h.A,{setDbImage:c})]})})}async function w({req:e,res:a,query:t}){let s=await d()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};if(!s?.verification_status?.toString()?.match(/1/))return{redirect:{destination:"/admin",permanent:!1}};let l=await o()(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${s.id}%'`),i={};if(t.duplicate){let e=await x()(`SELECT * FROM user_databases WHERE db_full_name='${t.duplicate}'`);e&&e[0]&&(i=e[0])}return{props:{user:s,databases:l,query:t,duplicateDb:i}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3017.js b/dsql-app/.local_dist/server/chunks/3017.js deleted file mode 100644 index 7ffdafa..0000000 --- a/dsql-app/.local_dist/server/chunks/3017.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -exports.id = 3017; -exports.ids = [3017]; -exports.modules = { - -/***/ 3017: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -// const handleNodemailer = require("./handleNodemailer"); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * user?: { id?: number | string, first_name?: string, last_name?: string, email?: string } & *, - * message: string, - * component?: string, - * noMail?: boolean, - * }} params - user id - * - * @returns {Promise} - */ module.exports = async function serverError({ user , message , component , noMail , }) { - const log = `🚀 SERVER ERROR ===========================\nUser Id: ${user?.id}\nUser Name: ${user?.first_name} ${user?.last_name}\nUser Email: ${user?.email}\nError Message: ${message}\nComponent: ${component}\nDate: ${Date()}\n========================================`; - if (!fs.existsSync(`./.tmp/error.log`)) { - fs.writeFileSync(`./.tmp/error.log`, "", "utf-8"); - } - const initialText = fs.readFileSync(`./.tmp/error.log`, "utf-8"); - fs.writeFileSync(`./.tmp/error.log`, log); - fs.appendFileSync(`./.tmp/error.log`, `\n\n\n\n\n${initialText}`); -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3247.js b/dsql-app/.local_dist/server/chunks/3247.js new file mode 100644 index 0000000..e5511ea --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/3247.js @@ -0,0 +1,14 @@ +"use strict";exports.id=3247,exports.ids=[3247],exports.modules={43001:(e,t,s)=>{s.d(t,{A:()=>b});var a=s(8732),r=s(82015),i=s.n(r),n=s(26295),d=s(58548),l=s(24671);s(37515);var c=s(42602);function x(e){let{databases:t,setTargetDatabase:s,user:r}=i().useContext(n.DashboardContext);return(0,a.jsx)(i().Fragment,{children:(0,a.jsx)(c.A,{databases:t,setTargetDatabase:s,title:"Recently added Databases",more:!0,user:r})})}var o=s(92736),u=s(34637),m=s(93213),h=s(83158);let j=(0,s(82544).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function y({icon:e,metric:t,count:s,url:r}){return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:e}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:s}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:t})]})]})}function C(e){let{databases:t,setTargetDatabase:s,metrics:r,user:d}=i().useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(y,{metric:"Databases Created",count:r?.dbCount||0,icon:(0,a.jsx)(u.A,{size:20,className:"text-secondary2"}),url:`/admin/${d?.id}/databases`}),(0,a.jsx)(y,{metric:"Tables Created",count:r?.tablesCount||0,icon:(0,a.jsx)(m.A,{size:20,className:"text-primary"})}),(0,a.jsx)(y,{metric:"Media Added",count:r?.mediaCount||0,icon:(0,a.jsx)(h.A,{size:20,className:"text-slate-500"}),url:`/admin/${d?.id}/media`}),(0,a.jsx)(y,{metric:"API Keys",count:r?.apiKeysCount||0,icon:(0,a.jsx)(j,{size:20,className:"text-slate-900 dark:text-white"}),url:`/admin/${d?.id}/api-keys`})]})})}function b(e){let{databases:t,user:s}=i().useContext(n.DashboardContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(d.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,a.jsxs)(i().Fragment,{children:[(0,a.jsx)(C,{}),(0,a.jsx)(x,{}),(0,a.jsx)(o.A,{user:s})]}):(0,a.jsx)(l.A,{})]})}},93213:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},26295:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>m,default:()=>h,getServerSideProps:()=>j});var a=s(8732),r=s(82015),i=s.n(r),n=s(95222),d=s(20048),l=s.n(d),c=s(43001),x=s(34033),o=s(67216),u=s.n(o);let m=i().createContext({});function h({user:e,databases:t,metrics:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[d,l]=i().useState(null);return(0,a.jsx)(n.A,{head:r,user:e,children:(0,a.jsxs)(m.Provider,{value:{user:e,databases:t,targetDatabase:d,setTargetDatabase:l,metrics:s},children:[(0,a.jsx)(c.A,{}),(0,a.jsx)(x.A,{targetDatabase:d})]})})}async function j({req:e,res:t,query:s}){let a=await l()(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await u()("SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3",[a.id]),i=await u()(` + SELECT ( + SELECT COUNT(id) FROM user_databases WHERE user_id=? + ) AS dbCount, + ( + SELECT COUNT(id) FROM user_database_tables WHERE user_id=? + ) AS tablesCount, + ( + SELECT COUNT(id) FROM user_media WHERE user_id=? + ) AS mediaCount, + ( + SELECT COUNT(id) FROM api_keys WHERE user_id=? + ) AS apiKeysCount + `,[a.id,a.id,a.id,a.id]);return{props:{user:a,databases:r,metrics:i&&i[0]?i[0]:{}}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3314.js b/dsql-app/.local_dist/server/chunks/3314.js deleted file mode 100644 index 8d7f439..0000000 --- a/dsql-app/.local_dist/server/chunks/3314.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -exports.id = 3314; -exports.ids = [3314]; -exports.modules = { - -/***/ 3314: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ grabUserSchemaData) -/* harmony export */ }); -// @ts-check -const serverError = __webpack_require__(2317); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null} - */ function grabUserSchemaData({ userId }) { - try { - const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`); - const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8")); - return userSchemaData; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/grabUserSchemaData", - message: error.message - }); - return null; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3403.js b/dsql-app/.local_dist/server/chunks/3403.js deleted file mode 100644 index 1181b66..0000000 --- a/dsql-app/.local_dist/server/chunks/3403.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -exports.id = 3403; -exports.ids = [3403]; -exports.modules = { - -/***/ 3403: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(4824); -let DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_READ_ONLY_USERNAME, - password: process.env.DSQL_DB_READ_ONLY_PASSWORD, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {"Full Access" | "FA" | "Read Only"} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ function DSQL_USER_DB_HANDLER({ paradigm , database , queryString , queryValues , }) { - try { - return new Promise((resolve, reject)=>{ - const fullAccess = paradigm?.match(/full.access|^fa$/i) ? true : false; - try { - if (fullAccess) { - DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_FULL_ACCESS_USERNAME, - password: process.env.DSQL_DB_FULL_ACCESS_PASSWORD, - database: database, - ssl: grabDbSSL() - } - }); - } else { - DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_READ_ONLY_USERNAME, - password: process.env.DSQL_DB_READ_ONLY_PASSWORD, - database: database, - ssl: grabDbSSL() - } - }); - } - /** - * ### Run query Function - * @param {any} results - */ function runQuery(results) { - DSQL_USER.end(); - resolve(JSON.parse(JSON.stringify(results))); - } - /** - * ### Query Error - * @param {any} err - */ function queryError(err) { - DSQL_USER.end(); - resolve({ - error: err.message, - queryStringGenerated: queryString, - queryValuesGenerated: queryValues, - sql: err.sql - }); - } - if (queryValues && Array.isArray(queryValues) && queryValues[0]) { - DSQL_USER.query(queryString, queryValues).then(runQuery).catch(queryError); - } else { - DSQL_USER.query(queryString).then(runQuery).catch(queryError); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - fs.appendFileSync("./.tmp/dbErrorLogs.txt", error.message + "\n" + Date() + "\n\n\n", "utf8"); - resolve({ - error: error.message - }); - } - }); - } catch (/** @type {any} */ error) { - return { - success: false, - error: error.message - }; - } -} -module.exports = DSQL_USER_DB_HANDLER; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3468.js b/dsql-app/.local_dist/server/chunks/3468.js new file mode 100644 index 0000000..04b402d --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/3468.js @@ -0,0 +1 @@ +"use strict";exports.id=3468,exports.ids=[3468],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,h){return h in t?t[h]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,h)):"function"==typeof t&&"default"===h?t:void 0}}})},89095:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)([(0,c.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64S3 4.72 3 5v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"},"1")],"AssignmentTwoTone")},26406:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)([(0,c.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},77627:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)((0,c.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},8203:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)([(0,c.jsx)("path",{d:"M11.17 4H7v11h14V6h-7.83z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 11H7V4h4.17l2 2H21z"},"1"),(0,c.jsx)("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3z"},"2")],"FolderCopyTwoTone")},48557:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)((0,c.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOpenOutlined")},43857:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)([(0,c.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,c.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPersonRounded")},19196:(e,t,h)=>{var a=h(24994);t.A=void 0;var d=a(h(30887)),c=h(8732);t.A=(0,d.default)([(0,c.jsx)("path",{d:"m13.17 6-.59-.59L11.17 4H6v12h16V6zm4.33 4.5L21 15H7l4.5-6 3.5 4.51z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm5 9h14l-3.5-4.5-2.5 3.01L11.5 9zM22 4h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 12H6V4h5.17l1.41 1.41.59.59H22z"},"1")],"PermMediaTwoTone")},92441:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},41431:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},6070:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},34637:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10067:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]])},12697:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]])},10643:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},46760:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]])},17855:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},66918:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,h)=>{h.d(t,{A:()=>a});let a=(0,h(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{var h;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return h}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(h||(h={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/370.js b/dsql-app/.local_dist/server/chunks/370.js deleted file mode 100644 index 8cd2559..0000000 --- a/dsql-app/.local_dist/server/chunks/370.js +++ /dev/null @@ -1,84 +0,0 @@ -"use strict"; -exports.id = 370; -exports.ids = [370]; -exports.modules = { - -/***/ 370: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const http = __webpack_require__(3685); -const DB_HANDLER = __webpack_require__(9395); -const decrypt = __webpack_require__(5304); -const fs = __webpack_require__(7147); -const EXPIRY_TIME = 1000 * 60 * 60 * 24 * 1 * 7; // 7 days -/** - * @async - * @param {import("next").NextApiRequest | http.IncomingMessage & { cookies: Partial<{ [key: string]: string; }>; }} req - https request object - * @param {import("next").NextApiResponse | http.ServerResponse} res - https response object - * @param {boolean | null} [csrf] - csrf key - * @param {any} [query] - query object - * - * @returns {Promise<(import("@/package-shared/types").UserType | null)>} - */ module.exports = async function userAuth(req, res, csrf, query) { - /** ********************* Check for existence of required cookie */ if (!req.cookies?.datasquirelAuthKey?.match(/./)) { - // console.log("No datasquirel key cookie present"); - return null; - } - /** ********************* Grab the payload */ let userPayload = decrypt(req.cookies.datasquirelAuthKey); - /** ********************* Return if no payload */ if (!userPayload) { - // console.log("Couldn't Decrypt cookie"); - return null; - } - /** ********************* Parse the payload */ let userObject = JSON.parse(userPayload); - if (!userObject.csrf_k) { - // console.log("No CSRF_K in decrypted payload"); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (csrf && // @ts-ignore - !req.headers["x-csrf-auth"]?.match(new RegExp(`${userObject.csrf_k}`))) { - // console.log("CSRF_K requested but does not match payload"); - return null; - } - const allowedAuthKeysPath = process.env.DSQL_USER_LOGIN_KEYS_PATH; - if (!allowedAuthKeysPath) { - console.log(`DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.`); - return null; - } - if (csrf && !fs.existsSync(`${allowedAuthKeysPath}/${userObject.csrf_k}`)) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* check user verification */ if (userObject.verification_status == 0 && !csrf) { - let currentVerificationStatus = await DB_HANDLER(`SELECT verification_status FROM users WHERE id='${userObject.id}'`); - if (currentVerificationStatus && currentVerificationStatus[0] && currentVerificationStatus[0].verification_status == 1) { - // userObject = await reAuthUser({ userId: userObject.id, res }); - res.setHeader("Set-Cookie", [ - `user_refresh=1` - ]); - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (userObject?.date && Date.now() - userObject.date > EXPIRY_TIME) { - // console.log("Cookie expired"); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* return user object */ return userObject; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3737.js b/dsql-app/.local_dist/server/chunks/3737.js new file mode 100644 index 0000000..7fa12e2 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/3737.js @@ -0,0 +1 @@ +"use strict";exports.id=3737,exports.ids=[3737],exports.modules={13737:(e,t,r)=>{let n,a;r.d(t,{A:()=>d});var o=r(8732),l=r(82015),i=r.n(l);function s({value:e,format:t}){let r;if(!e)return 0;try{r="string"===t?e.toString().replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,","):parseInt(e.toString().replace(/\D/g,""))}catch(e){r=0,console.log(e)}return r}function u({value:e,format:t,decimals:r}){let n;let a=e?.toString()?.match(/^\-/)?"-":"";try{if("string"===t){let t=e.toString().split(".");n=a+t[0].toString().replace(/[^0-9\.]/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")+(t[1]?r?`.${t[1].substring(0,r)}`:`.${t[1].substring(0,2)}`:"")}else n=parseFloat(a+e.toString().replace(/[^0-9\.]/g,""))}catch(e){n=0,console.log(e)}return n}function d(e){try{let{title:c,name:p,defaultValue:m,placeholder:g,autoComplete:v,onInputHandler:h,required:w,inputType:f,setAlert:x,prefix:b,minValue:S,maxValue:y,encrypted:j,numberText:I,appendCurrency:T,elementRef:F,onChangeHandler:L,value:N,step:D,decimal:M,pattern:W,info:E,fontSize:k,maxWidth:R,setValue:q,id:B}=e;function t(e){e.target.value.match(/./)?(e.target.classList.remove("warning"),x&&x(null)):e.target.required&&e.target.classList.add("warning"),I&&(e.target.value=e.target.value.toString().match(/^0+$/)?"0":e.target.value.toString().replace(M?/[^0-9\.]/g:/\D/g,"").replace(/^0*/,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")),h&&h(e),L&&L(e)}function r(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),r=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!r.classList.contains("hidden")){r.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&r.classList.contains("hidden"))){if(!t){r.classList.add("hidden");return}if(r.classList.contains("hidden")){r.classList.remove("hidden");return}r.classList.add("hidden")}}let C=F||i().useRef();function l(e){let t=M?parseFloat(u({value:C.current?.value||0}).toString())-(D?parseFloat(D.toString()):20):parseInt(s({value:C.current.value}).toString())-(D||20),r=M?u({value:t,format:"raw"}):s({value:t,format:"raw"});S&&"number"==typeof r&&ry||(C.current.value=r.toString(),q&&q(C.current.value))}return(0,o.jsxs)("div",{className:"form-input-wrapper flex flex-col items-start gap-0.5 w-full relative",style:{...R?{maxWidth:R}:{}},children:[c&&(0,o.jsx)("label",{htmlFor:p,children:c}),(0,o.jsxs)("div",{className:"flex items-center w-full relative",children:[b&&(0,o.jsx)("div",{className:"absolute left-4 bottom-2 text-lg",children:b}),(0,o.jsx)("input",{type:f||"text",name:p,id:B||p,ref:C,placeholder:g||c||"",autoComplete:v,onInput:e=>{t(e)},onChange:e=>{t(e)},value:N||void 0,defaultValue:N?void 0:m||void 0,pattern:W?W.toString():void 0,required:!!w&&w,style:{...k?{fontSize:k}:{},...b?{paddingLeft:"35px"}:{}},min:S,max:y,"data-encrypted":j||null,"data-appendcurrency":T||null,className:"bg-white"+(E?" pr-16":"")}),I&&(0,o.jsxs)("div",{className:"absolute gap-1"+(E?" right-12":" right-4"),style:{top:"50%",transform:"translate(0,-50%)"},children:[(0,o.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:e=>{e.preventDefault(),window.innerWidth<1200||(l(e),n=setTimeout(()=>{a=setInterval(()=>{l(e)},50)},200))},onTouchStart:e=>{e.preventDefault(),window.innerWidth>=1200||(l(e),n=setTimeout(()=>{a=setInterval(()=>{l(e)},50)},200))},onMouseUp:e=>{window.clearTimeout(n),window.clearInterval(a)},onTouchEnd:e=>{window.clearTimeout(n),window.clearInterval(a)},onMouseLeave:e=>{window.clearTimeout(n),window.clearInterval(a)},onTouchMove:e=>{e.preventDefault()},children:(0,o.jsx)("span",{className:"pointer-events-none",children:"-"})}),(0,o.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:e=>{e.preventDefault(),window.innerWidth<1200||(d(e),n=setTimeout(()=>{a=setInterval(()=>{d(e)},50)},200))},onTouchStart:e=>{e.preventDefault(),window.innerWidth>=1200||(d(e),n=setTimeout(()=>{a=setInterval(()=>{d(e)},50)},200))},onMouseUp:e=>{window.clearTimeout(n),window.clearInterval(a)},onTouchEnd:e=>{window.clearTimeout(n),window.clearInterval(a)},onMouseLeave:e=>{window.clearTimeout(n),window.clearInterval(a)},children:(0,o.jsx)("span",{className:"pointer-events-none",children:"+"})})]}),E&&(0,o.jsxs)("div",{className:"info-wrapper absolute right-2 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:r,onMouseLeave:r,onClick:r,children:[(0,o.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,o.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,o.jsx)("span",{children:E})}),(0,o.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormInput =>",e),(0,o.jsx)("div",{children:"Form Input Error"})}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3863.js b/dsql-app/.local_dist/server/chunks/3863.js deleted file mode 100644 index f17d440..0000000 --- a/dsql-app/.local_dist/server/chunks/3863.js +++ /dev/null @@ -1,157 +0,0 @@ -"use strict"; -exports.id = 3863; -exports.ids = [3863]; -exports.modules = { - -/***/ 3863: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UserListCard) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5449); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_users_table_def} props.userObject - * @param {React.Dispatch>} props.setTargetUser - * @param {string} [props.paradigm] - */ function UserListCard({ userObject , setTargetUser , paradigm }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userName = (()=>{ - if (paradigm?.match(/invited/)) { - return `${userObject.inviteeFirstName} ${userObject.inviteeLastName} (${userObject.inviteeEmail})`; - } - return `${userObject.first_name} ${userObject.last_name} (${userObject.email})`; - })(); - const userImage = (()=>{ - if (paradigm?.match(/invited/)) { - return `${userObject.inviteeImage}`; - } - return `${userObject.image_thumbnail}`; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card no-hover items-center " + (paradigm?.match(/invited/) ? " green green-bg" : " primary"), - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: userImage, - className: "w-8 h-8 rounded-full object-cover bg-slate-200", - onError: (e)=>{ - // @ts-ignore - e.target.src = "/images/user-preset-thumbnail.png"; - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-sm font-semibold", - children: userName - }), - userObject?.user_priviledge?.match(/./) && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-sm ml-auto text-slate-900/50", - children: [ - "Priviledges:", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-slate-600 font-semibold", - children: userObject.user_priviledge.split("|").join(" | ") - }) - ] - }), - !paradigm?.match(/invited/) && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined text-xs px-3 py-1", - onClick: (e)=>{ - setTargetUser(userObject); - setTimeout(()=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .openPopup */ .Mw)("target-user-popup"); - }, 200); - }, - children: "Edit User Access" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined text-xs px-3 py-1", - onClick: (e)=>{ - setLoading(true); - if (window.confirm("Delete this user")) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/deleteUserUser", { - method: "post", - body: { - ...userObject - } - }, true).then((res)=>{ - setTimeout(()=>{ - setLoading(false); - }, 500); - window.location.reload(); - }); - } - }, - children: "Delete User" - }) - ] - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/3974.js b/dsql-app/.local_dist/server/chunks/3974.js deleted file mode 100644 index d4899d0..0000000 --- a/dsql-app/.local_dist/server/chunks/3974.js +++ /dev/null @@ -1,1188 +0,0 @@ -"use strict"; -exports.id = 3974; -exports.ids = [3974]; -exports.modules = { - -/***/ 3726: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ AddDatabaseForm) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _pages_admin_user_id_databases_add_database__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6706); -/* harmony import */ var _functions_frontend_checkUniqueField__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4105); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5472); -/* harmony import */ var _DatabaseForm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3121); -/* harmony import */ var _DatabaseImage__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1933); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddDatabaseForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , dbImage , setDbImage , query } = react__WEBPACK_IMPORTED_MODULE_1___default().useContext(_pages_admin_user_id_databases_add_database__WEBPACK_IMPORTED_MODULE_3__.AddDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!user) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [alert, setAlert] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - // React.useEffect(() => { - // if (!dbImage?.imageBase64Full) { - // const presetImage = document.createElement("img"); - // presetImage.src = "/images/database-placeholder.png"; - // imageNodeToBase64SpecificWidth({ imageNode: presetImage, maxWidth: 400, mimeType: "image/png" }).then((res) => { - // setDbImage({ ...res, imageName: "Preset-db-image" }) - // }) - // } - // }, []) - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("section", { - className: "card", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "New Database Information" - }), - user && dbImage && setDbImage && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseForm__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage, - setLoading: setLoading, - query: query - }) - ] - }), - user && dbImage && setDbImage && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseImage__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 3121: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ DatabaseForm) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/checkUniqueField.js -var checkUniqueField = __webpack_require__(4105); -// EXTERNAL MODULE: ./components/general/FormAlertBlock.jsx -var FormAlertBlock = __webpack_require__(7037); -// EXTERNAL MODULE: external "react-dom" -var external_react_dom_ = __webpack_require__(6405); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./functions/frontend/updateDiskUsage.js -var updateDiskUsage = __webpack_require__(1069); -;// CONCATENATED MODULE: ./functions/frontend/submitUpdateDatabaseForm.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {any} params.e - * @param {React.Dispatch>} params.setLoading - * @param {any} params.dbImage - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - * @param {import("@/package-shared/types").UserType} params.user - */ async function submitUpdateDatabaseForm({ e , setLoading , dbImage , database , user , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ setLoading(true); - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ /** @type {any} */ let formBody = { - db_description: e.target["database_description"]?.value?.match(/./) ? e.target["database_description"].value : null, - db_name: e.target["database_name"]?.value?.match(/./) ? e.target["database_name"].value : null, - db_slug: e.target["database_slug"]?.value?.match(/./) ? e.target["database_slug"].value : null, - db_full_name: database.db_full_name, - id: database.id, - active_clone: database.active_clone, - active_clone_parent_db: database.active_clone_parent_db - }; - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (dbImage) { - if (typeof dbImage === "string") { - formBody.db_image = dbImage; - } else if (typeof dbImage === "object") { - const uploadImage = await (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - dbImage - ], - folder: formBody.db_slug.replace(/_/g, "-"), - type: "image" - } - }, true); - formBody.db_image = uploadImage?.mediaData[0]?.media_thumbnail_url ? uploadImage.mediaData[0].media_thumbnail_url : "/images/database-placeholder.png"; - } - } else { - formBody.db_image = "/images/database-placeholder.png"; - } - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ (0,fetchApi/* default */.Z)("/api/updateUserDatabase", { - method: "post", - body: formBody - }, true).then((res)=>{ - if (res.success) { - (0,updateDiskUsage/* default */.Z)().then(()=>{ - window.location.pathname = `/admin/${user?.id}/databases`; - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } else { - alert("Error! Please Try Again"); - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./functions/frontend/submitNewDatabaseForm.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -let submitNewDatabaseForm_timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {any} params.e - * @param {React.Dispatch>} params.setLoading - * @param {any} params.dbImage - * @param {boolean} params.keepUpdated - * @param {boolean} params.keepDataUpdated - * @param {any} params.query - * @param {import("@/package-shared/types").UserType} params.user - */ async function submitNewDatabaseForm({ e , setLoading , dbImage , keepUpdated , keepDataUpdated , query , user , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ setLoading(true); - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ /** @type {any} */ let formBody = { - db_name: e.target["database_name"].value, - db_slug: e.target["database_slug"].value, - db_description: e.target["database_description"]?.value?.match(/./) ? e.target["database_description"].value : null - }; - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (dbImage) { - if (typeof dbImage === "string") { - formBody.db_image = dbImage; - } else if (typeof dbImage === "object") { - const uploadImage = await (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - dbImage - ], - folder: formBody.db_slug.replace(/_/g, "-"), - type: "image" - } - }, true); - formBody.db_image = uploadImage?.mediaData[0]?.media_thumbnail_url ? uploadImage.mediaData[0].media_thumbnail_url : "/images/database-placeholder.png"; - } - } - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (query?.duplicate) { - formBody["duplicate"] = query.duplicate; - formBody["keepUpdated"] = keepUpdated ? keepUpdated : false; - formBody["keepDataUpdated"] = keepDataUpdated ? keepDataUpdated : false; - } - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ (0,fetchApi/* default */.Z)("/api/createUserDatabase", { - method: "post", - body: formBody - }, true).then((res)=>{ - if (res.success) { - (0,updateDiskUsage/* default */.Z)().then(()=>{ - window.location.pathname = `/admin/${user?.id}/databases/${formBody.db_slug}`; - }); - } else { - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/form/FormCheckboxes.jsx -var FormCheckboxes = __webpack_require__(9486); -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let DatabaseForm_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {string | import("@/package-shared/types").ImageObjectType} props.dbImage - * @param {React.Dispatch>} [props.setDbImage] - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} [props.database] - * @param {React.Dispatch>} props.setLoading - * @param {any} [props.query] - */ function DatabaseForm({ user , dbImage , setDbImage , database , setLoading , query , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - * @param {string} value - */ async function checkDuplicateSlug(value) { - if (database?.db_slug === value) { - return null; - } - const duplicate = await (0,checkUniqueField/* default */.Z)({ - tableName: "user_databases", - columnName: "db_slug", - value: value, - userId: user.id - }); - return duplicate; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type { any } */ const alertState = external_react_default().useState(null); - /** @type { [alert: string | null, setAlert: React.Dispatch>] } */ const [alert, setAlert] = alertState; - const [keepUpdated, setKeepUpdated] = external_react_default().useState(false); - const [keepDataUpdated, setKeepDataUpdated] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - if (database) { - submitUpdateDatabaseForm({ - e, - setLoading, - dbImage, - database, - user - }); - } else { - submitNewDatabaseForm({ - e, - setLoading, - dbImage, - keepUpdated, - keepDataUpdated, - query, - user - }); - } - }, - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx(FormAlertBlock/* default */.Z, { - message: alert - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "database_name", - children: "Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "database_name", - id: "database_name", - placeholder: "Database Name", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const form = inputEl.closest("form"); - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - if (form) { - form["database_slug"].value = inputEl.value.toLowerCase().replace(/ /g, "_").replace(/[^a-zA-Z0-9-_]/g, ""); - let slugValue = form["database_slug"].value; - window.clearTimeout(DatabaseForm_timeout); - DatabaseForm_timeout = setTimeout(()=>{ - checkDuplicateSlug(slugValue).then((res)=>{ - if (res?.result) { - form["database_slug"].classList.add("warning"); - setAlert("Duplicate Database Name"); - } else { - form["database_slug"].classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - } - }, - defaultValue: database ? database.db_name : "", - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "database_slug", - children: "Slug" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "database_slug", - id: "database_slug", - placeholder: "Database Slug", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - let slugValue = inputEl.value; - window.clearTimeout(DatabaseForm_timeout); - DatabaseForm_timeout = setTimeout(()=>{ - checkDuplicateSlug(slugValue).then((res)=>{ - if (res?.result) { - inputEl.classList.add("warning"); - setAlert("Duplicate Database Name"); - } else { - inputEl.classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - }, - defaultValue: database ? database.db_slug : "", - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "database_description", - children: "Description (optional)" - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: "database_description", - id: "database_description", - placeholder: "Short Description of database", - defaultValue: database ? database.db_description : "" - }) - ] - }), - query?.duplicate && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card col items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - checkBoxValues: [ - { - payload: "Keep New Database Updated?", - title: "Keep New Database Updated?", - name: "clone_database", - onChangeHandler: (e)=>{ - if (e.target.checked) { - setKeepUpdated(true); - } else { - setKeepUpdated(false); - } - } - }, - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm italic text-slate-600 dark:text-slate-300", - children: "By checking this box the new Database stays up to date with changes to the structure of the parent Database" - }) - ] - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - type: "submit", - className: "w-full", - children: [ - database ? "Update" : "Create", - " Database" - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 1933: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabaseImage) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6718); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5449); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {string | null | import("@/package-shared/types").ImageObjectType} props.dbImage - * @param {React.Dispatch>} props.setDbImage - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} [props.database] - */ function DatabaseImage({ user , dbImage , setDbImage , database }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const imagePreviewRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card no-hover col items-center justify-center", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0", - children: "Database Image" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "bg-white rounded-full overflow-hidden w-24 h-24", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: dbImage ? typeof dbImage === "string" ? dbImage : dbImage.imageBase64Full : "/images/database-placeholder.png", - alt: "Database Image", - width: 100, - className: "w-full h-full object-cover", - // @ts-ignore - ref: imagePreviewRef, - "data-imagepreview": "image" - }) - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full flex-col", - id: "edit-database-image-option-wrapper", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - column: true, - className: "w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined w-full whitespace-normal", - onClick: (e)=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .openPopup */ .Mw)("user-media-popup"); - }, - children: "Choose Image from uploads" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined secondary w-full whitespace-normal", - onClick: (e)=>{ - /** @type {HTMLButtonElement} */ // @ts-ignore - const buttonEl = e.target; - buttonEl?.closest("#edit-database-image-option-wrapper")?.querySelector("input")?.click(); - }, - children: "Choose Image from Computer" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - accept: ".png,.jpg,.jpeg,.webp", - placeholder: "Choose Database Image", - className: "hidden", - onChange: async (e)=>{ - /** @type {File} */ // @ts-ignore - const imageInputFile = e.target.files[0]; - let imageData = await (0,_functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({ - imageInputFile: imageInputFile, - maxWidth: 400 - }); - setDbImage(imageData); - } - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 9310: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UserMediaPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _ExistingFieldEdit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9967); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {React.Dispatch>} props.setDbImage - */ function UserMediaPopup({ setDbImage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(true); - /** @type {any} */ const mediaState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type { [ media: import("@/package-shared/types").MYSQL_MediaType[] | null, setMedia: React.Dispatch> ] } */ const [media, setMedia] = mediaState; - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/getUserMedia").then((res)=>{ - setLoading(false); - setMedia(res.media); - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "user-media-popup", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0 text-lg", - children: "Your Uploaded Images" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "grid grid-cols-2", - children: media && media[0] && media.filter((media)=>media.media_type == "image").map((mediaObject, index)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full h-44 cursor-pointer hover:opacity-70", - onClick: (e)=>{ - setDbImage(mediaObject.media_thumbnail_url || null); - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: mediaObject.media_thumbnail_url, - alt: "User Media", - className: "w-full h-full object-contain" - }) - }, index + 1); - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4227: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const serverError = __webpack_require__(7023); -const NO_DB_HANDLER = __webpack_require__(2020); -/** - * Create database from Schema Function - * ============================================================================== - * @param {string} queryString - Query String - * @returns {Promise} - */ module.exports = async function noDatabaseDbHandler(queryString) { - "production"?.match(/dev/) && fs.appendFileSync("./.tmp/sqlQuery.sql", queryString + "\n" + Date() + "\n\n\n", "utf8"); - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - /** ********************* Run Query */ results = await NO_DB_HANDLER(queryString); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "noDatabaseDbHandler", - message: error.message - }); - console.log("ERROR in noDatabaseDbHandler =>", error.message); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results) { - return results; - } else { - return null; - } -}; - - -/***/ }), - -/***/ 2020: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(3260); -let NO_DB = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ // @ts-ignore -function NO_DB_HANDLER(...args) { - try { - return new Promise((resolve, reject)=>{ - NO_DB.query(...args).then((results)=>{ - NO_DB.end(); - resolve(JSON.parse(JSON.stringify(results))); - }).catch((err)=>{ - NO_DB.end(); - resolve({ - error: err.message, - sql: err.sql - }); - }); - }); - } catch (/** @type {any} */ error) { - return { - success: false, - error: error.message - }; - } -} -module.exports = NO_DB_HANDLER; - - -/***/ }), - -/***/ 6706: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddDatabaseContext": () => (/* binding */ AddDatabaseContext), - "default": () => (/* binding */ AddDatabase), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./package-shared/functions/backend/noDatabaseDbHandler.js -var noDatabaseDbHandler = __webpack_require__(4227); -var noDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(noDatabaseDbHandler); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/databases/AddDatabaseForm.jsx -var AddDatabaseForm = __webpack_require__(3726); -;// CONCATENATED MODULE: ./components/admin/databases/AddDatabaseContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddDatabaseContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { query , duplicateDb , user } = external_react_default().useContext(AddDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const title = (()=>{ - if (query?.duplicate) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - "Duplicate", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${duplicateDb?.db_slug}`, - target: "_blank", - children: duplicateDb?.db_name - }), - " ", - "Database" - ] - }); - } - return "Add A New Database"; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: title - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(AddDatabaseForm/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/UserMediaPopup.jsx -var UserMediaPopup = __webpack_require__(9310); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/add-database.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AddDbContextType} */ let addDatabaseContextObject = {}; -const AddDatabaseContext = /*#__PURE__*/ external_react_default().createContext(addDatabaseContextObject); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - * @param {any} props.query - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.duplicateDb - */ function AddDatabase({ user , databases , query , duplicateDb }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Add Database | Datasquirel"; - const pageDescription = "Add a database"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const dbImageState = external_react_default().useState("/images/database-placeholder.png"); - /** @type { [ dbImage:string | null | import("@/package-shared/types").ImageObjectType, setDbImage: React.Dispatch> ] } */ const [dbImage, setDbImage] = dbImageState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(AddDatabaseContext.Provider, { - value: { - user, - databases, - dbImage, - setDbImage, - query, - duplicateDb - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(AddDatabaseContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UserMediaPopup/* default */.Z, { - setDbImage: setDbImage - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.verification_status?.toString()?.match(/1/)) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const databases = await noDatabaseDbHandler_default()(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${user.id}%'`); - let duplicateDb = {}; - if (query.duplicate) { - const dbDuplicateDb = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE db_full_name='${query.duplicate}'`); - if (dbDuplicateDb && dbDuplicateDb[0]) duplicateDb = dbDuplicateDb[0]; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - databases: databases, - query, - duplicateDb - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4017.js b/dsql-app/.local_dist/server/chunks/4017.js deleted file mode 100644 index 3946450..0000000 --- a/dsql-app/.local_dist/server/chunks/4017.js +++ /dev/null @@ -1,120 +0,0 @@ -"use strict"; -exports.id = 4017; -exports.ids = [4017]; -exports.modules = { - -/***/ 4017: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ Logo) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {{ - * size?: string, - * adminAside?: boolean, - * collapseAsideMobile?: boolean, - * setCollapseAsideMobile?: React.Dispatch>, - * }} props - React component props - */ function Logo({ size , adminAside , collapseAsideMobile , setCollapseAsideMobile , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/", - className: "logo", - onClick: (e)=>{ - /** @type {*} */ const targetElement = e.target; - if (targetElement?.closest("button")) { - return e.preventDefault(); - } - }, - children: [ - adminAside && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - className: "flex lg:hidden small-text mr-2 primary-light", - onClick: (e)=>{ - if (collapseAsideMobile && setCollapseAsideMobile) { - setCollapseAsideMobile(false); - } else if (setCollapseAsideMobile) { - setCollapseAsideMobile(true); - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "-mt-0.5", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default()), { - color: "action" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "dark:text-white", - children: "Menu" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/logo-icon-alt-2.webp", - alt: "Datasquirel Logo", - width: 35, - className: "dark:hidden -mt-1.5 -mr-1.5" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/logo-icon-alt-2.webp", - alt: "Datasquirel Logo", - width: 35, - className: "hidden dark:flex -mt-1.5 -mr-1.5" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]", - children: "Datasquirel" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4050.js b/dsql-app/.local_dist/server/chunks/4050.js new file mode 100644 index 0000000..1f71feb --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4050.js @@ -0,0 +1,13 @@ +"use strict";exports.id=4050,exports.ids=[4050],exports.modules={96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},47670:(e,t,r)=>{let a=r(82703),s=r(72583),n=r(16570);r(33364);let o=r(33364);r(27825);let c=r(51348),i=r(21339);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:d,tableSchema:u,duplicateColumnName:p,duplicateColumnValue:_,update:S,encryptionKey:f,encryptionSalt:h}){let m=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),g=m?c:i;if(d?.date_created_timestamp&&delete d.date_created_timestamp,d?.date_updated_timestamp&&delete d.date_updated_timestamp,d?.date_updated&&delete d.date_updated,d?.date_updated_code&&delete d.date_updated_code,d?.date_created&&delete d.date_created,d?.date_created_code&&delete d.date_created_code,p&&"string"==typeof p){let a=m?await g(`SELECT * FROM \`${l}\` WHERE \`${p}\`=?`,[_]):await g({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${l}\` WHERE \`${p}\`=?`,queryValues:[_]});if(a?.[0]&&!S)return null;if(a&&a[0]&&S)return await o({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:d,tableSchema:u,encryptionKey:f,encryptionSalt:h,identifierColumnName:p,identifierValue:_||""})}let y=Object.keys(d),D=[],E=[];for(let e=0;ee.fieldName==t):null,c=o&&o[0]?o[0]:null;if(null==r||void 0==r||c?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;c?.encrypted&&(r=a(r,f,h),console.log("DSQL: Encrypted value =>",r)),c?.richText&&(r=s(r,n)),c?.pattern&&!new RegExp(c.pattern,c.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),D.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?E.push(String(r)):E.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}d?.date_created||(D.push("`date_created`"),E.push(Date())),d?.date_created_code||(D.push("`date_created_code`"),E.push(Date.now())),d?.date_updated||(D.push("`date_updated`"),E.push(Date())),d?.date_updated_code||(D.push("`date_updated_code`"),E.push(Date.now()));let L=`INSERT INTO \`${l}\` (${D.join(",")}) VALUES (${E.map(()=>"?").join(",")})`;return m?await g(L,E):await g({paradigm:t,database:r,queryString:L,queryValues:E})}e.exports=l},33364:(e,t,r)=>{let a=r(82703),s=r(72583),n=r(16570),o=r(51348),c=r(21339);async function i({dbContext:e,paradigm:t,dbFullName:r,tableName:i,data:l,tableSchema:d,identifierColumnName:u,identifierValue:p,encryptionKey:_,encryptionSalt:S}){if(!l||!Object.keys(l).length)return null;let f=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=f?o:c,m=Object.keys(l),g=[],y=[];for(let e=0;ee.fieldName===t):null,c=o&&o[0]?o[0]:null;if(null==r||void 0==r)continue;c?.richText&&(r=s(r,n)),c?.encrypted&&(r=a(r,_,S)),"object"==typeof r&&(r=JSON.stringify(r)),c?.pattern&&!new RegExp(c.pattern,c.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),g.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}g.push(`date_updated='${Date()}'`),g.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE ${i} SET ${g.join(",")} WHERE \`${u}\`=?`;return y.push(p),f?await h(D,y):await h({paradigm:t,database:r,queryString:D,queryValues:y})}e.exports=i},82703:(e,t,r)=>{let{scryptSync:a,createCipheriv:s}=r(55511),{Buffer:n}=r(79428),o=r(48225);e.exports=(e,t,r)=>{let c=s("aes-192-cbc",a(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=c.update(e,"utf8","hex");return t+=c.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let a=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:s}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",n),a.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}},51348:(e,t,r)=>{let a=r(9973),s=r(21580),n=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()}});async function o(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:c}){try{return new Promise((i,l)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:c,sql:e.sql})}o=d?s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),c&&Array.isArray(c)&&c[0]?o.query(r,c).then(u).catch(p):o.query(r).then(u).catch(p)}catch(e){a.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let a=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!a.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4097.js b/dsql-app/.local_dist/server/chunks/4097.js deleted file mode 100644 index 96b35d3..0000000 --- a/dsql-app/.local_dist/server/chunks/4097.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; -exports.id = 4097; -exports.ids = [4097]; -exports.modules = { - -/***/ 4097: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ PageHeadTags) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.pageTitle - * @param {string} props.pageDescription - * @param {string} props.pagePathname - * @param {boolean} [props.aceEditor] - */ function PageHeadTags({ pageTitle , pageDescription , pagePathname , aceEditor , }) { - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "canonical", - href: "http://localhost:7070" + pagePathname - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:url", - content: "http://localhost:7070" + pagePathname - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - itemProp: "url", - content: "http://localhost:7070" + pagePathname - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "twitter:url", - content: "http://localhost:7070" + pagePathname - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:title", - content: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - itemProp: "name", - content: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - itemProp: "description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "twitter:title", - content: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "twitter:description", - content: pageDescription - }), - aceEditor && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js", - integrity: "sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js", - integrity: "sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4105.js b/dsql-app/.local_dist/server/chunks/4105.js deleted file mode 100644 index 29a452d..0000000 --- a/dsql-app/.local_dist/server/chunks/4105.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -exports.id = 4105; -exports.ids = [4105]; -exports.modules = { - -/***/ 4105: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ checkUniqueField) -/* harmony export */ }); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6405); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {string} params.tableName - * @param {string} params.columnName - * @param {string} params.value - * @param {string} [params.dbFullName] - * @param {any} [params.dispatch] - * @param {number} [params.userId] - * @param {number} [params.dbId] - */ async function checkUniqueField({ tableName , columnName , value , dbFullName , dispatch , userId , dbId , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const duplicate = await (0,_fetchApi__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(`/api/checkDuplicateData?tableName=${tableName}&type=${columnName}&value=${value}${dbFullName ? "&dbFullName=" + dbFullName : ""}${userId ? "&userId=" + userId : ""}${dbId ? "&dbId=" + dbId : ""}`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return duplicate; -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4114.js b/dsql-app/.local_dist/server/chunks/4114.js deleted file mode 100644 index 568bdec..0000000 --- a/dsql-app/.local_dist/server/chunks/4114.js +++ /dev/null @@ -1,179 +0,0 @@ -"use strict"; -exports.id = 4114; -exports.ids = [4114]; -exports.modules = { - -/***/ 4114: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormSelect) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} OptionObject - * @property {string} title - * @property {string} payload - * @property {boolean} [default] - */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {OptionObject[]} props.selectOptions - array of option objects - * @param {string} [props.name] - * @param {(e:any) => void} [props.onChangeHandler] - * @param {boolean} [props.required] - * @param {React.Dispatch>} [props.setAlert] - * @param {string | React.ReactNode} [props.title] - * @param {string} [props.defaultValue] - * @param {string} [props.info] - * @param {string} [props.id] - */ function FormSelect({ selectOptions , name , onChangeHandler , required , setAlert , title , defaultValue , info , id , }) { - try { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ function toggleDropdown(/** @type {any} */ e) { - if (e.type.match(/enter/i) && window.innerWidth < 1200) { - return; - } - const infoWrapper = e.target.closest(".info-wrapper"); - const dropdown = infoWrapper.querySelector(".info-dropdown"); - if (e.type.match(/leave/i) && !dropdown.classList.contains("hidden")) { - dropdown.classList.add("hidden"); - return; - } else if (e.type.match(/leave/i) && dropdown.classList.contains("hidden")) { - return; - } - if (!infoWrapper) { - dropdown.classList.add("hidden"); - return; - } - if (dropdown.classList.contains("hidden")) { - dropdown.classList.remove("hidden"); - return; - } - dropdown.classList.add("hidden"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "form-select-block flex items-start flex-col gap-0.5 w-full relative" + (info ? " pr-8" : ""), - children: [ - title && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label", { - htmlFor: name, - children: [ - title, - required ? "" : " (optional)" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center w-full relative", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("select", { - name: name, - id: id ? id : name, - className: "w-full bg-white", - required: required, - onChange: (/** @type {any} */ e)=>{ - if (setAlert) setAlert(null); - e.target.classList.remove("warning"); - if (onChangeHandler) onChangeHandler(e); - }, - defaultValue: defaultValue ? defaultValue : undefined, - children: selectOptions.map((value, index)=>{ - const { payload , title } = value; - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: payload, - selected: value.default ? true : false, - children: title - }, index + 1); - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_1__.ChevronDown, { - className: "absolute right-2 text-base text-slate-500 pointer-events-none", - size: 20 - }), - info && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10", - style: { - top: "50%", - transform: "translate(0,-50%)" - }, - onMouseEnter: toggleDropdown, - onMouseLeave: toggleDropdown, - onClick: toggleDropdown, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/info-outlined-black.png", - alt: "", - className: "w-6 h-6 object-contain opacity-60 pointer-events-none" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: info - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "absolute -top-2 w-12", - style: { - height: "45px" - } - }) - ] - }) - ] - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log("ERROR in FormSelect =>", error); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: "Form Select Error" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4187.js b/dsql-app/.local_dist/server/chunks/4187.js deleted file mode 100644 index cbf859d..0000000 --- a/dsql-app/.local_dist/server/chunks/4187.js +++ /dev/null @@ -1,166 +0,0 @@ -"use strict"; -exports.id = 4187; -exports.ids = [4187]; -exports.modules = { - -/***/ 4187: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ SuDashboardContent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6729); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _components_UserCard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1336); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - */ function SuDashboardContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userTitles = Object.keys(data.users[0]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ errorLog: string | null, setErrorLog: React.Dispatch> ]} */ // @ts-ignore - const [errorLog, setErrorLog] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - const [refresh, setRefresh] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - const [clearErrorLogLoading, setClearErrorLogLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - function fetchErrorLogs() { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)("/api/admin/grabErrorLogs").then((res)=>{ - if (res?.log && typeof res.log === "string" && !res.log?.match(/./)) { - setErrorLog("No Logs Yet"); - return; - } else if (res?.log) { - setErrorLog("No Logs"); - } - setErrorLog(res.log.replace(/\n|\r|\n\r|\\n/gm, "
")); - }); - } - console.log(typeof errorLog); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - fetchErrorLogs(); - if (refresh === 0) { - setInterval(()=>{ - fetchErrorLogs(); - }, 10000); - } - }, [ - refresh - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "items-stretch gap-10 w-full", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0 mb-6", - children: "Users" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex-col items-stretch gap-10", - children: data.users.map((/** @type {any} */ userObject, /** @type {number} */ index)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_UserCard__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - userObject: userObject - }, index + 1); - }) - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0", - children: "Error Logs" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - onClick: (e)=>{ - if (window.confirm("Clear Error Logs?")) { - setClearErrorLogLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)("/api/admin/clearErrorLogs", "post").then((res)=>{ - setRefresh((prev)=>prev + 1); - }); - setTimeout(()=>{ - setClearErrorLogLoading(false); - }, 2000); - } - }, - className: "outlined gray relative", - children: [ - clearErrorLogLoading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - width: "20px" - }), - "Clear Error Log" - ] - }) - }) - ] - }), - errorLog && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { - dangerouslySetInnerHTML: { - __html: errorLog ? errorLog : "No Log" - } - }), - typeof errorLog !== "string" && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - position: "relative", - width: "25px" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4194.js b/dsql-app/.local_dist/server/chunks/4194.js deleted file mode 100644 index cd33d4e..0000000 --- a/dsql-app/.local_dist/server/chunks/4194.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -exports.id = 4194; -exports.ids = [4194]; -exports.modules = { - -/***/ 4194: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const os = __webpack_require__(2037); -const { execSync } = __webpack_require__(2081); -const serverError = __webpack_require__(2163); -const { ServerResponse } = __webpack_require__(3685); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {Object} params - Single object parameter - * @param {string} params.dbName - Database Full Name - * @param {import("@/package-shared/types").UserType} params.user - Database Full Name - * @param {ServerResponse} params.res - Http response object - */ module.exports = async function exportDb({ dbName , user , res }) { - const mysqlDumpPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe" + "'" : "mysqldump"; - try { - /** @type {import("child_process").ExecSyncOptions} */ let execSyncOptions = { - cwd: process.cwd() - }; - const filePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/export.sql`; - if (os.platform().match(/win/i)) execSyncOptions.shell = "bash.exe"; - const exe = `${mysqlDumpPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${dbName} > ${filePath}`; - console.log(`exportDb.js exe => ${exe}`); - const dumpDb = execSync(exe, execSyncOptions); - // const file = fs.createWriteStream(filePath); - res.setHeader("Content-Type", "application/zip"); - res.setHeader("Content-Disposition", `attachment; filename=export.sql`); - const fileStream = fs.createReadStream(filePath); - /** ********************* Write response header */ fileStream.pipe(res); - // res.pipe(file); - // res.writeHead(200); - // await new Promise((resolve, reject) => { - // file.on("finish", () => { - // // res.pipe(file); - // resolve(true); - // }); - // }); - // return fs.readFileSync(filePath, "utf-8"); - // return file; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/exportDb/lines-30-46", - message: error.message, - user: user - }); - } -}; /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4237.js b/dsql-app/.local_dist/server/chunks/4237.js new file mode 100644 index 0000000..0008366 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4237.js @@ -0,0 +1,16 @@ +"use strict";exports.id=4237,exports.ids=[4237],exports.modules={77538:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||n.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(s+=` +URL: ${n.url}`),n?.body&&(s+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let c=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` + + + + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,t,r)=>{let a=r(29021),s=r(72907);e.exports=({key:e,database:t,table:r,user_id:n})=>{if(!e||!n)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=s(e),c=JSON.parse(o||""),i=a.existsSync(`${l}/${c.sign}`);if(String(c.user_id)!==String(n)||!i)return null;if(!c.target_database)return c;if(!t&&c.target_database)return null;let u=c.target_database?.split(",").includes(String(t));if(u&&!c.target_table)return c;if(u&&!r&&c.target_table)return null;if(c.target_table?.split(",").includes(String(r)))return c;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,t,r)=>{let a=r(51348),s=r(21339);async function n({dbContext:e,paradigm:t,dbFullName:r,tableName:n,identifierColumnName:l,identifierValue:o}){try{let c=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),i=c?a:s,u=`DELETE FROM ${n} WHERE \`${l}\`=?`;return c?await i(u,[o]):await i({paradigm:t,queryString:u,database:r,queryValues:[o]})}catch(e){return null}}e.exports=n},8238:(e,t,r)=>{r(29021);let a=r(44900),s=r(94709),n=r(96064),l=r(48225),o=r(47670),c=r(33364),i=r(64122),u=r(6061),d=r(33872);async function p({dbFullName:e,query:t,readOnly:r,dbSchema:p,queryValuesArray:m,tableName:g,local:f}){let y,_,b;if(p)try{let e=g||("string"==typeof t?null:t?t?.table:null);if(!e)throw Error("No table name provided");b=p.tables.filter(t=>t?.tableName===e)[0]}catch(e){}try{if("string"==typeof t){let l=d(t);if(r&&l.match(/^alter|^delete|information_schema|databases|^create/i))throw Error("Wrong Input!");if(f){let e=await a(l,m);y=b?u({unparsedResults:e,tableSchema:b}):e}else y=r?await n({queryString:l,queryValuesArray:m,database:e,tableSchema:b}):await s({queryString:l,queryValuesArray:m,database:e,tableSchema:b})}else if("object"==typeof t){let{data:r,action:a,table:s,identifierColumnName:n,identifierValue:l,update:u,duplicateColumnName:d,duplicateColumnValue:p}=t;switch(a.toLowerCase()){case"insert":y=await o({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:r,update:u,duplicateColumnName:d,duplicateColumnValue:p,tableSchema:b}),y?.insertId||(_=Error("Couldn't insert data"));break;case"update":y=await c({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,data:r,identifierColumnName:n,identifierValue:l,tableSchema:b});break;case"delete":y=await i({dbContext:f?"Master":"Dsql User",paradigm:"Full Access",dbFullName:e,tableName:s,identifierColumnName:n,identifierValue:l,tableSchema:b});break;default:y=null}}}catch(e){l({component:"functions/backend/runQuery",message:e.message}),y=null,e=e.message}return{result:y,error:_}}e.exports=p},72907:(e,t,r)=>{let{scryptSync:a,createDecipheriv:s}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},94709:(e,t,r)=>{let a=r(21339),s=r(6061),n=r(48225);e.exports=async function({queryString:e,database:t,tableSchema:r,queryValuesArray:l,local:o}){let c;try{c=await a({paradigm:"Full Access",database:t,queryString:e,queryValues:l})}catch(e){return n({component:"fullAccessDbHandler",message:e.message}),e.message}if(c&&r){let e=c;return await s({unparsedResults:e,tableSchema:r})}return c||null}},6061:(e,t,r)=>{let a=r(72907),s=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n",t.message),e}}},96064:(e,t,r)=>{r(29021);let a=r(48225),s=r(6061),n=r(21339);e.exports=async function({queryString:e,database:t,queryValuesArray:r,tableSchema:l}){let o;try{o=await n({paradigm:"Read Only",database:t,queryString:e,queryValues:r})}catch(e){return a({component:"varReadOnlyDatabaseDbHandler",message:e.message,noMail:!0}),e.message}if(!o)return null;{let e=o;return await s({unparsedResults:e,tableSchema:l})}}},44900:(e,t,r)=>{let a=r(9973),s=r(21580);async function n(...e){let t=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()},onConnect:()=>{console.log("Connection Successful!")},onConnectError:e=>{console.log("Connection Error",e.message)},onError:e=>{console.log("Client Error",e.message)}});console.log("Querying ...");try{let r=await t.query(...e);return await t.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e.message),{success:!1,error:e.message}}}e.exports=n},33872:(e,t,r)=>{r(55591),r(81630),e.exports=function(e){return e.replace(/\n|\r|\n\r|\r\n/gm," ").replace(/ {2,}/g," ").trim()}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/424.js b/dsql-app/.local_dist/server/chunks/424.js deleted file mode 100644 index e7623c6..0000000 --- a/dsql-app/.local_dist/server/chunks/424.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -exports.id = 424; -exports.ids = [424]; -exports.modules = { - -/***/ 424: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ Breadcrumbs) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} [props.confirmedDelegetedUser] - * @param {any} [props.linksArray] - * @param {import("@/package-shared/types").UserType} [props.user] - */ function Breadcrumbs({ confirmedDelegetedUser , linksArray , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const linksState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(linksArray ? linksArray : null); - /** @type { [ links:any[], setLinks: React.Dispatch> ] } */ const [links, setLinks] = linksState; - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (linksArray) return; - let pathname = window.location.pathname; - let pathLinks = pathname.split("/"); - let validPathLinks = []; - validPathLinks.push({ - title: "Home", - path: pathname.match(/admin/) ? "/admin" : "/" - }); - const isDelegated = window.location.search?.match(/delegated=true/); - pathLinks.forEach((linkText, index, array)=>{ - if (!linkText?.match(/./) || index == 1) { - return; - } - if (linkText.match(/^\d+$/) && user) { - // validPathLinks.push({ - // title: user.first_name, - // path: `/admin/${linkText}`, - // }); - return; - } - validPathLinks.push({ - title: linkText, - path: (()=>{ - let path = ""; - for(let i = 0; i < array.length; i++){ - const lnText = array[i]; - if (i > index || !lnText.match(/./)) continue; - path += `/${lnText}`; - } - return path; - })() - }); - }); - setLinks(validPathLinks); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (!links || !links[1]) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}); - } - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "text-sm mt-2 flex-wrap", - children: links.map((linkObject, index, array)=>{ - if (index === links.length - 1) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: linkObject.path, - className: "text-slate-400 dark:text-slate-500 pointer-events-none", - children: linkObject.title - }, index); - } else { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: linkObject.path, - className: "query-url", - children: linkObject.title - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "opacity-20", - children: "|" - }) - ] - }, index); - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4294.js b/dsql-app/.local_dist/server/chunks/4294.js deleted file mode 100644 index e2540bb..0000000 --- a/dsql-app/.local_dist/server/chunks/4294.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -exports.id = 4294; -exports.ids = [4294]; -exports.modules = { - -/***/ 4294: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const generator = __webpack_require__(3785); -const DB_HANDLER = __webpack_require__(2224); -const NO_DB_HANDLER = __webpack_require__(7487); -const encrypt = __webpack_require__(7547); -const addDbEntry = __webpack_require__(5338); -/** - * # Add Mariadb User - * - * @description this function adds a Mariadb user to the database server - * - * @param {object} params - parameters object * - * @param {number | string} params.userId - invited user object - * - * @returns {Promise} new user auth object payload - */ module.exports = async function addMariadbUser({ userId }) { - try { - const defaultMariadbUserHost = process.env.DSQL_DB_HOST || "127.0.0.1"; - const username = `dsql_user_${userId}`; - const password = generator.generate({ - length: 16, - numbers: true, - symbols: true, - uppercase: true, - exclude: "*#.'`\"" - }); - const encryptedPassword = encrypt(password); - await NO_DB_HANDLER(`CREATE USER IF NOT EXISTS '${username}'@'127.0.0.1' IDENTIFIED BY '${password}' REQUIRE SSL`); - const updateUser = await DB_HANDLER(`UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?`, [ - username, - encryptedPassword, - userId - ]); - const addMariadbUser1 = await addDbEntry({ - tableName: "mariadb_users", - data: { - user_id: userId, - username, - host: defaultMariadbUserHost, - password: encryptedPassword, - primary: "1", - grants: '[{"database":"*","table":"*","privileges":["ALL"]}]' - }, - dbContext: "Master" - }); - console.log(`User ${userId} SQL credentials successfully added.`); - } catch (/** @type {any} */ error) { - console.log(`Error in adding SQL user in 'addMariadbUser' function =>`, error.message); - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4298.js b/dsql-app/.local_dist/server/chunks/4298.js deleted file mode 100644 index 0872561..0000000 --- a/dsql-app/.local_dist/server/chunks/4298.js +++ /dev/null @@ -1,523 +0,0 @@ -exports.id = 4298; -exports.ids = [4298]; -exports.modules = { - -/***/ 6495: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Z = _extends; -function _extends() { - return extends_.apply(this, arguments); -} -function extends_() { - extends_ = Object.assign || function(target) { - for(var i = 1; i < arguments.length; i++){ - var source = arguments[i]; - for(var key in source){ - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return extends_.apply(this, arguments); -} - - -/***/ }), - -/***/ 1598: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Z = _interopRequireWildcard; -function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || typeof obj !== "object" && typeof obj !== "function") { - return { - default: obj - }; - } - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for(var key in obj){ - if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} -function _getRequireWildcardCache(nodeInterop1) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function(nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop1); -} - - -/***/ }), - -/***/ 7273: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Z = _objectWithoutPropertiesLoose; -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for(i = 0; i < sourceKeys.length; i++){ - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} - - -/***/ }), - -/***/ 6007: -/***/ ((module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = initHeadManager; -exports.isEqualNode = isEqualNode; -exports.DOMAttributeNames = void 0; -function initHeadManager() { - return { - mountedInstances: new Set(), - updateHead: (head)=>{ - const tags = {}; - head.forEach((h)=>{ - if (// it won't be inlined. In this case revert to the original behavior - h.type === "link" && h.props["data-optimized-fonts"]) { - if (document.querySelector(`style[data-href="${h.props["data-href"]}"]`)) { - return; - } else { - h.props.href = h.props["data-href"]; - h.props["data-href"] = undefined; - } - } - const components = tags[h.type] || []; - components.push(h); - tags[h.type] = components; - }); - const titleComponent = tags.title ? tags.title[0] : null; - let title = ""; - if (titleComponent) { - const { children } = titleComponent.props; - title = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; - } - if (title !== document.title) document.title = title; - [ - "meta", - "base", - "link", - "style", - "script" - ].forEach((type)=>{ - updateElements(type, tags[type] || []); - }); - } - }; -} -const DOMAttributeNames = { - acceptCharset: "accept-charset", - className: "class", - htmlFor: "for", - httpEquiv: "http-equiv", - noModule: "noModule" -}; -exports.DOMAttributeNames = DOMAttributeNames; -function reactElementToDOM({ type , props }) { - const el = document.createElement(type); - for(const p in props){ - if (!props.hasOwnProperty(p)) continue; - if (p === "children" || p === "dangerouslySetInnerHTML") continue; - // we don't render undefined props to the DOM - if (props[p] === undefined) continue; - const attr = DOMAttributeNames[p] || p.toLowerCase(); - if (type === "script" && (attr === "async" || attr === "defer" || attr === "noModule")) { - el[attr] = !!props[p]; - } else { - el.setAttribute(attr, props[p]); - } - } - const { children , dangerouslySetInnerHTML } = props; - if (dangerouslySetInnerHTML) { - el.innerHTML = dangerouslySetInnerHTML.__html || ""; - } else if (children) { - el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; - } - return el; -} -function isEqualNode(oldTag, newTag) { - if (oldTag instanceof HTMLElement && newTag instanceof HTMLElement) { - const nonce = newTag.getAttribute("nonce"); - // Only strip the nonce if `oldTag` has had it stripped. An element's nonce attribute will not - // be stripped if there is no content security policy response header that includes a nonce. - if (nonce && !oldTag.getAttribute("nonce")) { - const cloneTag = newTag.cloneNode(true); - cloneTag.setAttribute("nonce", ""); - cloneTag.nonce = nonce; - return nonce === oldTag.nonce && oldTag.isEqualNode(cloneTag); - } - } - return oldTag.isEqualNode(newTag); -} -function updateElements(type, components) { - const headEl = document.getElementsByTagName("head")[0]; - const headCountEl = headEl.querySelector("meta[name=next-head-count]"); - if (false) {} - const headCount = Number(headCountEl.content); - const oldTags = []; - for(let i = 0, j = headCountEl.previousElementSibling; i < headCount; i++, j = (j == null ? void 0 : j.previousElementSibling) || null){ - var ref; - if ((j == null ? void 0 : (ref = j.tagName) == null ? void 0 : ref.toLowerCase()) === type) { - oldTags.push(j); - } - } - const newTags = components.map(reactElementToDOM).filter((newTag)=>{ - for(let k = 0, len = oldTags.length; k < len; k++){ - const oldTag = oldTags[k]; - if (isEqualNode(oldTag, newTag)) { - oldTags.splice(k, 1); - return false; - } - } - return true; - }); - oldTags.forEach((t)=>{ - var ref; - return (ref = t.parentNode) == null ? void 0 : ref.removeChild(t); - }); - newTags.forEach((t)=>headEl.insertBefore(t, headCountEl)); - headCountEl.content = (headCount - oldTags.length + newTags.length).toString(); -} -if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { - Object.defineProperty(exports.default, "__esModule", { - value: true - }); - Object.assign(exports.default, exports); - module.exports = exports.default; -} //# sourceMappingURL=head-manager.js.map - - -/***/ }), - -/***/ 9311: -/***/ ((module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.cancelIdleCallback = exports.requestIdleCallback = void 0; -const requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) { - let start = Date.now(); - return setTimeout(function() { - cb({ - didTimeout: false, - timeRemaining: function() { - return Math.max(0, 50 - (Date.now() - start)); - } - }); - }, 1); -}; -exports.requestIdleCallback = requestIdleCallback; -const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) { - return clearTimeout(id); -}; -exports.cancelIdleCallback = cancelIdleCallback; -if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { - Object.defineProperty(exports.default, "__esModule", { - value: true - }); - Object.assign(exports.default, exports); - module.exports = exports.default; -} //# sourceMappingURL=request-idle-callback.js.map - - -/***/ }), - -/***/ 699: -/***/ ((module, exports, __webpack_require__) => { - -"use strict"; - -"client"; -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports.handleClientScriptLoad = handleClientScriptLoad; -exports.initScriptLoader = initScriptLoader; -exports["default"] = void 0; -var _extends = (__webpack_require__(6495)/* ["default"] */ .Z); -var _interop_require_wildcard = (__webpack_require__(1598)/* ["default"] */ .Z); -var _object_without_properties_loose = (__webpack_require__(7273)/* ["default"] */ .Z); -var _react = _interop_require_wildcard(__webpack_require__(6689)); -var _headManagerContext = __webpack_require__(2796); -var _headManager = __webpack_require__(6007); -var _requestIdleCallback = __webpack_require__(9311); -"client"; -const ScriptCache = new Map(); -const LoadCache = new Set(); -const ignoreProps = [ - "onLoad", - "onReady", - "dangerouslySetInnerHTML", - "children", - "onError", - "strategy", -]; -const loadScript = (props)=>{ - const { src , id , onLoad =()=>{} , onReady =null , dangerouslySetInnerHTML , children ="" , strategy ="afterInteractive" , onError , } = props; - const cacheKey = id || src; - // Script has already loaded - if (cacheKey && LoadCache.has(cacheKey)) { - return; - } - // Contents of this script are already loading/loaded - if (ScriptCache.has(src)) { - LoadCache.add(cacheKey); - // It is possible that multiple `next/script` components all have same "src", but has different "onLoad" - // This is to make sure the same remote script will only load once, but "onLoad" are executed in order - ScriptCache.get(src).then(onLoad, onError); - return; - } - /** Execute after the script first loaded */ const afterLoad = ()=>{ - // Run onReady for the first time after load event - if (onReady) { - onReady(); - } - // add cacheKey to LoadCache when load successfully - LoadCache.add(cacheKey); - }; - const el = document.createElement("script"); - const loadPromise = new Promise((resolve, reject)=>{ - el.addEventListener("load", function(e) { - resolve(); - if (onLoad) { - onLoad.call(this, e); - } - afterLoad(); - }); - el.addEventListener("error", function(e) { - reject(e); - }); - }).catch(function(e) { - if (onError) { - onError(e); - } - }); - if (dangerouslySetInnerHTML) { - el.innerHTML = dangerouslySetInnerHTML.__html || ""; - afterLoad(); - } else if (children) { - el.textContent = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; - afterLoad(); - } else if (src) { - el.src = src; - // do not add cacheKey into LoadCache for remote script here - // cacheKey will be added to LoadCache when it is actually loaded (see loadPromise above) - ScriptCache.set(src, loadPromise); - } - for (const [k, value] of Object.entries(props)){ - if (value === undefined || ignoreProps.includes(k)) { - continue; - } - const attr = _headManager.DOMAttributeNames[k] || k.toLowerCase(); - el.setAttribute(attr, value); - } - if (strategy === "worker") { - el.setAttribute("type", "text/partytown"); - } - el.setAttribute("data-nscript", strategy); - document.body.appendChild(el); -}; -function handleClientScriptLoad(props) { - const { strategy ="afterInteractive" } = props; - if (strategy === "lazyOnload") { - window.addEventListener("load", ()=>{ - (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); - }); - } else { - loadScript(props); - } -} -function loadLazyScript(props) { - if (document.readyState === "complete") { - (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); - } else { - window.addEventListener("load", ()=>{ - (0, _requestIdleCallback).requestIdleCallback(()=>loadScript(props)); - }); - } -} -function addBeforeInteractiveToCache() { - const scripts = [ - ...document.querySelectorAll('[data-nscript="beforeInteractive"]'), - ...document.querySelectorAll('[data-nscript="beforePageRender"]'), - ]; - scripts.forEach((script)=>{ - const cacheKey = script.id || script.getAttribute("src"); - LoadCache.add(cacheKey); - }); -} -function initScriptLoader(scriptLoaderItems) { - scriptLoaderItems.forEach(handleClientScriptLoad); - addBeforeInteractiveToCache(); -} -function Script(props) { - const { id , src ="" , onLoad =()=>{} , onReady =null , strategy ="afterInteractive" , onError } = props, restProps = _object_without_properties_loose(props, [ - "id", - "src", - "onLoad", - "onReady", - "strategy", - "onError" - ]); - // Context is available only during SSR - const { updateScripts , scripts , getIsSsr } = (0, _react).useContext(_headManagerContext.HeadManagerContext); - /** - * - First mount: - * 1. The useEffect for onReady executes - * 2. hasOnReadyEffectCalled.current is false, but the script hasn't loaded yet (not in LoadCache) - * onReady is skipped, set hasOnReadyEffectCalled.current to true - * 3. The useEffect for loadScript executes - * 4. hasLoadScriptEffectCalled.current is false, loadScript executes - * Once the script is loaded, the onLoad and onReady will be called by then - * [If strict mode is enabled / is wrapped in component] - * 5. The useEffect for onReady executes again - * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped - * 7. The useEffect for loadScript executes again - * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped - * - * - Second mount: - * 1. The useEffect for onReady executes - * 2. hasOnReadyEffectCalled.current is false, but the script has already loaded (found in LoadCache) - * onReady is called, set hasOnReadyEffectCalled.current to true - * 3. The useEffect for loadScript executes - * 4. The script is already loaded, loadScript bails out - * [If strict mode is enabled / is wrapped in component] - * 5. The useEffect for onReady executes again - * 6. hasOnReadyEffectCalled.current is true, so entire effect is skipped - * 7. The useEffect for loadScript executes again - * 8. hasLoadScriptEffectCalled.current is true, so entire effect is skipped - */ const hasOnReadyEffectCalled = (0, _react).useRef(false); - (0, _react).useEffect(()=>{ - const cacheKey = id || src; - if (!hasOnReadyEffectCalled.current) { - // Run onReady if script has loaded before but component is re-mounted - if (onReady && cacheKey && LoadCache.has(cacheKey)) { - onReady(); - } - hasOnReadyEffectCalled.current = true; - } - }, [ - onReady, - id, - src - ]); - const hasLoadScriptEffectCalled = (0, _react).useRef(false); - (0, _react).useEffect(()=>{ - if (!hasLoadScriptEffectCalled.current) { - if (strategy === "afterInteractive") { - loadScript(props); - } else if (strategy === "lazyOnload") { - loadLazyScript(props); - } - hasLoadScriptEffectCalled.current = true; - } - }, [ - props, - strategy - ]); - if (strategy === "beforeInteractive" || strategy === "worker") { - if (updateScripts) { - scripts[strategy] = (scripts[strategy] || []).concat([ - _extends({ - id, - src, - onLoad, - onReady, - onError - }, restProps), - ]); - updateScripts(scripts); - } else if (getIsSsr && getIsSsr()) { - // Script has already loaded during SSR - LoadCache.add(id || src); - } else if (getIsSsr && !getIsSsr()) { - loadScript(props); - } - } - return null; -} -Object.defineProperty(Script, "__nextScript", { - value: true -}); -var _default = Script; -exports["default"] = _default; -if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") { - Object.defineProperty(exports.default, "__esModule", { - value: true - }); - Object.assign(exports.default, exports); - module.exports = exports.default; -} //# sourceMappingURL=script.js.map - - -/***/ }), - -/***/ 4298: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(699) - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4312.js b/dsql-app/.local_dist/server/chunks/4312.js new file mode 100644 index 0000000..8dc5222 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4312.js @@ -0,0 +1 @@ +"use strict";exports.id=4312,exports.ids=[4312],exports.modules={84312:(e,s,t)=>{t.d(s,{A:()=>u});var l=t(8732),a=t(82015),n=t.n(a),i=t(63715),r=t(55158),d=t(32415),c=t(58403),o=t(51548);function u({targetUser:e,user:s,setTargetUser:a}){let u=t(49436);if(!e)return null;let[m,h]=n().useState(!0),[x,p]=n().useState([]),[b,f]=n().useState(!1),[g,j]=n().useState(e?e.user_priviledge?.split("|"):[]),[v,w]=n().useState(e?.database_access?e.database_access.split("|"):[]),[_,N]=n().useState(e?e.database_access?.split("|")[0]:null),[y,A]=n().useState([]),[k,S]=n().useState([]);return(0,l.jsxs)(r.Ay,{title:"target-user-popup",closePopupDispatch:()=>{a(null)},children:[m&&(0,l.jsx)(d.A,{position:"relative"}),!m&&e&&(0,l.jsx)(n().Fragment,{children:(0,l.jsxs)("div",{className:"flex-col w-full items-start p-4",children:[(0,l.jsxs)("h4",{className:"m-0",children:["Edit ",e.first_name," ",e.last_name,"'s Access"]}),(0,l.jsx)("hr",{}),(0,l.jsxs)("form",{className:"flex flex-col items-start w-full",onSubmit:s=>{s.preventDefault(),h(!0),(0,i.A)("/api/updateAdminUserAccess",{method:"post",body:{userObject:e,user_priviledge:g.join("|"),database_access:v?.join("|"),db_tables:v&&v[0]?k.join("|"):"",inv_user_id:e.invited_user_id}},!0).then(e=>{window.location.reload(),setTimeout(()=>{h(!1)},500)})},children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Priviledges"}),(0,l.jsx)(c.A,{checkBoxValues:u.map(e=>({title:e,name:e,default:!!g.includes(e),onChangeHandler:s=>{g.includes(e)?j([...g.filter(s=>s!=e)]):j(s=>[...s,e])}})),smallText:!0,flexRow:!0}),(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Databases Access"}),(0,l.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-1 mb-1.5",onClick:e=>{b?(x.forEach(e=>{setTimeout(()=>{let s=document.getElementById(e.db_slug);s?.checked&&s.click()},200)}),f(!1)):(x.forEach(e=>{setTimeout(()=>{let s=document.getElementById(e.db_slug);s.checked||s.click()},200)}),f(!0))},children:b?"Deselect All":"Select All"}),(0,l.jsx)(c.A,{checkBoxValues:x.map(e=>({title:e.db_name,name:e.db_slug,onChangeHandler:s=>{v.includes(e.db_slug)?w([...v.filter(s=>s!=e.db_slug)]):w(s=>[...s,e.db_slug]),v.length===x.length?f(!0):f(!1)},default:!!v.includes(e.db_slug)})),smallText:!0,flexRow:!0}),v&&v[0]&&(0,l.jsxs)(n().Fragment,{children:[(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,l.jsx)(o.A,{required:!0,selectOptions:x.filter(e=>v.includes(e.db_slug)).map(e=>({title:e.db_name,payload:e.db_slug})),name:"databases",onChangeHandler:e=>{N(e.target.value)}}),(0,l.jsx)("div",{className:"h-2"}),y&&y[0]&&(0,l.jsx)(c.A,{checkBoxValues:y.map(e=>({title:e.table_name,name:e.table_slug,onChangeHandler:s=>{k.includes(`${_}-${e.table_slug}`)?S([...k.filter(s=>s!=`${_}-${e.table_slug}`)]):S(s=>[...s,`${_}-${e.table_slug}`])},default:!!k.includes(`${_}-${e.table_slug}`)})),smallText:!0,flexRow:!0})]}),(0,l.jsx)("button",{className:"mt-4 w-full",children:"Update User Access"})]})]})})]})}},58403:(e,s,t)=>{t.d(s,{A:()=>a});var l=t(8732);function a({name:e,checkBoxValues:s,setAlert:t,labelColor:a,flexRow:n,baseText:i,smallText:r,className:d}){return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(n?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:s.map((s,n)=>{let{payload:d,title:c,onChangeHandler:o,fixed:u,jsx:m}=s,h=s.name?`${e}-${s.name}`:d?e+"-"+d:e;return(0,l.jsxs)("div",{className:"flex items-center"+(s.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+(s?.className?s.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!s.default,name:h,id:h,onChange:e=>{t&&t(null),o&&o(e,s)},value:d,style:{minWidth:"20px"}}),m||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(a||"text-slate-800 dark:text-white/80")+(i||r?" text-base":" text-lg"),children:c})]},n+1)})})}t(82015)},51548:(e,s,t)=>{t.d(s,{A:()=>n});var l=t(8732),a=t(58526);function n({selectOptions:e,name:s,onChangeHandler:t,required:n,setAlert:i,title:r,defaultValue:d,info:c,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let s=e.target.closest(".info-wrapper"),t=s.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!t.classList.contains("hidden")){t.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&t.classList.contains("hidden"))){if(!s){t.classList.add("hidden");return}if(t.classList.contains("hidden")){t.classList.remove("hidden");return}t.classList.add("hidden")}}return(0,l.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[r&&(0,l.jsxs)("label",{htmlFor:s,children:[r,n?"":" (optional)"]}),(0,l.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,l.jsx)("select",{name:s,id:o||s,className:"w-full bg-white",required:n,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),t&&t(e)},defaultValue:d||void 0,children:e.map((e,s)=>{let{payload:t,title:a}=e;return(0,l.jsx)("option",{value:t,selected:!!e.default,children:a},s+1)})}),(0,l.jsx)(a.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,l.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,l.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,l.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,l.jsx)("span",{children:c})}),(0,l.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,l.jsx)("div",{children:"Form Select Error"})}}t(82015)},49436:e=>{e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4417.js b/dsql-app/.local_dist/server/chunks/4417.js new file mode 100644 index 0000000..d6bfde2 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/4417.js @@ -0,0 +1 @@ +"use strict";exports.id=4417,exports.ids=[4417],exports.modules={64417:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(8732),s=a(82015),n=a.n(s),i=a(65388),r=a(84896),d=a(27825),o=a.n(d);function u({targetField:e,fieldIndex:t,tableFields:s,setTableFields:d,refreshFieldsListRef:u,setActiveEdit:c,database:m,currentTable:x,user:p}){let h=e?.dataType?e.dataType.replace(/\d|\(|\)/g,""):null,f=e?.dataType?e.dataType.replace(/[^\d]/g,""):"200",g=a(43431),v=n().useRef(o().cloneDeep(e)),N=n().useRef(),[j,y]=n().useState(e),[T,b]=n().useState(e?.fieldName),[w,_]=n().useState(h),[V,I]=n().useState(f),[F,C]=n().useState("Varchar is simply letters and numbers within the range 0 - 255"),[S,A]=n().useState(e?.richText&&!e?.encrypted?"Yes":"No"),k=!!w?.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:N,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{e.preventDefault(),d(e=>(e[t]=j,e)),u.current(e=>e+1);let a=e.target;a.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden")},children:[(0,l.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let t=e.target;t.value=t.value.toLowerCase().replace(/ /g,"_"),y(e=>(e.fieldName=t.value,e.updatedField=!0,e.originName||(e.originName=T),e))},required:!0,defaultValue:T})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:F})})]})]}),(0,l.jsxs)("div",{className:"w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:t=>{let a=t.target;_(a.value),a.childNodes.forEach(e=>{e.value===a.value&&e.dataset.desc&&C(e.dataset.desc),e.value===a.value&&e.dataset.literal?(j.defaultValueLiteral=e.dataset.literal,j.nullValue=!1):delete j.defaultValueLiteral}),e.dataType=a.value+(a.value.match(/VARCHAR/)?`(${V||200})`:"")},defaultValue:w||void 0,children:g.map((e,t)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(V||200)+")"},t+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},t+1))}),w?.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:V||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:t=>{I(t.target.value),e.dataType=w+`(${t.target.value})`}})]})]}),w?.match(/text/i)&&(0,l.jsx)(n().Fragment,{children:(0,l.jsx)(r.A,{targetField:e})}),!e.dataType?.match(/text/i)&&!k&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:e?.notNullValue?"Yes":"No",onChange:t=>{console.log(e),"Yes"===t.target.value?e.notNullValue=!0:(e.notNullValue=!1,delete e.notNullValue)},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!k&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:j?.dataType?.match(/text$/i)?"Can't Set Default for text values":"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:j?.dataType?.match(/text$/i)?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:j?.defaultValue?j.defaultValue:j?.nullValue?"NULL":"",onInput:e=>{let t=e.target;j.dataType?.match(/text$/i)||y(e=>(t.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),t.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):t.value.match(/./)&&(delete e.nullValue,e.defaultValue=t.value),e))}})]}),!k&&(0,l.jsx)(i.A,{database:m,setFieldData:y,setTableFields:d,tableFields:s,targetField:e,user:p,currentTable:x,fieldIndex:t})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:a=>{v.current&&(e=o().cloneDeep(v.current)),d(e=>{let a=o().cloneDeep(e);return t&&v.current&&(a[t]=o().cloneDeep(v.current)),a}),c&&c(!1)},children:"Cancel"})]})]})})}},65388:(e,t,a)=>{a.d(t,{A:()=>g});var l=a(8732),s=a(82015),n=a.n(s),i=a(13737),r=a(58150);function d({targetField:e}){if(!e?.richText)return null;let[t,a]=n().useState(e.cssFiles||[]),s=n().useRef(null);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,l.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),t.map((e,t)=>(0,l.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,l.jsx)("span",{children:e}),(0,l.jsx)(r.A,{size:20,onClick:()=>{a(t=>t.filter(t=>t!==e))},className:"cursor-pointer hover:opacity-60 "})]},t+1)),(0,l.jsxs)("div",{className:"row w-full",children:[(0,l.jsx)(i.A,{name:"css-file",placeholder:"CSS file URL",elementRef:s}),(0,l.jsx)("button",{className:"secondary outlined",onClick:()=>{let e=s.current?.value;e?.match(/./)&&a(t=>[...new Set([...t,e])])},children:"Add"})]}),(0,l.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function o({targetField:e,setFieldData:t}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,l.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:e?.encrypted?"Yes":"No",onChange:e=>{t&&t(t=>(e.target.value.match(/yes/i)?t.encrypted=!0:(t.encrypted=!1,delete t.encrypted),t))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var u=a(12097);function c({targetField:e,setFieldData:t}){return null}function m({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,l.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:t=>{let a=t.target;a?.value?.length>0?e.pattern=a.value:delete e.pattern},defaultValue:e?.pattern}),(0,l.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:t=>{let a=t.target;a?.value?.length>0?e.patternFlags=a.value:delete e.patternFlags},defaultValue:e?.patternFlags})]})}var x=a(27825),p=a.n(x),h=a(2817);function f({targetField:e,setFieldData:t}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,l.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:e?.unique?"Yes":"No",onChange:e=>{t&&t(t=>(e.target.value.match(/yes/i)?t.unique=!0:(t.unique=!1,delete t.unique),t))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g({targetField:e,currentTable:t,database:a,tableFields:s,setTableFields:i,setFieldData:r,user:x,fieldIndex:g}){let[v,N]=n().useState(!1),j=n().useRef(p().cloneDeep(e));return(0,l.jsxs)(n().Fragment,{children:[(0,l.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{N(!0)},children:"More"}),(0,l.jsx)(h.A,{open:v,onClose:()=>{j.current&&(e=p().cloneDeep(j.current)),N(!1)},maxWidth:"600px",children:(0,l.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,l.jsx)("div",{className:"w-full justify-between",children:(0,l.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,l.jsx)(d,{targetField:e}),(0,l.jsx)(f,{targetField:e,setFieldData:r}),(0,l.jsx)(o,{targetField:e,setFieldData:r}),t&&(0,l.jsx)(u.A,{targetField:e,setFieldData:r,database:a,tableFields:s,setTableFields:i,currentTable:t,user:x}),(0,l.jsx)(c,{targetField:e,setFieldData:r}),(0,l.jsx)(m,{targetField:e}),(0,l.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{N(!1)},children:"Done"})]})})]})}},12097:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),s=a(82015),n=a.n(s),i=a(63715),r=a(32415);function d({targetField:e,setFieldData:t,tableFields:a,setTableFields:s,database:d,currentTable:o,user:u,setActiveEdit:c,activeClonedTable:m}){let[x,p]=n().useState(!!e?.foreignKey),[h,f]=n().useState(null),[g,v]=n().useState(null),[N,j]=n().useState(null),[y,T]=n().useState(null),[b,w]=n().useState(!1);return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[b&&(0,l.jsx)(r.A,{}),(0,l.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,l.jsx)("span",{children:"Foreign Key?"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,l.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:e?.foreignKey?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(p(!0),t&&t(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(p(!1),t&&t(e=>(delete e.foreignKey,e)))},children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]}),x&&h&&(0,l.jsx)(n().Fragment,{children:(0,l.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableName?e.foreignKey.destinationTableName:void 0,onChange:e=>{let a=e.target;if(e.target.value?.match(/--/)){t?t(e=>{let t=e.foreignKey;return t&&(t.destinationTableName=void 0),e}):a.dataset.destinationTableName=void 0;return}let l=h.filter(t=>t.tableName===e.target.value)[0];v(l),l?.fields&&j(l.fields),t?t(t=>{let a=t.foreignKey;return a&&(a.destinationTableName=e.target.value),t}):e.target.dataset.destinationTableName=e.target.value},children:[(0,l.jsx)("option",{value:"--",children:"--Select Table--"}),h.map((e,t)=>(0,l.jsx)("option",{value:e.tableName,children:e.tableFullName},t+1))]})}),g&&N&&(0,l.jsxs)(n().Fragment,{children:[(0,l.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:e?.foreignKey?.destinationTableColumnName?e.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{let a=N.filter(t=>t.fieldName===e.target.value)[0];if(T(a),e.target.value?.match(/--/)){t&&t(e=>{let t=e.foreignKey;return t&&(t.destinationTableColumnName=void 0),e});return}let l=`dsql_${d.user_id}_${d.db_slug}_${Date.now()}`;t?t(e=>{e.dataType=a.dataType;let t=e.foreignKey;return t&&(t.destinationTableColumnName=a.fieldName,t.destinationTableColumnType=a.dataType,t.foreignKeyName=l),e}):(e.target.dataset.dataType=a.dataType,e.target.dataset.destinationTableColumnName=a.fieldName,e.target.dataset.foreignKeyName=l)}catch(e){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:u}})}},children:[(0,l.jsx)("option",{value:"--",children:"--Select Column--"}),N.map((e,t)=>(0,l.jsx)("option",{value:e.fieldName,children:e.fieldName},t+1))]}),m&&y&&(0,l.jsx)("button",{className:"secondary w-full",onClick:e=>{w(!0),(0,i.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:o,database:d.db_full_name,dbSlug:d.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{c&&c(!1)},1e3)})},children:"Add Foreign Key"})]}),m&&(0,l.jsx)("button",{className:"light-gray w-full",onClick:t=>{delete e.foreignKey,c&&c(!1)},children:"Cancel"})]})}},84896:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({targetField:e}){return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,l.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:t=>{switch(delete e.json,delete e.richText,delete e.yaml,delete e.html,delete e.javascript,delete e.shell,t.target.value){case"plain":break;case"rte":e.richText=!0;break;case"json":e.json=!0;break;case"yaml":e.yaml=!0;break;case"html":e.html=!0;break;case"css":e.css=!0;break;case"javascript":e.javascript=!0;break;case"shell":e.shell=!0}},defaultValue:e.richText?"rte":e.json?"json":e.yaml?"yaml":e.html?"html":e.javascript?"javascript":e.shell?"shell":e.css?"css":"plain",children:[(0,l.jsx)("option",{value:"plain",children:"Plain Text"}),(0,l.jsx)("option",{value:"rte",children:"Rich Text"}),(0,l.jsx)("option",{value:"json",children:"JSON"}),(0,l.jsx)("option",{value:"yaml",children:"YAML"}),(0,l.jsx)("option",{value:"html",children:"HTML"}),(0,l.jsx)("option",{value:"css",children:"CSS"}),(0,l.jsx)("option",{value:"javascript",children:"Javascript"}),(0,l.jsx)("option",{value:"shell",children:"Shell"})]})]})}a(82015)},2817:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({children:e,open:t,setOpen:a,onClose:s,maxWidth:n}){return(0,l.jsx)(l.Fragment,{})}a(82015),a(1976),a(58150)},43431:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4432.js b/dsql-app/.local_dist/server/chunks/4432.js deleted file mode 100644 index 130367c..0000000 --- a/dsql-app/.local_dist/server/chunks/4432.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -exports.id = 4432; -exports.ids = [4432]; -exports.modules = { - -/***/ 4432: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { IncomingMessage } = __webpack_require__(3685); -const decrypt = __webpack_require__(5425); -/** - * @async - * @param {import("next").NextApiRequest | IncomingMessage & { cookies: Partial<{ [key: string]: string; }>} } req - https request object - * - * @returns {Promise<({ email: string, password: string, authKey: string, logged_in_status: boolean, date: number } | null)>} - */ module.exports = async function(req) { - /** ********************* Check for existence of required cookie */ if (!req.cookies?.datasquirelSuAdminUserAuthKey) { - return null; - } - /** ********************* Grab the payload */ let userPayload = decrypt(req.cookies.datasquirelSuAdminUserAuthKey); - /** ********************* Return if no payload */ if (!userPayload) return null; - /** ********************* Parse the payload */ let userObject = JSON.parse(userPayload); - if (userObject.password !== process.env.DSQL_USER_KEY) return null; - if (userObject.authKey !== process.env.DSQL_SPECIAL_KEY) return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* return user object */ return userObject; -}; - - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4480.js b/dsql-app/.local_dist/server/chunks/4480.js deleted file mode 100644 index e211c4a..0000000 --- a/dsql-app/.local_dist/server/chunks/4480.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -exports.id = 4480; -exports.ids = [4480]; -exports.modules = { - -/***/ 5304: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 9395: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(3260); -const MASTER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - database: process.env.DSQL_DB_NAME, - port: process.env.DSQL_DB_PORT ? Number(process.env.DSQL_DB_PORT) : undefined, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ // @ts-ignore -async function DB_HANDLER(...args) { - try { - const results = await MASTER.query(...args); - /** ********************* Clean up */ await MASTER.end(); - return JSON.parse(JSON.stringify(results)); - } catch (/** @type {any} */ error) { - console.log("DB Error =>", error); - return { - success: false, - error: error.message - }; - } -} -module.exports = DB_HANDLER; - - -/***/ }), - -/***/ 3260: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -/** - * @returns {string | (import("tls").SecureContextOptions & { rejectUnauthorized?: boolean | undefined;}) | undefined} - */ module.exports = function grabDbSSL() { - const SSL_DIR = process.env.DSQL_SSL_DIR; - if (!SSL_DIR?.match(/./)) { - return undefined; - } - const caFilePath = `${SSL_DIR}/ca-cert.pem`; - if (!fs.existsSync(caFilePath)) { - console.log(`${caFilePath} does not exist`); - return undefined; - } - return { - ca: fs.readFileSync(`${SSL_DIR}/ca-cert.pem`) - }; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4559.js b/dsql-app/.local_dist/server/chunks/4559.js deleted file mode 100644 index 11c0ff6..0000000 --- a/dsql-app/.local_dist/server/chunks/4559.js +++ /dev/null @@ -1,1170 +0,0 @@ -"use strict"; -exports.id = 4559; -exports.ids = [4559]; -exports.modules = { - -/***/ 4559: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ TableEntryField) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -;// CONCATENATED MODULE: ./functions/frontend/generateFormElementsForEntry.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} params.fieldObject - * @param {any} params.dataTypeSchema - * @param {React.MutableRefObject} params.elementRef - * @param {any} params.entry - */ -function generateFormElementsForEntry({ fieldObject , dataTypeSchema , elementRef , entry , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ let formElement; - const titleSlugHandler = (/** @type {any} */ e)=>{ - const parentForm = e.target.closest("form"); - if (!parentForm) return; - const slug = parentForm?.querySelector("#slug"); - if (slug) { - slug.value = e.target.value.toLowerCase().replace(/ /g, "-").replace(/[^a-z\-0-9]/g, ""); - } - }; - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (fieldObject.defaultField) { - formElement = /*#__PURE__*/ jsx_runtime_.jsx("input", { - ref: elementRef, - type: "text", - name: "def_field_" + fieldObject.fieldName, - id: "def_field_" + fieldObject.fieldName, - placeholder: fieldObject.fieldName, - defaultValue: entry && entry[fieldObject.fieldName || ""] ? entry[fieldObject.fieldName || ""] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - readOnly: true, - "data-default": "true" - }); - return formElement; - } - //////////////////////////////////////// - if (fieldObject.dataType?.match(/varchar/i)) { - formElement = /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - ref: elementRef, - name: fieldObject.fieldName, - id: fieldObject.fieldName, - placeholder: fieldObject.fieldName, - required: fieldObject.notNullValue ? true : false, - maxLength: fieldObject.dataType?.match(/\d+/)?.[0] ? parseInt(fieldObject.dataType?.match(/\d+/)?.[0] || "") : undefined, - defaultValue: entry && entry[fieldObject.fieldName || ""] ? entry[fieldObject.fieldName || ""] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - onChange: (e)=>{ - if (fieldObject.fieldName?.match(/^title$/)) titleSlugHandler(e); - } - }); - } - //////////////////////////////////////// - if (fieldObject.dataType?.match(/int$/i)) { - formElement = /*#__PURE__*/ jsx_runtime_.jsx("input", { - ref: elementRef, - type: "number", - name: fieldObject.fieldName, - id: fieldObject.fieldName, - placeholder: fieldObject.fieldName, - required: fieldObject.notNullValue ? true : false, - max: dataTypeSchema.maxValue, - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - defaultValue: entry && entry[fieldObject.fieldName || ""] ? entry[fieldObject.fieldName || ""] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - onChange: (e)=>{} - }); - } - //////////////////////////////////////// - if (fieldObject.dataType?.match(/text$/i)) { - formElement = /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - ref: elementRef, - name: fieldObject.fieldName, - id: fieldObject.fieldName, - placeholder: fieldObject.fieldName, - required: fieldObject.notNullValue ? true : false, - defaultValue: entry && entry[fieldObject.fieldName || ""] ? entry[fieldObject.fieldName || ""] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - rows: 10, - onChange: (e)=>{} - }); - } - //////////////////////////////////////// - if (fieldObject.fieldName?.match(/password|^pass$|^key$/i)) { - formElement = /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - ref: elementRef, - type: "password", - name: fieldObject.fieldName, - id: fieldObject.fieldName, - placeholder: fieldObject.fieldName, - required: fieldObject.notNullValue ? true : false, - max: dataTypeSchema.maxValue, - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - defaultValue: entry && entry[fieldObject.fieldName] ? entry[fieldObject.fieldName] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - onChange: (e)=>{} - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "absolute right-4 cursor-pointer", - onClick: (e)=>{ - let input = e.target// @ts-ignore - .closest("div").querySelector("input"); - if (input.type === "password") { - input.type = "text"; - // @ts-ignore - e.target.innerText = "Hide"; - } else { - input.type = "password"; - // @ts-ignore - e.target.innerText = "Reveal"; - } - }, - children: "Reveal" - }) - ] - }); - } - //////////////////////////////////////// - if (!formElement) formElement = /*#__PURE__*/ jsx_runtime_.jsx("input", { - ref: elementRef, - type: "text", - name: fieldObject.fieldName, - id: fieldObject.fieldName, - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - defaultValue: entry && entry[fieldObject.fieldName || ""] ? entry[fieldObject.fieldName || ""] : fieldObject.defaultValue ? fieldObject.defaultValue : "", - onChange: (e)=>{} - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return formElement; -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/LockOutlined" -var LockOutlined_ = __webpack_require__(399); -var LockOutlined_default = /*#__PURE__*/__webpack_require__.n(LockOutlined_); -// EXTERNAL MODULE: external "@tinymce/tinymce-react" -var tinymce_react_ = __webpack_require__(6451); -// EXTERNAL MODULE: external "react-dom/client" -var client_ = __webpack_require__(7849); -var client_default = /*#__PURE__*/__webpack_require__.n(client_); -;// CONCATENATED MODULE: ./components/general/EmbedPopupContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("tinymce").Editor} props.editor - * @param {HTMLElement} props.rootElement - */ function EmbedPopupContent({ editor , rootElement }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - const htmlText = formEl["embed-text-area"].value; - if (!htmlText?.match(/./)) return alert("Please Enter HTML Text to continue."); - editor.insertContent(htmlText); - document.body.removeChild(rootElement); - }, - className: "w-full flex flex-col items-stretch gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-center text-lg", - children: "Enter HTML code" - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: "embed-text-area", - id: "embed-text-area", - cols: 30, - rows: 10, - placeholder: "Paste Code here ..." - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - children: "Embed" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./functions/frontend/handleCopyHTML.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {import("tinymce").Editor} [params.editor] - * - * @requires search-field name attribute - */ function handleCopyHTML({ editor }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ navigator.clipboard.writeText(editor?.getContent() || "").then(()=>{ - alert("Html Copied to Clipboard!"); - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -// EXTERNAL MODULE: external "html-prettify" -var external_html_prettify_ = __webpack_require__(2329); -var external_html_prettify_default = /*#__PURE__*/__webpack_require__.n(external_html_prettify_); -;// CONCATENATED MODULE: ./components/general/EditHTMLPopupContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("tinymce").Editor} props.editor - * @param {HTMLElement} props.rootElement - */ function EditHTMLPopupContent({ editor , rootElement }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const html = editor.getContent(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.RefObject} */ const editorRef = external_react_default().useRef(); - /** @type {React.RefObject} */ // @ts-ignore - const saveButtonRef = external_react_default().useRef(); - /** @type {[state: AceAjax.Editor | null, setState: React.Dispatch>]} */ // @ts-ignore - const [aceEditor, setAceEditor] = external_react_default().useState(null); - external_react_default().useEffect(()=>{ - try { - if (!ace?.edit || !editorRef.current) { - console.log("Ace Editor not found!"); - return; - } - const editor = ace.edit(editorRef.current); - editor.setOptions({ - mode: "ace/mode/html", - value: external_html_prettify_default()(html) - }); - setAceEditor(editor); - try { - const beautify = ace.require("ace/ext/beautify"); - beautify.beautify(editor.session); - } catch (/** @type {any} */ error) {} - } catch (/** @type {any} */ error1) { - console.log("JSON Editor ERROR =>", error1.message); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - onKeyUp: (e)=>{ - if (e.ctrlKey && e.key == "Enter") { - saveButtonRef.current?.click(); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "embed-popup-form-content-wrapper relative flex flex-col items-center justify-center", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - ref: editorRef, - className: "w-full h-[80vh] text-[18px]" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "absolute bottom-4 right-4", - onClick: (e)=>{ - if (aceEditor) { - /** @type {AceAjax.Editor} */ const finalAceEditor = aceEditor; - const content = finalAceEditor.getValue(); - editor.setContent(content); - setTimeout(()=>{ - document.body.removeChild(rootElement); - }, 200); - } - }, - ref: saveButtonRef, - children: "Save" - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "absolute top-4 right-8 rounded-full white", - onClick: ()=>{ - try { - document.body.removeChild(rootElement); - } catch (error) {} - }, - style: { - width: "40px", - height: "40px", - padding: "0", - zIndex: "12039800000" - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.X, {}) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./functions/frontend/handleEditHTML.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {import("tinymce").Editor} [params.editor] - * - * @requires search-field name attribute - */ function handleEditHTML({ editor }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ const popupWrapper = document.createElement("div"); - popupWrapper.style.position = "fixed"; - popupWrapper.style.width = "100vw"; - popupWrapper.style.height = "100vh"; - popupWrapper.style.zIndex = "123000000000000000"; - popupWrapper.style.backgroundColor = "rgba(0,0,0,0.8)"; - popupWrapper.style.display = "flex"; - popupWrapper.style.alignItems = "center"; - popupWrapper.style.justifyContent = "center"; - popupWrapper.style.top = "0"; - popupWrapper.style.left = "0"; - document.body.append(popupWrapper); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - popupWrapper.onclick = (e)=>{ - /** @type {HTMLElement} */ // @ts-ignore - const el = e.target; - if (el.closest(".embed-popup-form-content-wrapper")) { - return; - } - document.body.removeChild(popupWrapper); - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (editor) { - const root = client_default().createRoot(popupWrapper); - root.render(/*#__PURE__*/ jsx_runtime_.jsx(EditHTMLPopupContent, { - editor: editor, - rootElement: popupWrapper - })); - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./functions/frontend/handleEmbed.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {import("tinymce").Editor} [params.editor] - * - * @requires search-field name attribute - */ function handleEmbed({ editor }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ const popupWrapper = document.createElement("div"); - popupWrapper.style.position = "fixed"; - popupWrapper.style.width = "100vw"; - popupWrapper.style.height = "100vh"; - popupWrapper.style.zIndex = "123000000000000000"; - popupWrapper.style.backgroundColor = "rgba(0,0,0,0.8)"; - popupWrapper.style.display = "flex"; - popupWrapper.style.alignItems = "center"; - popupWrapper.style.justifyContent = "center"; - popupWrapper.style.top = "0"; - popupWrapper.style.left = "0"; - document.body.append(popupWrapper); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - popupWrapper.onclick = (e)=>{ - /** @type {HTMLElement} */ // @ts-ignore - const el = e.target; - if (el.closest(".embed-popup-form-content-wrapper")) { - console.log("Still In Form"); - return; - } - document.body.removeChild(popupWrapper); - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (editor) { - const root = client_default().createRoot(popupWrapper); - root.render(/*#__PURE__*/ jsx_runtime_.jsx(EmbedPopupContent, { - editor: editor, - rootElement: popupWrapper - })); - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./functions/frontend/tinyMCEEditorSetup.js -// @ts-check - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @param {object} params - * @param {import("tinymce").Editor} params.editor - * @param {string} [params.formButtonId] - */ function tinyMCEEditorSetup({ editor , formButtonId }) { - editor.addShortcut("meta+13", "Save Entry.", ()=>{ - const confirm = window.confirm("Update this Form?"); - if (!confirm) return; - if (formButtonId) document.getElementById(formButtonId)?.click(); - }); - editor.addShortcut("meta+shift+e", "Edit Code.", ()=>{ - handleEditHTML({ - editor - }); - }); - editor.addShortcut("meta+shift+d", "Embed Code.", ()=>{ - handleEmbed({ - editor - }); - }); - editor.addShortcut("meta+shift+c", "Copy Code.", ()=>{ - handleCopyHTML({ - editor - }); - }); - editor.ui.registry.addButton("editCode", { - icon: "edit-block", - onAction: (_)=>handleEditHTML({ - editor - }), - tooltip: "Edit HTML Code" - }); - editor.ui.registry.addButton("embedCode", { - icon: "sourcecode", - onAction: (_)=>handleEmbed({ - editor - }), - tooltip: "Embed Code" - }); - editor.ui.registry.addButton("copyCode", { - icon: "copy", - onAction: (_)=>handleCopyHTML({ - editor - }), - tooltip: "Copy HTML" - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/admin/databases/TableRichTextEntryField.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.fieldObject - * @param {any} [props.dataTypeSchema] - * @param {React.MutableRefObject} props.richTextEditors - * @param {React.MutableRefObject} props.currentRichTextEditorForms - * @param {any} props.entry - * @param {boolean} [props.entryPage] - * @param {string} [props.formButtonId] - */ function TableRichTextEntryField({ fieldObject , dataTypeSchema , richTextEditors , entry , currentRichTextEditorForms , entryPage , formButtonId , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [ready, setReady] = external_react_default().useState(false); - const elementRef = external_react_default().useRef(); - /** @type {React.MutableRefObject} */ const editorRef = external_react_default().useRef(); - const log = ()=>{ - if (editorRef.current) { - console.log(editorRef.current.getContent()); - } - }; - external_react_default().useEffect(()=>{ - setReady(true); - }, []); - external_react_default().useEffect(()=>{ - if (ready) { - richTextEditors.current.push({ - fieldName: fieldObject.fieldName || "", - // @ts-ignore - ref: editorRef - }); - currentRichTextEditorForms.current.push({ - fieldName: fieldObject.fieldName || "", - // @ts-ignore - ref: editorRef - }); - } - }, [ - ready - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0 w-full rich-text-editor-wrapper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("label", { - className: "font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2", - htmlFor: fieldObject.fieldName, - children: [ - fieldObject.encrypted && /*#__PURE__*/ jsx_runtime_.jsx((LockOutlined_default()), { - fontSize: "small", - className: "opacity-50" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: fieldObject.fieldName - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - // @ts-ignore - ref: elementRef, - id: fieldObject.fieldName, - className: "w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20", - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px" - }, - children: [ - !ready && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - ready && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(tinymce_react_.Editor, { - tinymceScriptSrc: "/tinymce/tinymce.min.js", - onInit: (evt, editor)=>{ - editorRef.current = editor; - }, - initialValue: fieldObject.defaultValue || (entry && fieldObject.fieldName && entry[fieldObject.fieldName] ? entry[fieldObject.fieldName] : ""), - init: { - height: entryPage ? 400 : 300, - width: "100%", - convert_urls: false, - menubar: false, - plugins: [ - "advlist", - "lists", - "link", - "image", - "charmap", - "anchor", - "searchreplace", - "visualblocks", - "code", - "fullscreen", - "insertdatetime", - "media", - "table", - "preview", - "help", - "wordcount", - ], - toolbar: "undo redo | blocks | " + "bold italic forecolor | link image | alignleft aligncenter " + "alignright alignjustify | bullist numlist outdent indent | " + "removeformat help | editCode embedCode copyCode", - placeholder: "Type something ...", - document_base_url: "/", - content_css: fieldObject.cssFiles || undefined, - setup: (editor)=>{ - tinyMCEEditorSetup({ - editor, - formButtonId - }); - } - } - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: external "@monaco-editor/react" -var react_ = __webpack_require__(2587); -;// CONCATENATED MODULE: ./components/admin/databases/fields/text/ace-editor.js -// @ts-check -/** - * # Setup ACE Editor - * @param {object} param0 - * @param {React.MutableRefObject} param0.jsonEditorRef - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} param0.fieldObject - * @param {React.Dispatch>} param0.setRefresh - * @param {import("./JSONEditor").AceTextType} param0.typeFinal - * @param {any} param0.entry - * @param {React.MutableRefObject} param0.jsonTextEditors - * @param {React.MutableRefObject} param0.editorRef - */ function aceEditorSetup({ jsonEditorRef , fieldObject , setRefresh , typeFinal , entry , jsonTextEditors , editorRef , }) { - try { - if (!ace?.edit || !jsonEditorRef.current || !fieldObject.fieldName) { - console.log("Ace Editor not found!"); - setTimeout(()=>{ - setRefresh((prev)=>prev + 1); - }, 1000); - return; - } - const editor = ace.edit(jsonEditorRef.current); - editor.setOptions({ - mode: "ace/mode/" + typeFinal, - // theme: "ace/theme/twilight", - value: fieldObject.defaultValue ? fieldObject.defaultValue : entry?.[fieldObject.fieldName] ? (()=>{ - if (typeFinal !== "json") return entry[fieldObject.fieldName]; - try { - return JSON.stringify(JSON.parse(entry[fieldObject.fieldName]), null, 4); - } catch (error) { - return entry[fieldObject.fieldName]; - } - })() : "", - placeholder: typeFinal == "json" ? "{} ..." : "", - enableBasicAutocompletion: true, - enableLiveAutocompletion: true - }); - jsonTextEditors.current.push({ - fieldName: fieldObject.fieldName, - ref: editorRef - }); - editorRef.current = editor; - try { - const beautify = ace.require("ace/ext/beautify"); - beautify.beautify(editor.session); - } catch (/** @type {any} */ error) {} - } catch (/** @type {any} */ error1) { - console.log("JSON Editor ERROR =>", error1.message); - } -} - -;// CONCATENATED MODULE: ./components/admin/databases/fields/text/JSONEditorHeader.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # JSON editor Header - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.fieldObject - * @param {import("./JSONEditor").AceTextType} props.typeFinal - * @param {boolean} props.isExpanded - * @param {React.Dispatch>} props.setHeight - * @param {number} props.COLLAPSED_HEIGHT - * @param {number} props.EXPANDED_HEIGHT - * @returns - */ function JSONEditorHeader({ fieldObject , typeFinal , isExpanded , setHeight , COLLAPSED_HEIGHT , EXPANDED_HEIGHT , }) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-2 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("label", { - className: "font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2", - htmlFor: fieldObject.fieldName, - children: [ - fieldObject.encrypted && /*#__PURE__*/ jsx_runtime_.jsx((LockOutlined_default()), { - fontSize: "small", - className: "opacity-50" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: fieldObject.fieldName - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: typeFinal - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex", - onClick: (e)=>{ - if (isExpanded) { - setHeight(COLLAPSED_HEIGHT); - } else { - setHeight(EXPANDED_HEIGHT); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-sm", - children: isExpanded ? "Collapse" : "Expand" - }), - isExpanded ? /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.CircleMinus, { - size: 18, - className: "mt-[-1px]" - }) : /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.CirclePlus, { - size: 18, - className: "mt-[-1px]" - }) - ] - }) - ] - }); -} - -;// CONCATENATED MODULE: ./components/admin/databases/fields/text/JSONEditor.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {"yaml" | "json" | "html" | "css" | "javascript" | "shell"} AceTextType - */ const COLLAPSED_HEIGHT = 300; -const EXPANDED_HEIGHT = 600; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.fieldObject - * @param {any} [props.dataTypeSchema] - * @param {any | undefined} props.entry - * @param {boolean} [props.entryPage] - * @param {React.MutableRefObject} props.jsonTextEditors - * @param {AceTextType} [props.type] - */ function JSONEditor({ fieldObject , dataTypeSchema , entry , entryPage , jsonTextEditors , type , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ /** @type {AceTextType} */ const typeFinal = type || "json"; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [refresh, setRefresh] = external_react_default().useState(0); - const [height, setHeight] = external_react_default().useState(COLLAPSED_HEIGHT); - const isExpanded = height !== COLLAPSED_HEIGHT; - /** @type {React.MutableRefObject} */ const jsonEditorRef = external_react_default().useRef(); - /** @type {React.MutableRefObject} */ // @ts-ignore - const editorRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - aceEditorSetup({ - editorRef, - entry, - fieldObject, - jsonEditorRef, - jsonTextEditors, - setRefresh, - typeFinal - }); - }, [ - refresh - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0 w-full rich-text-editor-wrapper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(JSONEditorHeader, { - fieldObject, - isExpanded, - setHeight, - typeFinal, - COLLAPSED_HEIGHT, - EXPANDED_HEIGHT - }), - /*#__PURE__*/ jsx_runtime_.jsx(JSONContent, { - height: height, - jsonEditorRef: jsonEditorRef - }) - ] - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseShellContent/catch-error-return", - message: error.message - } - }); - }, []); - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Editor Load Error" - }) - }); - } -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * - * @param {Object} props - * @param {number} props.height - * @param {React.MutableRefObject} props.jsonEditorRef - * @returns - */ function JSONContent({ height , jsonEditorRef }) { - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden", - style: { - borderRadius: "0 5px 5px 5px", - marginTop: "-1px", - height: `${height}px` - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - // @ts-ignore - ref: jsonEditorRef, - className: `w-full text-[18px] h-full` - }) - }); -} - -;// CONCATENATED MODULE: ./components/admin/databases/TableEntryField.jsx -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 2 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [TableEntryForm.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\TableEntryForm.jsx - * `import` Statement Found in [UpdateEntryForm.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\UpdateEntryForm.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.fieldObject - * @param {Object} props.dataTypeSchema - * @param {React.MutableRefObject} props.richTextEditors - * @param {React.MutableRefObject} props.jsonTextEditors - * @param {any} [props.entry] - * @param {React.MutableRefObject} props.currentRichTextEditorForms - * @param {any} props.confirmedDelegetedUser - * @param {any} [props.query] - * @param {boolean} [props.entryPage] - * @param {string} [props.formButtonId] - */ function TableEntryField({ fieldObject , dataTypeSchema , richTextEditors , jsonTextEditors , entry , currentRichTextEditorForms , confirmedDelegetedUser , query , entryPage , formButtonId , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const elementRef = external_react_default().useRef(); - const formElement = generateFormElementsForEntry({ - fieldObject, - dataTypeSchema, - elementRef, - entry - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (fieldObject.dataType?.match(/text$/i) && fieldObject.richText && !fieldObject.plainText && !fieldObject.fieldName?.match(/^pass|^key$/i) && !fieldObject.encrypted || fieldObject.encrypted && fieldObject.richText) return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(TableRichTextEntryField, { - fieldObject: fieldObject, - dataTypeSchema: dataTypeSchema, - richTextEditors: richTextEditors, - currentRichTextEditorForms: currentRichTextEditorForms, - entry: entry, - entryPage: entryPage, - formButtonId: formButtonId - }) - }); - const isAceEditor = fieldObject.json || fieldObject.yaml || fieldObject.html || fieldObject.css || fieldObject.javascript || fieldObject.shell; - /** - * JSON Return - * - * @abstract Return if Datatype is JSON - */ if (fieldObject.dataType?.match(/text$/i) && isAceEditor && !fieldObject.plainText && !fieldObject.fieldName?.match(/^pass|^key$/i) && !fieldObject.encrypted || fieldObject.encrypted && isAceEditor) { - return /*#__PURE__*/ jsx_runtime_.jsx(JSONEditor, { - fieldObject: fieldObject, - dataTypeSchema: dataTypeSchema, - entry: entry, - entryPage: entryPage, - jsonTextEditors: jsonTextEditors, - type: (()=>{ - if (fieldObject.json) return "json"; - if (fieldObject.yaml) return "yaml"; - if (fieldObject.html) return "html"; - if (fieldObject.css) return "css"; - if (fieldObject.javascript) return "javascript"; - if (fieldObject.shell) return "shell"; - return "json"; - })() - }); - } - //////////////////////////////////////// - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0 w-full" + (fieldObject.defaultField ? " opacity-50" : ""), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("label", { - className: "font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2", - htmlFor: fieldObject.fieldName, - children: [ - fieldObject.encrypted && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx((LockOutlined_default()), { - fontSize: "small", - className: "opacity-50" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: fieldObject.fieldName - }), - fieldObject.defaultField && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs", - children: "Default Field" - }) - ] - }), - formElement - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4598.js b/dsql-app/.local_dist/server/chunks/4598.js deleted file mode 100644 index 82dfc8b..0000000 --- a/dsql-app/.local_dist/server/chunks/4598.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; -exports.id = 4598; -exports.ids = [4598]; -exports.modules = { - -/***/ 4598: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FadedImage) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * src: string, - * alt?: string, - * className?: string, - * fadeHeight?: string, - * width?: number, - * height?: number, - * opacity?: number - * }} props - Server props - */ function FadedImage({ src , alt , className , fadeHeight , width , height , opacity , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "overflow-hidden z-0" + (className ? " " + className : ""), - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: src, - alt: alt, - className: "w-full h-full object-cover", - width: width, - height: height - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "fade-side", - style: { - height: fadeHeight - } - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/464.js b/dsql-app/.local_dist/server/chunks/464.js deleted file mode 100644 index dbfee09..0000000 --- a/dsql-app/.local_dist/server/chunks/464.js +++ /dev/null @@ -1,172 +0,0 @@ -"use strict"; -exports.id = 464; -exports.ids = [464]; -exports.modules = { - -/***/ 5753: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ generateTypeDefinition) -/* harmony export */ }); -/* harmony import */ var _functions_frontend_defaultFieldsRegexp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3907); -// @ts-check - -/** - * Generate a type definition for a query - * ============================================================================== - * @param {object} param0 - * @param {"JavaScript" | "TypeScript" | undefined} param0.paradigm - * @param {import("@/package-shared/types").DSQL_TableSchemaType} param0.table - * @param {any} param0.query - * @param {import("@/package-shared/types").UserType} [param0.user] - - * @returns {string | null} - */ function generateTypeDefinition({ paradigm , table , query , user , }) { - /** @type {string | null} */ let typeDefinition = ``; - try { - const tdName = `DSQL_${query.single}_${query.single_table}`.toUpperCase(); - const fields = table.fields; - function typeMap(/** @type {string} */ type) { - if (type?.match(/int/i)) { - return "number"; - } - if (type?.match(/text|varchar|timestamp/i)) { - return "string"; - } - return "string"; - } - const typesArrayTypeScript = []; - const typesArrayJavascript = []; - typesArrayTypeScript.push(`type ${tdName} = {`); - typesArrayJavascript.push(`/**\n * @typedef {object} ${tdName}`); - fields.forEach((field)=>{ - const nullValue = field.nullValue ? "?" : field.fieldName?.match(_functions_frontend_defaultFieldsRegexp__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z) ? "?" : ""; - typesArrayTypeScript.push(` ${field.fieldName}${nullValue}: ${typeMap(field.dataType || "")};`); - typesArrayJavascript.push(` * @property {${typeMap(field.dataType || "")}${nullValue}} ${field.fieldName}`); - }); - typesArrayTypeScript.push(`}`); - typesArrayJavascript.push(` */`); - if (paradigm?.match(/javascript/i)) { - typeDefinition = typesArrayJavascript.join("\n"); - } - if (paradigm?.match(/typescript/i)) { - typeDefinition = typesArrayTypeScript.join("\n"); - } - } catch (/** @type {any} */ error) { - console.log(error.message); - typeDefinition = null; - } - return typeDefinition; -} - - -/***/ }), - -/***/ 6169: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ExpandBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {boolean} props.collapse - * @param {React.Dispatch>} props.setCollapse - */ function ExpandBlock({ collapse , setCollapse }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "collapse-block" + (collapse ? " -mt-16 -mb-6 pt-10" : " mt-0 mb-0 p-0"), - onClick: (e)=>{ - if (collapse) { - setCollapse(false); - } else { - setCollapse(true); - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: collapse ? "Expand" : "Collapse" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/down-arrow-dark.svg", - alt: "Down Arrow", - width: 16, - className: "dark:hidden opacity-30 " + (collapse ? "" : "rotate-180") - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/down-arrow-white.svg", - alt: "Down Arrow", - width: 16, - className: "opacity-30 hidden dark:flex " + (collapse ? "" : "rotate-180") - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 3907: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// @ts-check -/** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaultFieldsRegexp); - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4733.js b/dsql-app/.local_dist/server/chunks/4733.js deleted file mode 100644 index e013758..0000000 --- a/dsql-app/.local_dist/server/chunks/4733.js +++ /dev/null @@ -1,412 +0,0 @@ -"use strict"; -exports.id = 4733; -exports.ids = [4733]; -exports.modules = { - -/***/ 8499: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -/** # MODULE TRACE -====================================================================== - * Detected 3 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [get.js] => file:///d:\GitHub\datasquirel\pages\api\query\get.js - * `import` Statement Found in [post.js] => file:///d:\GitHub\datasquirel\pages\api\query\post.js - * `import` Statement Found in [add-user.js] => file:///d:\GitHub\datasquirel\pages\api\user\add-user.js -==== MODULE TRACE END ==== */ // @ts-check - -const fs = __webpack_require__(7147); -const LOCAL_DB_HANDLER = __webpack_require__(3062); -const fullAccessDbHandler = __webpack_require__(8539); -const varReadOnlyDatabaseDbHandler = __webpack_require__(3118); -const serverError = __webpack_require__(3017); -const addDbEntry = __webpack_require__(5338); -const updateDbEntry = __webpack_require__(5886); -const deleteDbEntry = __webpack_require__(6147); -const parseDbResults = __webpack_require__(8326); -const trimSql = __webpack_require__(6888); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Run DSQL users queries - * ============================================================================== - * @param {object} params - An object containing the function parameters. - * @param {string} params.dbFullName - Database full name. Eg. "datasquire_user_2_test" - * @param {string | any} params.query - Query string or object - * @param {boolean} [params.readOnly] - Is this operation read only? - * @param {boolean} [params.local] - Is this operation read only? - * @param {import("../../../types").DSQL_DatabaseSchemaType} [params.dbSchema] - Database schema - * @param {string[]} [params.queryValuesArray] - An optional array of query values if "?" is used in the query string - * @param {string} [params.tableName] - Table Name - * - * @return {Promise} - */ async function runQuery({ dbFullName , query , readOnly , dbSchema , queryValuesArray , tableName , local , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ /** @type {any} */ let result; - /** @type {any} */ let error; - /** @type {import("../../../types").DSQL_TableSchemaType | undefined} */ let tableSchema; - if (dbSchema) { - try { - const table = tableName ? tableName : typeof query == "string" ? null : query ? query?.table : null; - if (!table) throw new Error("No table name provided"); - tableSchema = dbSchema.tables.filter((tb)=>tb?.tableName === table)[0]; - } catch (_err) { - // console.log("ERROR getting tableSchema: ", _err.message); - } - } - /** - * Declare variables - * - * @description Declare "results" variable - */ try { - if (typeof query === "string") { - const formattedQuery = trimSql(query); - /** - * Input Validation - * - * @description Input Validation - */ if (readOnly && formattedQuery.match(/^alter|^delete|information_schema|databases|^create/i)) { - throw new Error("Wrong Input!"); - } - if (local) { - const rawResults = await LOCAL_DB_HANDLER(formattedQuery, queryValuesArray); - result = tableSchema ? parseDbResults({ - unparsedResults: rawResults, - tableSchema - }) : rawResults; - } else if (readOnly) { - result = await varReadOnlyDatabaseDbHandler({ - queryString: formattedQuery, - queryValuesArray, - database: dbFullName, - tableSchema - }); - } else { - result = await fullAccessDbHandler({ - queryString: formattedQuery, - queryValuesArray, - database: dbFullName, - tableSchema - }); - } - } else if (typeof query === "object") { - /** - * Declare variables - * - * @description Declare "results" variable - */ const { data , action , table: table1 , identifierColumnName , identifierValue , update , duplicateColumnName , duplicateColumnValue , } = query; - switch(action.toLowerCase()){ - case "insert": - result = await addDbEntry({ - dbContext: local ? "Master" : "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: table1, - data: data, - update, - duplicateColumnName, - duplicateColumnValue, - tableSchema - }); - if (!result?.insertId) { - error = new Error("Couldn't insert data"); - } - break; - case "update": - result = await updateDbEntry({ - dbContext: local ? "Master" : "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: table1, - data: data, - identifierColumnName, - identifierValue, - tableSchema - }); - break; - case "delete": - result = await deleteDbEntry({ - dbContext: local ? "Master" : "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: table1, - identifierColumnName, - identifierValue, - tableSchema - }); - break; - default: - result = null; - break; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - serverError({ - component: "functions/backend/runQuery", - message: error1.message - }); - result = null; - error1 = error1.message; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return { - result, - error - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -module.exports = runQuery; - - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 8539: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -const parseDbResults = __webpack_require__(8326); -const serverError = __webpack_require__(3017); -/** - * - * @param {object} param0 - * @param {string} param0.queryString - * @param {string} param0.database - * @param {boolean} [param0.local] - * @param {import("../../types").DSQL_TableSchemaType | null} [param0.tableSchema] - * @param {string[]} [param0.queryValuesArray] - * @returns - */ module.exports = async function fullAccessDbHandler({ queryString , database , tableSchema , queryValuesArray , local , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - /** ********************* Run Query */ results = await DSQL_USER_DB_HANDLER({ - paradigm: "Full Access", - database, - queryString, - queryValues: queryValuesArray - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - serverError({ - component: "fullAccessDbHandler", - message: error.message - }); - /** - * Return error - */ return error.message; - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results && tableSchema) { - const unparsedResults = results; - const parsedResults = await parseDbResults({ - unparsedResults: unparsedResults, - tableSchema: tableSchema - }); - return parsedResults; - } else if (results) { - return results; - } else { - return null; - } -}; - - -/***/ }), - -/***/ 3118: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const serverError = __webpack_require__(3017); -const parseDbResults = __webpack_require__(8326); -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** - * - * @param {object} param0 - * @param {string} param0.queryString - * @param {string} param0.database - * @param {string[]} [param0.queryValuesArray] - * @param {import("../../types").DSQL_TableSchemaType} [param0.tableSchema] - * @returns - */ module.exports = async function varReadOnlyDatabaseDbHandler({ queryString , database , queryValuesArray , tableSchema , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - results = await DSQL_USER_DB_HANDLER({ - paradigm: "Read Only", - database, - queryString, - queryValues: queryValuesArray - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - serverError({ - component: "varReadOnlyDatabaseDbHandler", - message: error.message, - noMail: true - }); - /** - * Return error - */ return error.message; - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results) { - const unparsedResults = results; - const parsedResults = await parseDbResults({ - unparsedResults: unparsedResults, - tableSchema: tableSchema - }); - return parsedResults; - } else { - return null; - } -}; - - -/***/ }), - -/***/ 3062: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(4824); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ async function LOCAL_DB_HANDLER(/** @type {any[]} */ ...args) { - const MASTER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - database: process.env.DSQL_DB_NAME, - port: process.env.DSQL_DB_PORT ? Number(process.env.DSQL_DB_PORT) : undefined, - charset: "utf8mb4", - ssl: grabDbSSL() - }, - onConnect: ()=>{ - console.log("Connection Successful!"); - }, - onConnectError: (/** @type {any} */ err)=>{ - console.log("Connection Error", err.message); - }, - onError: (/** @type {any} */ err)=>{ - console.log("Client Error", err.message); - } - }); - console.log("Querying ..."); - try { - const results = await MASTER.query(...args); - await MASTER.end(); - return JSON.parse(JSON.stringify(results)); - } catch (/** @type {any} */ error) { - console.log("DB Error =>", error.message); - return { - success: false, - error: error.message - }; - } -} -module.exports = LOCAL_DB_HANDLER; - - -/***/ }), - -/***/ 6888: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const https = __webpack_require__(5687); -const http = __webpack_require__(3685); -/** - * @typedef {object} GrabHostNamesReturn - * @property {string} host - * @property {number | string} port - * @property {typeof http | typeof https} scheme - */ /** - * # Trim SQL - * @description Remove Returns and miltiple spaces from SQL Query - * @param {string} sql - * @returns {string} - */ function trimSql(sql) { - return sql.replace(/\n|\r|\n\r|\r\n/gm, " ").replace(/ {2,}/g, " ").trim(); -} -module.exports = trimSql; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4858.js b/dsql-app/.local_dist/server/chunks/4858.js deleted file mode 100644 index eca3fa1..0000000 --- a/dsql-app/.local_dist/server/chunks/4858.js +++ /dev/null @@ -1,752 +0,0 @@ -"use strict"; -exports.id = 4858; -exports.ids = [4858]; -exports.modules = { - -/***/ 6355: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DiskUsageComponent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6729); -/* harmony import */ var _functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1069); -/* harmony import */ var _LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _mui_icons_material_CloudQueueRounded__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4008); -/* harmony import */ var _mui_icons_material_CloudQueueRounded__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CloudQueueRounded__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _mui_icons_material_RefreshRounded__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(36); -/* harmony import */ var _mui_icons_material_RefreshRounded__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_RefreshRounded__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _mui_icons_material_CloudOffTwoTone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69); -/* harmony import */ var _mui_icons_material_CloudOffTwoTone__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CloudOffTwoTone__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DiskUsageComponent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(true); - /** @type {[ diskUsage: number, setDiskUsage: React.Dispatch> ]} */ // @ts-ignore - const [diskUsage, setDiskUsage] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - const [refresh, setRefresh] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (diskUsage) return; - // if (localStorage.getItem("disk_usage")) { - // setDiskUsage(parseFloat(localStorage.getItem("disk_usage"))); - // return; - // } - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)("/api/getDiskUsage").then((res)=>{ - // console.log(res); - if (res?.total) { - setDiskUsage(res.total); - localStorage.setItem("disk_usage", res.total); - } - setLoading(false); - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (loading) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "button ghost small-text", - style: { - height: "30px" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - width: "15px", - position: "relative" - }) - }); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: diskUsage ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "button ghost small-text normal-weight p-0", - style: { - height: "30px", - padding: 0 - }, - onClick: (e)=>{ - setLoading(true); - (0,_functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)().then(()=>{ - setRefresh((prev)=>prev + 1); - setLoading(false); - }); - }, - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - width: "15px" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.HardDrive, { - size: 20, - className: "text-slate-400 mr-[3px]" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-bold text-slate-700 dark:text-white", - children: diskUsage && diskUsage.toFixed(2) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-slate-500", - children: "mb" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.RotateCw, { - size: 17, - className: "text-slate-400", - strokeWidth: 2 - }) - ] - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-sm info gray font-normal w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_CloudOffTwoTone__WEBPACK_IMPORTED_MODULE_5___default()), { - color: "inherit", - className: "opacity-50 text-slate-500", - fontSize: "small" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "No Disk Usage Data Available Yet" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 1069: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ updateDiskUsage) -/* harmony export */ }); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * - * @requires search-field name attribute - */ async function updateDiskUsage() { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ const res = await (0,_fetchApi__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)("/api/getDiskUsage"); - localStorage.setItem("disk_usage", res.total); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 4858: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ AdminLayout) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "next/head" -var head_ = __webpack_require__(968); -var head_default = /*#__PURE__*/__webpack_require__.n(head_); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Footer.jsx -var Footer = __webpack_require__(5281); -// EXTERNAL MODULE: external "@mui/icons-material/DynamicFormTwoTone" -var DynamicFormTwoTone_ = __webpack_require__(8979); -// EXTERNAL MODULE: external "@mui/icons-material/CollectionsTwoTone" -var CollectionsTwoTone_ = __webpack_require__(7306); -// EXTERNAL MODULE: external "@mui/icons-material/PeopleOutlineTwoTone" -var PeopleOutlineTwoTone_ = __webpack_require__(9806); -// EXTERNAL MODULE: external "@mui/icons-material/SchemaTwoTone" -var SchemaTwoTone_ = __webpack_require__(1799); -// EXTERNAL MODULE: external "@mui/icons-material/LockTwoTone" -var LockTwoTone_ = __webpack_require__(2814); -// EXTERNAL MODULE: ./components/general/Logo.jsx -var Logo = __webpack_require__(4017); -// EXTERNAL MODULE: external "@mui/icons-material/AdminPanelSettingsTwoTone" -var AdminPanelSettingsTwoTone_ = __webpack_require__(4003); -var AdminPanelSettingsTwoTone_default = /*#__PURE__*/__webpack_require__.n(AdminPanelSettingsTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/LanguageOutlined" -var LanguageOutlined_ = __webpack_require__(300); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./layouts/components/AdminLayout/Aside.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {import("@/package-shared/types").UserType} props.user - */ function Aside({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [collapseAsideMobile, setCollapseAsideMobile] = external_react_default().useState(true); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("aside", { - className: "aside" + (collapseAsideMobile ? " mobile-collapsed" : " mobile-expanded"), - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Logo/* default */.Z, { - adminAside: true, - collapseAsideMobile: collapseAsideMobile, - setCollapseAsideMobile: setCollapseAsideMobile - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "opacity-0 mt-4" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "main-links" + (collapseAsideMobile ? " hidden lg:flex" : " "), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: "/admin", - "data-currentlink": "/admin", - "data-strictlink": "true", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.CircleGauge, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Dashboard" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases`, - "data-currentlink": `/admin/${user?.id}/databases`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Database, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Databases" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/media`, - "data-currentlink": `/admin/${user?.id}/media`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Images, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Media" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users`, - "data-currentlink": `/admin/${user?.id}/users`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Users, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Users" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/schema`, - "data-currentlink": `/admin/${user?.id}/schema`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.BookText, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Schema" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/api-keys`, - "data-currentlink": `/admin/${user?.id}/api-keys`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.FileKey2, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "API Keys" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/connect`, - "data-currentlink": `/admin/${user?.id}/connect`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Globe, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Connect" - }) - ] - }), - true && user.id == 1 && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su`, - "data-currentlink": `/su`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((AdminPanelSettingsTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Super Admin User" - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "opacity-80" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col gap-0 items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/settings`, - "data-currentlink": `/admin/${user?.id}/settings`, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Settings" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/docs", - "data-currentlink": "/docs", - target: "_blank", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Documentation" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/logout", - "data-currentlink": "/logout", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Logout" - }) - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Header.jsx -var Header = __webpack_require__(7108); -// EXTERNAL MODULE: ./layouts/components/AdminLayout/AdminUserBlock.jsx + 1 modules -var AdminUserBlock = __webpack_require__(5484); -;// CONCATENATED MODULE: ./layouts/components/AdminLayout/AdminHeader.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {import("@/package-shared/types").UserType} props.user - Authenticated User - * @param {import("react").ReactNode} [props.extraHeaderContent] - Extra JSX content to be inserted in the header - */ function AdminHeader({ user , extraHeaderContent }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [activeUser, setActiveUser] = external_react_default().useState(user ? user : null); - external_react_default().useEffect(()=>{ - if (user?.logged_in_status) { - setActiveUser(user ? user : null); - } - }, [ - user - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5", - style: { - zIndex: 700, - border: "none" - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full items-center justify-between gap-4 md:gap-8", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0", - id: "main-nav-content-wrapper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-center mb-2 flex xl:hidden", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/", - className: "hidden xl:flex", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/logo-icon-alt-2.png", - alt: "Logo Icon", - width: 37 - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray ml-auto", - onClick: (e)=>{ - const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - border: "none" - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-4xl", - children: "✕" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "gap-6", - children: extraHeaderContent - }), - /*#__PURE__*/ jsx_runtime_.jsx(AdminUserBlock/* default */.Z, { - activeUser: activeUser - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto", - onClick: (e)=>{ - const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - minWidth: "50px", - backgroundColor: "transparent" - }, - id: "main-header-hamburger-button", - "aria-label": "Mobile Hambutget Button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./functions/frontend/updateNavLinks.js -var updateNavLinks = __webpack_require__(9678); -// EXTERNAL MODULE: ./components/general/DiskUsageComponent.jsx -var DiskUsageComponent = __webpack_require__(6355); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./layouts/AdminLayout.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -// import updateNavLinks from '../functions/frontend/updateNavLinks'; - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * children: import("react").ReactNode, - * head?: import("react").ReactNode, - * user: import("@/package-shared/types").UserType, - * productionEnvironment?: string, - * extraHeaderContent?: import("react").ReactNode, - * aceEditor?: boolean, - * }} props - children component - */ function AdminLayout({ children , head , user , productionEnvironment , extraHeaderContent , aceEditor , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!extraHeaderContent) extraHeaderContent = /*#__PURE__*/ jsx_runtime_.jsx(DiskUsageComponent/* default */.Z, {}); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ external_react_default().useEffect(()=>{ - /** @type {NodeListOf} */ const links = document.querySelectorAll("aside .main-links a"); - (0,updateNavLinks/* default */.Z)({ - links: links - }); - if (document.cookie.match(/user_refresh=1/)) { - (0,fetchApi/* default */.Z)("/api/reAuthenticateUser", { - method: "post", - body: {} - }, true).then((/** @type {import("@/pages/api/reAuthenticateUser").reAuthenticateUserResponse} */ res)=>{ - if (res.status && res.user) { - document.cookie = "user_refresh=0;max-age=0"; - localStorage.setItem("csrf", res.user.csrf_k); - localStorage.setItem("user", JSON.stringify(res.user)); - window.location.reload(); - } - }); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)((head_default()), { - children: [ - head, - /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js", - integrity: "sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }), - /*#__PURE__*/ jsx_runtime_.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js", - integrity: "sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "admin w-full flex items-start gap-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Aside, { - user: user - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("main", { - className: "relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(AdminHeader, { - user: user, - extraHeaderContent: extraHeaderContent - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "admin-content", - children: children - }), - /*#__PURE__*/ jsx_runtime_.jsx("footer", { - className: "flex justify-center w-full items-center p-4", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "max-w-6xl w-full justify-center flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex items-center gap-2 scale-75", - children: /*#__PURE__*/ jsx_runtime_.jsx(Logo/* default */.Z, {}) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm text-slate-400 dark:text-slate-600 text-center", - children: [ - new Date().getFullYear(), - " \xa9 Datasquirel. All rights reserved." - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/docs", - children: "Docs" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/terms", - children: "Terms" - }) - ] - }) - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4893.js b/dsql-app/.local_dist/server/chunks/4893.js deleted file mode 100644 index f1a0ccd..0000000 --- a/dsql-app/.local_dist/server/chunks/4893.js +++ /dev/null @@ -1,1318 +0,0 @@ -"use strict"; -exports.id = 4893; -exports.ids = [4893]; -exports.modules = { - -/***/ 4893: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ TableFields) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "gsap" -var external_gsap_ = __webpack_require__(4287); -var external_gsap_default = /*#__PURE__*/__webpack_require__.n(external_gsap_); -;// CONCATENATED MODULE: ./functions/frontend/addNewTempField.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} params.tableFields - * @param {React.Dispatch>} params.setTableFields - * @param {React.Dispatch>} [params.setRefresh] - * @param {React.Dispatch>} [params.setPageRefresh] - * @param {React.MutableRefObject> | undefined>} params.refreshFieldsListRef - * - * @requires search-field name attribute - */ function addNewTempField({ tableFields , setTableFields , setRefresh , setPageRefresh , refreshFieldsListRef , }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ let newArray = tableFields; - let spliceIndex = newArray.findIndex((field)=>field.fieldName === "date_created"); - newArray.splice(spliceIndex, 0, { - newTempField: true - }); - setTableFields(newArray); - // setRefresh && setRefresh((prev) => prev + 1); - // setPageRefresh && setPageRefresh((prev) => prev + 1); - if (refreshFieldsListRef?.current) refreshFieldsListRef.current((prev)=>prev + 1); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: ./components/general/ExpandBlock.jsx -var ExpandBlock = __webpack_require__(6169); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/defaultFieldsRegexp.js -var defaultFieldsRegexp = __webpack_require__(3907); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -;// CONCATENATED MODULE: ./functions/frontend/reorderField.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} params.tableFields - * @param {React.Dispatch>} params.setTableFields - * @param {React.MutableRefObject> | undefined>} params.refreshFieldsListRef - * @param {"up" | "down"} params.order - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} params.field - * @param {any} params.e - */ function reorderField({ tableFields , setTableFields , refreshFieldsListRef , order , field , e , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ let newFields = external_lodash_default().cloneDeep(tableFields); - let targetFieldIndex = newFields.findIndex((_field)=>_field.fieldName === field.fieldName); - if (targetFieldIndex < 0) { - return; - } - let targetField = newFields[targetFieldIndex]; - if (order === "up" && targetFieldIndex && targetFieldIndex <= 1) { - console.log("Min Reached =>", targetFieldIndex); - return; - } else if (order === "down" && targetFieldIndex && targetFieldIndex >= newFields.length - 7) { - console.log("Max Reached =>", targetFieldIndex); - return; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** @type {HTMLDivElement} */ const targetFieldElement = e.target.closest(".table-field-wrapper"); - const previousElement = targetFieldElement.previousElementSibling; - const nextElement = targetFieldElement.nextElementSibling; - // @ts-ignore - const Flip = window.DSQL.Flip; - const state = Flip.getState(targetFieldElement); - let nextState; - if (order === "up") { - nextState = Flip.getState(previousElement); - targetFieldElement.parentNode?.insertBefore(targetFieldElement, previousElement); - } else if (nextElement?.nextElementSibling) { - nextState = Flip.getState(nextElement); - targetFieldElement.parentNode?.insertBefore(targetFieldElement, nextElement.nextElementSibling); - } - Flip.from(state, { - duration: 0.3, - ease: "power1.inOut" - }); - Flip.from(nextState, { - duration: 0.3, - ease: "power1.inOut" - }); - } catch (/** @type {any} */ error) { - console.log("Error =>", error.message); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!targetFieldIndex) { - console.log("No target Field Index =>", targetFieldIndex); - return; - } - newFields.splice(targetFieldIndex, 1); - if (order === "up") { - newFields.splice(targetFieldIndex - 1, 0, targetField); - } else { - newFields.splice(targetFieldIndex + 1, 0, targetField); - } - setTimeout(()=>{ - setTableFields([ - ...newFields - ]); - if (refreshFieldsListRef.current) refreshFieldsListRef.current((prev)=>prev + 1); - }, 500); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/ExistingFieldEdit.jsx -var ExistingFieldEdit = __webpack_require__(9967); -// EXTERNAL MODULE: ./components/admin/databases/fields/fields-inputs/ForeignKey.jsx -var ForeignKey = __webpack_require__(3699); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/admin/databases/ClonedSingleTableFieldCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.field - * @param {React.Dispatch>} [props.setTargetField] - * @param {Object} [props.fieldIndex] - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch>} props.setTableFields - * @param {any} [props.refreshFieldsListRef] - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.currentTable - * @param {import("@/package-shared/types").UserType} props.user - * @param {boolean} props.isDelegated - * @param {React.Dispatch>} props.setLoading - */ function ClonedSingleTableFieldCard({ field , setTargetField , fieldIndex , tableFields , setTableFields , refreshFieldsListRef , database , currentTable , user , isDelegated , setLoading , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [fieldData, setFieldData] = external_react_default().useState(field); - const [activeEdit, setActiveEdit] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full table-field-wrapper" + (activeEdit ? " shadow-2xl shadow-slate-700/40 relative z-50" : ""), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover items-center w-full py-4" + (activeEdit ? " rounded-t" : " rounded") + (fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) ? " text-slate-400 pointer-events-none border-slate-200 border" : " light-gray"), - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold" + (fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) ? " dark:text-slate-500" : " dark:text-white"), - children: fieldData.fieldName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ", - children: fieldData.dataType - }), - fieldData?.foreignKey && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "text-xs bg-primary text-white px-2 py-0.5 rounded-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Foreign Key: " - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - fieldData.foreignKey.destinationTableName, - " (", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: fieldData.foreignKey.destinationTableColumnName - }), - " ", - ")" - ] - }) - ] - }), - fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300 text-sm font-semibold ml-0 md:ml-auto", - children: "Default Field" - }), - !isDelegated && !fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) && fieldData.dataType?.match(/INT/) && !fieldData.foreignKey && !database?.active_clone?.toString()?.match(/1/) ? /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-0 md:ml-auto flex-wrap", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined py-1 text-xs gray", - onClick: (e)=>{ - if (activeEdit) { - setActiveEdit(false); - } else { - setActiveEdit(true); - } - }, - style: { - color: "var(--slate-500)" - }, - children: "Add Foreign Key" - }) - }) : !isDelegated && !fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) && fieldData.dataType?.match(/INT/) && !database?.active_clone?.toString()?.match(/1/) ? /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-0 md:ml-auto flex-wrap", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button py-1 text-xs light-gray", - onClick: (e)=>{ - if (window.confirm("Delete this foreign Key?")) { - delete field.foreignKey; - setLoading(true); - (0,fetchApi/* default */.Z)("/api/updateClonedTableForeignKeys", { - method: "post", - body: { - tableData: currentTable, - database: database.db_full_name, - dbSlug: database.db_slug, - delegated: window.location?.search?.match(/delegated=true/i) ? true : false - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert("Update Failed, Please Try again."); - } - }); - } - }, - style: { - color: "var(--slate-500)" - }, - children: "Delete Foreign Key" - }) - }) : /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}) - ] - }), - activeEdit && !isDelegated && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "card col w-full -mt-5 pt-0 no-hover", - children: /*#__PURE__*/ jsx_runtime_.jsx(ForeignKey/* default */.Z, { - targetField: field, - setFieldData: setFieldData, - tableFields: tableFields, - setTableFields: setTableFields, - database: database, - currentTable: currentTable, - user: user, - setActiveEdit: setActiveEdit, - activeClonedTable: true - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./functions/frontend/addNewField.js -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 2 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [ExistingFieldEdit.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\ExistingFieldEdit.jsx - * `import` Statement Found in [NewFieldTemp.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\NewFieldTemp.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {number} params.fieldIndex - * @param {React.Dispatch>} params.setTableFields - * @param {React.MutableRefObject>>} params.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} params.payload - * - * @requires search-field name attribute - */ function addNewField({ fieldIndex , setTableFields , refreshFieldsListRef , payload , }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ setTableFields((prev)=>{ - let newArray = prev; - newArray.splice(fieldIndex, 1, payload); - return newArray; - }); - // setRefresh && setRefresh((prev) => prev + 1); - // setPageRefresh && setPageRefresh((prev) => prev + 1); - if (refreshFieldsListRef?.current) refreshFieldsListRef.current((prev)=>prev + 1); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: ./components/admin/databases/MoreOptionsModal.jsx + 5 modules -var MoreOptionsModal = __webpack_require__(4209); -// EXTERNAL MODULE: ./components/admin/databases/fields/text/JSONTextOption.jsx -var JSONTextOption = __webpack_require__(4838); -;// CONCATENATED MODULE: ./components/admin/databases/NewFieldFormContent.jsx -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 1 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [TableFields.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\TableFields.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ let NewFieldFormContent_timeout; -/** //////////////////////////////////////////////////////////////////////////////// */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [props.tableFields] - * @param {React.Dispatch>} props.setTableFields - * @param {any} props.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {import("@/package-shared/types").UserType} props.user - * @param {boolean} props.isNewField - * @param {string} props.literalValue - * @param {React.Dispatch>} props.setLiteralValue - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.tempFieldData - * @param {React.Dispatch>} props.setTempFieldData - * @param {string} props.dataTypeValue - * @param {React.Dispatch>} props.setDataTypeValue - * @param {string} props.dataType - * @param {React.Dispatch>} props.setDataType - * @param {string} props.dataTypeDesc - * @param {React.Dispatch>} props.setDataTypeDesc - */ function NewFieldFormContent({ fieldIndex , setTableFields , database , user , isNewField , setLiteralValue , tempFieldData , setTempFieldData , dataTypeValue , setDataTypeValue , dataType , setDataType , dataTypeDesc , setDataTypeDesc , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const varcharDesc = "Varchar is simply letters and numbers within the range 0 - 255"; - const dataTypes = __webpack_require__(9594); - /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.LegacyRef} */ const newFieldRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - if (!newFieldRef.current) return; - newFieldRef.current.scrollIntoView({ - block: "center", - behavior: "smooth" - }); - newFieldRef.current.querySelector("input")?.focus(); - }, []); - const isLiteral = Boolean(dataType.match(/uuid/i)); - /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - isNewField && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full", - children: "New Field" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_name", - children: "Field Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "new_field_name", - id: "new_field_name", - placeholder: "Eg. post_title", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const parsedValue = inputEl.value.toLowerCase().replace(/ /g, "_"); - inputEl.value = parsedValue; - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-4 xl:gap-0.5", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-start flex-wrap xl:flex-nowrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_data_type", - children: "Data Type" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper reversed text-sm w-full items-start gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex", - children: "Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mt-0 xl:-mt-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: dataTypeDesc - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full xl:w-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "new_field_data_type", - id: "new_field_data_type", - className: "w-full xl:w-auto", - onChange: (e)=>{ - /** @type {HTMLSelectElement} */ // @ts-ignore - const selectEl = e.target; - setDataType(selectEl.value); - selectEl.childNodes.forEach((/** @type {any} */ option)=>{ - if (option.value === selectEl.value) { - setDataTypeDesc(option.dataset.desc); - } - if (option.value === selectEl.value && option.dataset.literal) { - setLiteralValue(option.dataset.literal); - } - }); - }, - children: dataTypes.map((type, index)=>{ - if (type.name.match(/VARCHAR/)) { - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: type.name, - "data-desc": type.description, - children: type.title + "(" + (dataTypeValue ? dataTypeValue : 200) + ")" - }, index + 1); - } else { - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: type.name, - "data-desc": type.description, - "data-literal": type.valueLiteral || undefined, - children: type.title - }, index + 1); - } - }) - }), - dataType.match(/VARCHAR/) && /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "number", - defaultValue: dataTypeValue, - className: "px-2", - style: { - maxWidth: "60px" - }, - max: 255, - min: 5, - onChange: (e)=>{ - setDataTypeValue(e.target.value); - } - }) - ] - }) - ] - }), - dataType?.match(/text/i) && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(JSONTextOption/* default */.Z, { - targetField: tempFieldData - }) - }), - !isLiteral && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_required", - children: "Required?" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "new_field_required", - id: "new_field_required", - className: "px-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }) - ] - }), - !isLiteral && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_default_value", - children: "Default Value (optional)" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "new_field_default_value", - id: "new_field_default_value", - placeholder: "Default Value" - }) - ] - }), - !isLiteral && /*#__PURE__*/ jsx_runtime_.jsx(MoreOptionsModal/* default */.Z, { - database, - setFieldData: setTempFieldData, - targetField: tempFieldData, - user, - fieldIndex - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "secondary mt-auto py-3 w-full sm:w-auto justify-center grow", - children: "Add Field" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow", - onClick: (e)=>{ - setTableFields((prev)=>prev.filter((field, index)=>index != fieldIndex)); - }, - children: "Cancel" - }) - ] - }) - ] - }); -/** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ } /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ - -;// CONCATENATED MODULE: ./components/admin/databases/NewFieldTemp.jsx -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 1 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [TableFields.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\TableFields.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ let NewFieldTemp_timeout; -/** //////////////////////////////////////////////////////////////////////////////// */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [props.tableFields] - * @param {React.Dispatch>} props.setTableFields - * @param {any} props.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {import("@/package-shared/types").UserType} props.user - */ function NewFieldTemp({ fieldIndex , tableFields , setTableFields , refreshFieldsListRef , database , currentTable , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const varcharDesc = "Varchar is simply letters and numbers within the range 0 - 255"; - const dataTypes = __webpack_require__(9594); - /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [dataType, setDataType] = external_react_default().useState("VARCHAR"); - const [dataTypeValue, setDataTypeValue] = external_react_default().useState("200"); - // const dataTypeDescState = React.useState(); - const [dataTypeDesc, setDataTypeDesc] = external_react_default().useState(varcharDesc); - /** @type {any} */ const tempFieldDataState = external_react_default().useState({}); - /** @type { [tempFieldData: import("@/package-shared/types").DSQL_FieldSchemaType, setTempFieldData: React.Dispatch>] } */ const [tempFieldData, setTempFieldData] = tempFieldDataState; - /** @type {React.LegacyRef} */ const newFieldRef = external_react_default().useRef(); - const [literalValue, setLiteralValue] = external_react_default().useState(""); - external_react_default().useEffect(()=>{ - if (!newFieldRef.current) return; - newFieldRef.current.scrollIntoView({ - block: "center", - behavior: "smooth" - }); - newFieldRef.current.querySelector("input")?.focus(); - }, []); - const isLiteral = Boolean(dataType.match(/uuid/i)); - /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full mt-1 flex-wrap relative z-0 hover:z-20", - // @ts-ignore - ref: newFieldRef, - children: /*#__PURE__*/ jsx_runtime_.jsx("form", { - className: "flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl", - onSubmit: (e)=>{ - e.preventDefault(); - /** @type {import("@/package-shared/types").DSQL_ForeignKeyType | undefined} */ const targetForeignKey = tempFieldData.foreignKey; - if (targetForeignKey && !targetForeignKey.destinationTableName) { - delete tempFieldData.foreignKey; - } - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - let new_field_name = formEl["new_field_name"].value; - let new_field_data_type = formEl["new_field_data_type"].value; - let new_field_required = formEl["new_field_required"]?.value; - let new_field_default_value = formEl["new_field_default_value"]?.value; - let new_field_encryption = formEl["encryption_field"]?.value; - let rich_text_option = formEl["rich_text_option"]?.value; - const foreignKeyElement = formEl["foreign_key_field"]; - const foreignKeyDestinationTableElement = formEl["foreign_key_destination_table_name"]; - const foreignKeyDestinationTableColumnElement = formEl["foreign_key_destination_table_column_name"]; - let foreign_key_field = foreignKeyElement?.value; - let newFieldObject = { - ...tempFieldData, - fieldName: new_field_name, - dataType: tempFieldData?.dataType && tempFieldData?.foreignKey ? tempFieldData.dataType : new_field_data_type?.match(/VARCHAR/) ? `${new_field_data_type}(${dataTypeValue})` : new_field_data_type - }; - if (new_field_required?.match(/yes/i)) { - newFieldObject.notNullValue = true; - } else if (!new_field_default_value?.match(/./)) { - newFieldObject.nullValue = true; - } - if (new_field_default_value?.match(/./)) { - newFieldObject.defaultValue = new_field_default_value; - } - if (new_field_encryption?.match(/yes/i)) { - newFieldObject.encrypted = true; - } - if (foreignKeyDestinationTableColumnElement?.value?.match(/./i) && !foreignKeyDestinationTableColumnElement?.value?.match(/^--$/i)) { - newFieldObject.dataType = foreignKeyDestinationTableColumnElement.dataset.dataType; - newFieldObject.foreignKey = { - foreignKeyName: foreignKeyDestinationTableColumnElement.dataset.foreignKeyName, - destinationTableName: foreignKeyDestinationTableElement.dataset.destinationTableName, - destinationTableColumnName: foreignKeyDestinationTableColumnElement.dataset.destinationTableColumnName, - cascadeDelete: true - }; - } - if (rich_text_option?.match(/yes/i)) { - newFieldObject.richText = true; - } - if (isLiteral) { - newFieldObject.defaultValueLiteral = literalValue; - newFieldObject.nullValue = false; - } else { - delete newFieldObject.defaultValueLiteral; - } - console.log("newFieldObject", newFieldObject); - addNewField({ - fieldIndex, - setTableFields, - refreshFieldsListRef, - payload: newFieldObject - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(NewFieldFormContent, { - database, - fieldIndex, - isNewField: true, - literalValue, - refreshFieldsListRef, - setLiteralValue, - setTableFields, - user, - currentTable, - tableFields, - tempFieldData, - setTempFieldData, - dataTypeValue, - setDataTypeValue, - dataType, - setDataType, - dataTypeDesc, - setDataTypeDesc - }) - }) - }); -/** //////////////////////////////////////// */ /** //////////////////////////////////////// */ /** //////////////////////////////////////// */ } /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ /** //////////////////////////////////////////////////////////////////////////////// */ - -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/admin/databases/SingleTableFieldCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let SingleTableFieldCard_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.field - * @param {React.Dispatch>} props.setTargetField - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch>} props.setTableFields - * @param {React.MutableRefObject> | undefined>} props.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {any} props.confirmedDelegetedUser - * @param {import("@/package-shared/types").UserType} props.user - */ function SingleTableFieldCard({ field , setTargetField , fieldIndex , tableFields , setTableFields , refreshFieldsListRef , database , currentTable , confirmedDelegetedUser , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [fieldData, setFieldData] = external_react_default().useState(field); - const [activeEdit, setActiveEdit] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full table-field-wrapper" + (activeEdit ? " shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50" : ""), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover items-center w-full py-4" + (activeEdit ? " rounded-t" : " rounded") + (fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) ? " text-slate-400 pointer-events-none border-slate-200 border" : " light-gray"), - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold" + (fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) ? " dark:text-slate-500" : " dark:text-white"), - children: fieldData.fieldName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ", - children: fieldData.dataType - }), - fieldData?.foreignKey && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "text-xs bg-primary text-white px-2 py-0.5 rounded-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Foreign Key: " - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - fieldData.foreignKey.destinationTableName, - " (", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: fieldData.foreignKey.destinationTableColumnName - }), - " ", - ")" - ] - }) - ] - }), - fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300 text-sm font-semibold ml-0 md:ml-auto", - children: "Default Field" - }), - !fieldData.fieldName?.match(defaultFieldsRegexp/* default */.Z) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-0 md:ml-auto flex-wrap", - children: (!isDelegated || isDelegated && isTableEditable) && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined py-1 text-xs gray", - onClick: (e)=>{ - if (activeEdit) { - setActiveEdit(false); - } else { - setActiveEdit(true); - } - }, - style: { - color: "var(--slate-500)" - }, - children: "Edit" - }), - !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined py-1 text-xs gray", - onClick: (e)=>{ - if (window.confirm(`Delete "${field.fieldName}"?`)) { - setTableFields((prev)=>prev.filter((field, index)=>index != fieldIndex)); - } - }, - style: { - color: "var(--slate-500)" - }, - children: "Delete" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray p-2 w-8 h-8 rounded-full rotate-180", - onClick: (e)=>{ - reorderField({ - tableFields, - setTableFields, - refreshFieldsListRef, - order: "up", - field, - e - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronDown, { - size: 20 - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray p-2 w-8 h-8 rounded-full", - onClick: (e)=>{ - reorderField({ - tableFields, - setTableFields, - refreshFieldsListRef, - order: "down", - field, - e - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronDown, { - size: 20 - }) - }) - ] - }) - ] - }) - }) - ] - }), - activeEdit && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full", - children: /*#__PURE__*/ jsx_runtime_.jsx(ExistingFieldEdit/* default */.Z, { - fieldIndex: fieldIndex, - tableFields: tableFields, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - targetField: field, - setActiveEdit: setActiveEdit, - database: database, - currentTable: currentTable, - user: user - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/functions/generateTypeDefinition.js -var generateTypeDefinition = __webpack_require__(5753); -;// CONCATENATED MODULE: ./components/admin/databases/TableFields.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let reactKey = 1; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch>} props.setTableFields - * @param {React.Dispatch>} props.setTargetField - * @param {React.MutableRefObject> | undefined>} props.refreshFieldsListRef - * @param {boolean} [props.updateTable] - * @param {(setLoading?: React.Dispatch>) => void} [props.updateTableAfterFieldsUpdateFunction] - * @param {boolean} [props.collapsed] - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.table] - * @param {any} [props.confirmedDelegetedUser] - * @param {any} props.query - */ function TableFields({ user , tableFields , setTableFields , setTargetField , refreshFieldsListRef , updateTable , updateTableAfterFieldsUpdateFunction , collapsed , database , table , confirmedDelegetedUser , query , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const cloneParentDb = table?.childTable ? table.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/), "") : null; - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [refresh, setRefresh] = external_react_default().useState(0); - refreshFieldsListRef.current = setRefresh; - const [loading, setLoading] = external_react_default().useState(false); - const [collapse, setCollapse] = external_react_default().useState(collapsed || false); - external_react_default().useEffect(()=>{ - const { Flip } = __webpack_require__(2700); - external_gsap_default().registerPlugin(Flip); - // @ts-ignore - const DSQL = window.DSQL; - if (DSQL) { - DSQL.Flip = Flip; - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (isDelegated && !isTableEditable) { - return /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}); - } - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper green", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - table?.childTable ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left title", - children: "Fields" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray", - onClick: (e)=>{ - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "JavaScript", - table, - query, - user - }); - if (txt) { - navigator.clipboard.writeText(txt).then(()=>{ - window.alert("JavaScript Type Definition Copied"); - }); - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Copy TypeDef (JS)" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray", - onClick: (e)=>{ - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "TypeScript", - table, - query, - user - }); - if (txt) { - navigator.clipboard.writeText(txt).then(()=>{ - window.alert("TypeScript Type Definition Copied"); - }); - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Copy TypeDef (TS)" - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col w-full", - style: collapse ? { - maxHeight: "200px" - } : {}, - children: tableFields && tableFields[0] && tableFields.map((field, index)=>{ - reactKey++; - return /*#__PURE__*/ jsx_runtime_.jsx(ClonedSingleTableFieldCard, { - field: field, - fieldIndex: index, - setTargetField: setTargetField, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - tableFields: tableFields, - database: database, - setLoading: setLoading, - currentTable: table, - user: user, - isDelegated: isDelegated - }, reactKey); - }) - }), - collapsed && /*#__PURE__*/ jsx_runtime_.jsx(ExpandBlock/* default */.Z, { - collapse: collapse || false, - setCollapse: setCollapse - }) - ] - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left title", - children: "Fields" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button secondary outlined", - onClick: (e)=>{ - if (collapse) setCollapse(false); - addNewTempField({ - setTableFields, - tableFields, - setRefresh, - refreshFieldsListRef - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Field" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray", - onClick: (e)=>{ - if (!table) return; - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "JavaScript", - table, - query, - user - }); - if (txt) { - navigator.clipboard.writeText(txt).then(()=>{ - window.alert("JavaScript Type Definition Copied"); - }); - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Copy TypeDef (JS)" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray", - onClick: (e)=>{ - if (!table) return; - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "TypeScript", - table, - query, - user - }); - if (txt) { - navigator.clipboard.writeText(txt).then(()=>{ - window.alert("TypeScript Type Definition Copied"); - }); - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Copy TypeDef (TS)" - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full", - style: collapse ? { - maxHeight: "200px" - } : {}, - children: [ - tableFields && tableFields[0] && tableFields.map((field, index)=>{ - reactKey++; - if (field.newTempField) { - return /*#__PURE__*/ jsx_runtime_.jsx(NewFieldTemp, { - fieldIndex: index, - tableFields: tableFields, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - database: database, - currentTable: table, - user: user - }, reactKey); - } else { - return /*#__PURE__*/ jsx_runtime_.jsx(SingleTableFieldCard, { - field: field, - fieldIndex: index, - setTargetField: setTargetField, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - tableFields: tableFields, - database: database, - currentTable: table, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }, reactKey); - } - }), - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray w-full more-padding", - style: { - borderStyle: "dashed" - }, - onClick: (e)=>{ - if (collapse) setCollapse(false); - addNewTempField({ - setTableFields, - tableFields, - setRefresh, - refreshFieldsListRef - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Field" - }) - ] - }), - updateTable && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "secondary w-full py-3", - onClick: (e)=>{ - setLoading(true); - updateTableAfterFieldsUpdateFunction && updateTableAfterFieldsUpdateFunction(setLoading); - }, - children: "Update Table Fields" - }) - ] - }) - ] - }), - collapsed && /*#__PURE__*/ jsx_runtime_.jsx(ExpandBlock/* default */.Z, { - collapse: collapse, - setCollapse: setCollapse - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4941.js b/dsql-app/.local_dist/server/chunks/4941.js deleted file mode 100644 index 5a16a41..0000000 --- a/dsql-app/.local_dist/server/chunks/4941.js +++ /dev/null @@ -1,565 +0,0 @@ -"use strict"; -exports.id = 4941; -exports.ids = [4941]; -exports.modules = { - -/***/ 9230: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ CopySlug) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5050); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {{ - * slugText: string, - * justIcon?: boolean, - * title?: string, - * outlined?: boolean, - * }} props - React component props including { children } - */ function CopySlug({ slugText , justIcon , title , outlined }) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "button small-text" + (outlined ? " outlined gray bg-white" : " ghost light-gray"), - onClick: (e)=>{ - navigator.clipboard.writeText(slugText).then(()=>{ - alert(`Copied: "${slugText}"`); - }); - }, - style: outlined ? undefined : { - padding: 0 - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_3__.Copy, { - size: outlined ? 15 : 20 - }), - !justIcon && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-slate-500 dark:text-slate-300", - children: title ? title : "Copy Slug" - }) - ] - }); -} - - -/***/ }), - -/***/ 4941: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ExtraContentDatabase) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _CopySlug__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9230); -/* harmony import */ var _mui_icons_material_CodeRounded__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3849); -/* harmony import */ var _mui_icons_material_CodeRounded__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CodeRounded__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _DiskUsageComponent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6355); -/* harmony import */ var _functions_frontend_downloadApiStream__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7851); -/* harmony import */ var _mui_icons_material_SendToMobileTwoTone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6500); -/* harmony import */ var _mui_icons_material_SendToMobileTwoTone__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_SendToMobileTwoTone__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _mui_icons_material_SummarizeTwoTone__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7428); -/* harmony import */ var _mui_icons_material_SummarizeTwoTone__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_SummarizeTwoTone__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _mui_icons_material_TipsAndUpdatesTwoTone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(507); -/* harmony import */ var _mui_icons_material_TipsAndUpdatesTwoTone__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_TipsAndUpdatesTwoTone__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(6729); -/* harmony import */ var _LoadingBlock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5264); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_9__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} [props.query] - * @param {any} [props.confirmedDelegetedUser] - * @param {import("@/package-shared/types").UserType} props.user - */ function ExtraContentDatabase({ database , query , confirmedDelegetedUser , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const { active_clone , active_clone_parent_db } = database; - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [links, setLinks] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-wrap justify-center gap-4", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper gap-4", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "relative", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-8 h-8 relative", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: database.db_image, - alt: "Database Image", - width: 20, - className: "w-full h-full rounded-full object-cover" - }), - confirmedDelegetedUser?.delegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: " absolute -bottom-2 left-5 gap-1", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: confirmedDelegetedUser.rootUserImage, - alt: "Root User Image", - className: "w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-xs", - children: confirmedDelegetedUser.rootUserEmail - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-semibold text-base" + (confirmedDelegetedUser?.delegated ? " -mt-3" : ""), - children: database.db_name - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_9__.ChevronDown, { - size: 20 - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown p-0", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/edit-database`, - className: "button plain-text more-padding normal-weight", - children: "Edit Database" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - !active_clone && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/add-database?duplicate=${database.db_full_name}`, - className: "button plain-text more-padding normal-weight", - children: "Duplicate Database" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/schema`, - className: "button plain-text more-padding normal-weight", - children: "Schema" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users`, - className: "button plain-text more-padding normal-weight", - children: "Database Users" - }), - !isDelegated && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(NonDelegatedSection, { - database: database, - user: user - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "vertical" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CopySlug__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - slugText: database.db_slug, - title: `Db Slug` - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "-mt-1 gap-1", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_CopySlug__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - slugText: database.db_full_name, - title: "Full DB Name" - }) - }), - !isDelegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "vertical" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/shell`, - className: "button ghost small-text", - style: { - height: "30px", - padding: 0 - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_9__.SquareTerminal, { - size: 20 - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-sm font-semibold", - children: "Shell" - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "vertical" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DiskUsageComponent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ## Buttons for Database Root Owner - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").UserType} props.user - */ function NonDelegatedSection({ database , user }) { - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - /** @type {React.RefObject} */ // @ts-ignore - const uploadSchemaButtonRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_LoadingBlock__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/shell`, - className: "button plain-text more-padding normal-weight", - children: "Shell" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - database?.remote_connected == 1 ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(DisconnectButton, { - database: database - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/connect`, - className: "button plain-text more-padding normal-weight", - children: "Connect" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - className: "button plain-text more-padding normal-weight w-full", - onClick: (e)=>{ - (0,_functions_frontend_downloadApiStream__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)({ - url: `/api/exportDatabase?dbName=${database.db_full_name}`, - fileName: `${database.db_full_name}.sql` - }); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_SendToMobileTwoTone__WEBPACK_IMPORTED_MODULE_5___default()), { - fontSize: "small", - color: "action", - className: "opacity-50" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Export Database" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - name: "upload-update-schema", - id: "", - ref: uploadSchemaButtonRef, - className: "hidden" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - className: "button green outlined more-padding normal-weight w-full rounded-none -mb-[1px]", - onClick: (e)=>{ - if (!uploadSchemaButtonRef.current) return; - uploadSchemaButtonRef.current.addEventListener("change", (e)=>{ - /** - * @type {HTMLInputElement} - */ // @ts-ignore - const inputEl = e.target; - const file = inputEl.files?.[0]; - if (!file) { - alert("No File Selected"); - return; - } - var reader = new FileReader(); - reader.onload = function(ev) { - var fileContent = ev.target?.result; - if (!fileContent) { - alert("Invalid File!"); - } - try { - const fileContentString = fileContent?.toString(); - if (!fileContentString) { - throw new Error("Invalid File!"); - } - const schemaObject = JSON.parse(fileContentString); - if (window.confirm("Are you sure you want to use this schema file for the current database?")) { - if (window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")) { - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)("/api/user-schema/replace-database-schema", { - method: "POST", - body: { - schema: schemaObject, - dbId: database.id - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }).finally(()=>{ - setLoading(false); - }); - } - } - } catch (/** @type {any} */ error) { - alert("Invalid File. Please enter a valid JSON file"); - } - }; - reader.readAsText(file); - // if (window.confirm("Update?")) { - // console.log("Updating"); - // } - }); - uploadSchemaButtonRef.current?.click(); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_TipsAndUpdatesTwoTone__WEBPACK_IMPORTED_MODULE_7___default()), { - fontSize: "small", - color: "action", - className: "opacity-50 text-inherit" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Update From Schema" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - className: "button secondary outlined more-padding normal-weight w-full rounded-none", - onClick: (e)=>{ - (0,_functions_frontend_downloadApiStream__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)({ - url: `/api/downloadDatabaseSchema?dbName=${database.db_full_name}`, - fileName: `${database.db_full_name}.json` - }); - // fetchApi(`/api/downloadDatabaseSchema?dbName=${database.db_full_name}`).then((res)=>{ - // console.log(res); - // }) - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_SummarizeTwoTone__WEBPACK_IMPORTED_MODULE_6___default()), { - fontSize: "small", - color: "action", - className: "opacity-50 text-inherit" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Download Schema" - }) - ] - }) - ] - }); -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ### Disconnect Remote Db Button - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - */ function DisconnectButton({ database }) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "button plain-text more-padding normal-weight w-full", - onClick: (e)=>{ - if (!window.confirm("Disconnect this Database from the remote host?")) return; - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(`/api/connect/disconnect`, { - method: "POST", - body: { - dbId: database.id - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - console.log(res); - alert(res.msg || "Remote disconnection failed. Please try again."); - } - }); - }, - children: "Disconnect" - }); -} - - -/***/ }), - -/***/ 7851: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ downloadApiStream) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {{ - * url: string, - * fileName: string, - * setLoading?: React.Dispatch>, - * }} params - params - * - * @requires search-field name attribute - */ function downloadApiStream({ url , fileName , setLoading }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ if (setLoading) setLoading(true); - fetch(url, { - method: "GET", - // @ts-ignore - headers: { - "x-csrf-auth": localStorage.getItem("csrf") - } - }).then((res)=>{ - return res.body; - }).then((body)=>{ - const reader = body?.getReader(); - if (reader) { - return new ReadableStream({ - start (controller) { - return pump(); - /** @type {() => any} */ function pump() { - return reader?.read().then(({ done , value })=>{ - // When no more data needs to be consumed, close the stream - if (done) { - controller.close(); - return; - } - // Enqueue the next data chunk into our target stream - controller.enqueue(value); - return pump(); - }); - } - } - }); - } - // console.log(body); - // const blob = new Blob([body.text], { type: "application/pdf" }); - // const url = URL.createObjectURL(blob); - // const link = document.createElement("a"); - // link.href = blob; - // link.download = `${database.db_full_name}.sql`; - // link.style.display = "none"; - // document.body.appendChild(link); - // link.click(); - // URL.revokeObjectURL(url); - // document.body.removeChild(link); - // setTimeout(() => { - // setLoading(false); - // }, 1000); - }).then((stream)=>{ - return new Response(stream); - }).then((response)=>response.blob()).then((blob)=>URL.createObjectURL(blob)).then((url)=>{ - const link = document.createElement("a"); - link.href = url; - link.download = fileName; - link.style.display = "none"; - document.body.appendChild(link); - link.click(); - URL.revokeObjectURL(url); - document.body.removeChild(link); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 1000); - }).catch((error)=>{ - console.log(error); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 1000); - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/4986.js b/dsql-app/.local_dist/server/chunks/4986.js deleted file mode 100644 index 6d20c7c..0000000 --- a/dsql-app/.local_dist/server/chunks/4986.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; -exports.id = 4986; -exports.ids = [4986]; -exports.modules = { - -/***/ 4986: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ActiveCloneDbBanner) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {object} props.database - * @param {string} props.database.active_clone_parent_db - * @param {import("@/package-shared/types").UserType} props.user - */ function ActiveCloneDbBanner({ database , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const parentDbSlug = database.active_clone_parent_db?.replace(/datasquirel_user_\d+_/, ""); - const targetDbUrl = `/admin/${user?.id}/databases/${parentDbSlug}`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "info green", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text font-normal", - children: [ - "This database is an active clone of", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: targetDbUrl, - target: "_blank", - className: "query-url", - children: parentDbSlug - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5114.js b/dsql-app/.local_dist/server/chunks/5114.js deleted file mode 100644 index 9ecf970..0000000 --- a/dsql-app/.local_dist/server/chunks/5114.js +++ /dev/null @@ -1,424 +0,0 @@ -"use strict"; -exports.id = 5114; -exports.ids = [5114]; -exports.modules = { - -/***/ 5114: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ CreateAccountForm) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./functions/frontend/submitNewUserForm.js -// @ts-check - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # Submit New Image Form - * @param {object} param0 - * @param {*} param0.e - * @param {React.Dispatch>} param0.setLoading - * @param {import("@/package-shared/types").UserType} [param0.user] - * @param {*} [param0.image] - * @param {*} [param0.query] - */ async function submitNewUserForm({ e , setLoading , user , image , query , }) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - setLoading(true); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let formBody = { - first_name: e.target["first_name"].value, - last_name: e.target["last_name"].value, - email: user ? null : e.target["email_address"].value, - username: user ? null : e.target["username"].value, - password: user ? null : e.target["password"].value, - image: image ? image : null - }; - // @ts-ignore - if (query?.invite) formBody["inviteObject"] = query; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const apiRoute = user ? "/api/updateUser" : "/api/registerUser"; - (0,fetchApi/* default */.Z)(apiRoute, { - method: "post", - body: formBody - }, user ? true : false).then((res)=>{ - console.log(res); - if (!user && res?.insertId) { - localStorage.setItem("id", res.insertId); - (0,fetchApi/* default */.Z)("/api/loginUser", { - method: "post", - body: { - email: formBody.email, - password: formBody.password - } - }).then((_res)=>{ - console.log(_res); - localStorage.setItem("csrf", _res.user.csrf_k); - localStorage.setItem("stripe_id", _res.user.stripe_id); - localStorage.setItem("user", JSON.stringify(_res.userPayload)); - window.location.href = "/admin"; - }); - } else if (user && res?.user) { - // fetchApi("/api/reauthUser") - window.location.reload(); - } else if (res?.msg) { - alert(res.msg); - } - }).catch((err)=>{ - console.log(err); - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 2000); - }); -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/FormAlertBlock.jsx -var FormAlertBlock = __webpack_require__(7037); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/pages/login/SocialLogin.jsx + 3 modules -var SocialLogin = __webpack_require__(8374); -;// CONCATENATED MODULE: ./components/pages/create-account/CreateAccountForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// - - - - - -//////////////////////////////////////// -/** @type {any} */ let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {import("@/package-shared/types").CreateAccountQueryType} [props.query] - * @param {any} [props.image] - */ function CreateAccountForm({ user , query , image }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const defaultEmail = query?.email ? query.email : user?.email ? user.email : ""; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ alert: string | null, setAlert: React.Dispatch> ]} */ // @ts-ignore - const [alert, setAlert] = external_react_default().useState(null); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "relative w-full max-w-2xl flex-col items-start", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - !user && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "opacity-0" - }), - /*#__PURE__*/ jsx_runtime_.jsx(SocialLogin/* default */.Z, { - user: null, - userType: "admin", - setLoading: setLoading - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-center relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "bg-white dark:bg-slate-800 px-3 relative z-10", - children: "OR" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "absolute" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-start gap-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - submitNewUserForm({ - e, - setLoading, - user, - image, - query - }); - }, - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx(FormAlertBlock/* default */.Z, { - message: alert - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "first_name", - children: "First Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "first_name", - id: "first_name", - placeholder: "First Name", - autoComplete: "given-name", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - }, - defaultValue: user ? user.first_name : "", - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "last_name", - children: "Last Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "last_name", - id: "last_name", - placeholder: "Last Name", - autoComplete: "family-name", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - }, - defaultValue: user ? user.last_name : "", - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "username", - children: "Username" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "username", - id: "username", - placeholder: "Username", - autoComplete: "username", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - (0,fetchApi/* default */.Z)(`/api/checkDuplicateData?type=username&value=${inputEl.value}&tableName=users`).then((res)=>{ - console.log(res); - if (res?.result) { - setAlert("Username Already Exists"); - inputEl.classList.add("warning"); - } else { - setAlert(null); - inputEl.classList.remove("warning"); - } - }); - }, 300); - }, - defaultValue: user ? user.username : "", - required: user ? false : true, - readOnly: user ? true : false - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "email_address", - children: "Email Address" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "email", - name: "email_address", - id: "email_address", - placeholder: "Email Address", - autoComplete: "email", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - (0,fetchApi/* default */.Z)(`/api/checkDuplicateData?type=email&value=${inputEl.value}&tableName=users`).then((res)=>{ - console.log(res); - if (res?.result) { - setAlert("Email Already Exists"); - inputEl.classList.add("warning"); - } else { - setAlert(null); - inputEl.classList.remove("warning"); - } - }); - }, 300); - }, - defaultValue: defaultEmail, - required: true, - readOnly: user ? true : false - }) - ] - }), - !user && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "password", - children: "Password" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "password", - name: "password", - id: "password", - placeholder: "Password", - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "confirm_password", - children: "Confirm Password" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "password", - name: "confirm_password", - id: "confirm_password", - placeholder: "Confirm Password", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let passwordInput = inputEl.closest("form")?.["password"].value; - let passwordRepeatInput = inputEl.value; - if (passwordInput === passwordRepeatInput) { - inputEl.classList.remove("warning"); - } else { - inputEl.classList.add("warning"); - } - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm", - children: [ - 'By clicking "Create Account" you agree to our', - " ", - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/terms", - target: "_blank", - className: "font-bold", - children: "Terms and Conditions" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "w-full", - children: user ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Update Account Info" - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Create Account" - }) - }), - !user && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm", - children: [ - "Already Have an Account?", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/login", - className: "font-bold", - children: "Login" - }) - ] - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5116.js b/dsql-app/.local_dist/server/chunks/5116.js deleted file mode 100644 index 4d6a247..0000000 --- a/dsql-app/.local_dist/server/chunks/5116.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; -exports.id = 5116; -exports.ids = [5116]; -exports.modules = { - -/***/ 5116: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const http = __webpack_require__(3685); -const decrypt = __webpack_require__(5304); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} grabDelegatedUserFromCookieReturn - * @property {number} dbUserId - * @property {number} [dbUserId] - * @property {number} [rootUserId] - * @property {string} [rootUserName] - * @property {string} [rootUserEmail] - * @property {string} [rootUserImage] - * @property {string} [databaseFullName] - * @property {string} [databaseSlug] - * @property {string[]} [allowedTables] - * @property {string} [priviledges] - * @property {string} [database] - * @property {boolean} [delegated] - */ /** - * @param {object} params - user id - * @param {import("next").NextApiRequest | http.IncomingMessage & { cookies: Partial<{ [key: string]: string; }>}} params.request - HTTPS request object - * @param {string | string[]} params.databaseSlug - Database name slug - * @param {{ id: number, first_name: string, last_name: string }} params.user - * @param {any} params.query - query params - * - * @returns {Promise} new user auth object payload - */ module.exports = async function grabDelegatedUserFromCookie({ request , databaseSlug , user , query , }) { - try { - /** - * Fetch user - * - * @description Fetch user from db - */ let dbUserId = user.id; - let delegatedUserObject = null; - if (!query?.delegated) return { - dbUserId - }; - const rootUserId = query.dbUserId; - const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${rootUserId}_${databaseSlug}`; - const tokenName = `${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${dbFullName}`; - try { - if (!request.cookies?.[tokenName]) throw new Error("Cookie not present"); - // @ts-ignore - const decryptedToken = decrypt(request.cookies[tokenName]); - if (!decryptedToken) throw new Error("Invalid Token"); - delegatedUserObject = JSON.parse(decryptedToken); - if (delegatedUserObject.databaseSlug === databaseSlug) { - dbUserId = delegatedUserObject.rootUserId; - return { - dbUserId: dbUserId, - rootUserId: delegatedUserObject.rootUserId, - rootUserName: delegatedUserObject.rootUserName, - rootUserEmail: delegatedUserObject.rootUserEmail, - rootUserImage: delegatedUserObject.rootUserImage, - databaseFullName: delegatedUserObject.databaseFullName, - databaseSlug: delegatedUserObject.databaseSlug, - allowedTables: delegatedUserObject.allowedTables, - priviledges: delegatedUserObject.priviledges, - database: delegatedUserObject.databaseSlug, - delegated: true - }; - } - } catch (error) { - // serverError({ - // component: "grabDelegatedUserFromCookie", - // message: error.message, - // user: user, - // }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return { - dbUserId - }; - } catch (error1) { - return null; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5134.js b/dsql-app/.local_dist/server/chunks/5134.js new file mode 100644 index 0000000..b8e5836 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5134.js @@ -0,0 +1 @@ +"use strict";exports.id=5134,exports.ids=[5134],exports.modules={46437:(e,a,t)=>{t.d(a,{A:()=>n});var s=t(8732);t(82015);var l=t(42178);function n(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(l.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},94010:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>d});var l=t(8732);t(82015);var n=t(96089),i=t(75979),r=e([i]);function d({slugText:e,justIcon:a,noIcon:t,title:s,outlined:r,extraClasses:d}){return(0,l.jsxs)("div",{className:(0,i.twMerge)("button small-text",r?" outlined gray bg-white":" ghost light-gray",d),onClick:a=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:r?void 0:{padding:0},children:[!t&&(0,l.jsx)(n.A,{size:r?15:20}),!a&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}i=(r.then?(await r)():r)[0],s()}catch(e){s(e)}})},64098:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>f});var l=t(8732),n=t(82015),i=t.n(n),r=t(94010),d=t(36605),o=t(22603),c=t(48987),m=t(42125),h=t(50993),u=t(63715),x=t(32415),b=t(58526),g=t(98136),p=e([r]);function f({database:e,query:a,confirmedDelegetedUser:t,user:s}){let{active_clone:n,active_clone_parent_db:o}=e,c=t?.delegated;t?.priviledges?.match(/Edit Tables/i),t?.priviledges?.match(/Delete Tables/i);let[m,h]=i().useState(null);return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:e.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),t?.delegated&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:t.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:t.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+(t?.delegated?" -mt-3":""),children:e.db_name})]}),(0,l.jsx)(b.A,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/edit-database`,className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!n&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/add-database?duplicate=${e.db_full_name}`,className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/schema`,className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/users`,className:"button plain-text more-padding normal-weight",children:"Database Users"}),!c&&(0,l.jsx)(j,{database:e,user:s})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(r.A,{slugText:e.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(r.A,{slugText:e.db_full_name,title:"Full DB Name"})}),!c&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:`/admin/${s?.id}/databases/${e.db_slug}/shell`,className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(g.A,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(d.A,{})]})}function j({database:e,user:a}){let[t,s]=i().useState(!1),n=i().useRef();return(0,l.jsxs)(i().Fragment,{children:[t&&(0,l.jsx)(x.A,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/shell`,className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),e?.remote_connected==1?(0,l.jsx)(w,{database:e}):(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${e.db_slug}/connect`,className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{(0,o.A)({url:`/api/exportDatabase?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.sql`})},children:[(0,l.jsx)(c.A,{fontSize:"small",color:"action",className:"opacity-50"}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:n,className:"hidden"}),(0,l.jsxs)("button",{className:"button green outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:a=>{n.current&&(n.current.addEventListener("change",a=>{let t=a.target,l=t.files?.[0];if(!l){alert("No File Selected");return}var n=new FileReader;n.onload=function(a){var t=a.target?.result;t||alert("Invalid File!");try{let a=t?.toString();if(!a)throw Error("Invalid File!");let l=JSON.parse(a);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(s(!0),(0,u.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:l,dbId:e.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{s(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},n.readAsText(l)}),n.current?.click())},children:[(0,l.jsx)(h.A,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button secondary outlined more-padding normal-weight w-full rounded-none",onClick:a=>{(0,o.A)({url:`/api/downloadDatabaseSchema?dbName=${e.db_full_name}`,fileName:`${e.db_full_name}.json`})},children:[(0,l.jsx)(m.A,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function w({database:e}){return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:a=>{window.confirm("Disconnect this Database from the remote host?")&&(0,u.A)("/api/connect/disconnect",{method:"POST",body:{dbId:e.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}r=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},22603:(e,a,t)=>{t.d(a,{A:()=>s});function s({url:e,fileName:a,setLoading:t}){t&&t(!0),fetch(e,{method:"GET",headers:{"x-csrf-auth":localStorage.getItem("csrf")}}).then(e=>e.body).then(e=>{let a=e?.getReader();if(a)return new ReadableStream({start:e=>(function t(){return a?.read().then(({done:a,value:s})=>{if(a){e.close();return}return e.enqueue(s),t()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let s=document.createElement("a");s.href=e,s.download=a,s.style.display="none",document.body.appendChild(s),s.click(),URL.revokeObjectURL(e),document.body.removeChild(s),setTimeout(()=>{t&&t(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{t&&t(!1)},1e3)})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5212.js b/dsql-app/.local_dist/server/chunks/5212.js new file mode 100644 index 0000000..a8bc3bd --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5212.js @@ -0,0 +1 @@ +"use strict";exports.id=5212,exports.ids=[5212],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},13362:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(8732);function r({image:e,title:t,description:s,color:r,imageHeight:i}){return(0,a.jsxs)("div",{className:"color-card shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":""):""),children:[(0,a.jsx)("h3",{className:"title m-0 text-2xl",children:t}),s&&(0,a.jsx)("span",{className:"text-slate-600 dark:text-slate-400 text-left",children:s}),(0,a.jsx)("div",{className:"image-block",style:i?{height:`${i}px`}:void 0,children:(0,a.jsx)("img",{src:e,alt:`${t} Image`})})]})}function i({image:e,title:t,description:s,color:r,height:i,h2:n,url:l,cta:o}){return(0,a.jsxs)("div",{className:"contained-section shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":"purple"==r?"purple":""):""),style:i?{height:`${i}px`}:void 0,children:[(0,a.jsxs)("div",{className:"content text-left",children:[n?(0,a.jsx)("h2",{className:"m-0 text-white",children:t}):(0,a.jsx)("h3",{className:"m-0 text-white",children:t}),s&&(0,a.jsx)("span",{className:"text-slate-400",children:s}),l&&o&&(0,a.jsx)("a",{href:l,className:"button mt-4",children:o})]}),(0,a.jsx)("div",{className:"image-block",children:(0,a.jsx)("img",{src:e,alt:`${t} Image`})}),(0,a.jsx)("img",{src:"/images/geometric-overlay.webp",className:"absolute z-0 left-0 top-0 w-full h-full opacity-80 mix-blend-overlay",alt:"Background Image"})]})}function n(e){return(0,a.jsx)("section",{className:"py-20",children:(0,a.jsxs)("div",{className:"main-container flex-col items-center text-center",children:[(0,a.jsx)("h2",{className:"m-0 lg:text-left",children:"All your data storage needs in one place"}),(0,a.jsx)("p",{className:"m-0 ",children:"Datasquirel solves the hassle of storing data across different platforms using a centralized, easy-to-use, SQL-based cloud database administration system. Now you can have all your data in one place and retrieve from any location or environment using HTTP REST API calls and SQL queries."}),(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full mt-10 gap-10",children:[(0,a.jsx)(r,{image:"/images/screenshots/databases-light.webp",title:"Data and Content",description:"Create databases, tables, dynamic datatypes including rich text, JSON and other editable code blocks",imageHeight:400}),(0,a.jsx)(r,{image:"/images/screenshots/media-list-white.webp",title:"Images, Videos, and other Media",description:"Static images automatically compressed with multiple format support, videos, pdf, excel documents, and more.",color:"green",imageHeight:400})]}),(0,a.jsx)("div",{className:"mt-10 w-full",children:(0,a.jsx)(i,{image:"/images/screenshots/tables-list-white.webp",title:"All the power of SQL without the hassle",description:"Indexes, Foreign keys, encryption, triggers, stored proceedures, etc. You get the best of both worlds: the full power of SQL, and the best UI yet to better manipulate your data.",cta:"Learn More",url:"/about",height:500})})]})})}s(82015)},76892:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732);s(82015);var r=s(97780);function i({user:e}){return(0,a.jsxs)("section",{className:"py-24 border-0 border-t border-b border-slate-100 dark:border-slate-100/10 border-solid",children:[(0,a.jsx)("div",{className:"w-full max-w-6xl gap-10 justify-between flex-col relative z-10",children:(0,a.jsxs)("div",{className:"flex-col items-center max-w-2xl text-center ",style:{minWidth:"45%"},children:[(0,a.jsx)("h2",{className:"m-0 leading-tight",children:"Get started For Free."}),(0,a.jsx)("span",{className:"text-lg font-normal",children:"Get Started At no cost. Learn how to create and retrieve data by viewing our documentation."}),(0,a.jsxs)("div",{className:"flex items-start justify-center w-full mt-4",children:[!e?.logged_in_status&&(0,a.jsx)("a",{href:"/create-account",className:"button",children:(0,a.jsx)("span",{className:"",children:"Sign Up For Free"})}),(0,a.jsxs)("a",{href:"/docs",className:"button outlined gray",children:[(0,a.jsx)(r.A,{sx:{opacity:.8,fontSize:16}}),(0,a.jsx)("span",{children:"See The Docs"})]})]})]})}),(0,a.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"})]})}},12642:(e,t,s)=>{s(8732),s(82015)},6845:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(63715);function r({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,a.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},97780:(e,t,s)=>{var a=s(24994);t.A=void 0;var r=a(s(30887)),i=s(8732);t.A=(0,r.default)([(0,i.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-2-6H7v-2h10zm0-4H7V7h10zm-3 8H7v-2h7z"},"1")],"ArticleTwoTone")},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>i});var a=s(8732);s(82015);var r=s(20883);function i(e){return(0,a.jsxs)(r.Html,{lang:"en",children:[(0,a.jsxs)(r.Head,{children:[(0,a.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,a.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,a.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,a.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,a.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)(r.Main,{}),(0,a.jsx)(r.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5264.js b/dsql-app/.local_dist/server/chunks/5264.js deleted file mode 100644 index 9cdf134..0000000 --- a/dsql-app/.local_dist/server/chunks/5264.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -exports.id = 5264; -exports.ids = [5264]; -exports.modules = { - -/***/ 5264: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ LoadingBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Loading Block Functional Component - * ============================================================================== - * @param {{ - * width?: string, - * position?: *, - * style?: import("react").CSSProperties, - * borderWidth?: string, - * screen?: boolean, - * title?: string, - * }} props - React Component Props - */ function LoadingBlock({ width , position , style , borderWidth , screen , title , }) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: " top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50" + (screen ? " fixed" : " absolute"), - style: { - ...style, - position: position, - zIndex: 20000 - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "general_loader", - style: width ? { - width: width, - height: width, - minWidth: width, - borderWidth: borderWidth ? borderWidth : "4px" - } : {} - }), - title ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: title - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}) - ] - }); -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5313.js b/dsql-app/.local_dist/server/chunks/5313.js deleted file mode 100644 index f77ab75..0000000 --- a/dsql-app/.local_dist/server/chunks/5313.js +++ /dev/null @@ -1,516 +0,0 @@ -"use strict"; -exports.id = 5313; -exports.ids = [5313]; -exports.modules = { - -/***/ 8282: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ SuAdminLayout) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "next/head" -var head_ = __webpack_require__(968); -var head_default = /*#__PURE__*/__webpack_require__.n(head_); -// EXTERNAL MODULE: ./components/general/Logo.jsx -var Logo = __webpack_require__(4017); -// EXTERNAL MODULE: external "@mui/icons-material/CottageTwoTone" -var CottageTwoTone_ = __webpack_require__(386); -var CottageTwoTone_default = /*#__PURE__*/__webpack_require__.n(CottageTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/PeopleAltTwoTone" -var PeopleAltTwoTone_ = __webpack_require__(8245); -var PeopleAltTwoTone_default = /*#__PURE__*/__webpack_require__.n(PeopleAltTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/ErrorTwoTone" -var ErrorTwoTone_ = __webpack_require__(6094); -var ErrorTwoTone_default = /*#__PURE__*/__webpack_require__.n(ErrorTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/BackupTwoTone" -var BackupTwoTone_ = __webpack_require__(9318); -var BackupTwoTone_default = /*#__PURE__*/__webpack_require__.n(BackupTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DocumentScannerTwoTone" -var DocumentScannerTwoTone_ = __webpack_require__(6817); -// EXTERNAL MODULE: external "@mui/icons-material/TerminalTwoTone" -var TerminalTwoTone_ = __webpack_require__(415); -var TerminalTwoTone_default = /*#__PURE__*/__webpack_require__.n(TerminalTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/LockPersonTwoTone" -var LockPersonTwoTone_ = __webpack_require__(6547); -var LockPersonTwoTone_default = /*#__PURE__*/__webpack_require__.n(LockPersonTwoTone_); -;// CONCATENATED MODULE: ./layouts/components/SuAdminLayout/Aside.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ "use client"; - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - */ function Aside(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [collapseAsideMobile, setCollapseAsideMobile] = external_react_default().useState(true); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("aside", { - className: "aside" + (collapseAsideMobile ? " mobile-collapsed" : " mobile-expanded"), - style: { - maxWidth: collapseAsideMobile ? "250px" : "300px", - zIndex: 800 - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Logo/* default */.Z, { - adminAside: true, - collapseAsideMobile: collapseAsideMobile, - setCollapseAsideMobile: setCollapseAsideMobile - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "opacity-0 mt-4" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "main-links" + (collapseAsideMobile ? " hidden lg:flex" : " "), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su`, - "data-currentlink": `/su`, - "data-strictlink": "true", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((CottageTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Dashboard" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/users`, - "data-currentlink": `/su/users`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((PeopleAltTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Users" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/error-logs`, - "data-currentlink": `/su/error-logs`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((ErrorTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Error Logs" - }) - ] - }), - false && /*#__PURE__*/ 0, - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/backups`, - "data-currentlink": `/su/backups`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((BackupTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Backups" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/console`, - "data-currentlink": `/su/console`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((TerminalTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Console" - }) - ] - }), - true && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/envar`, - "data-currentlink": `/su/envar`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((LockPersonTwoTone_default()), { - className: "text-slate-400" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Env" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./components/general/ThemeSelector.jsx -var ThemeSelector = __webpack_require__(4981); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./layouts/components/SuAdminLayout/AdminHeader.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ "use client"; - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {import("@/package-shared/types").UserType} props.user - * @param {React.ReactNode} [props.extraHeaderContent] - */ function AdminHeader({ user , extraHeaderContent }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [activeUser, setActiveUser] = external_react_default().useState(user ? user : null); - external_react_default().useEffect(()=>{ - if (user?.logged_in_status) { - setActiveUser(user ? user : null); - } - }, [ - user - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5", - style: { - zIndex: 700, - border: "none" - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full items-center justify-between gap-4 md:gap-8", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0", - id: "main-nav-content-wrapper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-center mb-2 flex xl:hidden", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/", - className: "hidden xl:flex", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/logo-icon-alt-2.png", - alt: "Logo Icon", - width: 37 - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray ml-auto", - onClick: (e)=>{ - /** @type {any} */ const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - border: "none" - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-semibold text-4xl", - children: "✕" - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "ml-auto dropdown-wrapper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "bg-white rounded-full overflow-hidden", - style: { - width: "36px", - height: "36px" - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/user-preset-thumbnail.png", - alt: "User Image", - width: 35, - className: "w-full h-full object-cover" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "Super User" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronDown, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown", - children: /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/su/logout`, - children: "Logout" - }) - }) - ] - }) - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-2", - children: /*#__PURE__*/ jsx_runtime_.jsx(ThemeSelector/* default */.Z, {}) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto", - onClick: (e)=>{ - /** @type {any} */ const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - minWidth: "50px", - backgroundColor: "transparent" - }, - id: "main-header-hamburger-button", - "aria-label": "Mobile Hambutget Button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./functions/frontend/updateNavLinks.js -var updateNavLinks = __webpack_require__(9678); -;// CONCATENATED MODULE: ./layouts/SuAdminLayout.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React Props - * @param {React.ReactNode} props.children - children component - * @param {React.ReactNode} [props.head] - head Items - * @param {import("@/package-shared/types").UserType} props.user - user object - */ function SuAdminLayout({ children , head , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ external_react_default().useEffect(()=>{ - /** @type { NodeListOf } */ const links = document.querySelectorAll("aside .main-links a"); - (0,updateNavLinks/* default */.Z)({ - links: links - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)((head_default()), { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("link", { - rel: "stylesheet", - href: "/styles/admin.css" - }), - head - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "admin w-full flex items-start gap-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Aside, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("main", { - className: "relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(AdminHeader, { - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900", - children: children - }), - /*#__PURE__*/ jsx_runtime_.jsx("footer", { - className: "flex justify-center w-full items-center p-4", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "max-w-6xl w-full justify-center flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: "/", - className: "flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/logo-icon-alt-2.png", - alt: "Datasquirel Logo", - width: 30 - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-lg font-bold", - children: "Datasquirel" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm text-slate-400 dark:text-slate-600 text-center", - children: [ - new Date().getFullYear(), - " \xa9 Datasquirel. All rights reserved." - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/docs", - children: "Docs" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-25", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/terms", - children: "Terms" - }) - ] - }) - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5338.js b/dsql-app/.local_dist/server/chunks/5338.js deleted file mode 100644 index b65177f..0000000 --- a/dsql-app/.local_dist/server/chunks/5338.js +++ /dev/null @@ -1,177 +0,0 @@ -"use strict"; -exports.id = 5338; -exports.ids = [5338]; -exports.modules = { - -/***/ 5338: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const encrypt = __webpack_require__(7547); -const sanitizeHtml = __webpack_require__(6109); -const sanitizeHtmlOptions = __webpack_require__(9544); -const updateDb = __webpack_require__(5886); -const updateDbEntry = __webpack_require__(5886); -const _ = __webpack_require__(6517); -const DB_HANDLER = __webpack_require__(2224); -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {("Master" | "Dsql User")} [params.dbContext] - What is the database context? "Master" - * or "Dsql User". Defaults to "Master" - * @param {("Read Only" | "Full Access")} [params.paradigm] - What is the paradigm for "Dsql User"? - * "Read only" or "Full Access"? Defaults to "Read Only" - * @param {string} [params.dbFullName] - Database full name - * @param {string} params.tableName - Table name - * @param {any} params.data - Data to add - * @param {import("../../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @param {string} [params.duplicateColumnName] - Duplicate column name - * @param {string} [params.duplicateColumnValue] - Duplicate column value - * @param {boolean} [params.update] - Update this row if it exists - * @param {string} [params.encryptionKey] - Update this row if it exists - * @param {string} [params.encryptionSalt] - Update this row if it exists - * - * @returns {Promise} - */ async function addDbEntry({ dbContext , paradigm , dbFullName , tableName , data , tableSchema , duplicateColumnName , duplicateColumnValue , update , encryptionKey , encryptionSalt , }) { - /** - * Initialize variables - */ const isMaster = dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false : true; - /** @type { any } */ const dbHandler = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (data?.["date_created_timestamp"]) delete data["date_created_timestamp"]; - if (data?.["date_updated_timestamp"]) delete data["date_updated_timestamp"]; - if (data?.["date_updated"]) delete data["date_updated"]; - if (data?.["date_updated_code"]) delete data["date_updated_code"]; - if (data?.["date_created"]) delete data["date_created"]; - if (data?.["date_created_code"]) delete data["date_created_code"]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ if (duplicateColumnName && typeof duplicateColumnName === "string") { - const duplicateValue = isMaster ? await dbHandler(`SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`, [ - duplicateColumnValue - ]) : await dbHandler({ - paradigm: "Read Only", - database: dbFullName, - queryString: `SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`, - queryValues: [ - duplicateColumnValue - ] - }); - if (duplicateValue?.[0] && !update) { - return null; - } else if (duplicateValue && duplicateValue[0] && update) { - return await updateDbEntry({ - dbContext, - paradigm, - dbFullName, - tableName, - data, - tableSchema, - encryptionKey, - encryptionSalt, - identifierColumnName: duplicateColumnName, - identifierValue: duplicateColumnValue || "" - }); - } - } - /** - * Declare variables - * - * @description Declare "results" variable - */ const dataKeys = Object.keys(data); - let insertKeysArray = []; - let insertValuesArray = []; - for(let i = 0; i < dataKeys.length; i++){ - try { - const dataKey = dataKeys[i]; - // @ts-ignore - let value = data?.[dataKey]; - const targetFieldSchemaArray = tableSchema ? tableSchema?.fields?.filter((field)=>field.fieldName == dataKey) : null; - const targetFieldSchema = targetFieldSchemaArray && targetFieldSchemaArray[0] ? targetFieldSchemaArray[0] : null; - if (value == null || value == undefined) continue; - if (targetFieldSchema?.dataType?.match(/int$/i) && typeof value == "string" && !value?.match(/./)) continue; - if (targetFieldSchema?.encrypted) { - value = encrypt(value, encryptionKey, encryptionSalt); - console.log("DSQL: Encrypted value =>", value); - } - if (targetFieldSchema?.richText) { - value = sanitizeHtml(value, sanitizeHtmlOptions); - } - if (targetFieldSchema?.pattern) { - const pattern = new RegExp(targetFieldSchema.pattern, targetFieldSchema.patternFlags || ""); - if (!pattern.test(value)) { - console.log("DSQL: Pattern not matched =>", value); - value = ""; - } - } - insertKeysArray.push("`" + dataKey + "`"); - if (typeof value === "object") { - value = JSON.stringify(value); - } - if (typeof value == "number") { - insertValuesArray.push(String(value)); - } else { - insertValuesArray.push(value); - } - } catch (/** @type {any} */ error) { - console.log("DSQL: Error in parsing data keys =>", error.message); - continue; - } - } - //////////////////////////////////////// - if (!data?.["date_created"]) { - insertKeysArray.push("`date_created`"); - insertValuesArray.push(Date()); - } - if (!data?.["date_created_code"]) { - insertKeysArray.push("`date_created_code`"); - insertValuesArray.push(Date.now()); - } - //////////////////////////////////////// - if (!data?.["date_updated"]) { - insertKeysArray.push("`date_updated`"); - insertValuesArray.push(Date()); - } - if (!data?.["date_updated_code"]) { - insertKeysArray.push("`date_updated_code`"); - insertValuesArray.push(Date.now()); - } - //////////////////////////////////////// - const query = `INSERT INTO \`${tableName}\` (${insertKeysArray.join(",")}) VALUES (${insertValuesArray.map(()=>"?").join(",")})`; - const queryValuesArray = insertValuesArray; - const newInsert = isMaster ? await dbHandler(query, queryValuesArray) : await dbHandler({ - paradigm, - database: dbFullName, - queryString: query, - queryValues: queryValuesArray - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return newInsert; -} -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = addDbEntry; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5449.js b/dsql-app/.local_dist/server/chunks/5449.js deleted file mode 100644 index f3f1524..0000000 --- a/dsql-app/.local_dist/server/chunks/5449.js +++ /dev/null @@ -1,105 +0,0 @@ -"use strict"; -exports.id = 5449; -exports.ids = [5449]; -exports.modules = { - -/***/ 5449: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ButtonGroup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {{ - * children: React.ReactNode, - * column?: boolean, - * className?: string, - * }} props - React component props including { children } - */ function ButtonGroup({ children , column , className }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const btnGroupRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - try { - /** @type {HTMLDivElement & *} */ const buttonGroupWrapper = btnGroupRef.current; - /** @type {any} */ const children = buttonGroupWrapper.childNodes; - const allAvailableBtns = Array.from(children); - if (allAvailableBtns?.length === 1) return; - allAvailableBtns.forEach((btn, index)=>{ - let targetElement = btn; - if (targetElement.classList.contains("dropdown-wrapper")) { - const targetClild = Array.from(btn.childNodes).filter((node)=>node?.nodeName?.match(/button/i) || node.classList.contains("button")); - if (targetClild && targetClild[0]) { - targetElement = targetClild[0]; - } - } - const targetBorderSide = column ? "borderTop" : "borderLeft"; - const targetBorderRadiusStart = column ? "borderBottomRightRadius" : "borderTopRightRadius"; - const targetBorderRadiusEnd = column ? "borderBottomLeftRadius" : "borderBottomRightRadius"; - const targetBorderOppositeRadiusStart = column ? "borderTopRightRadius" : "borderTopLeftRadius"; - const targetBorderOppositeRadiusEnd = column ? "borderTopLeftRadius" : "borderBottomLeftRadius"; - if (index < allAvailableBtns.length - 1) { - targetElement.style[targetBorderRadiusStart] = 0; - targetElement.style[targetBorderRadiusEnd] = 0; - } - if (index > 0) { - targetElement.style[targetBorderSide] = "none"; - targetElement.style[targetBorderOppositeRadiusStart] = 0; - targetElement.style[targetBorderOppositeRadiusEnd] = 0; - } - }); - } catch (/** @type {any} */ error) { - console.log(error.message); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "items-stretch gap-0" + (column ? " flex-col" : " flex-wrap xl:flex-nowrap") + (className ? " " + className : ""), - // @ts-ignore - ref: btnGroupRef, - children: children - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5472.js b/dsql-app/.local_dist/server/chunks/5472.js deleted file mode 100644 index 4272b56..0000000 --- a/dsql-app/.local_dist/server/chunks/5472.js +++ /dev/null @@ -1,184 +0,0 @@ -"use strict"; -exports.id = 5472; -exports.ids = [5472]; -exports.modules = { - -/***/ 5472: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Mw": () => (/* binding */ openPopup), -/* harmony export */ "ZP": () => (/* binding */ GeneralPopup), -/* harmony export */ "j4": () => (/* binding */ closePopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {React.ReactNode} props.children - React children - * @param {string} props.title - Popup title - * @param {Object} [props.data] - data to pass in the "data-data" attribute as JSON - * @param {boolean} [props.fullPage] - If the popup will span the full screen - * @param {string} [props.wrapperClasses] - Popup wrapper additional class names - * @param {() => void} [props.closePopupDispatch] - Function to run when popup is closed - * @param {React.CSSProperties} [props.wrapperStyle] - React styles for the popup wrapper - * @param {boolean} [props.noContainer] - If no container should be provided - */ function GeneralPopup({ children , title , data , fullPage , wrapperClasses , closePopupDispatch , wrapperStyle , noContainer , }) { - /** - * Get Contexts - * - * @description { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @description Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ if (fullPage) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "popup-bg overflow-hidden " + (wrapperClasses ? wrapperClasses : ""), - "data-popupid": title ? title : null, - style: wrapperStyle, - children: [ - noContainer ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), { - children: children - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "relative w-full h-full z-50", - "data-data": data ? JSON.stringify(data) : "", - children: children - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "popup-cancel-button fixed outlined gray", - onClick: (e)=>{ - closePopup(); - if (closePopupDispatch) closePopupDispatch(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_1__.X, { - color: "white", - size: 20 - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "popup-canceller", - onClick: (e)=>{ - closePopup(); - closePopupDispatch && closePopupDispatch(); - } - }) - ] - }); - } - //////////////////////////////////////// - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "popup-bg", - "data-popupid": title ? title : null, - children: [ - noContainer ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), { - children: children - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "popup-content-container minimal-scrollbars", - "data-data": data ? JSON.stringify(data) : "", - children: [ - children, - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray popup-cancel-button", - onClick: (e)=>{ - closePopup(); - closePopupDispatch && closePopupDispatch(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-normal", - children: "✖" - }) - }) - ] - }), - noContainer && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "gray popup-cancel-button", - onClick: (e)=>{ - closePopup(); - closePopupDispatch && closePopupDispatch(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-normal", - children: "✖" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "popup-canceller", - onClick: (e)=>{ - closePopup(); - closePopupDispatch && closePopupDispatch(); - } - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Open Popup Function - * ============================================================================== - * @param {string} popupId - popup id - * @param {(popup?: Element) => void} [openPopupDispatch] - Function to run on popup open - */ function openPopup(popupId, openPopupDispatch) { - let popup = document.querySelector(`[data-popupid='${popupId}']`); - if (popup) { - // @ts-ignore - popup.style.display = "flex"; - openPopupDispatch && openPopupDispatch(popup); - } -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Close Popup Function - * ============================================================================== - * @param {() => void} [closePopupDispatch] - Function to run on popup open - */ function closePopup(closePopupDispatch) { - document.querySelectorAll(`[data-popupid]`).forEach((popup)=>{ - // @ts-ignore - popup.style.display = "none"; - }); - closePopupDispatch && closePopupDispatch(); -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5674.js b/dsql-app/.local_dist/server/chunks/5674.js new file mode 100644 index 0000000..cb0caa3 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/5674.js @@ -0,0 +1,13 @@ +"use strict";exports.id=5674,exports.ids=[5674],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},91479:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({pages:e}){if(!e||!e[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,n){return s.map((s,a)=>{let l=`${n}/${s.slug}`,o=e.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),o&&o[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(o,l)})]},a)})}(t,"/docs")})]})}s(82015)},84895:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(8732);function n({title:e,description:t}){return(0,r.jsxs)("section",{className:"py-14",children:[(0,r.jsx)("div",{className:"w-full gap-10 justify-between items-start flex-col lg:flex-row relative z-10",children:(0,r.jsxs)("div",{className:"flex-col items-start max-w-[740px] text-left",style:{minWidth:"45%"},children:[(0,r.jsx)("h1",{className:"m-0 leading-tight",children:e}),(0,r.jsx)("span",{className:"font-normal text-xl -my-4",dangerouslySetInnerHTML:{__html:t}})]})}),(0,r.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}s(82015)},6845:(e,t,s)=>{s.d(t,{A:()=>n});var r=s(63715);function n({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},69436:(e,t,s)=>{let r=s(29021),n=s(22373),a=s(9973),l=s(31976),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,charset:"utf8mb4",ssl:l()}});e.exports=async function(...e){let t;"production".match(/dev/)&&r.appendFileSync("./.tmp/sqlQuery.sql",e[0]+"\n"+Date()+"\n\n\n","utf8");try{t=await new Promise((t,s)=>{o.query(...e,(e,s,r)=>{e?t({error:e.message}):t(s)})}),await o.end()}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",JSON.stringify(e,null,4)+"\n"+Date()+"\n\n\n","utf8"),t=null,n({component:"dbHandler",message:e.message})}return t?JSON.parse(JSON.stringify(t)):null}},22373:(e,t,s)=>{let r=s(29021);e.exports=async function({user:e,message:t,component:s,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${s} +Date: ${Date()} +========================================`;r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let l=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",a),r.appendFileSync("./.tmp/error.log",` + + + + +${l}`)}},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5886.js b/dsql-app/.local_dist/server/chunks/5886.js deleted file mode 100644 index fd4b09c..0000000 --- a/dsql-app/.local_dist/server/chunks/5886.js +++ /dev/null @@ -1,191 +0,0 @@ -"use strict"; -exports.id = 5886; -exports.ids = [5886]; -exports.modules = { - -/***/ 5886: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const encrypt = __webpack_require__(7547); -const sanitizeHtml = __webpack_require__(6109); -const sanitizeHtmlOptions = __webpack_require__(9544); -const DB_HANDLER = __webpack_require__(2224); -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** - * Update DB Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {("Master" | "Dsql User")} [params.dbContext] - What is the database context? "Master" - * or "Dsql User". Defaults to "Master" - * @param {("Read Only" | "Full Access")} [params.paradigm] - What is the paradigm for "Dsql User"? - * "Read only" or "Full Access"? Defaults to "Read Only" - * @param {string} [params.dbFullName] - Database full name - * @param {string} params.tableName - Table name - * @param {string} [params.encryptionKey] - * @param {string} [params.encryptionSalt] - * @param {any} params.data - Data to add - * @param {import("../../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @param {string} params.identifierColumnName - Update row identifier column name - * @param {string | number} params.identifierValue - Update row identifier column value - * - * @returns {Promise} - */ async function updateDbEntry({ dbContext , paradigm , dbFullName , tableName , data , tableSchema , identifierColumnName , identifierValue , encryptionKey , encryptionSalt , }) { - /** - * Check if data is valid - */ if (!data || !Object.keys(data).length) return null; - const isMaster = dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false : true; - /** @type {(a1:any, a2?:any)=> any } */ const dbHandler = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Declare variables - * - * @description Declare "results" variable - */ const dataKeys = Object.keys(data); - let updateKeyValueArray = []; - let updateValues = []; - for(let i = 0; i < dataKeys.length; i++){ - try { - const dataKey = dataKeys[i]; - // @ts-ignore - let value = data[dataKey]; - const targetFieldSchemaArray = tableSchema ? tableSchema?.fields?.filter((field)=>field.fieldName === dataKey) : null; - const targetFieldSchema = targetFieldSchemaArray && targetFieldSchemaArray[0] ? targetFieldSchemaArray[0] : null; - if (value == null || value == undefined) continue; - if (targetFieldSchema?.richText) { - value = sanitizeHtml(value, sanitizeHtmlOptions); - } - if (targetFieldSchema?.encrypted) { - value = encrypt(value, encryptionKey, encryptionSalt); - } - if (typeof value === "object") { - value = JSON.stringify(value); - } - if (targetFieldSchema?.pattern) { - const pattern = new RegExp(targetFieldSchema.pattern, targetFieldSchema.patternFlags || ""); - if (!pattern.test(value)) { - console.log("DSQL: Pattern not matched =>", value); - value = ""; - } - } - if (typeof value === "string" && value.match(/^null$/i)) { - value = { - toSqlString: function() { - return "NULL"; - } - }; - } - if (typeof value === "string" && !value.match(/./i)) { - value = { - toSqlString: function() { - return "NULL"; - } - }; - } - updateKeyValueArray.push(`\`${dataKey}\`=?`); - if (typeof value == "number") { - updateValues.push(String(value)); - } else { - updateValues.push(value); - } - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - //////////////////////////////////////// - console.log("DSQL: Error in parsing data keys in update function =>", error.message); - continue; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - updateKeyValueArray.push(`date_updated='${Date()}'`); - updateKeyValueArray.push(`date_updated_code='${Date.now()}'`); - //////////////////////////////////////// - //////////////////////////////////////// - const query = `UPDATE ${tableName} SET ${updateKeyValueArray.join(",")} WHERE \`${identifierColumnName}\`=?`; - updateValues.push(identifierValue); - const updatedEntry = isMaster ? await dbHandler(query, updateValues) : await dbHandler({ - paradigm, - database: dbFullName, - queryString: query, - queryValues: updateValues - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return updatedEntry; -} -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = updateDbEntry; - - -/***/ }), - -/***/ 9544: -/***/ ((module) => { - -// @ts-check - -const sanitizeHtmlOptions = { - allowedTags: [ - "b", - "i", - "em", - "strong", - "a", - "p", - "span", - "ul", - "ol", - "li", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "img", - "div", - "button", - "pre", - "code", - "br" - ], - allowedAttributes: { - a: [ - "href" - ], - img: [ - "src", - "alt", - "width", - "height", - "class", - "style" - ], - "*": [ - "style", - "class" - ] - } -}; -module.exports = sanitizeHtmlOptions; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/5910.js b/dsql-app/.local_dist/server/chunks/5910.js deleted file mode 100644 index c8acf88..0000000 --- a/dsql-app/.local_dist/server/chunks/5910.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -exports.id = 5910; -exports.ids = [5910]; -exports.modules = { - -/***/ 5910: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const sharp = __webpack_require__(7441); -const serverError = __webpack_require__(2163); -const grabPaths = __webpack_require__(6715); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * - * @param {object} params - * @param {string} params.imageSourceBase64 - * @param {string} params.imageName - * @param {any} params.user - * @param {string} [params.mimeType] - * @param {number} [params.thumbnailSize] - * @param {string} [params.folder] - * @param {boolean} [params.isPrivate] - * @returns {Promise<{ urlPath: string, urlThumbnailPath: string, urlRelativePath: string, urlThumbnailRelativePath: string } | undefined | null>} - */ module.exports = async function fsWriteImageToDiskFromBase64({ imageSourceBase64 , imageName , user , mimeType , thumbnailSize , folder , isPrivate , }) { - try { - const buffer = Buffer.from(imageSourceBase64, "base64"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const MAX_SIZE = 1800; - const MAX_SIZE_THUMBNAIL = thumbnailSize ? parseInt(thumbnailSize.toString()) : 400; - // const sharpImage = sharp(imagePath); - const sharpImageRaw = sharp(buffer); - const sharpImageThumbnailRaw = sharp(buffer); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Construct root paths - */ const grabedPaths = grabPaths({ - isPrivate: isPrivate, - user: user, - folder: folder - }); - if (!grabedPaths) { - return null; - } - const { fileRootPath , urlRootPath , relativePath } = grabedPaths; - const imageRootPath = fileRootPath; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Main Image - * - * @description Main Image - */ let imageMetadataRaw = await sharpImageRaw.metadata(); - let { width , height , format } = imageMetadataRaw; - /** @type {keyof import("sharp").FormatEnum} */ // @ts-ignore - const finalFormat = mimeType ? mimeType : format; - if (width && height && width > MAX_SIZE) { - let resizeRatio = MAX_SIZE / width; - sharpImageRaw.resize(MAX_SIZE, Math.round(height * resizeRatio), { - fit: "cover" - }); - } - sharpImageRaw.toFormat(finalFormat, { - quality: 80 - }); - //////////////////////////////////////// - let newImageMetadataRaw = await sharpImageRaw.metadata(); - //////////////////////////////////////// - let imageFullName = `${imageName}.${finalFormat}`; - let imagePath = imageRootPath + imageFullName; - const urlPath = urlRootPath + imageFullName; - const urlRelativePath = relativePath + imageFullName; - await sharpImageRaw.toFile(imagePath); - /** - * Thumbnail - * - * @description Thumbnail - */ if (width && height && width > MAX_SIZE_THUMBNAIL) { - let resizeRatio1 = MAX_SIZE_THUMBNAIL / width; - sharpImageThumbnailRaw.resize(MAX_SIZE_THUMBNAIL, Math.round(height * resizeRatio1), { - fit: "cover" - }); - } else if (width && height) { - const LOWER_THUMBNAIL_SIZE = 150; - let resizeRatio2 = LOWER_THUMBNAIL_SIZE / width; - sharpImageThumbnailRaw.resize(LOWER_THUMBNAIL_SIZE, Math.round(height * resizeRatio2), { - fit: "cover" - }); - } - sharpImageThumbnailRaw.toFormat(finalFormat, { - quality: 80 - }); - //////////////////////////////////////// - let imageThumbnailFullName = `${imageName}_thumbnail.${finalFormat}`; - let imageThumbnailPath = imageRootPath + imageThumbnailFullName; - const urlThumbnailPath = urlRootPath + imageThumbnailFullName; - const urlThumbnailRelativePath = relativePath + imageThumbnailFullName; - await sharpImageThumbnailRaw.toFile(imageThumbnailPath); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return { - urlPath, - urlThumbnailPath, - urlRelativePath, - urlThumbnailRelativePath - }; - // console.log("===================================="); - // console.log("Complete!!!"); - // console.log("===================================="); - } catch (/** @type {any} */ error) { - console.log("Write Image to Disk error =>", error.message); - serverError({ - component: "functions/backend/fsWriteImageToDiskFromBase64", - message: error.message - }); - return null; - } -}; /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6000.js b/dsql-app/.local_dist/server/chunks/6000.js deleted file mode 100644 index 1d00b00..0000000 --- a/dsql-app/.local_dist/server/chunks/6000.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -exports.id = 6000; -exports.ids = [6000]; -exports.modules = { - -/***/ 6000: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DocsAside) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DocsAsidePageObject[]} props.pages - */ function DocsAside({ pages }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ if (!pages || !pages[0]) return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const topLevelPages = pages?.filter((page)=>page.level == 1); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - //////////////////////////////////////// - /** @type {NodeListOf} */ let asideLinks = document.querySelectorAll("aside a"); - if (asideLinks && asideLinks[0]) { - asideLinks.forEach((link)=>{ - if (link.pathname === window.location.pathname) { - link.classList.add("active"); - } - }); - } - }, []); - //////////////////////////////////////// - /** - * ## Generate List Function - * @param {import("@/package-shared/types").DocsAsidePageObject[]} cPages - * @param {string} baseUrl - * @returns - */ function generateList(cPages, baseUrl) { - return cPages.map((page, index)=>{ - const url = `${baseUrl}/${page.slug}`; - const childrenPages = pages.filter((pg)=>pg.level == 2 && pg.parent_id == page.id); - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("li", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: url, - className: page?.level == 1 ? "font-semibold" : "text-slate-600", - children: page.title - }), - childrenPages && childrenPages[0] && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("ul", { - className: "pl-4 gap-2 flex flex-col items-start text-sm mt-2", - children: generateList(childrenPages, url) - }) - ] - }, index); - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("aside", { - className: "w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-2xl m-0 mb-4 text-left font-semibold", - children: "Docs" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("ul", { - className: "pl-4 gap-4 flex flex-col items-start", - children: generateList(topLevelPages, "/docs") - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/613.js b/dsql-app/.local_dist/server/chunks/613.js deleted file mode 100644 index 4d79741..0000000 --- a/dsql-app/.local_dist/server/chunks/613.js +++ /dev/null @@ -1,184 +0,0 @@ -"use strict"; -exports.id = 613; -exports.ids = [613]; -exports.modules = { - -/***/ 613: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -const datasquirel = __webpack_require__(9538); -const serverError = __webpack_require__(2163); -const DB_HANDLER = __webpack_require__(2224); -const addDbEntry = __webpack_require__(5338); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Add Admin User on Login - * ============================================================================== - * - * @description this function handles admin users that have been invited by another - * admin user. This fires when the invited user has been logged in or a new account - * has been created for the invited user - * - * @param {object} params - parameters object - * - * @param {object} params.query - query object - * @param {number} params.query.invite - Invitation user id - * @param {string} params.query.database_access - String containing authorized databases - * @param {string} params.query.priviledge - String containing databases priviledges - * @param {string} params.query.email - Inviting user email address - * - * @param {import("@/package-shared/types").UserType} params.user - invited user object - * - * @returns {Promise} new user auth object payload - */ module.exports = async function addAdminUserOnLogin({ query , user }) { - try { - /** - * Fetch user - * - * @description Fetch user from db - */ // @ts-ignore - const { invite , database_access , priviledge , email } = query; - const lastInviteTimeArray = await DB_HANDLER(`SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - // if (lastInviteTimeArray && lastInviteTimeArray[0]?.date_created_code) { - // const timeSinceLastInvite = Date.now() - parseInt(lastInviteTimeArray[0].date_created_code); - // if (timeSinceLastInvite > 21600000) { - // throw new Error("Invitation expired"); - // } - // } else if (!lastInviteTimeArray || !lastInviteTimeArray[0]) { - // throw new Error("No Invitation Found"); - // } - if (!lastInviteTimeArray || !lastInviteTimeArray[0]) { - throw new Error("No Invitation Found"); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - // @ts-ignore - const invitingUserDb = await DB_HANDLER(`SELECT first_name,last_name,email FROM users WHERE id=?`, [ - invite - ]); - if (invitingUserDb?.[0]) { - const existingUserUser = await DB_HANDLER(`SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?`, [ - invite, - user.id, - email - ]); - if (existingUserUser?.[0]) { - console.log("User already added"); - } else { - // const newUserUser = await DB_HANDLER( - // `INSERT IGNORE INTO user_users - // (user_id, invited_user_id, database_access, first_name, last_name, phone, email, username, user_type, user_priviledge) - // VALUES - // (?,?,?,?,?,?,?,?,?,?) - // )`, - // [ - // invite, - // user.id, - // database_access, - // user.first_name, - // user.last_name, - // user.phone, - // user.email, - // user.username, - // "admin", - // priviledge, - // ] - // ); - addDbEntry({ - dbFullName: "datasquirel", - tableName: "user_users", - data: { - user_id: invite, - invited_user_id: user.id, - database_access: database_access, - first_name: user.first_name, - last_name: user.last_name, - phone: user.phone, - email: user.email, - username: user.username, - user_type: "admin", - user_priviledge: priviledge, - image: user.image, - image_thumbnail: user.image_thumbnail - } - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - // @ts-ignore - const dbTableData = await DB_HANDLER(`SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - // @ts-ignore - const clearEntries = await DB_HANDLER(`DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?`, [ - invite, - user.id - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (dbTableData && dbTableData[0]) { - const dbTableEntries = dbTableData[0].db_tables_data.split("|"); - for(let i = 0; i < dbTableEntries.length; i++){ - const dbTableEntry = dbTableEntries[i]; - const dbTableEntryArray = dbTableEntry.split("-"); - const [db_slug, table_slug] = dbTableEntryArray; - const newEntry = await addDbEntry({ - dbFullName: "datasquirel", - tableName: "delegated_user_tables", - data: { - delegated_user_id: user.id, - root_user_id: invite, - database: db_slug, - table: table_slug, - priviledge: priviledge - } - }); - } - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } - // @ts-ignore - const inviteAccepted = await DB_HANDLER(`UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - serverError({ - component: "addAdminUserOnLogin", - message: error.message, - user: user - }); - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6147.js b/dsql-app/.local_dist/server/chunks/6147.js deleted file mode 100644 index fffcd28..0000000 --- a/dsql-app/.local_dist/server/chunks/6147.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -exports.id = 6147; -exports.ids = [6147]; -exports.modules = { - -/***/ 6147: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const DB_HANDLER = __webpack_require__(2224); -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** - * Imports: Handle imports - */ /** - * Delete DB Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {string} [params.dbContext] - What is the database context? "Master" - * or "Dsql User". Defaults to "Master" - * @param {("Read Only" | "Full Access")} [params.paradigm] - What is the paradigm for "Dsql User"? - * "Read only" or "Full Access"? Defaults to "Read Only" - * @param {string} params.dbFullName - Database full name - * @param {string} params.tableName - Table name - * @param {import("../../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @param {string} params.identifierColumnName - Update row identifier column name - * @param {string|number} params.identifierValue - Update row identifier column value - * - * @returns {Promise} - */ async function deleteDbEntry({ dbContext , paradigm , dbFullName , tableName , identifierColumnName , identifierValue , }) { - try { - /** - * Check if data is valid - */ const isMaster = dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false : true; - /** @type { (a1:any, a2?:any) => any } */ const dbHandler = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Execution - * - * @description - */ const query = `DELETE FROM ${tableName} WHERE \`${identifierColumnName}\`=?`; - const deletedEntry = isMaster ? await dbHandler(query, [ - identifierValue - ]) : await dbHandler({ - paradigm, - queryString: query, - database: dbFullName, - queryValues: [ - identifierValue - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return deletedEntry; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return null; - } -} -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = deleteDbEntry; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/615.js b/dsql-app/.local_dist/server/chunks/615.js new file mode 100644 index 0000000..b81d34b --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/615.js @@ -0,0 +1 @@ +"use strict";exports.id=615,exports.ids=[615],exports.modules={93615:(e,s,l)=>{let{IncomingMessage:t}=l(81630),a=l(83007);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let s=a(e.cookies.datasquirelSuAdminUserAuthKey);if(!s)return console.log("No user payload found"),null;let l=JSON.parse(s);return l.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):l.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):l}},64987:(e,s,l)=>{l.d(s,{A:()=>y});var t=l(8732),a=l(82015),r=l.n(a),n=l(27912),i=l.n(n),o=l(93353),c=l(20427),d=l(25294),x=l(34479),u=l(2459),h=l(67105),m=l(26628),p=l(80006),j=l(62011);function g(e){let[s,l]=r().useState(!0);return(0,t.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:s?"250px":"300px",zIndex:800},children:[(0,t.jsx)(o.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:l}),(0,t.jsx)("hr",{className:"opacity-0 mt-4"}),(0,t.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,t.jsxs)("a",{href:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,t.jsx)(c.A,{size:20}),(0,t.jsx)("span",{children:"Dashboard"})]}),(0,t.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,t.jsx)(d.A,{size:20}),(0,t.jsx)("span",{children:"Users"})]}),(0,t.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,t.jsx)(x.A,{size:20}),(0,t.jsx)("span",{children:"Error Logs"})]}),(0,t.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,t.jsx)(u.A,{size:20}),(0,t.jsx)("span",{children:"Servers"})]}),(0,t.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,t.jsx)(h.A,{size:20}),(0,t.jsx)("span",{children:"Load Balancing"})]}),!1,(0,t.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,t.jsx)(m.A,{size:20}),(0,t.jsx)("span",{children:"Backups"})]}),(0,t.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,t.jsx)(p.A,{size:20}),(0,t.jsx)("span",{children:"Console"})]}),(0,t.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,t.jsx)(j.A,{size:20}),(0,t.jsx)("span",{children:"Env"})]})]})]})}var f=l(34254),b=l(58526);function w({user:e,extraHeaderContent:s}){let[l,a]=r().useState(e||null);return(0,t.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,t.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,t.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,t.jsx)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:(0,t.jsx)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,t.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,t.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,t.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,t.jsx)("span",{children:(0,t.jsx)("b",{children:"Super User"})}),(0,t.jsx)(b.A,{size:20}),(0,t.jsx)("div",{className:"dropdown",children:(0,t.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)(f.A,{})}),(0,t.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}function y({children:e,head:s,user:l}){return(0,t.jsxs)(r().Fragment,{children:[(0,t.jsxs)(i(),{children:[(0,t.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),s]}),(0,t.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,t.jsx)(g,{}),(0,t.jsxs)("main",{className:"relative",children:[(0,t.jsx)(w,{user:l}),(0,t.jsx)("div",{className:"flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900",children:e}),(0,t.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,t.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,t.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,t.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/docs",children:"Docs"}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}l(54896)},83007:(e,s,l)=>{let{scryptSync:t,createDecipheriv:a}=l(55511),{Buffer:r}=l(79428);e.exports=e=>{let s=a("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),r.alloc(16,0));try{let l=s.update(e,"hex","utf8");return l+=s.final("utf8")}catch(e){return null}}},49407:(e,s,l)=>{l.r(s),l.d(s,{default:()=>r});var t=l(8732);l(82015);var a=l(20883);function r(e){return(0,t.jsxs)(a.Html,{lang:"en",children:[(0,t.jsxs)(a.Head,{children:[(0,t.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,t.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,t.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,t.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,t.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,t.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,t.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,t.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,t.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,t.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,t.jsx)("meta",{property:"og:type",content:"website"}),(0,t.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,t.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,t.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,t.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,t.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,t.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,t.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,t.jsxs)("body",{children:[(0,t.jsx)(a.Main,{}),(0,t.jsx)(a.NextScript,{})]})]})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6154.js b/dsql-app/.local_dist/server/chunks/6154.js new file mode 100644 index 0000000..84a26c5 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/6154.js @@ -0,0 +1,2 @@ +"use strict";exports.id=6154,exports.ids=[6154],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},42178:(e,t,r)=>{var a=r(24994);t.A=void 0;var n=a(r(30887)),o=r(8732);t.A=(0,n.default)((0,o.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},2259:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(54893)),o=a(r(94634)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=a(r(2028)),d=r(57001),p=a(r(88456)),c=r(4871),s=r(8732);let y=["className","component","padding","size","stickyHeader"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let v=e=>{let{classes:t,stickyHeader:r}=e;return(0,i.default)({root:["root",r&&"stickyHeader"]},c.getTableUtilityClass,t)},O=(0,p.default)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,o.default)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.default)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),g="table",j=l.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiTable"}),{className:a,component:i=g,padding:p="normal",size:c="medium",stickyHeader:b=!1}=r,j=(0,n.default)(r,y),_=(0,o.default)({},r,{component:i,padding:p,size:c,stickyHeader:b}),P=v(_),M=l.useMemo(()=>({padding:p,size:c,stickyHeader:b}),[p,c,b]);return(0,s.jsx)(f.default.Provider,{value:M,children:(0,s.jsx)(O,(0,o.default)({as:i,role:i===g?null:"table",ref:t,className:(0,u.default)(P.root,a),ownerState:_},j))})});t.default=j},2028:(e,t,r)=>{function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=(function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=o?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(r(82015)).createContext();t.default=n},31640:(e,t,r)=>{function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=(function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=o?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(r(82015)).createContext();t.default=n},34043:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(2259)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(4871));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},4871:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableUtilityClass=function(e){return(0,o.default)("MuiTable",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTable",["root","stickyHeader"]);t.default=l},30719:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(94634)),o=a(r(54893)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=a(r(31640)),d=r(57001),p=a(r(88456)),c=r(74955),s=r(8732);let y=["className","component"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let v=e=>{let{classes:t}=e;return(0,i.default)({root:["root"]},c.getTableBodyUtilityClass,t)},O=(0,p.default)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),g={variant:"body"},j="tbody",_=l.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiTableBody"}),{className:a,component:l=j}=r,i=(0,o.default)(r,y),p=(0,n.default)({},r,{component:l}),c=v(p);return(0,s.jsx)(f.default.Provider,{value:g,children:(0,s.jsx)(O,(0,n.default)({className:(0,u.default)(c.root,a),as:l,ref:t,role:l===j?null:"rowgroup",ownerState:p},i))})});t.default=_},7299:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableBodyClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableBodyClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(30719)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(74955));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},74955:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableBodyUtilityClass=function(e){return(0,o.default)("MuiTableBody",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTableBody",["root"]);t.default=l},64835:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(54893)),o=a(r(94634)),l=j(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=r(84781),d=a(r(83922)),p=a(r(2028)),c=a(r(31640)),s=r(57001),y=a(r(88456)),b=j(r(21655)),v=r(8732);let O=["align","className","component","padding","scope","size","sortDirection","variant"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}function j(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=g(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}let _=e=>{let{classes:t,variant:r,align:a,padding:n,size:o,stickyHeader:l}=e,u={root:["root",r,l&&"stickyHeader","inherit"!==a&&`align${(0,d.default)(a)}`,"normal"!==n&&`padding${(0,d.default)(n)}`,`size${(0,d.default)(o)}`]};return(0,i.default)(u,b.getTableCellUtilityClass,t)},P=(0,y.default)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,d.default)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,d.default)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,d.default)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,o.default)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${"light"===e.palette.mode?(0,f.lighten)((0,f.alpha)(e.palette.divider,1),.88):(0,f.darken)((0,f.alpha)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${b.default.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),M=l.forwardRef(function(e,t){let r;let a=(0,s.useDefaultProps)({props:e,name:"MuiTableCell"}),{align:i="inherit",className:f,component:d,padding:y,scope:b,size:g,sortDirection:j,variant:M}=a,h=(0,n.default)(a,O),w=l.useContext(p.default),m=l.useContext(c.default),k=m&&"head"===m.variant,C=b;"td"===(r=d||(k?"th":"td"))?C=void 0:!C&&k&&(C="col");let x=M||m&&m.variant,W=(0,o.default)({},a,{align:i,component:r,padding:y||(w&&w.padding?w.padding:"normal"),size:g||(w&&w.size?w.size:"medium"),sortDirection:j,stickyHeader:"head"===x&&w&&w.stickyHeader,variant:x}),T=_(W),D=null;return j&&(D="asc"===j?"ascending":"descending"),(0,v.jsx)(P,(0,o.default)({as:r,ref:t,className:(0,u.default)(T.root,f),"aria-sort":D,scope:C,ownerState:W},h))});t.default=M},61919:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableCellClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableCellClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(64835)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(21655));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},21655:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableCellUtilityClass=function(e){return(0,o.default)("MuiTableCell",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.default=l},37859:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(94634)),o=a(r(54893)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=r(57001),d=a(r(88456)),p=r(48311),c=r(8732);let s=["className","component"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}let b=e=>{let{classes:t}=e;return(0,i.default)({root:["root"]},p.getTableContainerUtilityClass,t)},v=(0,d.default)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),O=l.forwardRef(function(e,t){let r=(0,f.useDefaultProps)({props:e,name:"MuiTableContainer"}),{className:a,component:l="div"}=r,i=(0,o.default)(r,s),d=(0,n.default)({},r,{component:l}),p=b(d);return(0,c.jsx)(v,(0,n.default)({ref:t,as:l,className:(0,u.default)(p.root,a),ownerState:d},i))});t.default=O},34350:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableContainerClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableContainerClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(37859)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(48311));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},48311:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableContainerUtilityClass=function(e){return(0,o.default)("MuiTableContainer",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTableContainer",["root"]);t.default=l},47867:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(94634)),o=a(r(54893)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=a(r(31640)),d=r(57001),p=a(r(88456)),c=r(19343),s=r(8732);let y=["className","component"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let v=e=>{let{classes:t}=e;return(0,i.default)({root:["root"]},c.getTableHeadUtilityClass,t)},O=(0,p.default)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),g={variant:"head"},j="thead",_=l.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiTableHead"}),{className:a,component:l=j}=r,i=(0,o.default)(r,y),p=(0,n.default)({},r,{component:l}),c=v(p);return(0,s.jsx)(f.default.Provider,{value:g,children:(0,s.jsx)(O,(0,n.default)({as:l,className:(0,u.default)(c.root,a),ref:t,role:l===j?null:"rowgroup",ownerState:p},i))})});t.default=_},71757:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableHeadClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableHeadClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(47867)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(19343));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},19343:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableHeadUtilityClass=function(e){return(0,o.default)("MuiTableHead",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTableHead",["root"]);t.default=l},54185:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(94634)),o=a(r(54893)),l=O(r(82015));a(r(29825));var u=a(r(74956)),i=a(r(14036)),f=r(84781),d=a(r(31640)),p=r(57001),c=a(r(88456)),s=O(r(93369)),y=r(8732);let b=["className","component","hover","selected"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function O(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}let g=e=>{let{classes:t,selected:r,hover:a,head:n,footer:o}=e;return(0,i.default)({root:["root",r&&"selected",a&&"hover",n&&"head",o&&"footer"]},s.getTableRowUtilityClass,t)},j=(0,c.default)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${s.default.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${s.default.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,f.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,f.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),_=l.forwardRef(function(e,t){let r=(0,p.useDefaultProps)({props:e,name:"MuiTableRow"}),{className:a,component:i="tr",hover:f=!1,selected:c=!1}=r,s=(0,o.default)(r,b),v=l.useContext(d.default),O=(0,n.default)({},r,{component:i,hover:f,selected:c,head:v&&"head"===v.variant,footer:v&&"footer"===v.variant}),_=g(O);return(0,y.jsx)(j,(0,n.default)({as:i,ref:t,className:(0,u.default)(_.root,a),role:"tr"===i?null:"row",ownerState:O},s))});t.default=_},79005:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={tableRowClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"tableRowClasses",{enumerable:!0,get:function(){return l.default}});var o=a(r(54185)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=n?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(a,o,l):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(93369));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},93369:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getTableRowUtilityClass=function(e){return(0,o.default)("MuiTableRow",e)};var n=a(r(81699)),o=a(r(61119));let l=(0,n.default)("MuiTableRow",["root","selected","hover","head","footer"]);t.default=l},96089:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6217.js b/dsql-app/.local_dist/server/chunks/6217.js deleted file mode 100644 index 2245d08..0000000 --- a/dsql-app/.local_dist/server/chunks/6217.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -exports.id = 6217; -exports.ids = [6217]; -exports.modules = { - -/***/ 6217: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ GeneralLayout) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "next/head" -var head_ = __webpack_require__(968); -var head_default = /*#__PURE__*/__webpack_require__.n(head_); -// EXTERNAL MODULE: ./functions/frontend/updateNavLinks.js -var updateNavLinks = __webpack_require__(9678); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Header.jsx -var Header = __webpack_require__(7108); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/Footer.jsx -var Footer = __webpack_require__(5281); -;// CONCATENATED MODULE: ./layouts/components/GeneralLayout/ProductionHeadComponent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {*} props.head - * @param {*} props.productionEnvironment - */ function ProductionHeadComponent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/ScrollToTopButton.jsx -var ScrollToTopButton = __webpack_require__(9360); -;// CONCATENATED MODULE: ./layouts/GeneralLayout.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React Component Props - * @param {React.ReactNode} props.children - children component - * @param {React.ReactNode} props.head - head Items - * @param {import("@/package-shared/types").UserType | null} [props.user] - user object - * @param {*} [props.productionEnvironment] - * @param {boolean} [props.darkBgHeader] - * @param {boolean} [props.transparentHeader] - */ function GeneralLayout({ children , head , user , productionEnvironment , darkBgHeader , transparentHeader , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ external_react_default().useEffect(()=>{ - (0,updateNavLinks/* default */.Z)({}); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((head_default()), { - children: head - }), - /*#__PURE__*/ jsx_runtime_.jsx(ProductionHeadComponent, { - head: head, - productionEnvironment: productionEnvironment - }), - /*#__PURE__*/ jsx_runtime_.jsx(Header/* default */.Z, { - user: user, - darkBg: darkBgHeader, - transparent: transparentHeader - }), - children, - /*#__PURE__*/ jsx_runtime_.jsx(Footer/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ScrollToTopButton/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6390.js b/dsql-app/.local_dist/server/chunks/6390.js deleted file mode 100644 index fefc7d2..0000000 --- a/dsql-app/.local_dist/server/chunks/6390.js +++ /dev/null @@ -1,2325 +0,0 @@ -"use strict"; -exports.id = 6390; -exports.ids = [6390]; -exports.modules = { - -/***/ 9201: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ChooseMediaTypePopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _mui_icons_material_CollectionsTwoTone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7306); -/* harmony import */ var _mui_icons_material_CollectionsTwoTone__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CollectionsTwoTone__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _mui_icons_material_AssignmentTwoTone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9765); -/* harmony import */ var _mui_icons_material_AssignmentTwoTone__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_AssignmentTwoTone__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _mui_icons_material_VideoCameraBackTwoTone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(871); -/* harmony import */ var _mui_icons_material_VideoCameraBackTwoTone__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_VideoCameraBackTwoTone__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - */ function ChooseMediaTypePopup({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "choose-media-type-popoup", - noContainer: true, - wrapperClasses: "items-center", - wrapperStyle: { - alignItems: "center" - }, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0 text-center text-lg leading-tight", - children: [ - "What kind of Media do you", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("br", {}), - "want to upload?" - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Please Select the media type to upload." - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card cursor-pointer", - onClick: (e)=>{ - if (user?.verification_status?.toString().match(/1/)) { - const inputEl = document.getElementById("upload_image_input"); - inputEl?.click(); - } else { - alert("Please Verify to Add Media"); - } - setTimeout(()=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, 500); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.Images, { - size: 50, - className: "text-primary" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "content", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "title", - children: "Images" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-sm", - children: "General image formats like JPEG, PNG, SVG, WEBP, etc." - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card cursor-pointer", - onClick: (e)=>{ - if (user?.verification_status?.toString().match(/1/)) { - document.getElementById("upload_file_input")?.click(); - } else { - alert("Please Verify to Add Media"); - } - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.Files, { - size: 50, - className: "text-secondary" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "content", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "title", - children: "Files" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-sm", - children: "Other documents type. Like PDF, XLSX, CSV, etc." - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card cursor-pointer", - onClick: (e)=>{ - if (user?.verification_status?.toString().match(/1/)) { - document.getElementById("upload_video_input")?.click(); - } else { - alert("Please Verify to Add Media"); - } - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.FileVideo2, { - size: 55, - className: "text-slate-600" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "content", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "title", - children: "Videos" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-sm", - children: [ - "Video Files. ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: "MP4" - }), - " for now. These files can be streamed. Max 200mb" - ] - }) - ] - }) - ] - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 7604: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ MediaList) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: external "@mui/icons-material/FolderCopyTwoTone" -var FolderCopyTwoTone_ = __webpack_require__(8398); -var FolderCopyTwoTone_default = /*#__PURE__*/__webpack_require__.n(FolderCopyTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DeleteOutlineOutlined" -var DeleteOutlineOutlined_ = __webpack_require__(8757); -var DeleteOutlineOutlined_default = /*#__PURE__*/__webpack_require__.n(DeleteOutlineOutlined_); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/media/MediaFolderCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.folderName - * @param {string} [props.folder] - * @param {import("@/package-shared/types").UserType} props.user - */ function MediaFolderCard({ folderName , folder , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const fullFolderName = `${folder ? folder + "/" : ""}${folderName}`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/media/${fullFolderName}`, - className: "card col items-center justify-center", - onClick: (e)=>{ - // @ts-ignore - if (e.target.closest("button")) return e.preventDefault(); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx((FolderCopyTwoTone_default()), { - sx: { - fontSize: 100 - }, - className: "opacity-20" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full", - children: "Folder" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: folderName - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "plain-text absolute top-2 right-2", - onClick: (e)=>{ - if (window.confirm("Delete this Folder and all its contents?")) { - setLoading(true); - if (window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")) { - (0,fetchApi/* default */.Z)("/api/deleteMediaFolder", { - method: "post", - body: { - folder: fullFolderName - } - }, true).then((res)=>{ - if (res.success) window.location.reload(); - }); - } else { - setLoading(false); - } - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((DeleteOutlineOutlined_default()), { - // fontSize="small" - className: "opacity-30" - }) - }) - ] - }, folderName); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: ./functions/frontend/downloadFile.js -var downloadFile = __webpack_require__(8826); -// EXTERNAL MODULE: external "@mui/icons-material/AssignmentTwoTone" -var AssignmentTwoTone_ = __webpack_require__(9765); -var AssignmentTwoTone_default = /*#__PURE__*/__webpack_require__.n(AssignmentTwoTone_); -;// CONCATENATED MODULE: ./components/admin/media/card/MediaPreviewSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - Media Object - * @param {string} props.staticHost - */ function MediaPreviewSection({ mediaObject , staticHost }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const mediaThumbnailUrl = mediaObject.media_thumbnail_path ? mediaObject?.private ? mediaObject.media_thumbnail_url : `${staticHost}${mediaObject.media_thumbnail_path}` : mediaObject.media_thumbnail_url; - const mediaUrl = mediaObject.media_path ? mediaObject?.private ? mediaObject.media_url : `${staticHost}${mediaObject.media_path}` : mediaObject.media_url; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: mediaObject.media_type?.match(/file/i) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "cursor-pointer hover:opacity-80", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((AssignmentTwoTone_default()), { - sx: { - fontSize: 100 - }, - className: "opacity-10" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "info w-auto small gray absolute top-4 right-4", - children: mediaObject.media_type.replace(/.*\//, "").toUpperCase() - }) - ] - }) : mediaObject.media_type?.match(/video/i) ? /*#__PURE__*/ jsx_runtime_.jsx("video", { - src: mediaUrl, - className: "w-full h-60 object-cover", - controls: true, - muted: true, - autoPlay: true, - loop: true - }) : /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: mediaThumbnailUrl, - alt: mediaObject.media_name, - className: "w-full h-60 object-cover bg-slate-200 rounded", - onError: (e)=>{ - if (mediaObject?.private) { - return; - } - (0,fetchApi/* default */.Z)("/api/purgeDb", { - method: "post", - body: { - paradigm: "user_media", - payload: mediaObject - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - console.log(res); - console.log(mediaThumbnailUrl); - console.log(mediaUrl); - } - }); - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/media/card/MediaMoreButton.jsx -var MediaMoreButton = __webpack_require__(4642); -;// CONCATENATED MODULE: ./components/admin/media/card/MediaLinksDropdown.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - Media Object - * @param {string} props.staticHost - */ function MediaLinksDropdown({ mediaObject , staticHost }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const mediaThumbnailUrl = mediaObject.media_thumbnail_path ? `${staticHost}/${mediaObject.media_thumbnail_path}` : mediaObject.media_thumbnail_url; - const mediaUrl = mediaObject.media_path ? `${staticHost}/${mediaObject.media_path}` : mediaObject.media_url; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ if (mediaObject?.private) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper w-full xl:w-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined secondary small-text w-full hidden xl:flex bg-secondary/10", - children: "Copy Link" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mobile-transform gap-2 w-full", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - column: true, - className: "w-full mb-2 xl:mb-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "gray outlined normal-weight more-padding", - onClick: (e)=>{ - navigator.clipboard.writeText(mediaObject.media_url || "").then(()=>{ - alert(`Media url ${mediaObject.media_url} Copied to clipboard`); - }); - }, - children: "Copy Full Link" - }), - !mediaObject?.media_type?.match(/file|video/i) && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "gray outlined normal-weight more-padding", - onClick: (e)=>{ - navigator.clipboard.writeText(mediaObject.media_thumbnail_url || "").then(()=>{ - alert(`Media url ${mediaObject.media_thumbnail_url} Copied to clipboard`); - }); - }, - children: "Copy Thumbnail Link" - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/LockOpenOutlined" -var LockOpenOutlined_ = __webpack_require__(8083); -// EXTERNAL MODULE: external "@mui/icons-material/LockPersonRounded" -var LockPersonRounded_ = __webpack_require__(4624); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/admin/media/card/MediaPrivacyButton.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - Media Object - * @param {React.Dispatch>} props.setLoading - Set loading function - */ function MediaPrivacyButton({ mediaObject , setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [isPrivate, setIsPrivate] = external_react_default().useState(false); - if (mediaObject?.media_type?.match(/video/i)) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white" + (mediaObject?.private ? " " : " text-slate-400 fill-slate-400"), - style: { - backgroundColor: "white" - }, - onClick: (e)=>{ - const confirmText = mediaObject.private ? "This media is private: Make it public?" : "Make this media Private?"; - if (window.confirm(confirmText)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/media/addPrivateMedia", { - method: "post", - body: { - ...mediaObject - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert("Action Failed!"); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }).catch((err)=>{ - console.log(err); - }); - } - }, - children: mediaObject?.private ? /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Lock, { - size: 20, - color: "green" - }) : /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.LockOpen, { - color: "black", - size: 20 - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/downloadPrivateFile.js -var downloadPrivateFile = __webpack_require__(8436); -;// CONCATENATED MODULE: ./components/admin/media/card/MediaListCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - * @param {React.Dispatch>} props.setTargetMedia - * @param {string} props.staticHost - * @param {string} [props.folder] - */ function MediaListCard({ mediaObject , setTargetMedia , folder , staticHost , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(mediaObject?.private ? true : false); - const [updatedMediaObject, setUpdatedMediaObject] = external_react_default().useState(mediaObject); - external_react_default().useEffect(()=>{ - if (mediaObject?.private && mediaObject.media_thumbnail_url && !updatedMediaObject.media_type?.match(/file/i)) { - (0,downloadPrivateFile/* default */.Z)({ - url: mediaObject.media_thumbnail_url - }).then((res)=>{ - setUpdatedMediaObject({ - ...mediaObject, - media_thumbnail_url: res - }); - setLoading(false); - }).catch((err)=>{ - console.log(err.message); - }); - } else if (loading) { - setLoading(false); - } - }, []); - const mediaThumbnailUrl = updatedMediaObject.media_thumbnail_path ? `${staticHost}/${updatedMediaObject.media_thumbnail_path}` : updatedMediaObject.media_thumbnail_url; - const mediaUrl = updatedMediaObject.media_path ? `${staticHost}/${updatedMediaObject.media_path}` : updatedMediaObject.media_url; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "media-card card col", - onClick: (e)=>{ - // @ts-ignore - if (e.target.closest("button") || e.target.closest(".button")) return; - if (updatedMediaObject.media_type?.match(/file/i) && !updatedMediaObject.private) { - const url = mediaUrl; - window.open(url, "__blank"); - return; - } else if (updatedMediaObject.media_type?.match(/file/i) && updatedMediaObject.private) { - return; - } - setTargetMedia(updatedMediaObject); - (0,GeneralPopup/* openPopup */.Mw)("target-media-popup"); - }, - onMouseEnter: (e)=>{ - // @ts-ignore - e.target.closest(".media-card").style.zIndex = "10"; - }, - onMouseLeave: (e)=>{ - // @ts-ignore - e.target.closest(".media-card").style.zIndex = "0"; - }, - style: updatedMediaObject?.private ? { - outline: "5px solid var(--sec-color-light)", - borderColor: "var(--sec-color-lighter)" - } : {}, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx(MediaPreviewSection, { - mediaObject: updatedMediaObject, - staticHost: staticHost - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-center xl:items-start flex-wrap w-full mt-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "w-full", - style: { - wordBreak: "break-all" - }, - children: updatedMediaObject.media_name - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-wrap w-full", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - className: "flex-wrap w-full items-stretch", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0", - onClick: (e)=>{ - (0,downloadFile/* default */.Z)({ - mediaObject: updatedMediaObject, - fileName: mediaUrl?.match(/[^\/]+$/)?.[0] || "", - setLoading: setLoading - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Download" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(MediaLinksDropdown, { - mediaObject: updatedMediaObject, - staticHost: staticHost - }), - /*#__PURE__*/ jsx_runtime_.jsx(MediaMoreButton/* default */.Z, { - mediaObject: updatedMediaObject, - setLoading: setLoading - }) - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(MediaPrivacyButton, { - mediaObject: updatedMediaObject, - setLoading: setLoading - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/PermMediaTwoTone" -var PermMediaTwoTone_ = __webpack_require__(5580); -var PermMediaTwoTone_default = /*#__PURE__*/__webpack_require__.n(PermMediaTwoTone_); -;// CONCATENATED MODULE: ./components/admin/media/MediaList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any[]} [props.media] - * @param {React.Dispatch>} props.setTargetMedia - * @param {string} props.staticHost - * @param {string[]} [props.folders] - * @param {string} [props.folder] - * @param {import("@/package-shared/types").UserType} props.user - */ function MediaList({ media , setTargetMedia , folders , folder , staticHost , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper overflow-visible", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Media List" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch", - children: [ - folders && folders[0] && folders.map((folderName)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(MediaFolderCard, { - folder: folder, - folderName: folderName, - user: user - }, folderName); - }), - media && media[0] && media.map((mediaObject)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(MediaListCard, { - mediaObject: mediaObject, - setTargetMedia: setTargetMedia, - folder: folder, - staticHost: staticHost - }, mediaObject.id); - }) - ] - }), - !media?.[0] && /*#__PURE__*/ jsx_runtime_.jsx(NewMediaBanner, {}) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ function NewMediaBanner() { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray dashed w-full p-10 flex-col", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("choose-media-type-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "No Media Added." - }), - /*#__PURE__*/ jsx_runtime_.jsx((PermMediaTwoTone_default()), { - color: "inherit", - sx: { - fontSize: 80 - }, - className: "opacity-40 text-gray-500" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Add Media" - }) - ] - }); -} - - -/***/ }), - -/***/ 1597: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ NewFolderPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6729); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} [props.folder] - */ function NewFolderPopup({ folder }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const [existingFolder, setExistingFolder] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "add-folder-popoup", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0", - children: "Add A New Folder" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col w-full relative", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - window.clearTimeout(timeout); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)("/api/addNewMediaFolder", { - method: "post", - body: { - name: (folder ? `${folder}/` : "") + formEl["new-folder-name"].value - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - setLoading(false); - } - }); - }, - className: "w-full flex flex-col items-stretch gap-2", - children: [ - existingFolder && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1", - children: "Folder Already Exists. Please Change the name." - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "new-folder-name", - id: "new-folder-name", - placeholder: "New Folder Name", - className: "w-full" + (existingFolder ? " warning" : ""), - onChange: (e)=>{ - e.target.value = e.target.value.toLocaleLowerCase().replace(/ /g, "-"); - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(`/api/checkExistingFolder?name=${e.target.value}${folder ? "&folder=" + folder : ""}`).then((res)=>{ - if (e.target.value?.match(/./) && res?.success) { - setExistingFolder(true); - alert("Folder Already Exists"); - } else { - setExistingFolder(false); - } - }); - }, 500); - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - children: "Add New Folder" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4891: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ NewMediaPopup) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./functions/frontend/updateDiskUsage.js -var updateDiskUsage = __webpack_require__(1069); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/LockOpenOutlined" -var LockOpenOutlined_ = __webpack_require__(8083); -var LockOpenOutlined_default = /*#__PURE__*/__webpack_require__.n(LockOpenOutlined_); -// EXTERNAL MODULE: external "@mui/icons-material/LockPersonRounded" -var LockPersonRounded_ = __webpack_require__(4624); -var LockPersonRounded_default = /*#__PURE__*/__webpack_require__.n(LockPersonRounded_); -;// CONCATENATED MODULE: ./components/admin/media/TogglePrivacyButton.jsx -// @ts-check -/** - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").ImageObjectType | import("@/package-shared/types").FileObjectType} props.mediaObject - Single Image or file object - */ function TogglePrivacyButton({ mediaObject }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [privacy, setPrivacy] = external_react_.useState(false); - external_react_.useEffect(()=>{ - mediaObject.private = privacy; - }, [ - privacy - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white" + (privacy ? " " : " text-slate-400 fill-slate-400"), - style: { - backgroundColor: "white" - }, - onClick: (e)=>{ - setPrivacy((prev)=>!prev); - }, - children: privacy ? /*#__PURE__*/ jsx_runtime_.jsx((LockPersonRounded_default()), { - fontSize: "small", - color: "secondary" - }) : /*#__PURE__*/ jsx_runtime_.jsx((LockOpenOutlined_default()), { - fontSize: "small", - className: "fill-inherit text-inherit" - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/media/NewMediaCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {import("@/package-shared/types").ImageObjectType & import("@/package-shared/types").FileObjectType} MediaType - */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {MediaType} props.imageObject - Single Image object - * @param {MediaType[]} props.newMedia - Origin Array of media objects - * @param {React.Dispatch>} props.setNewMedia - Set media Dispatch => React setState - * @param {boolean} [props.video] - Is this a video object - */ function NewMediaCard({ imageObject , newMedia , setNewMedia , video , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const finalFileObject = imageObject; - const finalFileSrc = finalFileObject.imageBase64Full || finalFileObject.fileBase64Full; - let finalFileName = finalFileObject.imageName || finalFileObject.fileName; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2", - children: [ - video ? /*#__PURE__*/ jsx_runtime_.jsx("video", { - src: finalFileSrc, - className: "w-full h-full object-contain", - muted: true, - autoPlay: true, - controls: true - }) : /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: finalFileSrc, - alt: finalFileName, - className: "w-full h-full object-contain" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - defaultValue: finalFileName, - onInput: (e)=>{ - // @ts-ignore - const value = e.target.value?.replace(/ /g, "-"); - if (imageObject.fileName) { - imageObject.fileName = value; - } - if (imageObject.imageName) { - imageObject.imageName = value; - } - }, - className: "absolute bottom-1 text-sm left-2 px-2 py-1", - style: { - width: "calc(100% - 15px)" - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full", - style: { - backgroundColor: "white", - borderColor: "var(--slate-200)" - }, - onClick: (e)=>{ - let spliceIndex = newMedia.findIndex((media)=>media.imageBase64 === imageObject.imageBase64 || media.fileBase64 === imageObject.fileBase64); - let newMediaArray = newMedia; - newMediaArray.splice(spliceIndex, 1); - setNewMedia([ - ...newMediaArray - ]); - }, - children: "✖" - }), - !video && /*#__PURE__*/ jsx_runtime_.jsx(TogglePrivacyButton, { - mediaObject: imageObject - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/AssignmentTwoTone" -var AssignmentTwoTone_ = __webpack_require__(9765); -var AssignmentTwoTone_default = /*#__PURE__*/__webpack_require__.n(AssignmentTwoTone_); -;// CONCATENATED MODULE: ./components/admin/media/NewFileCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").FileObjectType} props.fileObject - Single Image object - * @param {import("@/package-shared/types").FileObjectType[]} props.newFile - Origin Array of media objects - * @param {React.Dispatch>} props.setNewFile - Set media Dispatch => React setState - */ function NewFileCard({ fileObject , newFile , setNewFile }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((AssignmentTwoTone_default()), { - sx: { - fontSize: 100 - }, - className: "opacity-20" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - defaultValue: fileObject.fileName, - onInput: (e)=>{ - // @ts-ignore - fileObject.fileName = e.target.value?.replace(/ /g, "-"); - }, - className: "absolute bottom-1 text-sm left-2 px-2 py-1", - style: { - width: "calc(100% - 15px)" - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full", - style: { - backgroundColor: "white", - borderColor: "var(--slate-200)" - }, - onClick: (e)=>{ - let spliceIndex = newFile.findIndex((file)=>file.fileBase64 === fileObject.fileBase64); - let newFileArray = newFile; - newFileArray.splice(spliceIndex, 1); - setNewFile([ - ...newFileArray - ]); - }, - children: "✖" - }), - /*#__PURE__*/ jsx_runtime_.jsx(TogglePrivacyButton, { - mediaObject: fileObject - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/media/NewMediaPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").ImageObjectType[] | null} props.newMedia - * @param {React.Dispatch>} props.setNewMedia - * @param {import("@/package-shared/types").FileObjectType[] | null} [props.newFile] - * @param {React.Dispatch>} props.setNewFile - * @param {import("@/package-shared/types").FileObjectType[] | null} [props.newVideo] - * @param {React.Dispatch>} props.setNewVideo - * @param {string} [props.folder] - */ function NewMediaPopup({ newMedia , setNewMedia , newFile , setNewFile , newVideo , setNewVideo , folder , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const type = newMedia?.[0] ? "images" : newFile?.[0] ? "files" : "videos"; - const array = type?.match(/image/i) ? newMedia : type?.match(/file/i) ? newFile : newVideo; - const dispatch = type?.match(/image/i) ? setNewMedia : type?.match(/file/i) ? setNewFile : setNewVideo; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - external_react_default().useEffect(()=>{ - if (array && array[0]) (0,GeneralPopup/* openPopup */.Mw)("new-media-popup"); - // if (type?.match(/image/i)) { - // } else { - // openPopup("new-media-popup"); - // } - }, [ - newMedia, - newFile, - newVideo - ]); - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(GeneralPopup/* default */.ZP, { - title: "new-media-popup", - closePopupDispatch: ()=>{ - setNewMedia(null); - setNewFile(null); - setNewVideo(null); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - screen: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("h4", { - className: "m-0", - children: "Upload New Media" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "grid grid-cols-2 gap-4 w-full", - children: array && array[0] && array.map((media, index)=>{ - if (type?.match(/image/i)) { - return /*#__PURE__*/ jsx_runtime_.jsx(NewMediaCard, { - // @ts-ignore - imageObject: media, - // @ts-ignore - newMedia: array, - // @ts-ignore - setNewMedia: dispatch - }, index + 1); - } - if (type?.match(/video/i)) { - return /*#__PURE__*/ jsx_runtime_.jsx(NewMediaCard, { - // @ts-ignore - imageObject: media, - // @ts-ignore - newMedia: array, - // @ts-ignore - setNewMedia: dispatch, - video: true - }, index + 1); - } - return /*#__PURE__*/ jsx_runtime_.jsx(NewFileCard, { - // @ts-ignore - fileObject: media, - // @ts-ignore - newFile: array, - // @ts-ignore - setNewFile: dispatch - }, index + 1); - }) - }), - array && array[0] && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "py-3 w-full relative z-50" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - setLoading(true); - const fetchObject = type?.match(/image/i) ? { - type: type, - folder: folder, - media: array.map((media)=>{ - return { - // @ts-ignore - imageBase64: media.imageBase64, - // @ts-ignore - imageName: media.imageName, - // @ts-ignore - imageSize: media.imageSize, - // @ts-ignore - private: media.private - }; - }) - } : { - type: type, - folder: folder, - media: array.map((media)=>{ - return { - // @ts-ignore - fileBase64: media.fileBase64, - // @ts-ignore - fileName: media.fileName, - // @ts-ignore - fileSize: media.fileSize, - // @ts-ignore - fileType: media.fileType, - // @ts-ignore - private: media.private, - video: Boolean(type?.match(/video/i)) - }; - }) - }; - (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (res.success) { - (0,updateDiskUsage/* default */.Z)().then(()=>{ - window.location.reload(); - }); - } else { - alert("Image Upload Failed"); - console.log(res); - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - }, - children: "Upload Media" - }) - ] - }); -} - - -/***/ }), - -/***/ 3428: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ TargetMediaPreviewPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6729); -/* harmony import */ var _functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(1069); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5449); -/* harmony import */ var _functions_frontend_downloadFile__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(8826); -/* harmony import */ var _functions_frontend_downloadPrivateFile__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8436); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _card_MediaMoreButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4642); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def | null} props.targetMedia - * @param {string} props.staticHost - * @param {React.Dispatch>} props.setTargetMedia - * @param {import("@/package-shared/types").MYSQL_user_media_table_def[]} props.media - */ function TargetMediaPreviewPopup({ targetMedia , staticHost , setTargetMedia , media , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const mediaOriginThumbnailUrl = targetMedia?.media_thumbnail_path ? `${staticHost}/${targetMedia?.media_thumbnail_path}` : targetMedia?.media_thumbnail_url; - const mediaOriginUrl = targetMedia?.media_path ? `${staticHost}/${targetMedia?.media_path}` : targetMedia?.media_url; - const isVideo = Boolean(targetMedia?.media_type?.match(/video/i)); - const targetMediaIndex = targetMedia ? media.findIndex((snMedia)=>snMedia.id == targetMedia.id) : null; - const isMediaIndex = typeof targetMediaIndex == "number" && targetMediaIndex >= 0; - const nextMedia = (()=>{ - if (!isMediaIndex) return null; - const targetNextMedia = media[targetMediaIndex + 1]; - if (!targetNextMedia) return null; - if (!targetNextMedia?.media_type?.match(/image/i)) { - const nextMedia = media.slice(targetMediaIndex + 1).find((med)=>{ - if (med.media_type?.match(/image/i)) return true; - return false; - }); - if (nextMedia) return nextMedia; - return null; - } - return targetNextMedia; - })(); - const prevMedia = (()=>{ - if (!isMediaIndex) return null; - const targetPrevMedia = media[targetMediaIndex - 1]; - if (!targetPrevMedia) return null; - if (!targetPrevMedia?.media_type?.match(/image/i)) { - const prevMedia = media.slice(0, targetMediaIndex - 1).findLast((med)=>{ - if (med.media_type?.match(/image/i)) return true; - return false; - }); - if (prevMedia) return prevMedia; - return null; - } - return targetPrevMedia; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetMedia?.private ? true : false); - const [ready, setReady] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const [mediaUrl, setMediaUrl] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(mediaOriginUrl); - /** - * @type {React.RefObject} - */ // @ts-ignore - const imageRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (targetMedia?.private) { - (0,_functions_frontend_downloadPrivateFile__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({ - url: targetMedia.media_url || "" - }).then((res)=>{ - if (res) { - setMediaUrl(res); - setLoading(false); - } - }).catch((err)=>{ - console.log(err.message); - }); - } else { - setMediaUrl(targetMedia?.media_url || ""); - } - }, [ - targetMedia - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "target-media-popup", - noContainer: true, - fullPage: true, - closePopupDispatch: ()=>{ - setReady(false); - setTargetMedia(null); - }, - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - !ready && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - targetMedia && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "self-center h-screen py-4", - children: [ - mediaUrl ? isVideo ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("video", { - src: mediaUrl, - className: "w-full h-full object-cover", - controls: true, - muted: true, - autoPlay: true, - loop: true, - onCanPlay: ()=>{ - setReady(true); - }, - style: ready ? undefined : { - display: "none" - } - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: mediaUrl, - alt: targetMedia.media_name, - className: "bg-slate-200 rounded w-full h-full object-contain", - ref: imageRef, - onLoad: (e)=>{ - setReady(true); - }, - style: ready ? undefined : { - display: "none" - } - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}), - prevMedia && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full", - onClick: (e)=>{ - setTargetMedia(null); - setTargetMedia(prevMedia); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_5__.ChevronLeft, { - color: "white" - }) - }), - nextMedia && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full", - onClick: (e)=>{ - setTargetMedia(null); - setTargetMedia(nextMedia); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_5__.ChevronRight, { - color: "white" - }) - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "info gray absolute top-5 left-5 w-auto mr-5", - style: { - backgroundColor: "white" - }, - children: targetMedia.media_path?.replace(/.*\//, "") - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "absolute bottom-6 left-6 p-2 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - column: true, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_card_MediaMoreButton__WEBPACK_IMPORTED_MODULE_6__/* .RenameMediaButton */ ._, { - mediaObject: targetMedia, - setLoading: setLoading - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined secondary more-padding", - onClick: (e)=>{ - (0,_functions_frontend_downloadFile__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)({ - mediaObject: targetMedia, - fileName: targetMedia.media_url?.match(/[^\/]+$/)?.[0] || "", - setLoading: setLoading - }); - }, - children: "Download" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - if (window.confirm(`Delete this media?`)) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)("/api/deleteUserMedia", { - method: "post", - body: targetMedia - }, true).then((res)=>{ - if (res.success) { - (0,_functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)().then(()=>{ - window.location.reload(); - }); - } else { - alert("Media deletion Failed! Please try again."); - } - }); - } - }, - className: "more-padding", - children: "Delete" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray w-full bg-white more-padding", - onClick: (e)=>{ - navigator.clipboard.writeText(targetMedia.media_url || "").then(()=>{ - alert(`Media url ${targetMedia.media_url} Copied to clipboard`); - }); - }, - children: "Copy Full Image Link" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray w-full more-padding", - onClick: (e)=>{ - navigator.clipboard.writeText(targetMedia.media_thumbnail_url || "").then(()=>{ - alert(`Media url ${targetMedia.media_thumbnail_url} Copied to clipboard`); - }); - }, - style: { - borderTop: "1px solid #0b8862" - }, - children: "Copy Image Thumbnail Link" - }) - ] - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4642: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ MediaMoreButton), -/* harmony export */ "_": () => (/* binding */ RenameMediaButton) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6729); -/* harmony import */ var _functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1069); -/* harmony import */ var _general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5449); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - Media Object - * @param {React.Dispatch>} props.setLoading - Set loading function - */ function MediaMoreButton({ mediaObject , setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper w-full xl:w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray small-text hidden xl:flex", - children: "More" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "dropdown mobile-transform gap-2 w-full", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - column: true, - className: "w-full mb-2 xl:mb-0", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(RenameMediaButton, { - mediaObject, - setLoading - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray normal-weight more-padding w-full xl:w-auto", - onClick: (e)=>{ - if (window.confirm(`Delete this media?`)) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/deleteUserMedia", { - method: "post", - body: mediaObject - }, true).then((res)=>{ - if (res.success) { - (0,_functions_frontend_updateDiskUsage__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)().then(()=>{ - window.location.reload(); - }); - } else { - alert("Media deletion Failed! Please try again."); - } - }); - } - }, - children: "Delete" - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # Rename Media - * @param {object} props - * @param {import("@/package-shared/types").MYSQL_user_media_table_def} props.mediaObject - Media Object - * @param {React.Dispatch>} props.setLoading - Set loading function - */ function RenameMediaButton({ mediaObject , setLoading }) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - const newName = window.prompt(`Rename media`, mediaObject.media_name); - if (newName && window.confirm(`Rename "${mediaObject.media_name}" to "${newName}"`)) { - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/renameMedia", { - method: "post", - body: { - mediaObject: mediaObject, - newName: newName.replace(/ /g, "-"), - newThumbnailName: newName.replace(/ /g, "-") + "_thumbnail" - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert(res.msg); - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - } - }, - className: "outlined gray normal-weight more-padding", - children: "Rename" - }); -} - - -/***/ }), - -/***/ 8916: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UploadFileComponent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8345); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {React.Dispatch>} props.setNewFile - Set files array => React.useState dispatch Function - * @param {React.Dispatch>} props.setLoading - Set Page loading => React.useState dispatch Function - */ function UploadFileComponent({ setNewFile , setLoading }) { - /** - * Get Contexts - * - * @description { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @description Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - name: "upload_file_input", - id: "upload_file_input", - className: "hidden", - accept: ".xlsx,.pdf,.csv,.json", - multiple: true, - onChange: async (e)=>{ - if (setLoading) setLoading(true); - let fileInputsArray = []; - let files = e.target.files; - if (files?.length) { - for(let i = 0; i < files.length; i++){ - const file = files[i]; - if (file.type?.match(/sheet/)) { - const blobURL = URL.createObjectURL(file); - console.log(blobURL); - } else { - const imageData = await (0,_functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({ - inputFile: file - }); - fileInputsArray.push(imageData); - } - } - setNewFile(fileInputsArray); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 200); - } else { - window.alert("No Files selected"); - } - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 3770: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UploadImageComponent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6718); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {React.Dispatch>} props.setNewMedia - Set new Media Array - * @param {React.Dispatch>} props.setLoading - Set Page loading => React.useState dispatch Function - */ function UploadImageComponent({ setNewMedia , setLoading }) { - /** - * Get Contexts - * - * @description { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @description Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - name: "upload_image_input", - id: "upload_image_input", - className: "hidden", - accept: "image/*", - multiple: true, - onChange: async (e)=>{ - if (setLoading) setLoading(true); - let imagesInputsArray = []; - let files = e.target.files; - if (files?.length) { - for(let i = 0; i < files.length; i++){ - const file = files[i]; - if (file.type?.match(/sheet/)) { - const blobURL = URL.createObjectURL(file); - console.log(blobURL); - } else { - const imageData = await (0,_functions_frontend_imageInputFileToBase64__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({ - imageInputFile: file, - maxWidth: 1800 - }); - imagesInputsArray.push(imageData); - } - } - setNewMedia(imagesInputsArray); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 200); - } else { - window.alert("No Files selected"); - } - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 7525: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UploadVideoComponent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8345); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {React.Dispatch>} props.setNewVideo - Set files array => React.useState dispatch Function - * @param {React.Dispatch>} props.setLoading - Set Page loading => React.useState dispatch Function - */ function UploadVideoComponent({ setNewVideo , setLoading }) { - /** - * Get Contexts - * - * @description { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @description Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "file", - name: "upload_video_input", - id: "upload_video_input", - className: "hidden", - accept: ".mp4", - multiple: true, - onChange: async (e)=>{ - if (setLoading) setLoading(true); - let fileInputsArray = []; - let files = e.target.files; - if (files?.length) { - for(let i = 0; i < files.length; i++){ - const file = files[i]; - if (file.type?.match(/sheet/)) { - const blobURL = URL.createObjectURL(file); - console.log(blobURL); - } else { - const imageData = await (0,_functions_frontend_inputFileToBase64__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)({ - inputFile: file - }); - fileInputsArray.push(imageData); - } - } - setNewVideo(fileInputsArray); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 200); - } else { - window.alert("No Videos selected"); - } - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8826: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ downloadFile) -/* harmony export */ }); -/* harmony import */ var _downloadPrivateFile__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8436); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {{ - * mediaObject: import("@/package-shared/types").MYSQL_user_media_table_def, - * fileName: string, - * setLoading: React.Dispatch>, - * }} params - params - * - * @requires search-field name attribute - */ async function downloadFile({ mediaObject , fileName , setLoading , }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ if (setLoading) setLoading(true); - /** @type {any} */ let file; - const isPrivate = Boolean(mediaObject?.private || mediaObject?.media_url?.match(/^\@/)); - if (isPrivate) { - file = await (0,_downloadPrivateFile__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)({ - url: mediaObject.media_url || "" - }); - } else { - file = await fetch("/api/fetch-media?url=" + mediaObject.media_url || 0); - } - const blob = isPrivate ? file : await file.blob(); - const downloadableUrl = isPrivate ? file : URL.createObjectURL(blob); - const link = document.createElement("a"); - link.href = downloadableUrl; - link.download = fileName; - link.style.display = "none"; - document.body.appendChild(link); - link.click(); - URL.revokeObjectURL(downloadableUrl); - document.body.removeChild(link); - setTimeout(()=>{ - if (setLoading) setLoading(false); - }, 500); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 8436: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ downloadPrivateFile) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Download private file function - * ============================================================================== - * @async - * - * @param {{ url: string }} params - params - * - * @returns {Promise} - */ async function downloadPrivateFile({ url }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ return new Promise((resolve, reject)=>{ - fetch("/api/media/getPrivateMedia", { - method: "POST", - body: JSON.stringify({ - path: url - }), - // @ts-ignore - headers: { - "x-csrf-auth": localStorage.getItem("csrf") - } - }).then((res)=>res.blob()).then((data)=>{ - const downloadableUrl = URL.createObjectURL(data); - resolve(downloadableUrl); - }); - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6478.js b/dsql-app/.local_dist/server/chunks/6478.js deleted file mode 100644 index 4160dab..0000000 --- a/dsql-app/.local_dist/server/chunks/6478.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -exports.id = 6478; -exports.ids = [6478]; -exports.modules = { - -/***/ 6478: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ LoadingScreen) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6843); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9174); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - */ function LoadingScreen() { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/logo-icon-alt-2.webp", - alt: "Datasquirel Logo", - width: 60 - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-10 h-10 flex flex-col items-center justify-center", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - width: "25px", - position: "relative" - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6715.js b/dsql-app/.local_dist/server/chunks/6715.js deleted file mode 100644 index c9fe3eb..0000000 --- a/dsql-app/.local_dist/server/chunks/6715.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -exports.id = 6715; -exports.ids = [6715]; -exports.modules = { - -/***/ 6715: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** - * Imports: Handle imports - */ /** - * Grab Paths Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {boolean} [params.isPrivate] - Is this file private or not? - * @param {any} params.user - User object - * @param {string} [params.folder] - Folder, if available - * @param {boolean} [params.video] - Video, if available - * @param {boolean} [params.pathOnly] - Just generate the directories' paths - * - * @returns {{ fileRootPath: string, urlRootPath: string, relativePath: string } | null} - */ module.exports = function grabPaths({ isPrivate , user , folder , video , pathOnly , }) { - /** - * Initialize variables - */ const isProduction = "production".match(/production/); - const userId = user?.id || user?.user_id; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return null; - } - const relativePath = isPrivate ? `@/${video ? "videos" : "media"}/${folder ? folder + "/" : ""}` : video ? `/videos/user-videos/user-${userId}/${folder ? folder + "/" : ""}` : `/images/user-images/user-${userId}/${folder ? folder + "/" : ""}`; - const fileRootPath = isPrivate ? `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/media/${folder ? folder + "/" : ""}` : path.join(STATIC_ROOT, relativePath); - if (!fs.existsSync(fileRootPath) && !pathOnly) { - fs.mkdirSync(fileRootPath, { - recursive: true - }); - } - const urlRootPath = isPrivate ? `@/media/${folder ? folder + "/" : ""}` : `${process.env.DSQL_STATIC_HOST}${relativePath}`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return { - fileRootPath: fileRootPath, - urlRootPath: urlRootPath, - relativePath - }; -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6718.js b/dsql-app/.local_dist/server/chunks/6718.js deleted file mode 100644 index a82c56e..0000000 --- a/dsql-app/.local_dist/server/chunks/6718.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -exports.id = 6718; -exports.ids = [6718]; -exports.modules = { - -/***/ 6718: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ imageInputFileToBase64) -/* harmony export */ }); -// @ts-check -/** - * Upload Image function - * ------------------------------------------------------------------------------ - * @param {object} params - * @param {File} params.imageInputFile image input file - * @param {number} [params.maxWidth] optional maximum width - * @requires Image {imagePreviewNode} - optional image dispatch node - * @return object containing image data in base 64 and image name - */ async function imageInputFileToBase64({ imageInputFile , maxWidth , }) { - /** - * Initialize - * ------------------------------------------------------------------------------ - */ /** ********************* Variables */ let imagePreviewNode = document.querySelector(`[data-imagepreview='image']`); - let imageName = imageInputFile.name.replace(/\..*/, ""); - let imageDataBase64; - let imageSize; - let canvas = document.createElement("canvas"); - const MIME_TYPE = imageInputFile.type; - const QUALITY = 0.95; - const MAX_WIDTH = maxWidth ? maxWidth : null; - const MAX_HEIGHT = null; - const file = imageInputFile; // get the file - const blobURL = URL.createObjectURL(file); - const img = new Image(); - /** ********************* Add source to new image */ img.src = blobURL; - imageDataBase64 = await new Promise((res, rej)=>{ - /** ********************* Handle Errors in loading image */ img.onerror = function() { - URL.revokeObjectURL(this.src); - console.log("Cannot load image"); - }; - /** ********************* Handle new image when loaded */ img.onload = function() { - // @ts-ignore - URL.revokeObjectURL(this.src); - if (MAX_WIDTH) { - const scaleSize = MAX_WIDTH / img.naturalWidth; - canvas.width = img.naturalWidth < MAX_WIDTH ? img.naturalWidth : MAX_WIDTH; - canvas.height = img.naturalWidth < MAX_WIDTH ? img.naturalHeight : img.naturalHeight * scaleSize; - } else { - canvas.width = img.naturalWidth; - canvas.height = img.naturalHeight; - } - const ctx = canvas.getContext("2d"); - ctx?.drawImage(img, 0, 0, canvas.width, canvas.height); - const srcEncoded = canvas.toDataURL(MIME_TYPE, QUALITY); - if (imagePreviewNode) { - document.querySelectorAll(`[data-imagepreview='image']`).forEach((/** @type {any} */ img)=>{ - img.src = srcEncoded; - }); - } - res(srcEncoded); - }; - }); - imageSize = await new Promise((res, rej)=>{ - canvas.toBlob((blob)=>{ - res(blob?.size); - }, MIME_TYPE, QUALITY); - }); - return { - imageBase64: imageDataBase64.replace(/.*?base64,/, ""), - imageBase64Full: imageDataBase64, - imageName: imageName, - imageSize: imageSize - }; -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6729.js b/dsql-app/.local_dist/server/chunks/6729.js deleted file mode 100644 index 7719fad..0000000 --- a/dsql-app/.local_dist/server/chunks/6729.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -exports.id = 6729; -exports.ids = [6729]; -exports.modules = { - -/***/ 6729: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ fetchApi) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Fetch Function - * ============================================================================== - * @async - * - * @param {string} url - Admin or Site page - * @param {{ - * method: "POST" | "GET" | "DELETE" | "PUT" | "PATCH" | "post" | "get" | "delete" | "put" | "patch", - * body: object | string, - * headers?: HeadersInit, - * } | string} [options] - options object or string: **optional - * @param {boolean} [csrf] - Add CSRF? - * - * @returns {Promise<*>} - */ async function fetchApi(url, options, csrf) { - /** ********************* Initialize data variable */ let data; - const finalUrl = url.match(/\?/) ? url : url + window.location.search; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (typeof options === "string") { - try { - let fetchData; - switch(options){ - case "post": - fetchData = await fetch(finalUrl, { - method: options, - // @ts-ignore - headers: { - "Content-Type": "application/json", - "x-csrf-auth": csrf ? localStorage.getItem("csrf") : "" - } - }); - data = fetchData.json(); - break; - default: - fetchData = await fetch(finalUrl); - data = fetchData.json(); - break; - } - } catch (error) { - data = null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else if (typeof options === "object") { - try { - let fetchData1; - /** ********************* Convert body to JSON if not JSON */ if (options.body && typeof options.body === "object") { - let oldOptionsBody = options.body; - options.body = JSON.stringify(oldOptionsBody); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (options.headers) { - //////////////////////////////////////// - // @ts-ignore - options.headers["x-csrf-auth"] = csrf ? localStorage.getItem("csrf") : ""; - /** @type {any} */ const finalOptions = { - ...options - }; - fetchData1 = await fetch(finalUrl, finalOptions); - //////////////////////////////////////// - } else { - fetchData1 = await fetch(finalUrl, { - ...options, - // @ts-ignore - headers: { - "Content-Type": "application/json", - "x-csrf-auth": csrf ? localStorage.getItem("csrf") : "" - } - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - data = fetchData1.json(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error1) { - data = null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else { - try { - let fetchData2 = await fetch(finalUrl); - data = fetchData2.json(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error2) { - data = null; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return data; -} -var FETCH = fetchApi; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6806.js b/dsql-app/.local_dist/server/chunks/6806.js new file mode 100644 index 0000000..2a3108e --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/6806.js @@ -0,0 +1 @@ +"use strict";exports.id=6806,exports.ids=[6806],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},83722:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10m-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98z"}),"AdsClickTwoTone")},42178:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},88754:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},77413:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M8 9h8v10H8z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"m15.5 4-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteTwoTone")},18129:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},30513:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2M4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12m8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4-3.6 8-8 8"}),"DoDisturbAltTwoTone")},29405:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M17 5h-2V3h2zm-2 10v6l2.29-2.29 2.3 2.29L21 19.59l-2.29-2.29L21 15zm4-6h2V7h-2zm0 4h2v-2h-2zm-8 8h2v-2h-2zM7 5h2V3H7zM3 17h2v-2H3zm2 4v-2H3c0 1.1.9 2 2 2M19 3v2h2c0-1.1-.9-2-2-2m-8 2h2V3h-2zM3 9h2V7H3zm4 12h2v-2H7zm-4-8h2v-2H3zm0-8h2V3c-1.1 0-2 .9-2 2"}),"HighlightAltTwoTone")},5834:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M8 9.86v4.28L11.03 12z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M14.5 12 6 6v12zM8 9.86 11.03 12 8 14.14zM16 6h2v12h-2z"},"1")],"SkipNextTwoTone")},95281:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M16 14.14V9.86L12.97 12z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M6 6h2v12H6zm12 12V6l-8.5 6zm-2-3.86L12.97 12 16 9.86z"},"1")],"SkipPreviousTwoTone")},94081:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M15.22 4.75 7.87 7.79l4.96 11.96 7.35-3.05zM11 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,a.jsx)("path",{d:"m3.87 11.18-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61l1.34.56zm18.16 4.77L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6m-9.2 3.8L7.87 7.79l7.35-3.04h.01l4.95 11.95z"},"1"),(0,a.jsx)("circle",{cx:"11",cy:"9",r:"1"},"2"),(0,a.jsx)("path",{d:"m9.33 21.75-3.45-8.34v6.34c0 1.1.9 2 2 2z"},"3")],"StyleTwoTone")},57755:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"m18 4-3 3h2v13h2V7h2zm-6.2 11.5v-5l2.2-.9V7.5L3 12.25v1.5l11 4.75v-2.1zM4.98 13 10 11.13v3.74z"}),"TextRotateUpTwoTone")},65054:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15.75 5h-1.5L9.5 16h2.1l.9-2.2h5l.9 2.2h2.1zm-2.62 7L15 6.98 16.87 12zM6 20l3-3H7V4H5v13H3z"}),"TextRotateVerticalTwoTone")},24742:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(30887)),a=r(8732);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M5 19h14V5H5zm7-12h6v2h-6zm-3 4h6v2H9zm-3 4h6v2H6z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M6 15h6v2H6zm6-8h6v2h-6zm-3 4h6v2H9z"},"1"),(0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"2")],"ViewTimelineTwoTone")},94949:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var i=n(r(74956)),u=n(r(14036)),d=n(r(88456)),s=r(57001),c=n(r(9807)),f=r(36765),p=r(8732);let v=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}let h=e=>{let{classes:t,invisible:r}=e;return(0,u.default)({root:["root",r&&"invisible"]},f.getBackdropUtilityClass,t)},b=(0,d.default)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>(0,a.default)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),m=l.forwardRef(function(e,t){var r,n,l;let u=(0,s.useDefaultProps)({props:e,name:"MuiBackdrop"}),{children:d,className:f,component:y="div",components:m={},componentsProps:g={},invisible:P=!1,open:O,slotProps:w={},slots:M={},TransitionComponent:j=c.default,transitionDuration:k}=u,_=(0,o.default)(u,v),x=(0,a.default)({},u,{component:y,invisible:P}),E=h(x),A=null!=(r=w.root)?r:g.root;return(0,p.jsx)(j,(0,a.default)({in:O,timeout:k},_,{children:(0,p.jsx)(b,(0,a.default)({"aria-hidden":!0},A,{as:null!=(n=null!=(l=M.root)?l:m.Root)?n:y,className:(0,i.default)(E.root,f,null==A?void 0:A.className),ownerState:(0,a.default)({},x,null==A?void 0:A.ownerState),classes:E,ref:t,children:d}))}))});t.default=m},36765:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getBackdropUtilityClass=function(e){return(0,a.default)("MuiBackdrop",e)};var o=n(r(81699)),a=n(r(61119));let l=(0,o.default)("MuiBackdrop",["root","invisible"]);t.default=l},70131:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={backdropClasses:!0};Object.defineProperty(t,"backdropClasses",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}});var a=n(r(94949)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(36765));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},48399:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getAnchor=R,t.isHorizontal=A;var o=n(r(54893)),a=n(r(94634)),l=w(r(82015));n(r(29825));var i=n(r(74956));n(r(71291));var u=n(r(14036)),d=r(8919),s=n(r(13186)),c=n(r(74114)),f=n(r(45561)),p=n(r(83922)),v=n(r(90403)),y=r(57001),h=w(r(88456)),b=r(89371),m=r(8732);let g=["BackdropProps"],P=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"];function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(O=function(e){return e?r:t})(e)}function w(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=O(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}let M=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},j=e=>{let{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,p.default)(r)}`,"temporary"!==n&&`paperAnchorDocked${(0,p.default)(r)}`]};return(0,u.default)(o,b.getDrawerUtilityClass,t)},k=(0,h.default)(s.default,{name:"MuiDrawer",slot:"Root",overridesResolver:M})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),_=(0,h.default)("div",{shouldForwardProp:h.rootShouldForwardProp,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:M})({flex:"0 0 auto"}),x=(0,h.default)(f.default,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`paperAnchor${(0,p.default)(r.anchor)}`],"temporary"!==r.variant&&t[`paperAnchorDocked${(0,p.default)(r.anchor)}`]]}})(({theme:e,ownerState:t})=>(0,a.default)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),E={left:"right",right:"left",top:"down",bottom:"up"};function A(e){return -1!==["left","right"].indexOf(e)}function R({direction:e},t){return"rtl"===e&&A(t)?E[t]:t}let T=l.forwardRef(function(e,t){let r=(0,y.useDefaultProps)({props:e,name:"MuiDrawer"}),n=(0,v.default)(),u=(0,d.useRtl)(),s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:p,children:h,className:b,elevation:O=16,hideBackdrop:w=!1,ModalProps:{BackdropProps:M}={},onClose:A,open:T=!1,PaperProps:D={},SlideProps:z,TransitionComponent:C=c.default,transitionDuration:S=s,variant:W="temporary"}=r,I=(0,o.default)(r.ModalProps,g),L=(0,o.default)(r,P),H=l.useRef(!1);l.useEffect(()=>{H.current=!0},[]);let V=R({direction:u?"rtl":"ltr"},f),N=(0,a.default)({},r,{anchor:f,elevation:O,open:T,variant:W},L),B=j(N),$=(0,m.jsx)(x,(0,a.default)({elevation:"temporary"===W?O:0,square:!0},D,{className:(0,i.default)(B.paper,D.className),ownerState:N,children:h}));if("permanent"===W)return(0,m.jsx)(_,(0,a.default)({className:(0,i.default)(B.root,B.docked,b),ownerState:N,ref:t},L,{children:$}));let F=(0,m.jsx)(C,(0,a.default)({in:T,direction:E[V],timeout:S,appear:H.current},z,{children:$}));return"persistent"===W?(0,m.jsx)(_,(0,a.default)({className:(0,i.default)(B.root,B.docked,b),ownerState:N,ref:t},L,{children:F})):(0,m.jsx)(k,(0,a.default)({BackdropProps:(0,a.default)({},p,M,{transitionDuration:S}),className:(0,i.default)(B.root,B.modal,b),open:T,ownerState:N,onClose:A,hideBackdrop:w,ref:t},L,I,{children:F}))});t.default=T},89371:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getDrawerUtilityClass=function(e){return(0,a.default)("MuiDrawer",e)};var o=n(r(81699)),a=n(r(61119));let l=(0,o.default)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);t.default=l},92184:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={drawerClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"drawerClasses",{enumerable:!0,get:function(){return l.default}});var a=n(r(48399)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(89371));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},66189:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),a=n(r(54893)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var i=r(37727);n(r(30729));var u=n(r(16362)),d=n(r(90403)),s=r(66322),c=n(r(68660)),f=r(8732);let p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}let y={entering:{opacity:1},entered:{opacity:1}},h=l.forwardRef(function(e,t){let r=(0,d.default)(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:v,appear:h=!0,children:b,easing:m,in:g,onEnter:P,onEntered:O,onEntering:w,onExit:M,onExited:j,onExiting:k,style:_,timeout:x=n,TransitionComponent:E=i.Transition}=e,A=(0,a.default)(e,p),R=l.useRef(null),T=(0,c.default)(R,(0,u.default)(b),t),D=e=>t=>{if(e){let r=R.current;void 0===t?e(r):e(r,t)}},z=D(w),C=D((e,t)=>{(0,s.reflow)(e);let n=(0,s.getTransitionProps)({style:_,timeout:x,easing:m},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),P&&P(e,t)}),S=D(O),W=D(k),I=D(e=>{let t=(0,s.getTransitionProps)({style:_,timeout:x,easing:m},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),M&&M(e)}),L=D(j);return(0,f.jsx)(E,(0,o.default)({appear:h,in:g,nodeRef:R,onEnter:C,onEntered:S,onEntering:z,onExit:I,onExited:L,onExiting:W,addEndListener:e=>{v&&v(R.current,e)},timeout:x},A,{children:(e,t)=>l.cloneElement(b,(0,o.default)({style:(0,o.default)({opacity:0,visibility:"exited"!==e||g?void 0:"hidden"},y[e],_,b.props.style),ref:T},t))}))});t.default=h},9807:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=n(r(66189))},69731:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=g(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var i=n(r(74956));n(r(98967)),n(r(30729));var u=n(r(14036)),d=n(r(10179)),s=n(r(55543)),c=n(r(30743)),f=n(r(88456)),p=r(57001),v=n(r(70131)),y=n(r(90112)),h=r(23927),b=r(8732);let m=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"];function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}let P=e=>{let{open:t,exited:r,classes:n}=e;return(0,u.default)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},h.getModalUtilityClass,n)},O=(0,f.default)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,a.default)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),w=(0,f.default)(v.default,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),M=l.forwardRef(function(e,t){var r,n,u,f,v,h;let g=(0,p.useDefaultProps)({name:"MuiModal",props:e}),{BackdropComponent:M=w,BackdropProps:j,className:k,closeAfterTransition:_=!1,children:x,container:E,component:A,components:R={},componentsProps:T={},disableAutoFocus:D=!1,disableEnforceFocus:z=!1,disableEscapeKeyDown:C=!1,disablePortal:S=!1,disableRestoreFocus:W=!1,disableScrollLock:I=!1,hideBackdrop:L=!1,keepMounted:H=!1,onBackdropClick:V,open:N,slotProps:B,slots:$}=g,F=(0,o.default)(g,m),U=(0,a.default)({},g,{closeAfterTransition:_,disableAutoFocus:D,disableEnforceFocus:z,disableEscapeKeyDown:C,disablePortal:S,disableRestoreFocus:W,disableScrollLock:I,hideBackdrop:L,keepMounted:H}),{getRootProps:q,getBackdropProps:G,getTransitionProps:K,portalRef:Y,isTopModal:X,exited:Z,hasTransition:J}=(0,y.default)((0,a.default)({},U,{rootRef:t})),Q=(0,a.default)({},U,{exited:Z}),ee=P(Q),et={};if(void 0===x.props.tabIndex&&(et.tabIndex="-1"),J){let{onEnter:e,onExited:t}=K();et.onEnter=e,et.onExited=t}let er=null!=(r=null!=(n=null==$?void 0:$.root)?n:R.Root)?r:O,en=null!=(u=null!=(f=null==$?void 0:$.backdrop)?f:R.Backdrop)?u:M,eo=null!=(v=null==B?void 0:B.root)?v:T.root,ea=null!=(h=null==B?void 0:B.backdrop)?h:T.backdrop,el=(0,d.default)({elementType:er,externalSlotProps:eo,externalForwardedProps:F,getSlotProps:q,additionalProps:{ref:t,as:A},ownerState:Q,className:(0,i.default)(k,null==eo?void 0:eo.className,null==ee?void 0:ee.root,!Q.open&&Q.exited&&(null==ee?void 0:ee.hidden))}),ei=(0,d.default)({elementType:en,externalSlotProps:ea,additionalProps:j,getSlotProps:e=>G((0,a.default)({},e,{onClick:t=>{V&&V(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,i.default)(null==ea?void 0:ea.className,null==j?void 0:j.className,null==ee?void 0:ee.backdrop),ownerState:Q});return H||N||J&&!Z?(0,b.jsx)(c.default,{ref:Y,container:E,disablePortal:S,children:(0,b.jsxs)(er,(0,a.default)({},el,{children:[!L&&M?(0,b.jsx)(en,(0,a.default)({},ei)):null,(0,b.jsx)(s.default,{disableEnforceFocus:z,disableAutoFocus:D,disableRestoreFocus:W,isEnabled:X,open:N,children:l.cloneElement(x,et)})]}))}):null});t.default=M},83232:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ModalManager=void 0,t.ariaHidden=o;var n=r(76831);function o(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function a(e){return parseInt((0,n.unstable_ownerWindow)(e).getComputedStyle(e).paddingRight,10)||0}function l(e,t,r,n,a){let l=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===l.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&o(e,a)})}function i(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class u{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&o(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);l(t,e.mount,e.modalRef,n,!0);let a=i(this.containers,e=>e.container===t);return -1!==a?this.containers[a].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=i(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];o.restore||(o.restore=function(e,t){let r=[],o=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,n.unstable_ownerDocument)(e);return t.body===e?(0,n.unstable_ownerWindow)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){let e=(0,n.unstable_getScrollbarSize)((0,n.unstable_ownerDocument)(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${a(o)+e}px`;let t=(0,n.unstable_ownerDocument)(o).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${a(t)+e}px`})}if(o.parentNode instanceof DocumentFragment)e=(0,n.unstable_ownerDocument)(o).body;else{let t=o.parentElement,r=(0,n.unstable_ownerWindow)(o);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:o}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(o,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=i(this.containers,t=>-1!==t.modals.indexOf(e)),a=this.containers[n];if(a.modals.splice(a.modals.indexOf(e),1),this.modals.splice(r,1),0===a.modals.length)a.restore&&a.restore(),e.modalRef&&o(e.modalRef,t),l(a.container,e.mount,e.modalRef,a.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=a.modals[a.modals.length-1];e.modalRef&&o(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}t.ModalManager=u},13186:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={ModalManager:!0,modalClasses:!0};Object.defineProperty(t,"ModalManager",{enumerable:!0,get:function(){return a.ModalManager}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"modalClasses",{enumerable:!0,get:function(){return i.default}});var a=r(83232),l=n(r(69731)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(23927));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},23927:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getModalUtilityClass=function(e){return(0,a.default)("MuiModal",e)};var o=n(r(81699)),a=n(r(61119));let l=(0,o.default)("MuiModal",["root","hidden","backdrop"]);t.default=l},90112:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(94634)),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=d(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015)),l=r(76831),i=n(r(47822)),u=r(83232);function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}let s=new u.ModalManager;t.default=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:d=s,closeAfterTransition:c=!1,onTransitionEnter:f,onTransitionExited:p,children:v,onClose:y,open:h,rootRef:b}=e,m=a.useRef({}),g=a.useRef(null),P=a.useRef(null),O=(0,l.unstable_useForkRef)(P,b),[w,M]=a.useState(!h),j=!!v&&v.props.hasOwnProperty("in"),k=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(k=!1);let _=()=>(0,l.unstable_ownerDocument)(g.current),x=()=>(m.current.modalRef=P.current,m.current.mount=g.current,m.current),E=()=>{d.mount(x(),{disableScrollLock:n}),P.current&&(P.current.scrollTop=0)},A=(0,l.unstable_useEventCallback)(()=>{let e=("function"==typeof t?t():t)||_().body;d.add(x(),e),P.current&&E()}),R=a.useCallback(()=>d.isTopModal(x()),[d]),T=(0,l.unstable_useEventCallback)(e=>{g.current=e,e&&(h&&R()?E():P.current&&(0,u.ariaHidden)(P.current,k))}),D=a.useCallback(()=>{d.remove(x(),k)},[k,d]);a.useEffect(()=>()=>{D()},[D]),a.useEffect(()=>{h?A():j&&c||D()},[h,D,j,c,A]);let z=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&R()&&!r&&(t.stopPropagation(),y&&y(t,"escapeKeyDown"))},C=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&y&&y(t,"backdropClick")};return{getRootProps:(t={})=>{let r=(0,i.default)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n=(0,o.default)({},r,t);return(0,o.default)({role:"presentation"},n,{onKeyDown:z(n),ref:O})},getBackdropProps:(e={})=>(0,o.default)({"aria-hidden":!0},e,{onClick:C(e),open:h}),getTransitionProps:()=>({onEnter:(0,l.unstable_createChainedFunction)(()=>{M(!1),f&&f()},null==v?void 0:v.props.onEnter),onExited:(0,l.unstable_createChainedFunction)(()=>{M(!0),p&&p(),c&&D()},null==v?void 0:v.props.onExited)}),rootRef:O,portalRef:T,isTopModal:R,exited:w,hasTransition:j}}},75075:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(54893)),a=n(r(94634)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var i=n(r(74956));n(r(71291)),n(r(54341));var u=n(r(14036)),d=r(84781),s=n(r(88456)),c=n(r(3167)),f=r(57001);n(r(90403));var p=r(87479),v=r(8732);let y=["className","component","elevation","square","variant"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}let b=e=>{let{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,u.default)(a,p.getPaperUtilityClass,o)},m=(0,s.default)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return(0,a.default)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,a.default)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,d.alpha)("#fff",(0,c.default)(t.elevation))}, ${(0,d.alpha)("#fff",(0,c.default)(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),g=l.forwardRef(function(e,t){let r=(0,f.useDefaultProps)({props:e,name:"MuiPaper"}),{className:n,component:l="div",elevation:u=1,square:d=!1,variant:s="elevation"}=r,c=(0,o.default)(r,y),p=(0,a.default)({},r,{component:l,elevation:u,square:d,variant:s}),h=b(p);return(0,v.jsx)(m,(0,a.default)({as:l,ownerState:p,className:(0,i.default)(h.root,n),ref:t},c))});t.default=g},45561:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var o={paperClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"paperClasses",{enumerable:!0,get:function(){return l.default}});var a=n(r(75075)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(87479));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(o,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))})},87479:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getPaperUtilityClass=function(e){return(0,a.default)("MuiPaper",e)};var o=n(r(81699)),a=n(r(61119));let l=(0,o.default)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);t.default=l},21669:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=d(r(82015)),a=d(r(22326));n(r(29825));var l=r(76831),i=r(8732);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}let s=o.forwardRef(function(e,t){let{children:r,container:n,disablePortal:u=!1}=e,[d,s]=o.useState(null),c=(0,l.unstable_useForkRef)(o.isValidElement(r)?(0,l.unstable_getReactElementRef)(r):null,t);return((0,l.unstable_useEnhancedEffect)(()=>{!u&&s(("function"==typeof n?n():n)||document.body)},[n,u]),(0,l.unstable_useEnhancedEffect)(()=>{if(d&&!u)return(0,l.unstable_setRef)(t,d),()=>{(0,l.unstable_setRef)(t,null)}},[t,d,u]),u)?o.isValidElement(r)?o.cloneElement(r,{ref:c}):(0,i.jsx)(o.Fragment,{children:r}):(0,i.jsx)(o.Fragment,{children:d?a.createPortal(r,d):d})});t.default=s},30743:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=n(r(21669))},73259:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.setTranslateValue=b;var o=n(r(94634)),a=n(r(54893)),l=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var i=r(37727);n(r(54341)),n(r(98967)),n(r(30729));var u=n(r(16362)),d=n(r(58607)),s=n(r(68660)),c=n(r(90403)),f=r(66322),p=r(40170),v=r(8732);let y=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}function b(e,t,r){let n=function(e,t,r){let n;let o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),l=(0,p.ownerWindow)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=l.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let i=0,u=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");i=parseInt(e[4],10),u=parseInt(e[5],10)}return"left"===e?a?`translateX(${a.right+i-o.left}px)`:`translateX(${l.innerWidth+i-o.left}px)`:"right"===e?a?`translateX(-${o.right-a.left-i}px)`:`translateX(-${o.left+o.width-i}px)`:"up"===e?a?`translateY(${a.bottom+u-o.top}px)`:`translateY(${l.innerHeight+u-o.top}px)`:a?`translateY(-${o.top-a.top+o.height-u}px)`:`translateY(-${o.top+o.height-u}px)`}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}let m=l.forwardRef(function(e,t){let r=(0,c.default)(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},h={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:m,appear:g=!0,children:P,container:O,direction:w="down",easing:M=n,in:j,onEnter:k,onEntered:_,onEntering:x,onExit:E,onExited:A,onExiting:R,style:T,timeout:D=h,TransitionComponent:z=i.Transition}=e,C=(0,a.default)(e,y),S=l.useRef(null),W=(0,s.default)((0,u.default)(P),S,t),I=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},L=I((e,t)=>{b(w,e,O),(0,f.reflow)(e),k&&k(e,t)}),H=I((e,t)=>{let n=(0,f.getTransitionProps)({timeout:D,style:T,easing:M},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,o.default)({},n)),e.style.transition=r.transitions.create("transform",(0,o.default)({},n)),e.style.webkitTransform="none",e.style.transform="none",x&&x(e,t)}),V=I(_),N=I(R),B=I(e=>{let t=(0,f.getTransitionProps)({timeout:D,style:T,easing:M},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),b(w,e,O),E&&E(e)}),$=I(e=>{e.style.webkitTransition="",e.style.transition="",A&&A(e)}),F=l.useCallback(()=>{S.current&&b(w,S.current,O)},[w,O]);return l.useEffect(()=>{if(j||"down"===w||"right"===w)return;let e=(0,d.default)(()=>{S.current&&b(w,S.current,O)}),t=(0,p.ownerWindow)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[w,j,O]),l.useEffect(()=>{j||F()},[j,F]),(0,v.jsx)(z,(0,o.default)({nodeRef:S,onEnter:L,onEntered:V,onEntering:H,onExit:B,onExited:$,onExiting:N,addEndListener:e=>{m&&m(S.current,e)},appear:g,in:j,timeout:D},C,{children:(e,t)=>l.cloneElement(P,(0,o.default)({ref:W,style:(0,o.default)({visibility:"exited"!==e||j?void 0:"hidden"},T,P.props.style)},t))}))});t.default=m},74114:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=n(r(73259))},31284:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(r(82015));n(r(29825));var a=r(76831),l=r(8732);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function u(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function d(){return!0}t.default=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:s=u,isEnabled:c=d,open:f}=e,p=o.useRef(!1),v=o.useRef(null),y=o.useRef(null),h=o.useRef(null),b=o.useRef(null),m=o.useRef(!1),g=o.useRef(null),P=(0,a.unstable_useForkRef)((0,a.unstable_getReactElementRef)(t),g),O=o.useRef(null);o.useEffect(()=>{f&&g.current&&(m.current=!r)},[r,f]),o.useEffect(()=>{if(!f||!g.current)return;let e=(0,a.unstable_ownerDocument)(g.current);return!g.current.contains(e.activeElement)&&(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),m.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(p.current=!0,h.current.focus()),h.current=null)}},[f]),o.useEffect(()=>{if(!f||!g.current)return;let e=(0,a.unstable_ownerDocument)(g.current),t=t=>{O.current=t,!n&&c()&&"Tab"===t.key&&e.activeElement===g.current&&t.shiftKey&&(p.current=!0,y.current&&y.current.focus())},r=()=>{let t=g.current;if(null===t)return;if(!e.hasFocus()||!c()||p.current){p.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==v.current&&e.activeElement!==y.current)return;if(e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!m.current)return;let r=[];if((e.activeElement===v.current||e.activeElement===y.current)&&(r=s(g.current)),r.length>0){var o,a;let e=!!((null==(o=O.current)?void 0:o.shiftKey)&&(null==(a=O.current)?void 0:a.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,i,c,f,s]);let w=e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0};return(0,l.jsxs)(o.Fragment,{children:[(0,l.jsx)("div",{tabIndex:f?0:-1,onFocus:w,ref:v,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:P,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),m.current=!0,b.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,l.jsx)("div",{tabIndex:f?0:-1,onFocus:w,ref:y,"data-testid":"sentinelEnd"})]})}},55543:(e,t,r)=>{var n=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=n(r(31284))},66322:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getTransitionProps=function(e,t){var r,n;let{timeout:o,easing:a,style:l={}}=e;return{duration:null!=(r=l.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=l.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:l.transitionDelay}},t.reflow=void 0,t.reflow=e=>e.scrollTop},67105:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6825.js b/dsql-app/.local_dist/server/chunks/6825.js deleted file mode 100644 index 4f842a5..0000000 --- a/dsql-app/.local_dist/server/chunks/6825.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; -exports.id = 6825; -exports.ids = [6825]; -exports.modules = { - -/***/ 6825: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const http = __webpack_require__(3685); -const DB_HANDLER = __webpack_require__(2224); -const decrypt = __webpack_require__(5425); -const fs = __webpack_require__(7147); -const EXPIRY_TIME = 1000 * 60 * 60 * 24 * 1 * 7; // 7 days -/** - * @async - * @param {import("next").NextApiRequest | http.IncomingMessage & { cookies: Partial<{ [key: string]: string; }>; }} req - https request object - * @param {import("next").NextApiResponse | http.ServerResponse} res - https response object - * @param {boolean | null} [csrf] - csrf key - * @param {any} [query] - query object - * - * @returns {Promise<(import("@/package-shared/types").UserType | null)>} - */ module.exports = async function userAuth(req, res, csrf, query) { - /** ********************* Check for existence of required cookie */ if (!req.cookies?.datasquirelAuthKey?.match(/./)) { - // console.log("No datasquirel key cookie present"); - return null; - } - /** ********************* Grab the payload */ let userPayload = decrypt(req.cookies.datasquirelAuthKey); - /** ********************* Return if no payload */ if (!userPayload) { - // console.log("Couldn't Decrypt cookie"); - return null; - } - /** ********************* Parse the payload */ let userObject = JSON.parse(userPayload); - if (!userObject.csrf_k) { - // console.log("No CSRF_K in decrypted payload"); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (csrf && // @ts-ignore - !req.headers["x-csrf-auth"]?.match(new RegExp(`${userObject.csrf_k}`))) { - // console.log("CSRF_K requested but does not match payload"); - return null; - } - const allowedAuthKeysPath = process.env.DSQL_USER_LOGIN_KEYS_PATH; - if (!allowedAuthKeysPath) { - console.log(`DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.`); - return null; - } - if (csrf && !fs.existsSync(`${allowedAuthKeysPath}/${userObject.csrf_k}`)) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* check user verification */ if (userObject.verification_status == 0 && !csrf) { - let currentVerificationStatus = await DB_HANDLER(`SELECT verification_status FROM users WHERE id='${userObject.id}'`); - if (currentVerificationStatus && currentVerificationStatus[0] && currentVerificationStatus[0].verification_status == 1) { - // userObject = await reAuthUser({ userId: userObject.id, res }); - res.setHeader("Set-Cookie", [ - `user_refresh=1` - ]); - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (userObject?.date && Date.now() - userObject.date > EXPIRY_TIME) { - // console.log("Cookie expired"); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* return user object */ return userObject; -}; - - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6859.js b/dsql-app/.local_dist/server/chunks/6859.js deleted file mode 100644 index de417ec..0000000 --- a/dsql-app/.local_dist/server/chunks/6859.js +++ /dev/null @@ -1,776 +0,0 @@ -exports.id = 6859; -exports.ids = [6859]; -exports.modules = { - -/***/ 3105: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Html = Html; -exports.Main = Main; -__webpack_unused_export__ = void 0; -var _react = _interopRequireWildcard(__webpack_require__(6689)); -var _constants = __webpack_require__(6724); -var _getPageFiles = __webpack_require__(4140); -var _htmlescape = __webpack_require__(9716); -var _isError = _interopRequireDefault(__webpack_require__(676)); -var _htmlContext = __webpack_require__(8743); -class Document extends _react.default.Component { - /** - * `getInitialProps` hook returns the context object with the addition of `renderPage`. - * `renderPage` callback executes `React` rendering logic synchronously to support server-rendering wrappers - */ static getInitialProps(ctx) { - return ctx.defaultGetInitialProps(ctx); - } - render() { - return /*#__PURE__*/ _react.default.createElement(Html, null, /*#__PURE__*/ _react.default.createElement(Head, null), /*#__PURE__*/ _react.default.createElement("body", null, /*#__PURE__*/ _react.default.createElement(Main, null), /*#__PURE__*/ _react.default.createElement(NextScript, null))); - } -} -__webpack_unused_export__ = Document; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} -function _getRequireWildcardCache() { - if (typeof WeakMap !== "function") return null; - var cache = new WeakMap(); - _getRequireWildcardCache = function() { - return cache; - }; - return cache; -} -function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } - if (obj === null || typeof obj !== "object" && typeof obj !== "function") { - return { - default: obj - }; - } - var cache = _getRequireWildcardCache(); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for(var key in obj){ - if (Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj.default = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} -function getDocumentFiles(buildManifest, pathname, inAmpMode) { - const sharedFiles = (0, _getPageFiles).getPageFiles(buildManifest, "/_app"); - const pageFiles = true && inAmpMode ? [] : (0, _getPageFiles).getPageFiles(buildManifest, pathname); - return { - sharedFiles, - pageFiles, - allFiles: [ - ...new Set([ - ...sharedFiles, - ...pageFiles - ]) - ] - }; -} -function getPolyfillScripts(context, props) { - // polyfills.js has to be rendered as nomodule without async - // It also has to be the first script to load - const { assetPrefix , buildManifest , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin , } = context; - return buildManifest.polyfillFiles.filter((polyfill)=>polyfill.endsWith(".js") && !polyfill.endsWith(".module.js")).map((polyfill)=>/*#__PURE__*/ _react.default.createElement("script", { - key: polyfill, - defer: !disableOptimizedLoading, - nonce: props.nonce, - crossOrigin: props.crossOrigin || crossOrigin, - noModule: true, - src: `${assetPrefix}/_next/${polyfill}${devOnlyCacheBusterQueryString}` - })); -} -function hasComponentProps(child) { - return !!child && !!child.props; -} -function AmpStyles({ styles }) { - if (!styles) return null; - // try to parse styles from fragment for backwards compat - const curStyles = Array.isArray(styles) ? styles : []; - if (styles.props && // @ts-ignore Property 'props' does not exist on type ReactElement - Array.isArray(styles.props.children)) { - const hasStyles = (el)=>{ - var ref, ref1; - return el == null ? void 0 : (ref = el.props) == null ? void 0 : (ref1 = ref.dangerouslySetInnerHTML) == null ? void 0 : ref1.__html; - }; - // @ts-ignore Property 'props' does not exist on type ReactElement - styles.props.children.forEach((child)=>{ - if (Array.isArray(child)) { - child.forEach((el)=>hasStyles(el) && curStyles.push(el)); - } else if (hasStyles(child)) { - curStyles.push(child); - } - }); - } - /* Add custom styles before AMP styles to prevent accidental overrides */ return /*#__PURE__*/ _react.default.createElement("style", { - "amp-custom": "", - dangerouslySetInnerHTML: { - __html: curStyles.map((style)=>style.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g, "").replace(/\/\*@ sourceURL=.*?\*\//g, "") - } - }); -} -function getDynamicChunks(context, props, files) { - const { dynamicImports , assetPrefix , isDevelopment , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin , } = context; - return dynamicImports.map((file)=>{ - if (!file.endsWith(".js") || files.allFiles.includes(file)) return null; - return /*#__PURE__*/ _react.default.createElement("script", { - async: !isDevelopment && disableOptimizedLoading, - defer: !disableOptimizedLoading, - key: file, - src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - nonce: props.nonce, - crossOrigin: props.crossOrigin || crossOrigin - }); - }); -} -function getScripts(context, props, files) { - var ref; - const { assetPrefix , buildManifest , isDevelopment , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin , } = context; - const normalScripts = files.allFiles.filter((file)=>file.endsWith(".js")); - const lowPriorityScripts = (ref = buildManifest.lowPriorityFiles) == null ? void 0 : ref.filter((file)=>file.endsWith(".js")); - return [ - ...normalScripts, - ...lowPriorityScripts - ].map((file)=>{ - return /*#__PURE__*/ _react.default.createElement("script", { - key: file, - src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - nonce: props.nonce, - async: !isDevelopment && disableOptimizedLoading, - defer: !disableOptimizedLoading, - crossOrigin: props.crossOrigin || crossOrigin - }); - }); -} -function getPreNextWorkerScripts(context, props) { - const { assetPrefix , scriptLoader , crossOrigin , nextScriptWorkers } = context; - // disable `nextScriptWorkers` in edge runtime - if (!nextScriptWorkers || "nodejs" === "edge") return null; - try { - let { partytownSnippet } = require("@builder.io/partytown/integration"); - const children = Array.isArray(props.children) ? props.children : [ - props.children - ]; - // Check to see if the user has defined their own Partytown configuration - const userDefinedConfig = children.find((child)=>{ - var ref, ref2; - return hasComponentProps(child) && (child == null ? void 0 : (ref = child.props) == null ? void 0 : (ref2 = ref.dangerouslySetInnerHTML) == null ? void 0 : ref2.__html.length) && "data-partytown-config" in child.props; - }); - return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !userDefinedConfig && /*#__PURE__*/ _react.default.createElement("script", { - "data-partytown-config": "", - dangerouslySetInnerHTML: { - __html: ` - partytown = { - lib: "${assetPrefix}/_next/static/~partytown/" - }; - ` - } - }), /*#__PURE__*/ _react.default.createElement("script", { - "data-partytown": "", - dangerouslySetInnerHTML: { - __html: partytownSnippet() - } - }), (scriptLoader.worker || []).map((file, index)=>{ - const { strategy , src , children: scriptChildren , dangerouslySetInnerHTML , ...scriptProps } = file; - let srcProps = {}; - if (src) { - // Use external src if provided - srcProps.src = src; - } else if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html) { - // Embed inline script if provided with dangerouslySetInnerHTML - srcProps.dangerouslySetInnerHTML = { - __html: dangerouslySetInnerHTML.__html - }; - } else if (scriptChildren) { - // Embed inline script if provided with children - srcProps.dangerouslySetInnerHTML = { - __html: typeof scriptChildren === "string" ? scriptChildren : Array.isArray(scriptChildren) ? scriptChildren.join("") : "" - }; - } else { - throw new Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script"); - } - return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, srcProps, scriptProps, { - type: "text/partytown", - key: src || index, - nonce: props.nonce, - "data-nscript": "worker", - crossOrigin: props.crossOrigin || crossOrigin - })); - })); - } catch (err) { - if ((0, _isError).default(err) && err.code !== "MODULE_NOT_FOUND") { - console.warn(`Warning: ${err.message}`); - } - return null; - } -} -function getPreNextScripts(context, props) { - const { scriptLoader , disableOptimizedLoading , crossOrigin } = context; - const webWorkerScripts = getPreNextWorkerScripts(context, props); - const beforeInteractiveScripts = (scriptLoader.beforeInteractive || []).filter((script)=>script.src).map((file, index)=>{ - const { strategy , ...scriptProps } = file; - var _defer; - return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, scriptProps, { - key: scriptProps.src || index, - defer: (_defer = scriptProps.defer) != null ? _defer : !disableOptimizedLoading, - nonce: props.nonce, - "data-nscript": "beforeInteractive", - crossOrigin: props.crossOrigin || crossOrigin - })); - }); - return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, webWorkerScripts, beforeInteractiveScripts); -} -function getHeadHTMLProps(props) { - const { crossOrigin , nonce , ...restProps } = props; - // This assignment is necessary for additional type checking to avoid unsupported attributes in - const headProps = restProps; - return headProps; -} -function getAmpPath(ampPath, asPath) { - return ampPath || `${asPath}${asPath.includes("?") ? "&" : "?"}amp=1`; -} -class Head extends _react.default.Component { - static contextType = _htmlContext.HtmlContext; - getCssLinks(files) { - const { assetPrefix , devOnlyCacheBusterQueryString , dynamicImports , crossOrigin , optimizeCss , optimizeFonts , } = this.context; - const cssFiles = files.allFiles.filter((f)=>f.endsWith(".css")); - const sharedFiles = new Set(files.sharedFiles); - // Unmanaged files are CSS files that will be handled directly by the - // webpack runtime (`mini-css-extract-plugin`). - let unmangedFiles = new Set([]); - let dynamicCssFiles = Array.from(new Set(dynamicImports.filter((file)=>file.endsWith(".css")))); - if (dynamicCssFiles.length) { - const existing = new Set(cssFiles); - dynamicCssFiles = dynamicCssFiles.filter((f)=>!(existing.has(f) || sharedFiles.has(f))); - unmangedFiles = new Set(dynamicCssFiles); - cssFiles.push(...dynamicCssFiles); - } - let cssLinkElements = []; - cssFiles.forEach((file)=>{ - const isSharedFile = sharedFiles.has(file); - if (!optimizeCss) { - cssLinkElements.push(/*#__PURE__*/ _react.default.createElement("link", { - key: `${file}-preload`, - nonce: this.props.nonce, - rel: "preload", - href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - as: "style", - crossOrigin: this.props.crossOrigin || crossOrigin - })); - } - const isUnmanagedFile = unmangedFiles.has(file); - cssLinkElements.push(/*#__PURE__*/ _react.default.createElement("link", { - key: file, - nonce: this.props.nonce, - rel: "stylesheet", - href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - crossOrigin: this.props.crossOrigin || crossOrigin, - "data-n-g": isUnmanagedFile ? undefined : isSharedFile ? "" : undefined, - "data-n-p": isUnmanagedFile ? undefined : isSharedFile ? undefined : "" - })); - }); - if ( true && optimizeFonts) { - cssLinkElements = this.makeStylesheetInert(cssLinkElements); - } - return cssLinkElements.length === 0 ? null : cssLinkElements; - } - getPreloadDynamicChunks() { - const { dynamicImports , assetPrefix , devOnlyCacheBusterQueryString , crossOrigin , } = this.context; - return dynamicImports.map((file)=>{ - if (!file.endsWith(".js")) { - return null; - } - return /*#__PURE__*/ _react.default.createElement("link", { - rel: "preload", - key: file, - href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - as: "script", - nonce: this.props.nonce, - crossOrigin: this.props.crossOrigin || crossOrigin - }); - }) // Filter out nulled scripts - .filter(Boolean); - } - getPreloadMainLinks(files) { - const { assetPrefix , devOnlyCacheBusterQueryString , scriptLoader , crossOrigin , } = this.context; - const preloadFiles = files.allFiles.filter((file)=>{ - return file.endsWith(".js"); - }); - return [ - ...(scriptLoader.beforeInteractive || []).map((file)=>/*#__PURE__*/ _react.default.createElement("link", { - key: file.src, - nonce: this.props.nonce, - rel: "preload", - href: file.src, - as: "script", - crossOrigin: this.props.crossOrigin || crossOrigin - })), - ...preloadFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("link", { - key: file, - nonce: this.props.nonce, - rel: "preload", - href: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - as: "script", - crossOrigin: this.props.crossOrigin || crossOrigin - })), - ]; - } - getBeforeInteractiveInlineScripts() { - const { scriptLoader } = this.context; - const { nonce , crossOrigin } = this.props; - return (scriptLoader.beforeInteractive || []).filter((script)=>!script.src && (script.dangerouslySetInnerHTML || script.children)).map((file, index)=>{ - const { strategy , children , dangerouslySetInnerHTML , src , ...scriptProps } = file; - let html = ""; - if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html) { - html = dangerouslySetInnerHTML.__html; - } else if (children) { - html = typeof children === "string" ? children : Array.isArray(children) ? children.join("") : ""; - } - return /*#__PURE__*/ _react.default.createElement("script", Object.assign({}, scriptProps, { - dangerouslySetInnerHTML: { - __html: html - }, - key: scriptProps.id || index, - nonce: nonce, - "data-nscript": "beforeInteractive", - crossOrigin: crossOrigin || undefined - })); - }); - } - getDynamicChunks(files) { - return getDynamicChunks(this.context, this.props, files); - } - getPreNextScripts() { - return getPreNextScripts(this.context, this.props); - } - getScripts(files) { - return getScripts(this.context, this.props, files); - } - getPolyfillScripts() { - return getPolyfillScripts(this.context, this.props); - } - makeStylesheetInert(node) { - return _react.default.Children.map(node, (c)=>{ - var ref5, ref3; - if ((c == null ? void 0 : c.type) === "link" && (c == null ? void 0 : (ref5 = c.props) == null ? void 0 : ref5.href) && _constants.OPTIMIZED_FONT_PROVIDERS.some(({ url })=>{ - var ref, ref4; - return c == null ? void 0 : (ref = c.props) == null ? void 0 : (ref4 = ref.href) == null ? void 0 : ref4.startsWith(url); - })) { - const newProps = { - ...c.props || {}, - "data-href": c.props.href, - href: undefined - }; - return /*#__PURE__*/ _react.default.cloneElement(c, newProps); - } else if (c == null ? void 0 : (ref3 = c.props) == null ? void 0 : ref3.children) { - const newProps1 = { - ...c.props || {}, - children: this.makeStylesheetInert(c.props.children) - }; - return /*#__PURE__*/ _react.default.cloneElement(c, newProps1); - } - return c; - }).filter(Boolean); - } - render() { - const { styles , ampPath , inAmpMode , hybridAmp , canonicalBase , __NEXT_DATA__ , dangerousAsPath , headTags , unstable_runtimeJS , unstable_JsPreload , disableOptimizedLoading , optimizeCss , optimizeFonts , } = this.context; - const disableRuntimeJS = unstable_runtimeJS === false; - const disableJsPreload = unstable_JsPreload === false || !disableOptimizedLoading; - this.context.docComponentsRendered.Head = true; - let { head } = this.context; - let cssPreloads = []; - let otherHeadElements = []; - if (head) { - head.forEach((c)=>{ - if (c && c.type === "link" && c.props["rel"] === "preload" && c.props["as"] === "style") { - cssPreloads.push(c); - } else { - c && otherHeadElements.push(c); - } - }); - head = cssPreloads.concat(otherHeadElements); - } - let children = _react.default.Children.toArray(this.props.children).filter(Boolean); - // show a warning if Head contains (only in development) - if (false) {} - if ( true && optimizeFonts && !( true && inAmpMode)) { - children = this.makeStylesheetInert(children); - } - let hasAmphtmlRel = false; - let hasCanonicalRel = false; - // show warning and remove conflicting amp head tags - head = _react.default.Children.map(head || [], (child)=>{ - if (!child) return child; - const { type , props } = child; - if ( true && inAmpMode) { - let badProp = ""; - if (type === "meta" && props.name === "viewport") { - badProp = 'name="viewport"'; - } else if (type === "link" && props.rel === "canonical") { - hasCanonicalRel = true; - } else if (type === "script") { - // only block if - // 1. it has a src and isn't pointing to ampproject's CDN - // 2. it is using dangerouslySetInnerHTML without a type or - // a type of text/javascript - if (props.src && props.src.indexOf("ampproject") < -1 || props.dangerouslySetInnerHTML && (!props.type || props.type === "text/javascript")) { - badProp = "<script"; - Object.keys(props).forEach((prop)=>{ - badProp += ` ${prop}="${props[prop]}"`; - }); - badProp += "/>"; - } - } - if (badProp) { - console.warn(`Found conflicting amp tag "${child.type}" with conflicting prop ${badProp} in ${__NEXT_DATA__.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`); - return null; - } - } else { - // non-amp mode - if (type === "link" && props.rel === "amphtml") { - hasAmphtmlRel = true; - } - } - return child; - }); - const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, true && inAmpMode); - var _nonce, _nonce1; - return /*#__PURE__*/ _react.default.createElement("head", Object.assign({}, getHeadHTMLProps(this.props)), this.context.isDevelopment && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("style", { - "data-next-hide-fouc": true, - "data-ampdevmode": true && inAmpMode ? "true" : undefined, - dangerouslySetInnerHTML: { - __html: `body{display:none}` - } - }), /*#__PURE__*/ _react.default.createElement("noscript", { - "data-next-hide-fouc": true, - "data-ampdevmode": true && inAmpMode ? "true" : undefined - }, /*#__PURE__*/ _react.default.createElement("style", { - dangerouslySetInnerHTML: { - __html: `body{display:block}` - } - }))), head, /*#__PURE__*/ _react.default.createElement("meta", { - name: "next-head-count", - content: _react.default.Children.count(head || []).toString() - }), children, optimizeFonts && /*#__PURE__*/ _react.default.createElement("meta", { - name: "next-font-preconnect" - }), true && inAmpMode && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/ _react.default.createElement("meta", { - name: "viewport", - content: "width=device-width,minimum-scale=1,initial-scale=1" - }), !hasCanonicalRel && /*#__PURE__*/ _react.default.createElement("link", { - rel: "canonical", - href: canonicalBase + (__webpack_require__(6368).cleanAmpPath)(dangerousAsPath) - }), /*#__PURE__*/ _react.default.createElement("link", { - rel: "preload", - as: "script", - href: "https://cdn.ampproject.org/v0.js" - }), /*#__PURE__*/ _react.default.createElement(AmpStyles, { - styles: styles - }), /*#__PURE__*/ _react.default.createElement("style", { - "amp-boilerplate": "", - dangerouslySetInnerHTML: { - __html: `body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}` - } - }), /*#__PURE__*/ _react.default.createElement("noscript", null, /*#__PURE__*/ _react.default.createElement("style", { - "amp-boilerplate": "", - dangerouslySetInnerHTML: { - __html: `body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}` - } - })), /*#__PURE__*/ _react.default.createElement("script", { - async: true, - src: "https://cdn.ampproject.org/v0.js" - })), !( true && inAmpMode) && /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !hasAmphtmlRel && hybridAmp && /*#__PURE__*/ _react.default.createElement("link", { - rel: "amphtml", - href: canonicalBase + getAmpPath(ampPath, dangerousAsPath) - }), this.getBeforeInteractiveInlineScripts(), !optimizeCss && this.getCssLinks(files), !optimizeCss && /*#__PURE__*/ _react.default.createElement("noscript", { - "data-n-css": (_nonce = this.props.nonce) != null ? _nonce : "" - }), !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(), !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files), !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(), !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(), !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files), !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files), optimizeCss && this.getCssLinks(files), optimizeCss && /*#__PURE__*/ _react.default.createElement("noscript", { - "data-n-css": (_nonce1 = this.props.nonce) != null ? _nonce1 : "" - }), this.context.isDevelopment && // this element is used to mount development styles so the - // ordering matches production - // (by default, style-loader injects at the bottom of <head />) - /*#__PURE__*/ _react.default.createElement("noscript", { - id: "__next_css__DO_NOT_USE__" - }), styles || null), /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, {}, ...headTags || [])); - } -} -exports.Head = Head; -function handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props) { - var ref10, ref7, ref8, ref9; - if (!props.children) return; - const scriptLoaderItems = []; - const children = Array.isArray(props.children) ? props.children : [ - props.children - ]; - const headChildren = (ref10 = children.find((child)=>child.type === Head)) == null ? void 0 : (ref7 = ref10.props) == null ? void 0 : ref7.children; - const bodyChildren = (ref8 = children.find((child)=>child.type === "body")) == null ? void 0 : (ref9 = ref8.props) == null ? void 0 : ref9.children; - // Scripts with beforeInteractive can be placed inside Head or <body> so children of both needs to be traversed - const combinedChildren = [ - ...Array.isArray(headChildren) ? headChildren : [ - headChildren - ], - ...Array.isArray(bodyChildren) ? bodyChildren : [ - bodyChildren - ], - ]; - _react.default.Children.forEach(combinedChildren, (child)=>{ - var ref; - if (!child) return; - // When using the `next/script` component, register it in script loader. - if ((ref = child.type) == null ? void 0 : ref.__nextScript) { - if (child.props.strategy === "beforeInteractive") { - scriptLoader.beforeInteractive = (scriptLoader.beforeInteractive || []).concat([ - { - ...child.props - }, - ]); - return; - } else if ([ - "lazyOnload", - "afterInteractive", - "worker" - ].includes(child.props.strategy)) { - scriptLoaderItems.push(child.props); - return; - } - } - }); - __NEXT_DATA__.scriptLoader = scriptLoaderItems; -} -class NextScript extends _react.default.Component { - static contextType = _htmlContext.HtmlContext; - getDynamicChunks(files) { - return getDynamicChunks(this.context, this.props, files); - } - getPreNextScripts() { - return getPreNextScripts(this.context, this.props); - } - getScripts(files) { - return getScripts(this.context, this.props, files); - } - getPolyfillScripts() { - return getPolyfillScripts(this.context, this.props); - } - static getInlineScriptSource(context) { - const { __NEXT_DATA__ , largePageDataBytes } = context; - try { - const data = JSON.stringify(__NEXT_DATA__); - const bytes = false ? 0 : Buffer.from(data).byteLength; - const prettyBytes = (__webpack_require__(5955)/* ["default"] */ .Z); - if (largePageDataBytes && bytes > largePageDataBytes) { - console.warn(`Warning: data for page "${__NEXT_DATA__.page}"${__NEXT_DATA__.page === context.dangerousAsPath ? "" : ` (path "${context.dangerousAsPath}")`} is ${prettyBytes(bytes)} which exceeds the threshold of ${prettyBytes(largePageDataBytes)}, this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data`); - } - return (0, _htmlescape).htmlEscapeJsonString(data); - } catch (err) { - if ((0, _isError).default(err) && err.message.indexOf("circular structure") !== -1) { - throw new Error(`Circular structure in "getInitialProps" result of page "${__NEXT_DATA__.page}". https://nextjs.org/docs/messages/circular-structure`); - } - throw err; - } - } - render() { - const { assetPrefix , inAmpMode , buildManifest , unstable_runtimeJS , docComponentsRendered , devOnlyCacheBusterQueryString , disableOptimizedLoading , crossOrigin , } = this.context; - const disableRuntimeJS = unstable_runtimeJS === false; - docComponentsRendered.NextScript = true; - if ( true && inAmpMode) { - if (true) { - return null; - } - const ampDevFiles = [ - ...buildManifest.devFiles, - ...buildManifest.polyfillFiles, - ...buildManifest.ampDevFiles, - ]; - return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, disableRuntimeJS ? null : /*#__PURE__*/ _react.default.createElement("script", { - id: "__NEXT_DATA__", - type: "application/json", - nonce: this.props.nonce, - crossOrigin: this.props.crossOrigin || crossOrigin, - dangerouslySetInnerHTML: { - __html: NextScript.getInlineScriptSource(this.context) - }, - "data-ampdevmode": true - }), ampDevFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("script", { - key: file, - src: `${assetPrefix}/_next/${file}${devOnlyCacheBusterQueryString}`, - nonce: this.props.nonce, - crossOrigin: this.props.crossOrigin || crossOrigin, - "data-ampdevmode": true - }))); - } - if (false) {} - const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, true && inAmpMode); - return /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, !disableRuntimeJS && buildManifest.devFiles ? buildManifest.devFiles.map((file)=>/*#__PURE__*/ _react.default.createElement("script", { - key: file, - src: `${assetPrefix}/_next/${encodeURI(file)}${devOnlyCacheBusterQueryString}`, - nonce: this.props.nonce, - crossOrigin: this.props.crossOrigin || crossOrigin - })) : null, disableRuntimeJS ? null : /*#__PURE__*/ _react.default.createElement("script", { - id: "__NEXT_DATA__", - type: "application/json", - nonce: this.props.nonce, - crossOrigin: this.props.crossOrigin || crossOrigin, - dangerouslySetInnerHTML: { - __html: NextScript.getInlineScriptSource(this.context) - } - }), disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(), disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(), disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files), disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files)); - } -} -exports.NextScript = NextScript; -function Html(props) { - const { inAmpMode , docComponentsRendered , locale , scriptLoader , __NEXT_DATA__ , } = (0, _react).useContext(_htmlContext.HtmlContext); - docComponentsRendered.Html = true; - handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props); - return /*#__PURE__*/ _react.default.createElement("html", Object.assign({}, props, { - lang: props.lang || locale || undefined, - amp: true && inAmpMode ? "" : undefined, - "data-ampdevmode": true && inAmpMode && "production" !== "production" ? 0 : undefined - })); -} -function Main() { - const { docComponentsRendered } = (0, _react).useContext(_htmlContext.HtmlContext); - docComponentsRendered.Main = true; - // @ts-ignore - return /*#__PURE__*/ _react.default.createElement("next-js-internal-body-render-target", null); -} -// Add a special property to the built-in `Document` component so later we can -// identify if a user customized `Document` is used or not. -const InternalFunctionDocument = function InternalFunctionDocument() { - return /*#__PURE__*/ _react.default.createElement(Html, null, /*#__PURE__*/ _react.default.createElement(Head, null), /*#__PURE__*/ _react.default.createElement("body", null, /*#__PURE__*/ _react.default.createElement(Main, null), /*#__PURE__*/ _react.default.createElement(NextScript, null))); -}; -Document[_constants.NEXT_BUILTIN_DOCUMENT] = InternalFunctionDocument; //# sourceMappingURL=_document.js.map - - -/***/ }), - -/***/ 676: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = isError; -exports.getProperError = getProperError; -var _isPlainObject = __webpack_require__(8524); -function isError(err) { - return typeof err === "object" && err !== null && "name" in err && "message" in err; -} -function getProperError(err) { - if (isError(err)) { - return err; - } - if (false) {} - return new Error((0, _isPlainObject).isPlainObject(err) ? JSON.stringify(err) : err + ""); -} - -//# sourceMappingURL=is-error.js.map - -/***/ }), - -/***/ 5955: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Z = prettyBytes; -function prettyBytes(number, options) { - if (!Number.isFinite(number)) { - throw new TypeError(`Expected a finite number, got ${typeof number}: ${number}`); - } - options = Object.assign({}, options); - if (options.signed && number === 0) { - return " 0 B"; - } - const isNegative = number < 0; - const prefix = isNegative ? "-" : options.signed ? "+" : ""; - if (isNegative) { - number = -number; - } - if (number < 1) { - const numberString = toLocaleString(number, options.locale); - return prefix + numberString + " B"; - } - const exponent = Math.min(Math.floor(Math.log10(number) / 3), UNITS.length - 1); - number = Number((number / Math.pow(1000, exponent)).toPrecision(3)); - const numberString = toLocaleString(number, options.locale); - const unit = UNITS[exponent]; - return prefix + numberString + " " + unit; -} -/* -MIT License - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ const UNITS = [ - "B", - "kB", - "MB", - "GB", - "TB", - "PB", - "EB", - "ZB", - "YB" -]; -/* -Formats the given number using `Number#toLocaleString`. -- If locale is a string, the value is expected to be a locale-key (for example: `de`). -- If locale is true, the system default locale is used for translation. -- If no value for locale is specified, the number is returned unmodified. -*/ const toLocaleString = (number, locale)=>{ - let result = number; - if (typeof locale === "string") { - result = number.toLocaleString(locale); - } else if (locale === true) { - result = number.toLocaleString(); - } - return result; -}; - -//# sourceMappingURL=pretty-bytes.js.map - -/***/ }), - -/***/ 6859: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -module.exports = __webpack_require__(3105) - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6926.js b/dsql-app/.local_dist/server/chunks/6926.js deleted file mode 100644 index b18beef..0000000 --- a/dsql-app/.local_dist/server/chunks/6926.js +++ /dev/null @@ -1,100 +0,0 @@ -"use strict"; -exports.id = 6926; -exports.ids = [6926]; -exports.modules = { - -/***/ 6926: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -const nodemailer = __webpack_require__(5184); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -let transporter = nodemailer.createTransport({ - host: process.env.DSQL_MAIL_HOST, - port: 465, - secure: true, - auth: { - user: process.env.DSQL_MAIL_EMAIL, - pass: process.env.DSQL_MAIL_PASSWORD - } -}); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # Handle mails - * @param {object} mailObject - Mail Object with params - * @param {string} [mailObject.to] - who is recieving this email? Comma separated for multiple recipients - * @param {string} [mailObject.subject] - Mail Subject - * @param {string} [mailObject.text] - Mail text - * @param {string} [mailObject.html] - Mail HTML - * @param {string | null} [mailObject.alias] - Sender alias: "support" or null - * - * @returns {Promise<any>} mail object - */ module.exports = async function handleNodemailer({ to , subject , text , html , alias , }) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!process.env.DSQL_MAIL_HOST || !process.env.DSQL_MAIL_EMAIL || !process.env.DSQL_MAIL_PASSWORD) { - return null; - } - const sender = (()=>{ - if (alias?.match(/support/i)) return process.env.DSQL_MAIL_EMAIL; - return process.env.DSQL_MAIL_EMAIL; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let sentMessage; - if (!fs.existsSync("./email/index.html")) { - return; - } - let mailRoot = fs.readFileSync("./email/index.html", "utf8"); - let finalHtml = mailRoot.replace(/{{email_body}}/, html ? html : "").replace(/{{issue_date}}/, Date().substring(0, 24)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - let mailObject = {}; - mailObject["from"] = `"Datasquirel" <${sender}>`; - mailObject["sender"] = sender; - if (alias) mailObject["replyTo "] = sender; - // mailObject["priority"] = "high"; - mailObject["to"] = to; - mailObject["subject"] = subject; - mailObject["text"] = text; - mailObject["html"] = finalHtml; - // send mail with defined transport object - let info = await transporter.sendMail(mailObject); - sentMessage = info; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - console.log("ERROR in handleNodemailer Function =>", error.message); - // serverError({ - // component: "handleNodemailer", - // message: error.message, - // user: { email: to }, - // }); - } - return sentMessage; -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6946.js b/dsql-app/.local_dist/server/chunks/6946.js new file mode 100644 index 0000000..1d60bcf --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/6946.js @@ -0,0 +1,16 @@ +"use strict";exports.id=6946,exports.ids=[6946],exports.modules={98968:(e,t,a)=>{a(29021),a(28187);let s=a(77538),r=a(51348),i=a(47670);e.exports=async function({query:e,user:t}){try{let{invite:a,database_access:s,priviledge:l,email:n}=e,o=await r("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[a,n]);if(!o||!o[0])throw Error("No Invitation Found");let u=await r("SELECT first_name,last_name,email FROM users WHERE id=?",[a]);if(u?.[0]){let e=await r("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[a,t.id,n]);if(e?.[0])console.log("User already added");else{i({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:a,invited_user_id:t.id,database_access:s,first_name:t.first_name,last_name:t.last_name,phone:t.phone,email:t.email,username:t.username,user_type:"admin",user_priviledge:l,image:t.image,image_thumbnail:t.image_thumbnail}});let e=await r("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[a,n]);if(await r("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[a,t.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e<s.length;e++){let[r,n]=s[e].split("-");await i({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:t.id,root_user_id:a,database:r,table:n,priviledge:l}})}}}await r("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[a,n])}}catch(e){s({component:"addAdminUserOnLogin",message:e.message,user:t})}}},79531:(e,t,a)=>{let s=a(29021),r=a(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:t,text:a,html:i,alias:l}){let n;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(l?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let u=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${o}>`,s.sender=o,l&&(s["replyTo "]=o),s.to=e,s.subject=t,s.text=a,s.html=u,n=await r.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return n}},77538:(e,t,a)=>{let s=a(29021),{IncomingMessage:r}=a(81630);e.exports=async function({user:e,message:t,component:a,noMail:r,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],a=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],r=a||s||t||i.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(r+=` +URL: ${i.url}`),i?.body&&(r+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),n&&(r+=` +IP: ${n}`),r+=` +Date: ${l.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",r),s.appendFileSync("./.tmp/error.log",` + + + + +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},36946:(e,t,a)=>{let s=a(29021),r=a(98968),i=a(79531),{ServerResponse:l}=a(81630),n=a(33873),o=a(5194),u=a(57638),d=a(82703),c=a(47670);async function m({user:e,social_platform:t,res:a,invitation:s,database:i,additionalFields:l}){let n=await u({database:i||"datasquirel",queryString:`SELECT * FROM users WHERE email='${e.email}' AND social_id='${e.social_id}' AND social_platform='${t}'`});if(!n?.[0])return{success:!1,user:null};let o=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),c={id:n[0].id,type:n[0].type||"",stripe_id:n[0].stripe_id||"",first_name:n[0].first_name,last_name:n[0].last_name,username:n[0].username,email:n[0].email,social_id:n[0].social_id,image:n[0].image,image_thumbnail:n[0].image_thumbnail,verification_status:n[0].verification_status,social_login:n[0].social_login,social_platform:n[0].social_platform,csrf_k:o,logged_in_status:!0,date:Date.now()};l&&Object.keys(l).length>0&&Object.keys(l).forEach(e=>{c[e]=n[0][e]});let m=d(JSON.stringify(c));return a?.setHeader&&a.setHeader("Set-Cookie",[`datasquirelAuthKey=${m};samesite=strict;path=/;HttpOnly=true;Secure=true`,`csrf=${o};samesite=strict;path=/;HttpOnly=true`]),s&&(!i||i?.match(/^datasquirel$/))&&r({query:s,user:c}),{success:!0,user:c}}e.exports=async function({database:e,social_id:t,email:a,social_platform:r,payload:l,res:_,invitation:p,supEmail:g,additionalFields:S}){try{let E=await u({database:e||"datasquirel",queryString:"SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? ",queryValuesArray:[t.toString(),r]});if(E&&E[0])return await m({user:E[0],social_platform:r,res:_,invitation:p,database:e,additionalFields:S});let f=a||g||null;if(!f)return{success:!1,user:null,msg:"No Email Present",social_id:t,social_platform:r,payload:l};let y=await u({database:e||"datasquirel",queryString:`SELECT * FROM users WHERE email='${f}'`});if(y&&y[0])return{user:null,msg:"This Email is already taken",alert:!0};let b=await u({database:e||"datasquirel",queryString:`SELECT * FROM users WHERE email='${f}' AND social_login='1' AND social_platform='${r}' AND social_id='${t}'`});if(b&&b[0])return await m({user:l,social_platform:r,res:_,invitation:p,database:e,additionalFields:S});let h=d(t.toString()),D={social_login:"1",verification_status:g?"0":"1",password:h};Object.keys(l).forEach(e=>{D[e]=l[e]});let R=await c({dbContext:e?"Dsql User":void 0,paradigm:e?"Full Access":void 0,dbFullName:e||"datasquirel",tableName:"users",duplicateColumnName:"email",duplicateColumnValue:f,data:{...D,email:f}});if(!R?.insertId)return console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>",R),{success:!1,user:null,msg:"Social User Failed to insert in 'handleSocialDb.js' backend function => ",newUser:R};{e||await o({userId:R.insertId});let t=await u({database:e||"datasquirel",queryString:`SELECT * FROM users WHERE id='${R.insertId}'`});if(!t||!t[0])return{user:null,msg:"User Insertion Failed!"};if(g&&e?.match(/^datasquirel$/)){let e=d(JSON.stringify({id:R.insertId,email:g,dateCode:Date.now()}));i({to:g,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:s.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,e||"")}).then(e=>{})}let a=process.env.DSQL_STATIC_SERVER_DIR;if(!a)return console.log("Static File ENV not Found!"),null;if(!e||e?.match(/^datasquirel$/)){let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${R.insertId}`,t=n.join(a,`images/user-images/user-${R.insertId}`);s.mkdirSync(e),s.mkdirSync(t),s.writeFileSync(`${e}/main.json`,JSON.stringify([]),"utf8")}return await m({user:t[0],social_platform:r,res:_,invitation:p,database:e,additionalFields:S})}}catch(e){return console.log("ERROR in 'handleSocialDb.js' backend function =>",e.message),{success:!1,user:null,error:e.message}}return{user:null,msg:"User Login Failed!"}}},5194:(e,t,a)=>{let s=a(47795),r=a(51348),i=a(45356),l=a(82703),n=a(47670);e.exports=async function({userId:e}){try{let t=process.env.DSQL_DB_HOST||"127.0.0.1",a=`dsql_user_${e}`,o=s.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),u=l(o);await i(`CREATE USER IF NOT EXISTS '${a}'@'127.0.0.1' IDENTIFIED BY '${o}' REQUIRE SSL`),await r("UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",[a,u,e]),await n({tableName:"mariadb_users",data:{user_id:e,username:a,host:t,password:u,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master"}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},72907:(e,t,a)=>{let{scryptSync:s,createDecipheriv:r}=a(55511),{Buffer:i}=a(79428);e.exports=e=>{let t=r("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let a=t.update(e,"hex","utf8");return a+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,t,a)=>{let s=a(72907),r=a(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let i=0;i<e.length;i++){let l=e[i],n=Object.keys(l);for(let e=0;e<n.length;e++){let a=n[e],i=t?.fields[e];if(a?.match(r))continue;let o=l[a];("number"==typeof o||o)&&i?.encrypted&&o?.match(/./)&&(l[a]=s(o))}a.push(l)}return a}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},57638:(e,t,a)=>{a(29021);let s=a(6061),r=a(48225),i=a(51348),l=a(21339);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:n}){let o;let u=!!a?.match(/^datasquirel$/),d=u?i:l;try{o=e&&t&&Array.isArray(t)&&t[0]?u?await d(e,t):await d({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):u?await d(e):await d({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&n)try{let e=o;return await s({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},45356:(e,t,a)=>{let s=a(9973),r=a(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:r()}});e.exports=function(...e){try{return new Promise((t,a)=>{i.query(...e).then(e=>{i.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{i.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/6968.js b/dsql-app/.local_dist/server/chunks/6968.js deleted file mode 100644 index f91fb38..0000000 --- a/dsql-app/.local_dist/server/chunks/6968.js +++ /dev/null @@ -1,381 +0,0 @@ -"use strict"; -exports.id = 6968; -exports.ids = [6968]; -exports.modules = { - -/***/ 7839: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -const addAdminUserOnLogin = __webpack_require__(613); -const handleNodemailer = __webpack_require__(6926); -const { ServerResponse } = __webpack_require__(3685); -const path = __webpack_require__(1017); -const addMariadbUser = __webpack_require__(4294); -const varDatabaseDbHandler = __webpack_require__(1311); -const encrypt = __webpack_require__(7547); -const addDbEntry = __webpack_require__(5338); -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * @typedef {object} FunctionReturn - * @property {boolean} success - Did the operation complete successfully or not? - * @property {{ - * id: number, - * first_name: string, - * last_name: string, - * }|null} user - User payload object: or "null" - */ /** - * Handle Social User Auth on Datasquirel Database - * ============================================================================== - * - * @description This function handles all social login logic after the social user - * has been authenticated and userpayload is present. The payload MUST contain the - * specified fields because this funciton will create a new user if the authenticated - * user does not exist. - * - * @param {{ - * database?: string, - * social_id: string|number, - * email: string, - * social_platform: string, - * payload: any, - * res?: ServerResponse, - * invitation?: any, - * supEmail?: string, - * additionalFields?: object, - * }} params - function parameters inside an object - * - * @returns {Promise<any>} - Response object - */ module.exports = async function handleSocialDb({ database , social_id , email , social_platform , payload , res , invitation , supEmail , additionalFields , }) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - try { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - let existingSocialIdUser = await varDatabaseDbHandler({ - database: database ? database : "datasquirel", - queryString: `SELECT * FROM users WHERE social_id = ? AND social_login='1' AND social_platform = ? `, - queryValuesArray: [ - social_id.toString(), - social_platform - ] - }); - if (existingSocialIdUser && existingSocialIdUser[0]) { - return await loginSocialUser({ - user: existingSocialIdUser[0], - social_platform, - res, - invitation, - database, - additionalFields - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const finalEmail = email ? email : supEmail ? supEmail : null; - if (!finalEmail) { - return { - success: false, - user: null, - msg: "No Email Present", - social_id, - social_platform, - payload - }; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - let existingEmailOnly = await varDatabaseDbHandler({ - database: database ? database : "datasquirel", - queryString: `SELECT * FROM users WHERE email='${finalEmail}'` - }); - if (existingEmailOnly && existingEmailOnly[0]) { - return { - user: null, - msg: "This Email is already taken", - alert: true - }; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const foundUser = await varDatabaseDbHandler({ - database: database ? database : "datasquirel", - queryString: `SELECT * FROM users WHERE email='${finalEmail}' AND social_login='1' AND social_platform='${social_platform}' AND social_id='${social_id}'` - }); - if (foundUser && foundUser[0]) { - return await loginSocialUser({ - user: payload, - social_platform, - res, - invitation, - database, - additionalFields - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const socialHashedPassword = encrypt(social_id.toString()); - /** @type {any} */ const data = { - social_login: "1", - verification_status: supEmail ? "0" : "1", - password: socialHashedPassword - }; - Object.keys(payload).forEach((key)=>{ - data[key] = payload[key]; - }); - /** @type {any} */ const newUser = await addDbEntry({ - dbContext: database ? "Dsql User" : undefined, - paradigm: database ? "Full Access" : undefined, - dbFullName: database ? database : "datasquirel", - tableName: "users", - duplicateColumnName: "email", - duplicateColumnValue: finalEmail, - data: { - ...data, - email: finalEmail - } - }); - if (newUser?.insertId) { - if (!database) { - /** - * Add a Mariadb User for this User - */ await addMariadbUser({ - userId: newUser.insertId - }); - } - const newUserQueried = await varDatabaseDbHandler({ - database: database ? database : "datasquirel", - queryString: `SELECT * FROM users WHERE id='${newUser.insertId}'` - }); - if (!newUserQueried || !newUserQueried[0]) return { - user: null, - msg: "User Insertion Failed!" - }; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (supEmail && database?.match(/^datasquirel$/)) { - /** - * Send email Verification - * - * @description Send verification email to newly created agent - */ let generatedToken = encrypt(JSON.stringify({ - id: newUser.insertId, - email: supEmail, - dateCode: Date.now() - })); - handleNodemailer({ - to: supEmail, - subject: "Verify Email Address", - text: "Please click the link to verify your email address", - html: fs.readFileSync("./email/send-email-verification-link.html", "utf8").replace(/{{host}}/, process.env.DSQL_HOST || "").replace(/{{token}}/, generatedToken || "") - }).then((mail)=>{}); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return null; - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ if (!database || database?.match(/^datasquirel$/)) { - let newUserSchemaFolderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${newUser.insertId}`; - let newUserMediaFolderPath = path.join(STATIC_ROOT, `images/user-images/user-${newUser.insertId}`); - fs.mkdirSync(newUserSchemaFolderPath); - fs.mkdirSync(newUserMediaFolderPath); - fs.writeFileSync(`${newUserSchemaFolderPath}/main.json`, JSON.stringify([]), "utf8"); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - return await loginSocialUser({ - user: newUserQueried[0], - social_platform, - res, - invitation, - database, - additionalFields - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } else { - console.log("Social User Failed to insert in 'handleSocialDb.js' backend function =>", newUser); - return { - success: false, - user: null, - msg: "Social User Failed to insert in 'handleSocialDb.js' backend function => ", - newUser: newUser - }; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log("ERROR in 'handleSocialDb.js' backend function =>", error.message); - return { - success: false, - user: null, - error: error.message - }; - // serverError({ - // component: "/functions/backend/social-login/handleSocialDb.js - main-catch-error", - // message: error.message, - // user: { first_name, last_name }, - // }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - return { - user: null, - msg: "User Login Failed!" - }; -}; -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Function to login social user - * ============================================================================== - * @description This function logs in the user after 'handleSocialDb' function finishes - * the user creation or confirmation process - * - * @async - * - * @param {object} params - function parameters inside an object - * @param {{ - * first_name: string, - * last_name: string, - * email: string, - * social_id: string|number, - * }} params.user - user object - * @param {string} params.social_platform - Whether its "google" or "facebook" or "github" - * @param {ServerResponse} [params.res] - Https response object - * @param {any} [params.invitation] - A query object if user was invited - * @param {string} [params.database] - Target Database - * @param {object} [params.additionalFields] - Additional fields to be added to the user payload - * - * @returns {Promise<any>} - */ async function loginSocialUser({ user , social_platform , res , invitation , database , additionalFields , }) { - const foundUser = await varDatabaseDbHandler({ - database: database ? database : "datasquirel", - queryString: `SELECT * FROM users WHERE email='${user.email}' AND social_id='${user.social_id}' AND social_platform='${social_platform}'` - }); - if (!foundUser?.[0]) return { - success: false, - user: null - }; - let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2); - /** @type {any} */ let userPayload = { - id: foundUser[0].id, - type: foundUser[0].type || "", - stripe_id: foundUser[0].stripe_id || "", - first_name: foundUser[0].first_name, - last_name: foundUser[0].last_name, - username: foundUser[0].username, - email: foundUser[0].email, - social_id: foundUser[0].social_id, - image: foundUser[0].image, - image_thumbnail: foundUser[0].image_thumbnail, - verification_status: foundUser[0].verification_status, - social_login: foundUser[0].social_login, - social_platform: foundUser[0].social_platform, - csrf_k: csrfKey, - logged_in_status: true, - date: Date.now() - }; - if (additionalFields && Object.keys(additionalFields).length > 0) { - Object.keys(additionalFields).forEach((key)=>{ - userPayload[key] = foundUser[0][key]; - }); - } - let encryptedPayload = encrypt(JSON.stringify(userPayload)); - if (res?.setHeader) { - res.setHeader("Set-Cookie", [ - `datasquirelAuthKey=${encryptedPayload};samesite=strict;path=/;HttpOnly=true;Secure=true`, - `csrf=${csrfKey};samesite=strict;path=/;HttpOnly=true`, - ]); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (invitation && (!database || database?.match(/^datasquirel$/))) { - addAdminUserOnLogin({ - query: invitation, - user: userPayload - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - return { - success: true, - user: userPayload - }; -} - - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7023.js b/dsql-app/.local_dist/server/chunks/7023.js deleted file mode 100644 index 166f857..0000000 --- a/dsql-app/.local_dist/server/chunks/7023.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -exports.id = 7023; -exports.ids = [7023]; -exports.modules = { - -/***/ 7023: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -// const handleNodemailer = require("./handleNodemailer"); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * user?: { id?: number | string, first_name?: string, last_name?: string, email?: string } & *, - * message: string, - * component?: string, - * noMail?: boolean, - * }} params - user id - * - * @returns {Promise<void>} - */ module.exports = async function serverError({ user , message , component , noMail , }) { - const log = `🚀 SERVER ERROR ===========================\nUser Id: ${user?.id}\nUser Name: ${user?.first_name} ${user?.last_name}\nUser Email: ${user?.email}\nError Message: ${message}\nComponent: ${component}\nDate: ${Date()}\n========================================`; - if (!fs.existsSync(`./.tmp/error.log`)) { - fs.writeFileSync(`./.tmp/error.log`, "", "utf-8"); - } - const initialText = fs.readFileSync(`./.tmp/error.log`, "utf-8"); - fs.writeFileSync(`./.tmp/error.log`, log); - fs.appendFileSync(`./.tmp/error.log`, `\n\n\n\n\n${initialText}`); -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7037.js b/dsql-app/.local_dist/server/chunks/7037.js deleted file mode 100644 index a9b174e..0000000 --- a/dsql-app/.local_dist/server/chunks/7037.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -exports.id = 7037; -exports.ids = [7037]; -exports.modules = { - -/***/ 7037: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormAlertBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string | undefined | null} props.message - */ function FormAlertBlock({ message }) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/warning.png", - alt: "Warning Image Icon", - width: 22, - className: "-my-2" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: message - }) - ] - }); -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7070.js b/dsql-app/.local_dist/server/chunks/7070.js new file mode 100644 index 0000000..ae65c8a --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7070.js @@ -0,0 +1 @@ +"use strict";exports.id=7070,exports.ids=[7070],exports.modules={58548:(e,s,t)=>{t.d(s,{A:()=>l});var a=t(8732),n=t(82015),r=t.n(n);function l({confirmedDelegetedUser:e,linksArray:s,user:t}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);let[n,l]=r().useState(s||null);return n&&n[1]?(0,a.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,s,t)=>s===n.length-1?(0,a.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,a.jsxs)(r().Fragment,{children:[(0,a.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,a.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,a.jsx)(r().Fragment,{})}},36605:(e,s,t)=>{t.d(s,{A:()=>x});var a=t(8732),n=t(82015),r=t.n(n);t(63715);var l=t(86152),i=t(32415),c=t(26406),o=t(66916),d=t(66918);function x(e){let[s,t]=r().useState(!0),[n,x]=r().useState(0),[m,h]=r().useState(0);return s?(0,a.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,a.jsx)(i.A,{width:"15px",position:"relative"})}):(0,a.jsx)(r().Fragment,{children:n?(0,a.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{t(!0),(0,l.A)().then(()=>{h(e=>e+1),t(!1)})},children:[s&&(0,a.jsx)(i.A,{width:"15px"}),(0,a.jsx)(o.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,a.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:n&&n.toFixed(2)}),(0,a.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,a.jsx)(d.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,a.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,a.jsx)(c.A,{color:"inherit",className:"opacity-50 text-slate-500",fontSize:"small"}),(0,a.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},20048:(e,s,t)=>{t(81630);let a=t(67216),n=t(83007),r=t(29021);async function l(e,s,t,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let c=JSON.parse(i);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!r.existsSync(`${o}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=l},86152:(e,s,t)=>{t.d(s,{A:()=>n});var a=t(63715);async function n(){let e=await (0,a.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},72377:e=>{e.exports=function(e,s){return s?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},95222:(e,s,t)=>{t.d(s,{A:()=>w});var a=t(8732),n=t(82015),r=t.n(n),l=t(27912),i=t.n(l);t(64699);var c=t(93353),o=t(52070),d=t(34637),x=t(83158),m=t(25294),h=t(92441),u=t(29743),p=t(10643),j=t(10321),g=t(72377),f=t.n(g);function v({user:e}){let[s,t]=r().useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),children:[(0,a.jsx)(c.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:t}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/databases`,"data-currentlink":`/admin/${e?.id}/databases`,children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Databases"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/media`,"data-currentlink":`/admin/${e?.id}/media`,children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Media"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/users`,"data-currentlink":`/admin/${e?.id}/users`,children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/schema`,"data-currentlink":`/admin/${e?.id}/schema`,children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Schema"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/api-keys`,"data-currentlink":`/admin/${e?.id}/api-keys`,children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"API Keys"})]}),(0,a.jsxs)("a",{href:`/admin/${e?.id}/connect`,"data-currentlink":`/admin/${e?.id}/connect`,children:[(0,a.jsx)(p.A,{size:20}),(0,a.jsx)("span",{children:"Connect"})]}),f()(e)&&(0,a.jsx)(r().Fragment,{children:(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"Super Admin User"})]})}),(0,a.jsx)("hr",{className:"opacity-80"}),(0,a.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,a.jsx)("a",{href:`/admin/${e?.id}/settings`,"data-currentlink":`/admin/${e?.id}/settings`,children:(0,a.jsx)("span",{children:"Settings"})}),(0,a.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,a.jsx)("span",{children:"Documentation"})}),(0,a.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,a.jsx)("span",{children:"Logout"})})]})]})]})}t(20681);var y=t(49538);function b({user:e,extraHeaderContent:s}){let[t,n]=r().useState(e||null);return(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,a.jsx)("div",{className:"gap-6",children:s}),(0,a.jsx)(y.A,{activeUser:t})]})]}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");s?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}t(54896);var S=t(36605);function w({children:e,head:s,user:t,productionEnvironment:n,extraHeaderContent:l,aceEditor:o}){return l||(l=(0,a.jsx)(S.A,{})),(0,a.jsxs)(r().Fragment,{children:[(0,a.jsxs)(i(),{children:[s,(0,a.jsxs)(r().Fragment,{children:[(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,a.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(v,{user:t}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(b,{user:t,extraHeaderContent:l}),(0,a.jsx)("div",{className:"admin-content",children:e}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,a.jsx)(c.A,{})}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}t(63715)},83007:(e,s,t)=>{let{scryptSync:a,createDecipheriv:n}=t(55511),{Buffer:r}=t(79428);e.exports=e=>{let s=n("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),r.alloc(16,0));try{let t=s.update(e,"hex","utf8");return t+=s.final("utf8")}catch(e){return null}}},67216:(e,s,t)=>{let a=t(9973),n=t(31976),r=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function l(...e){try{let s=await r.query(...e);return await r.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},31976:(e,s,t)=>{let a=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!a.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,s,t)=>{t.r(s),t.d(s,{default:()=>r});var a=t(8732);t(82015);var n=t(20883);function r(e){return(0,a.jsxs)(n.Html,{lang:"en",children:[(0,a.jsxs)(n.Head,{children:[(0,a.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,a.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,a.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,a.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,a.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,a.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,a.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,a.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)(n.Main,{}),(0,a.jsx)(n.NextScript,{})]})]})}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/722.js b/dsql-app/.local_dist/server/chunks/722.js deleted file mode 100644 index adc3baf..0000000 --- a/dsql-app/.local_dist/server/chunks/722.js +++ /dev/null @@ -1,101 +0,0 @@ -"use strict"; -exports.id = 722; -exports.ids = [722]; -exports.modules = { - -/***/ 722: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports - * ============================================================================== - */ -const https = __webpack_require__(5687); -const http = __webpack_require__(3685); -const { URL } = __webpack_require__(7310); -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * Main Function - * ============================================================================== - * @param {{ - * scheme?: string, - * url?: string, - * method?: string, - * hostname?: string, - * path?: string, - * port?: number | string, - * headers?: object, - * body?: object, - * }} params - params - */ module.exports = function httpsRequest({ url , method , hostname , path , headers , body , port , scheme , }) { - const reqPayloadString = body ? JSON.stringify(body) : null; - const PARSED_URL = url ? new URL(url) : null; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** @type {any} */ let requestOptions = { - method: method || "GET", - hostname: PARSED_URL ? PARSED_URL.hostname : hostname, - port: scheme?.match(/https/i) ? 443 : PARSED_URL ? PARSED_URL.protocol?.match(/https/i) ? 443 : PARSED_URL.port : port ? Number(port) : 80, - headers: {} - }; - if (path) requestOptions.path = path; - // if (href) requestOptions.href = href; - if (headers) requestOptions.headers = headers; - if (body) { - requestOptions.headers["Content-Type"] = "application/json"; - requestOptions.headers["Content-Length"] = reqPayloadString ? Buffer.from(reqPayloadString).length : undefined; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - return new Promise((res, rej)=>{ - const httpsRequest = (scheme?.match(/https/i) ? https : PARSED_URL?.protocol?.match(/https/i) ? https : http).request(/* ====== Request Options object ====== */ requestOptions, //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /* ====== Callback function ====== */ (response)=>{ - var str = ""; - // ## another chunk of data has been received, so append it to `str` - response.on("data", function(chunk) { - str += chunk; - }); - // ## the whole response has been received, so we just print it out here - response.on("end", function() { - res(str); - }); - response.on("error", (error)=>{ - console.log("HTTP response error =>", error.message); - rej(`HTTP response error =>, ${error.message}`); - }); - response.on("close", ()=>{ - console.log("HTTP(S) Response Closed Successfully"); - }); - }); - if (body) httpsRequest.write(reqPayloadString); - httpsRequest.on("error", (error)=>{ - console.log("HTTPS request ERROR =>", error.message); - rej(`HTTP request error =>, ${error.message}`); - }); - httpsRequest.end(); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - }); -}; ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7318.js b/dsql-app/.local_dist/server/chunks/7318.js new file mode 100644 index 0000000..fb6b6d1 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7318.js @@ -0,0 +1,17 @@ +"use strict";exports.id=7318,exports.ids=[7318],exports.modules={77802:(e,t,a)=>{a.d(t,{A:()=>F});var l=a(8732),s=a(82015),i=a.n(s);function r({tableFields:e,setTableFields:t,setRefresh:a,setPageRefresh:l,refreshFieldsListRef:s}){let i=e.findIndex(e=>"date_created"===e.fieldName);e.splice(i,0,{newTempField:!0}),t(e),s?.current&&s.current(e=>e+1)}a(80255);var d=a(39897),n=a(32415),o=a(64030),c=a(27825),m=a.n(c);function u({tableFields:e,setTableFields:t,refreshFieldsListRef:a,order:l,field:s,e:i}){let r=m().cloneDeep(e),d=r.findIndex(e=>e.fieldName===s.fieldName);if(d<0)return;let n=r[d];if("up"===l&&d&&d<=1){console.log("Min Reached =>",d);return}if("down"===l&&d&&d>=r.length-7){console.log("Max Reached =>",d);return}try{let e;let t=i.target.closest(".table-field-wrapper"),a=t.previousElementSibling,s=t.nextElementSibling,r=window.DSQL.Flip,d=r.getState(t);"up"===l?(e=r.getState(a),t.parentNode?.insertBefore(t,a)):s?.nextElementSibling&&(e=r.getState(s),t.parentNode?.insertBefore(t,s.nextElementSibling)),r.from(d,{duration:.3,ease:"power1.inOut"}),r.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!d){console.log("No target Field Index =>",d);return}r.splice(d,1),"up"===l?r.splice(d-1,0,n):r.splice(d+1,0,n),setTimeout(()=>{t([...r]),a.current&&a.current(e=>e+1)},500)}var p=a(64417),x=a(12097),h=a(63715);function f({field:e,setTargetField:t,fieldIndex:a,tableFields:s,setTableFields:r,refreshFieldsListRef:d,database:n,currentTable:c,user:m,isDelegated:u,setLoading:p}){let[f,g]=i().useState(e),[y,w]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(y?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(y?" rounded-t":" rounded")+(f.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(f.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:f.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:f.dataType}),f?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[f.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:f.foreignKey.destinationTableColumnName})," ",")"]})]}),f.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!u&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/))||f.foreignKey||n?.active_clone?.toString()?.match(/1/)?!u&&!f.fieldName?.match(o.A)&&f.dataType?.match(/INT/)&&!n?.active_clone?.toString()?.match(/1/)?(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:t=>{window.confirm("Delete this foreign Key?")&&(delete e.foreignKey,p(!0),(0,h.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:n.db_full_name,dbSlug:n.db_slug,delegated:!!window.location?.search?.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")}))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,l.jsx)(i().Fragment,{}):(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{y?w(!1):w(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),y&&!u&&(0,l.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,l.jsx)(x.A,{targetField:e,setFieldData:g,tableFields:s,setTableFields:r,database:n,currentTable:c,user:m,setActiveEdit:w,activeClonedTable:!0})})]})}var g=a(65388),y=a(84896);function w({fieldIndex:e,setTableFields:t,database:s,user:r,isNewField:d,setLiteralValue:n,tempFieldData:o,setTempFieldData:c,dataTypeValue:m,setDataTypeValue:u,dataType:p,setDataType:x,dataTypeDesc:h,setDataTypeDesc:f}){let w=a(43431);i().useRef();let b=!!p.match(/uuid/i);return(0,l.jsxs)(i().Fragment,{children:[d&&(0,l.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,l.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let t=e.target,a=t.value.toLowerCase().replace(/ /g,"_");t.value=a},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:h})})]})]}),(0,l.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,l.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let t=e.target;x(t.value),t.childNodes.forEach(e=>{e.value===t.value&&f(e.dataset.desc),e.value===t.value&&e.dataset.literal&&n(e.dataset.literal)})},children:w.map((e,t)=>e.name.match(/VARCHAR/)?(0,l.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(m||200)+")"},t+1):(0,l.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},t+1))}),p.match(/VARCHAR/)&&(0,l.jsx)("input",{type:"number",defaultValue:m,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{u(e.target.value)}})]})]}),p?.match(/text/i)&&(0,l.jsx)(i().Fragment,{children:(0,l.jsx)(y.A,{targetField:o})}),!b&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,l.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,l.jsx)("option",{value:"No",children:"No"}),(0,l.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!b&&(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,l.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!b&&(0,l.jsx)(g.A,{database:s,setFieldData:c,targetField:o,user:r,fieldIndex:e})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,l.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:a=>{t(t=>t.filter((t,a)=>a!=e))},children:"Cancel"})]})]})}function b({fieldIndex:e,tableFields:t,setTableFields:s,refreshFieldsListRef:r,database:d,currentTable:n,user:o}){a(43431);let[c,m]=i().useState("VARCHAR"),[u,p]=i().useState("200"),[x,h]=i().useState("Varchar is simply letters and numbers within the range 0 - 255"),[f,g]=i().useState({}),y=i().useRef(),[b,v]=i().useState(""),j=!!c.match(/uuid/i);return(0,l.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:y,children:(0,l.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:t=>{t.preventDefault();let a=f.foreignKey;a&&!a.destinationTableName&&delete f.foreignKey;let l=t.target,i=l.new_field_name.value,d=l.new_field_data_type.value,n=l.new_field_required?.value,o=l.new_field_default_value?.value,c=l.encryption_field?.value,m=l.rich_text_option?.value,p=l.foreign_key_field,x=l.foreign_key_destination_table_name,h=l.foreign_key_destination_table_column_name;p?.value;let g={...f,fieldName:i,dataType:f?.dataType&&f?.foreignKey?f.dataType:d?.match(/VARCHAR/)?`${d}(${u})`:d};n?.match(/yes/i)?g.notNullValue=!0:o?.match(/./)||(g.nullValue=!0),o?.match(/./)&&(g.defaultValue=o),c?.match(/yes/i)&&(g.encrypted=!0),h?.value?.match(/./i)&&!h?.value?.match(/^--$/i)&&(g.dataType=h.dataset.dataType,g.foreignKey={foreignKeyName:h.dataset.foreignKeyName,destinationTableName:x.dataset.destinationTableName,destinationTableColumnName:h.dataset.destinationTableColumnName,cascadeDelete:!0}),m?.match(/yes/i)&&(g.richText=!0),j?(g.defaultValueLiteral=b,g.nullValue=!1):delete g.defaultValueLiteral,console.log("newFieldObject",g),function({fieldIndex:e,setTableFields:t,refreshFieldsListRef:a,payload:l}){t(t=>(t.splice(e,1,l),t)),a?.current&&a.current(e=>e+1)}({fieldIndex:e,setTableFields:s,refreshFieldsListRef:r,payload:g})},children:(0,l.jsx)(w,{database:d,fieldIndex:e,isNewField:!0,literalValue:b,refreshFieldsListRef:r,setLiteralValue:v,setTableFields:s,user:o,currentTable:n,tableFields:t,tempFieldData:f,setTempFieldData:g,dataTypeValue:u,setDataTypeValue:p,dataType:c,setDataType:m,dataTypeDesc:x,setDataTypeDesc:h})})})}var v=a(62506),j=a(58526);function N({field:e,setTargetField:t,fieldIndex:a,tableFields:s,setTableFields:r,refreshFieldsListRef:d,database:n,currentTable:c,confirmedDelegetedUser:m,user:x}){let h=m?.delegated,f=m?.priviledges?.match(/Edit Tables/i);m?.priviledges?.match(/Delete Tables/i),m?.priviledges?.match(/Create Tables/i);let{active_clone:g,active_clone_parent_db:y,remote_connected:w}=n,[b,N]=i().useState(e),[_,T]=i().useState(!1);return(0,l.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(_?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(_?" rounded-t":" rounded")+(b.fieldName?.match(o.A)?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,l.jsx)("span",{className:"font-bold"+(b.fieldName?.match(o.A)?" dark:text-slate-500":" dark:text-white"),children:b.fieldName}),(0,l.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:b.dataType}),b?.foreignKey&&(0,l.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,l.jsx)("span",{children:"Foreign Key: "}),(0,l.jsxs)("span",{children:[b.foreignKey.destinationTableName," ("," ",(0,l.jsx)("b",{children:b.foreignKey.destinationTableColumnName})," ",")"]})]}),b.fieldName?.match(o.A)&&(0,l.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!b.fieldName?.match(o.A)&&!y&&!w&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!h||h&&f)&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)(v.A,{children:[(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{_?T(!1):T(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!y&&!w&&(0,l.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:t=>{window.confirm(`Delete "${e.fieldName}"?`)&&r(e=>e.filter((e,t)=>t!=a))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:t=>{u({tableFields:s,setTableFields:r,refreshFieldsListRef:d,order:"up",field:e,e:t})},children:(0,l.jsx)(j.A,{size:20})}),(0,l.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:t=>{u({tableFields:s,setTableFields:r,refreshFieldsListRef:d,order:"down",field:e,e:t})},children:(0,l.jsx)(j.A,{size:20})})]})]})})]}),_&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(p.A,{fieldIndex:a,tableFields:s,setTableFields:r,refreshFieldsListRef:d,targetField:e,setActiveEdit:T,database:n,currentTable:c,user:x})})]})}var _=a(63014);let T=1;function F({user:e,tableFields:t,setTableFields:a,setTargetField:s,refreshFieldsListRef:o,updateTable:c,updateTableAfterFieldsUpdateFunction:m,collapsed:u,database:p,table:x,confirmedDelegetedUser:h,query:g}){x?.childTable&&x.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),"");let y=h?.delegated,w=h?.priviledges?.match(/Edit Tables/i);h?.priviledges?.match(/Delete Tables/i),h?.priviledges?.match(/Create Tables/i);let{active_clone:v,active_clone_parent_db:j,remote_connected:F}=p,[S,A]=i().useState(0);o.current=A;let[C,k]=i().useState(!1),[D,$]=i().useState(u||!1);return y&&!w?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper green",children:[C&&(0,l.jsx)(n.A,{}),x?.childTable?(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"button outlined light-gray",onClick:t=>{let a=(0,_.A)({paradigm:"JavaScript",table:x,query:g,user:e});a&&navigator.clipboard.writeText(a).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:t=>{let a=(0,_.A)({paradigm:"TypeScript",table:x,query:g,user:e});a&&navigator.clipboard.writeText(a).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsx)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:t&&t[0]&&t.map((i,r)=>(T++,(0,l.jsx)(f,{field:i,fieldIndex:r,setTargetField:s,setTableFields:a,refreshFieldsListRef:o,tableFields:t,database:p,setLoading:k,currentTable:x,user:e,isDelegated:y},T)))}),u&&(0,l.jsx)(d.A,{collapse:D||!1,setCollapse:$})]}):(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,l.jsxs)("div",{children:[(!y||y&&w)&&!j&&!F&&(0,l.jsxs)("div",{className:"button secondary outlined",onClick:e=>{D&&$(!1),r({setTableFields:a,tableFields:t,setRefresh:A,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:t=>{if(!x)return;let a=(0,_.A)({paradigm:"JavaScript",table:x,query:g,user:e});a&&navigator.clipboard.writeText(a).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,l.jsx)("div",{className:"button outlined light-gray",onClick:t=>{if(!x)return;let a=(0,_.A)({paradigm:"TypeScript",table:x,query:g,user:e});a&&navigator.clipboard.writeText(a).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,l.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:D?{maxHeight:"200px"}:{},children:[t&&t[0]&&t.map((i,r)=>(T++,i.newTempField)?(0,l.jsx)(b,{fieldIndex:r,tableFields:t,setTableFields:a,refreshFieldsListRef:o,database:p,currentTable:x,user:e},T):(0,l.jsx)(N,{field:i,fieldIndex:r,setTargetField:s,setTableFields:a,refreshFieldsListRef:o,tableFields:t,database:p,currentTable:x,confirmedDelegetedUser:h,user:e},T)),(!y||y&&w)&&!j&&!F&&(0,l.jsxs)(i().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{D&&$(!1),r({setTableFields:a,tableFields:t,setRefresh:A,refreshFieldsListRef:o})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Field"})]}),c&&(0,l.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{k(!0),m&&m(k)},children:"Update Table Fields"})]})]}),u&&(0,l.jsx)(d.A,{collapse:D,setCollapse:$})]})]})}},63014:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(64030);function s({paradigm:e,table:t,query:a,user:s}){let i="";try{let s=`DSQL_${a.single}_${a.single_table}`.toUpperCase(),d=t.fields;function r(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let n=[],o=[];n.push(`type ${s} = {`),o.push(`/** + * @typedef {object} ${s}`),d.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(l.A)?"?":"";n.push(` ${e.fieldName}${t}: ${r(e.dataType||"")};`),o.push(` * @property {${r(e.dataType||"")}${t}} ${e.fieldName}`)}),n.push("}"),o.push(" */"),e?.match(/javascript/i)&&(i=o.join("\n")),e?.match(/typescript/i)&&(i=n.join("\n"))}catch(e){console.log(e.message),i=null}return i}},39897:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({collapse:e,setCollapse:t}){return(0,l.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:a=>{e?t(!1):t(!0)},children:[(0,l.jsx)("span",{children:e?"Expand":"Collapse"}),(0,l.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,l.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}a(82015)},43479:(e,t,a)=>{a.d(t,{A:()=>r});let l=a(68942),s=a(29021),i=a(33873);function r({userId:e}){try{let t=i.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return l({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},68942:(e,t,a)=>{let l=a(29021),{IncomingMessage:s}=a(81630);e.exports=async function({user:e,message:t,component:a,noMail:s,req:i}){let r=new Date,d=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],a=i.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],s=a||l||t||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${a}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(s+=` +URL: ${i.url}`),i?.body&&(s+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),d&&(s+=` +IP: ${d}`),s+=` +Date: ${r.toDateString()} +========================================`,l.existsSync("./.tmp/error.log")||l.writeFileSync("./.tmp/error.log","","utf-8");let n=l.readFileSync("./.tmp/error.log","utf-8");l.writeFileSync("./.tmp/error.log",s),l.appendFileSync("./.tmp/error.log",` + + + + +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},64030:(e,t,a)=>{a.d(t,{A:()=>l});let l=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7487.js b/dsql-app/.local_dist/server/chunks/7487.js deleted file mode 100644 index 5c55078..0000000 --- a/dsql-app/.local_dist/server/chunks/7487.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -exports.id = 7487; -exports.ids = [7487]; -exports.modules = { - -/***/ 7487: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(4824); -let NO_DB = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ // @ts-ignore -function NO_DB_HANDLER(...args) { - try { - return new Promise((resolve, reject)=>{ - NO_DB.query(...args).then((results)=>{ - NO_DB.end(); - resolve(JSON.parse(JSON.stringify(results))); - }).catch((err)=>{ - NO_DB.end(); - resolve({ - error: err.message, - sql: err.sql - }); - }); - }); - } catch (/** @type {any} */ error) { - return { - success: false, - error: error.message - }; - } -} -module.exports = NO_DB_HANDLER; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7488.js b/dsql-app/.local_dist/server/chunks/7488.js new file mode 100644 index 0000000..f7e9a11 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7488.js @@ -0,0 +1 @@ +"use strict";exports.id=7488,exports.ids=[7488],exports.modules={84851:(e,a,s)=>{let t;s.d(a,{A:()=>u});var l=s(8732),r=s(82015),i=s.n(r),n=s(63715),m=s(64535),d=s(32415),o=s(13737),c=s(77826);function u({targetDb:e,database:a,user:s,userImage:r,setUserImage:u}){let[p,x]=i().useState(null),[h,v]=i().useState(!1);return(0,l.jsxs)(i().Fragment,{children:[h&&(0,l.jsx)(d.A,{}),p&&(0,l.jsx)(m.A,{message:p}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,l.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,l.jsx)(o.A,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,l.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"username",children:"Username"}),(0,l.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:a=>{let s=a.target;s.value.match(/./)?(s.classList.remove("warning"),x(null)):s.classList.add("warning"),window.clearTimeout(t),t=setTimeout(()=>{(0,n.A)(`/api/checkDuplicateData?type=username&value=${s.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(x("Username Already Exists"),s.classList.add("warning")):(x(null),s.classList.remove("warning"))})},300)}})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,l.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:a=>{window.clearTimeout(t);let s=a.target;t=setTimeout(()=>{(0,n.A)(`/api/checkDuplicateData?type=email&value=${s.value}&tableName=users&dbFullName=${e}`).then(e=>{e?.result?(x("Email Already Exists"),s.classList.add("warning")):(x(null),s.classList.remove("warning"))})},300)},required:!0})]}),(0,l.jsx)(o.A,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,l.jsx)(o.A,{title:"Address",name:"address",autoComplete:"address"}),(0,l.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,l.jsx)(o.A,{title:"City",name:"city",autoComplete:"city"}),(0,l.jsx)(o.A,{title:"State",name:"state",autoComplete:"state"}),(0,l.jsx)(o.A,{title:"Country",name:"country",autoComplete:"country"}),(0,l.jsx)(o.A,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"password",children:"Password"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,l.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{let a=e.target;a.closest("form")?.password.value===a.value?a.classList.remove("warning"):a.classList.add("warning")},required:!0})]}),(0,l.jsxs)("div",{className:"paper",children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,l.jsx)(c.A,{userImage:r,setUserImage:u,className:"w-full"})]})]})}},64535:(e,a,s)=>{s.d(a,{A:()=>l});var t=s(8732);function l({message:e}){return(0,t.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,t.jsx)("span",{children:e})]})}s(82015)},48987:(e,a,s)=>{var t=s(24994);a.A=void 0;var l=t(s(30887)),r=s(8732);a.A=(0,l.default)([(0,r.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,a,s)=>{var t=s(24994);a.A=void 0;var l=t(s(30887)),r=s(8732);a.A=(0,l.default)([(0,r.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,r.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,r.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,r.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,r.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,a,s)=>{var t=s(24994);a.A=void 0;var l=t(s(30887)),r=s(8732);a.A=(0,l.default)([(0,r.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},96089:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},98136:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/75.js b/dsql-app/.local_dist/server/chunks/75.js deleted file mode 100644 index d9e3dca..0000000 --- a/dsql-app/.local_dist/server/chunks/75.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -exports.id = 75; -exports.ids = [75]; -exports.modules = { - -/***/ 4739: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabaseSlugCopy) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5050); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - - -// import DifferenceOutlinedIcon from "@mui/icons-material/DifferenceOutlined"; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {{ - * slugText: string, - * smaller?: boolean, - * outlined?: boolean, - * full?:boolean - * }} props - React component props including { children } - */ function DatabaseSlugCopy({ slugText , smaller , outlined , full , }) { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "button break-words text-wrap cancel-link " + (outlined ? " outlined gray" : "light-gray") + (smaller ? " small-text" : ""), - onClick: (e)=>{ - navigator.clipboard.writeText(slugText).then(()=>{ - alert(`${full ? "Database Full name" : "Database Slug"} "${slugText}" Copied to Clipboard. Use this as the database name when querying data`); - }); - }, - style: { - wordWrap: "break-word", - wordBreak: "break-all" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_2___default()), { - color: "action", - sx: { - opacity: 0.5, - fontSize: 15 - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: slugText - }) - ] - }); -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7531.js b/dsql-app/.local_dist/server/chunks/7531.js deleted file mode 100644 index 73acf10..0000000 --- a/dsql-app/.local_dist/server/chunks/7531.js +++ /dev/null @@ -1,530 +0,0 @@ -"use strict"; -exports.id = 7531; -exports.ids = [7531]; -exports.modules = { - -/***/ 7531: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleDbUserContext": () => (/* binding */ SingleDbUserContext), - "default": () => (/* binding */ DatabaseSingleUserPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/users/UserImage.jsx -var UserImage = __webpack_require__(2733); -;// CONCATENATED MODULE: ./components/admin/users/SingleDbUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleDbUserContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { singleUser , database , user } = external_react_default().useContext(SingleDbUserContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userFields = Object.keys(singleUser).filter((key)=>!key.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ userImage: any, setUserImage: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [userImage, setUserImage] = external_react_default().useState(singleUser["image"]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - userImage && /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: userImage, - alt: "", - className: "avatar large outlined" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - singleUser.first_name, - " ", - singleUser.last_name - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users/${singleUser.id}/change-password`, - className: "button outlined gray", - children: "Change Password" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "bg-red-500", - onClick: (e)=>{ - setLoading(true); - if (window.confirm("Delete this user?")) { - (0,fetchApi/* default */.Z)("/api/deleteDbUser", { - method: "post", - body: { - userId: singleUser.id, - dbFullName: database.db_full_name - } - }, true).then((res)=>{ - if (res.success) window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/users`; - }); - } - }, - children: "Delete User" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex-col items-stretch", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-col items-stretch gap-4", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const form = e.target; - const formFields = Array.from(form); - /** @type {any} */ const formFieldsObject = {}; - formFields.forEach((/** @type {any} */ field)=>{ - if (field?.nodeName?.match(/button/i)) return; - if (!field?.name || !field?.value?.match(/./)) return; - if (field?.name?.match(/username|email/)) return; - formFieldsObject[field.name] = field.value; - }); - const fetchObject = { - dbFullName: database.db_full_name, - payload: { - ...formFieldsObject, - id: singleUser["id"] - } - }; - (0,fetchApi/* default */.Z)("/api/updateDbUser", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (userImage?.imageBase64) { - userImage["imageName"] = `${database.db_slug}-user-${singleUser.id}`; - userImage["mimeType"] = "jpeg"; - delete userImage["imageBase64Full"]; - (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - userImage - ], - folder: database.db_slug.replace(/_/g, "-"), - type: "image" - } - }, true).then((_res)=>{ - if (_res && _res.mediaData && _res.mediaData[0]?.media_url) { - (0,fetchApi/* default */.Z)("/api/updateDbUser", { - method: "post", - body: { - dbFullName: database.db_full_name, - payload: { - id: singleUser.id, - image: _res.mediaData[0].media_url, - image_thumbnail: _res.mediaData[0].media_thumbnail_url - } - } - }, true).then((__res)=>{ - if (__res.success) window.location.reload(); - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - } else { - window.location.reload(); - } - }); - } else { - window.location.reload(); - } - }); - }, - children: [ - userFields.map((field, index)=>{ - if (field?.match(/password|^database|email|username/)) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: field, - id: field, - // @ts-ignore - value: singleUser[field], - placeholder: field, - className: "opacity-40 pointer-events-none", - onChange: (e)=>{ - e.preventDefault(); - } - }, index + 1) - ] - }, index + 1); - } - if (field?.match(/more_user_data/)) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: field, - id: field, - defaultValue: // @ts-ignore - singleUser[field] ? singleUser[field] : undefined, - placeholder: field, - rows: 6 - }, index + 1) - ] - }, index + 1); - } - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: field, - id: field, - defaultValue: // @ts-ignore - singleUser[field] ? singleUser[field] : undefined, - placeholder: field - }, index + 1) - ] - }, index + 1); - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600", - children: "Update Image" - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserImage/* default */.Z, { - userImage: userImage, - setUserImage: setUserImage, - className: "w-full" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: "Update User" - }) - ] - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DatabaseSingleUserContextType} */ // @ts-ignore -const init = {}; -const SingleDbUserContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {import("@/package-shared/types").MYSQL_user_users_table_def} props.singleUser - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function DatabaseSingleUserPage({ user , database , table , dbSchemaData , singleUser , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${singleUser.first_name} ${singleUser.last_name} Users | Datasquirel"`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(SingleDbUserContext.Provider, { - value: { - user, - database, - table, - dbSchemaData, - singleUser, - query, - confirmedDelegetedUser - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(SingleDbUserContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - // @ts-ignore - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const { dbUserId , rootUserId } = dbUserDataObj; - const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - console.log("Database Not Found"); - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === "users")[0]; - const singleUser = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM users WHERE id='${query.user}'`, - tableSchema: targetTable - }); - if (!singleUser?.[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases/${database[0].db_slug}/users`, - permanent: false - } - }; - } - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database?.[0] || null, - table: targetTable ? targetTable : {}, - dbSchemaData: dbSchemaData, - singleUser: singleUser?.[0] || null, - query, - confirmedDelegetedUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7547.js b/dsql-app/.local_dist/server/chunks/7547.js deleted file mode 100644 index fdc0950..0000000 --- a/dsql-app/.local_dist/server/chunks/7547.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -exports.id = 7547; -exports.ids = [7547]; -exports.modules = { - -/***/ 7547: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createCipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -const serverError = __webpack_require__(3017); -/** - * @async - * @param {string} data - * @param {string} [encryptionKey] - * @param {string} [encryptionSalt] - * @returns {string | null} - */ const encrypt = (data, encryptionKey, encryptionSalt)=>{ - const algorithm = "aes-192-cbc"; - const password = encryptionKey ? encryptionKey : process.env.DSQL_ENCRYPTION_PASSWORD || ""; - /** ********************* Generate key */ const salt = encryptionSalt ? encryptionSalt : process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const cipher = createCipheriv(algorithm, key, iv); - /** ********************* Encrypt data */ try { - let encrypted = cipher.update(data, "utf8", "hex"); - encrypted += cipher.final("hex"); - return encrypted; - } catch (/** @type {any} */ error) { - serverError({ - component: "encrypt", - message: error.message - }); - return null; - } -}; -module.exports = encrypt; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7638.js b/dsql-app/.local_dist/server/chunks/7638.js deleted file mode 100644 index b02a11a..0000000 --- a/dsql-app/.local_dist/server/chunks/7638.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -exports.id = 7638; -exports.ids = [7638]; -exports.modules = { - -/***/ 7638: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ setUserSchemaData) -/* harmony export */ }); -// @ts-check -const serverError = __webpack_require__(2163); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.schemaData - * @returns {boolean} - */ function setUserSchemaData({ userId , schemaData }) { - try { - const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`); - fs.writeFileSync(userSchemaFilePath, JSON.stringify(schemaData), "utf8"); - return true; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/setUserSchemaData", - message: error.message - }); - return false; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/766.js b/dsql-app/.local_dist/server/chunks/766.js deleted file mode 100644 index de73794..0000000 --- a/dsql-app/.local_dist/server/chunks/766.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -exports.id = 766; -exports.ids = [766]; -exports.modules = { - -/***/ 766: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const DSQL_USER_DB_HANDLER = __webpack_require__(3403); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Handle Table Entries Order - * ================================================================= - * @param {object} param0 - * @param {string} param0.dbName - * @param {string} param0.tableName - * @param {number} param0.entryId - * @param {string} param0.entryOrder - * @param {import("@/package-shared/types").DSQL_TableSchemaType} param0.tableSchema - */ module.exports = async function handleTableEntryOrder({ dbName , entryId , entryOrder , tableName , tableSchema , }) { - try { - const isOrderField = Boolean(tableSchema.fields.find((fld)=>Boolean(fld.fieldName?.match(/^order$/i)))); - if (isOrderField && entryOrder) { - const existingOrder = await DSQL_USER_DB_HANDLER({ - database: dbName, - paradigm: "Full Access", - queryString: `SELECT * FROM ${tableName} WHERE \`order\` = '${entryOrder}' AND id != ?`, - queryValues: [ - String(entryId) - ] - }); - if (!existingOrder?.[0]) throw new Error("No Existing Order"); - await DSQL_USER_DB_HANDLER({ - database: dbName, - paradigm: "Full Access", - queryString: `UPDATE ${tableName} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${entryOrder} AND id != ?`, - queryValues: [ - String(entryId) - ] - }); - } - return true; - } catch (/** @type {any} */ error) { - return false; - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7665.js b/dsql-app/.local_dist/server/chunks/7665.js new file mode 100644 index 0000000..0050b91 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7665.js @@ -0,0 +1 @@ +"use strict";exports.id=7665,exports.ids=[7665],exports.modules={73413:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(8732);t(82015);var i=t(55158),s=t(83158),n=t(12697),o=t(10067);function r({user:e}){return(0,l.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,l.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,l.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,l.jsx)("br",{}),"want to upload?"]}),(0,l.jsx)("span",{children:"Please Select the media type to upload."}),(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{if(e?.verification_status?.toString().match(/1/)){let e=document.getElementById("upload_image_input");e?.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,l.jsx)(s.A,{size:50,className:"text-primary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Images"}),(0,l.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_file_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(n.A,{size:50,className:"text-secondary"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Files"}),(0,l.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,l.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,l.jsxs)("div",{className:"card cursor-pointer",onClick:a=>{e?.verification_status?.toString().match(/1/)?document.getElementById("upload_video_input")?.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,l.jsx)(o.A,{size:55,className:"text-slate-600"}),(0,l.jsxs)("div",{className:"content",children:[(0,l.jsx)("span",{className:"title",children:"Videos"}),(0,l.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,l.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},2628:(e,a,t)=>{t.d(a,{A:()=>N});var l=t(8732),i=t(82015),s=t.n(i),n=t(63715),o=t(8203),r=t(77627),d=t(32415);function c({folderName:e,folder:a,user:t}){let i=`${a?a+"/":""}${e}`,[c,m]=s().useState(!1);return(0,l.jsxs)("a",{href:`/admin/${t?.id}/media/${i}`,className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[c&&(0,l.jsx)(d.A,{}),(0,l.jsx)(o.A,{sx:{fontSize:100},className:"opacity-20"}),(0,l.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,l.jsx)("span",{className:"",children:e}),(0,l.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,n.A)("/api/deleteMediaFolder",{method:"post",body:{folder:i}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,l.jsx)(r.A,{className:"opacity-30"})})]},e)}var m=t(55158),u=t(62506),p=t(1133),h=t(89095);function f({mediaObject:e,staticHost:a}){let t=e.media_thumbnail_path?e?.private?e.media_thumbnail_url:`${a}${e.media_thumbnail_path}`:e.media_thumbnail_url,i=e.media_path?e?.private?e.media_url:`${a}${e.media_path}`:e.media_url;return(0,l.jsx)(s().Fragment,{children:e.media_type?.match(/file/i)?(0,l.jsxs)("div",{className:"cursor-pointer hover:opacity-80",children:[(0,l.jsx)(h.A,{sx:{fontSize:100},className:"opacity-10"}),(0,l.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:e.media_type.replace(/.*\//,"").toUpperCase()})]}):e.media_type?.match(/video/i)?(0,l.jsx)("video",{src:i,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,l.jsx)("img",{src:t,alt:e.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:a=>{e?.private||(0,n.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:e}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(t),console.log(i))})}})})}var x=t(49140);function g({mediaObject:e,staticHost:a}){return(e.media_thumbnail_path?e.media_thumbnail_path:e.media_thumbnail_url,e.media_path?e.media_path:e.media_url,e?.private)?(0,l.jsx)(s().Fragment,{}):(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(u.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Link"}),!e?.media_type?.match(/file|video/i)&&(0,l.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},children:"Copy Thumbnail Link"})]})})]})}var j=t(17855),w=t(46760);function b({mediaObject:e,setLoading:a}){let[t,i]=s().useState(!1);return e?.media_type?.match(/video/i)?null:(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+(e?.private?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:t=>{let l=e.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(a(!0),(0,n.A)("/api/media/addPrivateMedia",{method:"post",body:{...e}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{a(!1)},1e3)}).catch(e=>{console.log(e)}))},children:e?.private?(0,l.jsx)(j.A,{size:20,color:"green"}):(0,l.jsx)(w.A,{color:"black",size:20})})}function y({mediaObject:e,setTargetMedia:a,folder:t,staticHost:i}){let[n,o]=s().useState(!!e?.private),[r,c]=s().useState(e);r.media_thumbnail_path?r.media_thumbnail_path:r.media_thumbnail_url;let h=r.media_path?`${i}/${r.media_path}`:r.media_url;return(0,l.jsxs)("div",{className:"media-card card col",onClick:e=>{if(!(e.target.closest("button")||e.target.closest(".button"))){if(r.media_type?.match(/file/i)&&!r.private){window.open(h,"__blank");return}r.media_type?.match(/file/i)&&r.private||(a(r),(0,m.PB)("target-media-popup"))}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:r?.private?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[n&&(0,l.jsx)(d.A,{}),(0,l.jsx)(f,{mediaObject:r,staticHost:i}),(0,l.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,l.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:r.media_name}),(0,l.jsx)("div",{className:"flex-wrap w-full",children:(0,l.jsxs)(u.A,{className:"flex-wrap w-full items-stretch",children:[(0,l.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{(0,p.A)({mediaObject:r,fileName:h?.match(/[^\/]+$/)?.[0]||"",setLoading:o})},children:(0,l.jsx)("span",{children:"Download"})}),(0,l.jsx)(g,{mediaObject:r,staticHost:i}),(0,l.jsx)(x.A,{mediaObject:r,setLoading:o})]})})]}),(0,l.jsx)(b,{mediaObject:r,setLoading:o})]})}t(99730);var v=t(19196);function N({media:e,setTargetMedia:a,folders:t,folder:i,staticHost:n,user:o}){return(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("section",{className:"paper overflow-visible",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,l.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[t&&t[0]&&t.map(e=>(0,l.jsx)(c,{folder:i,folderName:e,user:o},e)),e&&e[0]&&e.map(e=>(0,l.jsx)(y,{mediaObject:e,setTargetMedia:a,folder:i,staticHost:n},e.id))]}),!e?.[0]&&(0,l.jsx)(_,{})]})})}function _(){return(0,l.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,m.PB)("choose-media-type-popoup")},children:[(0,l.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,l.jsx)(v.A,{color:"inherit",sx:{fontSize:80},className:"opacity-40 text-gray-500"}),(0,l.jsx)("span",{className:"",children:"Add Media"})]})}},30180:(e,a,t)=>{let l;t.d(a,{A:()=>c});var i=t(8732),s=t(82015),n=t.n(s),o=t(63715),r=t(55158),d=t(32415);function c({folder:e}){let[a,t]=n().useState(!1),[s,c]=n().useState(!1);return(0,i.jsxs)(r.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(d.A,{}),(0,i.jsxs)("form",{onSubmit:a=>{a.preventDefault(),window.clearTimeout(l),t(!0);let i=a.target;(0,o.A)("/api/addNewMediaFolder",{method:"post",body:{name:(e?`${e}/`:"")+i["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():t(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[s&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(s?" warning":""),onChange:a=>{a.target.value=a.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(l),l=setTimeout(()=>{(0,o.A)(`/api/checkExistingFolder?name=${a.target.value}${e?"&folder="+e:""}`).then(e=>{a.target.value?.match(/./)&&e?.success?(c(!0),alert("Folder Already Exists")):c(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},90194:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(8732),i=t(82015),s=t.n(i),n=t(63715),o=t(86152),r=t(55158),d=t(32415),c=t(48557),m=t(43857);function u({mediaObject:e}){let[a,t]=i.useState(!1);return i.useEffect(()=>{e.private=a},[a]),(0,l.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{t(e=>!e)},children:a?(0,l.jsx)(m.A,{fontSize:"small",color:"secondary"}):(0,l.jsx)(c.A,{fontSize:"small",className:"fill-inherit text-inherit"})})}function p({imageObject:e,newMedia:a,setNewMedia:t,video:i}){let s=e.imageBase64Full||e.fileBase64Full,n=e.imageName||e.fileName;return(0,l.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[i?(0,l.jsx)("video",{src:s,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,l.jsx)("img",{src:s,alt:n,className:"w-full h-full object-contain"}),(0,l.jsx)("input",{type:"text",defaultValue:n,onInput:a=>{let t=a.target.value?.replace(/ /g,"-");e.fileName&&(e.fileName=t),e.imageName&&(e.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.imageBase64===e.imageBase64||a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:"✖"}),!i&&(0,l.jsx)(u,{mediaObject:e})]})}var h=t(89095);function f({fileObject:e,newFile:a,setNewFile:t}){return(0,l.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,l.jsx)(h.A,{sx:{fontSize:100},className:"opacity-20"}),(0,l.jsx)("input",{type:"text",defaultValue:e.fileName,onInput:a=>{e.fileName=a.target.value?.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,l.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:l=>{let i=a.findIndex(a=>a.fileBase64===e.fileBase64);a.splice(i,1),t([...a])},children:"✖"}),(0,l.jsx)(u,{mediaObject:e})]})}function x({newMedia:e,setNewMedia:a,newFile:t,setNewFile:i,newVideo:c,setNewVideo:m,folder:u}){let h=e?.[0]?"images":t?.[0]?"files":"videos",x=h?.match(/image/i)?e:h?.match(/file/i)?t:c,g=h?.match(/image/i)?a:h?.match(/file/i)?i:m,[j,w]=s().useState(!1);return(0,l.jsxs)(r.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),i(null),m(null)},children:[j&&(0,l.jsx)(d.A,{screen:!0}),(0,l.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:x&&x[0]&&x.map((e,a)=>h?.match(/image/i)?(0,l.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g},a+1):h?.match(/video/i)?(0,l.jsx)(p,{imageObject:e,newMedia:x,setNewMedia:g,video:!0},a+1):(0,l.jsx)(f,{fileObject:e,newFile:x,setNewFile:g},a+1))}),x&&x[0]&&(0,l.jsx)("button",{className:"py-3 w-full relative z-50"+(j?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let a=h?.match(/image/i)?{type:h,folder:u,media:x.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:h,folder:u,media:x.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!h?.match(/video/i)}))};(0,n.A)("/api/addUserMedia",{method:"post",body:a},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},70161:(e,a,t)=>{t.d(a,{A:()=>f});var l=t(8732),i=t(82015),s=t.n(i),n=t(63715),o=t(86152),r=t(55158),d=t(32415),c=t(62506),m=t(1133);t(99730);var u=t(41431),p=t(6070),h=t(49140);function f({targetMedia:e,staticHost:a,setTargetMedia:t,media:i}){e?.media_thumbnail_path?e?.media_thumbnail_path:e?.media_thumbnail_url;let f=e?.media_path?`${a}/${e?.media_path}`:e?.media_url,x=!!e?.media_type?.match(/video/i),g=e?i.findIndex(a=>a.id==e.id):null,j="number"==typeof g&&g>=0,w=(()=>{if(!j)return null;let e=i[g+1];return e?e?.media_type?.match(/image/i)?e:i.slice(g+1).find(e=>!!e.media_type?.match(/image/i))||null:null})(),b=(()=>{if(!j)return null;let e=i[g-1];return e?e?.media_type?.match(/image/i)?e:i.slice(0,g-1).findLast(e=>!!e.media_type?.match(/image/i))||null:null})(),[y,v]=s().useState(!!e?.private),[N,_]=s().useState(!1),[A,C]=s().useState(f),k=s().useRef();return(0,l.jsxs)(r.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{_(!1),t(null)},children:[y&&(0,l.jsx)(d.A,{}),!N&&(0,l.jsx)(d.A,{}),e&&(0,l.jsxs)(s().Fragment,{children:[(0,l.jsxs)("div",{className:"self-center h-screen py-4",children:[A?x?(0,l.jsx)("video",{src:A,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{_(!0)},style:N?void 0:{display:"none"}}):(0,l.jsx)("img",{src:A,alt:e.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:k,onLoad:e=>{_(!0)},style:N?void 0:{display:"none"}}):(0,l.jsx)(l.Fragment,{}),b&&(0,l.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(b)},children:(0,l.jsx)(u.A,{color:"white"})}),w&&(0,l.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{t(null),t(w)},children:(0,l.jsx)(p.A,{color:"white"})})]}),(0,l.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:e.media_path?.replace(/.*\//,"")}),(0,l.jsx)("div",{className:"absolute bottom-6 left-6 p-2 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch",children:(0,l.jsxs)(c.A,{column:!0,children:[(0,l.jsx)(h.F,{mediaObject:e,setLoading:v}),(0,l.jsx)("button",{className:"outlined secondary more-padding",onClick:a=>{(0,m.A)({mediaObject:e,fileName:e.media_url?.match(/[^\/]+$/)?.[0]||"",setLoading:v})},children:"Download"}),(0,l.jsx)("button",{onClick:a=>{window.confirm("Delete this media?")&&(0,n.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),(0,l.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_url||"").then(()=>{alert(`Media url ${e.media_url} Copied to clipboard`)})},children:"Copy Full Image Link"}),(0,l.jsx)("button",{className:"outlined gray w-full more-padding",onClick:a=>{navigator.clipboard.writeText(e.media_thumbnail_url||"").then(()=>{alert(`Media url ${e.media_thumbnail_url} Copied to clipboard`)})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})})]})]})}},49140:(e,a,t)=>{t.d(a,{A:()=>o,F:()=>r});var l=t(8732);t(82015);var i=t(63715),s=t(86152),n=t(62506);function o({mediaObject:e,setLoading:a}){return(0,l.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,l.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,l.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,l.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,l.jsx)(r,{mediaObject:e,setLoading:a}),(0,l.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:a=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:e},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function r({mediaObject:e,setLoading:a}){return(0,l.jsx)("button",{onClick:t=>{let l=window.prompt("Rename media",e.media_name);l&&window.confirm(`Rename "${e.media_name}" to "${l}"`)&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:e,newName:l.replace(/ /g,"-"),newThumbnailName:l.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},55158:(e,a,t)=>{t.d(a,{Ay:()=>o,PB:()=>r,fs:()=>d});var l=t(8732),i=t(58150),s=t(82015),n=t.n(s);function o({children:e,title:a,data:t,fullPage:s,wrapperClasses:o,closePopupDispatch:r,wrapperStyle:c,noContainer:m}){return s?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:c,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),r&&r()},children:(0,l.jsx)(i.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),r&&r()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),r&&r()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),r&&r()}})]})}function r(e,a){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",a&&a(t))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},31700:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83147);function s({setNewFile:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e<s.length;e++){let a=s[e];if(a.type?.match(/sheet/))console.log(URL.createObjectURL(a));else{let e=await (0,i.A)({inputFile:a});l.push(e)}}e(l),setTimeout(()=>{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},83531:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(79100);function s({setNewMedia:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e<s.length;e++){let a=s[e];if(a.type?.match(/sheet/))console.log(URL.createObjectURL(a));else{let e=await (0,i.A)({imageInputFile:a,maxWidth:1800});l.push(e)}}e(l),setTimeout(()=>{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},65693:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(8732);t(82015);var i=t(83147);function s({setNewVideo:e,setLoading:a}){return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async t=>{a&&a(!0);let l=[],s=t.target.files;if(s?.length){for(let e=0;e<s.length;e++){let a=s[e];if(a.type?.match(/sheet/))console.log(URL.createObjectURL(a));else{let e=await (0,i.A)({inputFile:a});l.push(e)}}e(l),setTimeout(()=>{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},24671:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(8732);function i(e){return(0,l.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,l.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}t(82015)},1133:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(99730);async function i({mediaObject:e,fileName:a,setLoading:t}){let i;t&&t(!0);let s=!!(e?.private||e?.media_url?.match(/^\@/));i=s?await (0,l.A)({url:e.media_url||""}):await fetch("/api/fetch-media?url="+e.media_url);let n=s?i:await i.blob(),o=s?i:URL.createObjectURL(n),r=document.createElement("a");r.href=o,r.download=a,r.style.display="none",document.body.appendChild(r),r.click(),URL.revokeObjectURL(o),document.body.removeChild(r),setTimeout(()=>{t&&t(!1)},500)}},99730:(e,a,t)=>{t.d(a,{A:()=>l});async function l({url:e}){return new Promise((a,t)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:e}),headers:{"x-csrf-auth":localStorage.getItem("csrf")}}).then(e=>e.blob()).then(e=>{a(URL.createObjectURL(e))})})}},79100:(e,a,t)=>{t.d(a,{A:()=>l});async function l({imageInputFile:e,maxWidth:a}){let t,l,i=document.querySelector("[data-imagepreview='image']"),s=e.name.replace(/\..*/,""),n=document.createElement("canvas"),o=e.type,r=a||null,d=URL.createObjectURL(e),c=new Image;return c.src=d,t=await new Promise((e,a)=>{c.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},c.onload=function(){if(URL.revokeObjectURL(this.src),r){let e=r/c.naturalWidth;n.width=c.naturalWidth<r?c.naturalWidth:r,n.height=c.naturalWidth<r?c.naturalHeight:c.naturalHeight*e}else n.width=c.naturalWidth,n.height=c.naturalHeight;let a=n.getContext("2d");a?.drawImage(c,0,0,n.width,n.height);let t=n.toDataURL(o,.95);i&&document.querySelectorAll("[data-imagepreview='image']").forEach(e=>{e.src=t}),e(t)}}),l=await new Promise((e,a)=>{n.toBlob(a=>{e(a?.size)},o,.95)}),{imageBase64:t.replace(/.*?base64,/,""),imageBase64Full:t,imageName:s,imageSize:l}}},83147:(e,a,t)=>{t.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),t=await new Promise((a,t)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:t.replace(/.*?base64,/,""),fileBase64Full:t,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7734.js b/dsql-app/.local_dist/server/chunks/7734.js new file mode 100644 index 0000000..6f67046 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/7734.js @@ -0,0 +1 @@ +"use strict";exports.id=7734,exports.ids=[7734],exports.modules={30671:(h,e)=>{Object.defineProperty(e,"M",{enumerable:!0,get:function(){return function h(e,a){return a in e?e[a]:"then"in e&&"function"==typeof e.then?e.then(e=>h(e,a)):"function"==typeof e&&"default"===a?e:void 0}}})},42178:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)((0,c.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},8740:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M11 11h5v5h-5zm-7 0h5v5H4zm0-7h12v5H4z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M20 6v14H6v2h14c1.1 0 2-.9 2-2V6z"},"1"),(0,c.jsx)("path",{d:"M18 16V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2M4 4h12v5H4zm5 12H4v-5h5zm2-5h5v5h-5z"},"2")],"BackupTableTwoTone")},26406:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},69290:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"},"1")],"CopyAllTwoTone")},8248:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M16 9H8v10h8zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteForeverTwoTone")},18129:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},6078:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06zM5.92 18H5v-.92l7.06-7.06.92.92zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75z"},"1")],"DriveFileRenameOutlineTwoTone")},48987:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},68253:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)((0,c.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageTwoTone")},42125:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,c.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,c.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,c.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,c.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},61141:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M19 9v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"},"1")],"TableViewTwoTone")},50993:(h,e,a)=>{var t=a(24994);e.A=void 0;var v=t(a(30887)),c=a(8732);e.A=(0,v.default)([(0,c.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},92441:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},6070:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},96089:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(h,e,a)=>{a.d(e,{A:()=>t});let t=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(h,e)=>{var a;Object.defineProperty(e,"A",{enumerable:!0,get:function(){return a}}),function(h){h.PAGES="PAGES",h.PAGES_API="PAGES_API",h.APP_PAGE="APP_PAGE",h.APP_ROUTE="APP_ROUTE",h.IMAGE="IMAGE"}(a||(a={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7838.js b/dsql-app/.local_dist/server/chunks/7838.js deleted file mode 100644 index eeeafab..0000000 --- a/dsql-app/.local_dist/server/chunks/7838.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; -exports.id = 7838; -exports.ids = [7838]; -exports.modules = { - -/***/ 6251: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ SuErrorLogsContent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6729); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SuErrorLogsContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ errorLog: string | null, setErrorLog: React.Dispatch<React.SetStateAction<string | null>> ]} */ // @ts-ignore - const [errorLog, setErrorLog] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const [refresh, setRefresh] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - function fetchErrorLogs() { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/grabErrorLogs").then((res)=>{ - if (typeof res.log === "string" && !res.log?.match(/./)) { - setErrorLog("No Logs Yet"); - return; - } else { - setErrorLog(""); - } - setErrorLog(res.log.replace(/\n|\r|\n\r|\\n/gm, "<br/>")); - }); - } - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - fetchErrorLogs(); - if (refresh === 0) { - setInterval(()=>{ - fetchErrorLogs(); - }, 10000); - } - }, [ - refresh - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0", - children: "Error Logs" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - onClick: (e)=>{ - if (window.confirm("Clear Error Logs?")) { - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/clearErrorLogs", "post").then((res)=>{ - console.log(res); - setRefresh((prev)=>prev + 1); - }); - setTimeout(()=>{ - setLoading(false); - }, 2000); - } - }, - className: "outlined gray relative", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - width: "20px" - }), - "Clear Error Log" - ] - }) - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper", - children: [ - errorLog && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("p", { - dangerouslySetInnerHTML: { - __html: errorLog ? errorLog : "No Log" - } - }), - !errorLog && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - position: "relative", - width: "25px" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 5304: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7901.js b/dsql-app/.local_dist/server/chunks/7901.js deleted file mode 100644 index 31aac6a..0000000 --- a/dsql-app/.local_dist/server/chunks/7901.js +++ /dev/null @@ -1,429 +0,0 @@ -"use strict"; -exports.id = 7901; -exports.ids = [7901]; -exports.modules = { - -/***/ 7901: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ FormInput) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -;// CONCATENATED MODULE: ./functions/frontend/numberFormat.js -// @ts-check -/** - * @param {object} param0 - * @param {string | number} param0.value - * @param {"string" | "raw"} [param0.format] - */ function numberFormat({ value , format }) { - let finalValue; - if (!value) return 0; - try { - switch(format){ - case "string": - finalValue = value.toString().replace(/\D/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); - break; - case "raw": - finalValue = parseInt(value.toString().replace(/\D/g, "")); - break; - default: - finalValue = parseInt(value.toString().replace(/\D/g, "")); - break; - } - } catch (error) { - finalValue = 0; - console.log(error); - } - return finalValue; -} - -;// CONCATENATED MODULE: ./functions/frontend/numberFormatFloat.js -// @ts-check -/** - * @param {object} param0 - * @param {string | number} param0.value - * @param {"string" | "raw"} [param0.format] - * @param {number} [param0.decimals] - */ function numberFormatFloat({ value , format , decimals }) { - let finalValue; - const negativeValuePrefix = value?.toString()?.match(/^\-/) ? "-" : ""; - try { - switch(format){ - case "string": - const finalValueSidesArray = value.toString().split("."); - finalValue = negativeValuePrefix + finalValueSidesArray[0].toString().replace(/[^0-9\.]/g, "").replace(/\B(?=(\d{3})+(?!\d))/g, ",") + (finalValueSidesArray[1] ? decimals ? `.${finalValueSidesArray[1].substring(0, decimals)}` : `.${finalValueSidesArray[1].substring(0, 2)}` : ""); - break; - case "raw": - finalValue = parseFloat(negativeValuePrefix + value.toString().replace(/[^0-9\.]/g, "")); - break; - default: - finalValue = parseFloat(negativeValuePrefix + value.toString().replace(/[^0-9\.]/g, "")); - break; - } - } catch (error) { - finalValue = 0; - console.log(error); - } - return finalValue; -} - -;// CONCATENATED MODULE: ./components/form/FormInput.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let /** @type {any} */ incrementTimeout, /** @type {any} */ incrementInterval; -/** - * Form Input - * ============================================================================== - * @param {Object} props - Server props - * @param {string} [props.title] - * @param {string} [props.name] - * @param {string} [props.defaultValue] - * @param {string} [props.placeholder] - * @param {string} [props.autoComplete] - * @param {(e: Event) => void} [props.onInputHandler] - * @param {boolean} [props.required] - * @param {string} [props.inputType] - * @param {React.Dispatch<React.SetStateAction<any>>} [props.setAlert] - * @param {React.Dispatch<React.SetStateAction<string | number>>} [props.setValue] - A react state dispatch function to set - * the current number value - * @param {string} [props.prefix] - * @param {number} [props.minValue] - * @param {number} [props.maxValue] - * @param {boolean?} [props.encrypted] - * @param {boolean?} [props.numberText] - * @param {string} [props.appendCurrency] - * @param {{current: *}} [props.elementRef] - * @param {(e: Event) => void} [props.onChangeHandler] - * @param {string} [props.value] - * @param {number} [props.step] - * @param {boolean} [props.decimal] - * @param {string} [props.pattern] - * @param {string} [props.info] - * @param {string} [props.id] - * @param {string} [props.fontSize] - Eg. "20px" - * @param {string} [props.maxWidth] - Eg. "200px" - */ function FormInput(props) { - try { - /** - * Destructure Props - * - * @abstract Destructure Props - */ const { title , name , defaultValue , placeholder , autoComplete , onInputHandler , required , inputType , setAlert , prefix , minValue , maxValue , encrypted , numberText , appendCurrency , elementRef , onChangeHandler , value , step , decimal , pattern , info , fontSize , maxWidth , setValue , id , } = props; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ function inputChangeHangler(/** @type {any} */ e) { - if (e.target.value.match(/./)) { - e.target.classList.remove("warning"); - setAlert && setAlert(null); - } else if (e.target.required) { - e.target.classList.add("warning"); - } - if (numberText) { - e.target.value = e.target.value.toString().match(/^0+$/) ? "0" : e.target.value.toString().replace(decimal ? /[^0-9\.]/g : /\D/g, "").replace(/^0*/, "").replace(/\B(?=(\d{3})+(?!\d))/g, ","); - } - if (onInputHandler) onInputHandler(e); - if (onChangeHandler) onChangeHandler(e); - } - function toggleDropdown(/** @type {any} */ e) { - if (e.type.match(/enter/i) && window.innerWidth < 1200) { - return; - } - const infoWrapper = e.target.closest(".info-wrapper"); - const dropdown = infoWrapper.querySelector(".info-dropdown"); - if (e.type.match(/leave/i) && !dropdown.classList.contains("hidden")) { - dropdown.classList.add("hidden"); - return; - } else if (e.type.match(/leave/i) && dropdown.classList.contains("hidden")) { - return; - } - if (!infoWrapper) { - dropdown.classList.add("hidden"); - return; - } - if (dropdown.classList.contains("hidden")) { - dropdown.classList.remove("hidden"); - return; - } - dropdown.classList.add("hidden"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.MutableRefObject<HTMLInputElement>} */ const currentElementRef = elementRef ? elementRef : external_react_default().useRef(); - //////////////////////////////////////// - function decrementNumber(/** @type {any} */ e) { - const newValue = decimal ? parseFloat(numberFormatFloat({ - value: currentElementRef.current?.value || 0 - }).toString()) - (step ? parseFloat(step.toString()) : 20) : parseInt(numberFormat({ - value: currentElementRef.current.value - }).toString()) - (step ? step : 20); - const currentNumberValue = decimal ? numberFormatFloat({ - value: newValue, - format: "raw" - }) : numberFormat({ - value: newValue, - format: "raw" - }); - if (minValue && typeof currentNumberValue == "number" && currentNumberValue < minValue) return; - currentElementRef.current.value = decimal ? parseFloat(numberFormatFloat({ - value: newValue, - format: "raw" - }).toString()).toFixed(typeof decimal === "number" ? decimal : 2) : numberFormat({ - value: newValue, - format: "string" - }).toString(); - if (setValue) setValue(currentElementRef.current.value); - } - function incrementNumber(/** @type {any} */ e) { - const newValue = decimal ? parseFloat(numberFormatFloat({ - value: currentElementRef.current.value - }).toString()) + (step ? parseFloat(step.toString()) : 20) : parseInt(numberFormat({ - value: currentElementRef.current.value - }).toString()) + (step ? step : 20); - const newFormattedValue = decimal ? parseFloat(numberFormatFloat({ - value: newValue, - format: "raw" - }).toString()).toFixed(typeof decimal === "number" ? decimal : 2) : numberFormat({ - value: newValue, - format: "string" - }); - const currentNumberValue = decimal ? parseFloat(numberFormatFloat({ - value: newFormattedValue, - format: "raw" - }).toString()) : parseInt(numberFormat({ - value: newFormattedValue, - format: "raw" - }).toString()); - if (maxValue && currentNumberValue > maxValue) return; - currentElementRef.current.value = newFormattedValue.toString(); - if (setValue) setValue(currentElementRef.current.value); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "form-input-wrapper flex flex-col items-start gap-0.5 w-full relative", - style: { - ...maxWidth ? { - maxWidth: maxWidth - } : {} - }, - children: [ - title && /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: name, - children: title - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex items-center w-full relative", - children: [ - prefix && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute left-4 bottom-2 text-lg", - children: prefix - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: inputType ? inputType : "text", - name: name, - id: id ? id : name, - ref: currentElementRef, - placeholder: placeholder ? placeholder : title ? title : "", - autoComplete: autoComplete, - onInput: (e)=>{ - // if (!onInputHandler) return; - inputChangeHangler(e); - }, - onChange: (e)=>{ - // if (!onChangeHandler) return; - inputChangeHangler(e); - }, - value: value ? value : undefined, - defaultValue: value ? undefined : defaultValue ? defaultValue : undefined, - pattern: pattern ? pattern.toString() : undefined, - required: required ? required : false, - style: { - ...fontSize ? { - fontSize: fontSize - } : {}, - ...prefix ? { - paddingLeft: "35px" - } : {} - }, - min: minValue, - max: maxValue, - "data-encrypted": encrypted ? encrypted : null, - "data-appendcurrency": appendCurrency ? appendCurrency : null, - className: "bg-white" + (info ? " pr-16" : "") - }), - numberText && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "absolute gap-1" + (info ? " right-12" : " right-4"), - style: { - top: "50%", - transform: "translate(0,-50%)" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none", - onMouseDown: (e)=>{ - e.preventDefault(); - if (window.innerWidth < 1200) return; - decrementNumber(e); - incrementTimeout = setTimeout(()=>{ - incrementInterval = setInterval(()=>{ - decrementNumber(e); - }, 50); - }, 200); - }, - onTouchStart: (e)=>{ - e.preventDefault(); - if (window.innerWidth >= 1200) return; - decrementNumber(e); - incrementTimeout = setTimeout(()=>{ - incrementInterval = setInterval(()=>{ - decrementNumber(e); - }, 50); - }, 200); - }, - onMouseUp: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - onTouchEnd: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - onMouseLeave: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - onTouchMove: (e)=>{ - e.preventDefault(); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "pointer-events-none", - children: "-" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none", - onMouseDown: (e)=>{ - e.preventDefault(); - if (window.innerWidth < 1200) return; - incrementNumber(e); - incrementTimeout = setTimeout(()=>{ - incrementInterval = setInterval(()=>{ - incrementNumber(e); - }, 50); - }, 200); - }, - onTouchStart: (e)=>{ - e.preventDefault(); - if (window.innerWidth >= 1200) return; - incrementNumber(e); - incrementTimeout = setTimeout(()=>{ - incrementInterval = setInterval(()=>{ - incrementNumber(e); - }, 50); - }, 200); - }, - onMouseUp: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - onTouchEnd: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - onMouseLeave: (e)=>{ - window.clearTimeout(incrementTimeout); - window.clearInterval(incrementInterval); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "pointer-events-none", - children: "+" - }) - }) - ] - }), - info && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "info-wrapper absolute right-2 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10", - style: { - top: "50%", - transform: "translate(0,-50%)" - }, - onMouseEnter: toggleDropdown, - onMouseLeave: toggleDropdown, - onClick: toggleDropdown, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/info-outlined-black.png", - alt: "", - className: "w-6 h-6 object-contain opacity-60 pointer-events-none" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: info - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-2 w-12", - style: { - height: "45px" - } - }) - ] - }) - ] - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log("ERROR in FormInput =>", error); - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: "Form Input Error" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7926.js b/dsql-app/.local_dist/server/chunks/7926.js deleted file mode 100644 index fa08171..0000000 --- a/dsql-app/.local_dist/server/chunks/7926.js +++ /dev/null @@ -1,502 +0,0 @@ -"use strict"; -exports.id = 7926; -exports.ids = [7926]; -exports.modules = { - -/***/ 8124: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ DashboardContent) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./pages/admin/[user_id]/index.jsx -var _user_id_ = __webpack_require__(1457); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/VerificationBanner.jsx -var VerificationBanner = __webpack_require__(7946); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesContent.jsx -var DatabasesContent = __webpack_require__(8744); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesList.jsx -var DatabasesList = __webpack_require__(6891); -;// CONCATENATED MODULE: ./components/admin/dashboard/DatabasesSummary.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabasesSummary(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , setTargetDatabase , user } = external_react_default().useContext(_user_id_.DashboardContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabasesList/* default */.Z, { - databases: databases, - setTargetDatabase: setTargetDatabase, - title: "Recently added Databases", - more: true, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/DelegatedDatabasesSection.jsx -var DelegatedDatabasesSection = __webpack_require__(5592); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/general/MetricCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.icon - * @param {string} props.metric - * @param {string | number} props.count - * @param {string} [props.url] - */ function MetricCard({ icon , metric , count , url }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: url, - className: "card col w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute top-4 right-4", - children: icon - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "content-block", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "metric text-slate-800 dark:text-white", - children: count - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-slate-600 dark:text-slate-400", - children: metric - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/dashboard/Metrics.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function Metrics(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , setTargetDatabase , metrics , user } = external_react_default().useContext(_user_id_.DashboardContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "p-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(MetricCard, { - metric: "Databases Created", - count: metrics?.dbCount || 0, - icon: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Database, { - size: 20, - className: "text-secondary2" - }), - url: `/admin/${user?.id}/databases` - }), - /*#__PURE__*/ jsx_runtime_.jsx(MetricCard, { - metric: "Tables Created", - count: metrics?.tablesCount || 0, - icon: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Sheet, { - size: 20, - className: "text-primary" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(MetricCard, { - metric: "Media Added", - count: metrics?.mediaCount || 0, - icon: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Images, { - size: 20, - className: "text-slate-500" - }), - url: `/admin/${user?.id}/media` - }), - /*#__PURE__*/ jsx_runtime_.jsx(MetricCard, { - metric: "API Keys", - count: metrics?.apiKeysCount || 0, - icon: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Key, { - size: 20, - className: "text-slate-900 dark:text-white" - }), - url: `/admin/${user?.id}/api-keys` - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/dashboard/DashboardContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DashboardContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , user } = external_react_default().useContext(_user_id_.DashboardContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Dashboard" - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Metrics, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DatabasesSummary, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DelegatedDatabasesSection/* default */.Z, { - user: user - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx(VerificationBanner/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 1457: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "DashboardContext": () => (/* binding */ DashboardContext), -/* harmony export */ "default": () => (/* binding */ Dashboard), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4858); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _components_admin_dashboard_DashboardContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8124); -/* harmony import */ var _components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5012); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DashboardContextType} */ let DashboardContextObject = {}; -const DashboardContext = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(DashboardContextObject); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - Server props - * @param {import("@/package-shared/types").MetricsType} props.metrics - Server props - */ function Dashboard({ user , databases , metrics }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {*} */ const targetDbState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type { [ targetDatabase: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type | undefined, setTargetDatabase: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type>> ] } */ const [targetDatabase, setTargetDatabase] = targetDbState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(DashboardContext.Provider, { - value: { - user, - databases, - targetDatabase, - setTargetDatabase, - metrics - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_dashboard_DashboardContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - targetDatabase: targetDatabase - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} */ const databases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC LIMIT 3`, [ - user.id - ]); - const metrics = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default()(` - SELECT ( - SELECT COUNT(id) FROM user_databases WHERE user_id=? - ) AS dbCount, - ( - SELECT COUNT(id) FROM user_database_tables WHERE user_id=? - ) AS tablesCount, - ( - SELECT COUNT(id) FROM user_media WHERE user_id=? - ) AS mediaCount, - ( - SELECT COUNT(id) FROM api_keys WHERE user_id=? - ) AS apiKeysCount - `, [ - user.id, - user.id, - user.id, - user.id - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - databases: databases, - metrics: metrics && metrics[0] ? metrics[0] : {} - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/7946.js b/dsql-app/.local_dist/server/chunks/7946.js deleted file mode 100644 index 5414a53..0000000 --- a/dsql-app/.local_dist/server/chunks/7946.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -exports.id = 7946; -exports.ids = [7946]; -exports.modules = { - -/***/ 7946: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ VerificationBanner) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function VerificationBanner(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/email-verification", - className: "card w-full items-center justify-center py-4 gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/warning.png", - alt: "Down Arrow", - width: 25, - className: "" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Your Account is not verified. Please verify your account." - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8095.js b/dsql-app/.local_dist/server/chunks/8095.js deleted file mode 100644 index 7815a76..0000000 --- a/dsql-app/.local_dist/server/chunks/8095.js +++ /dev/null @@ -1,626 +0,0 @@ -"use strict"; -exports.id = 8095; -exports.ids = [8095]; -exports.modules = { - -/***/ 7335: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ BriefIntroSection) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -// EXTERNAL MODULE: external "@mui/icons-material/CloudDoneTwoTone" -var CloudDoneTwoTone_ = __webpack_require__(5891); -;// CONCATENATED MODULE: ./components/general/ScreenShotDescriptionCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.image - * @param {string} props.title - * @param {string} [props.description] - * @param {"green" | "gray"} [props.color] - * @param {number} [props.imageHeight] - */ function ScreenShotDescriptionCard({ image , title , description , color , imageHeight , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const subColor = (()=>{ - if (color == "green") return "green"; - if (color == "gray") return "gray"; - return ""; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "color-card shadow-xl" + (color ? " " + subColor : ""), - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "title m-0 text-2xl", - children: title - }), - description && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-600 dark:text-slate-400 text-left", - children: description - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "image-block", - style: imageHeight ? { - height: `${imageHeight}px` - } : undefined, - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: image, - alt: `${title} Image` - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/general/ContainedSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.image - * @param {string} props.title - * @param {string} [props.description] - * @param {"green" | "gray" | "purple"} [props.color] - * @param {number} [props.height] - * @param {boolean} [props.h2] - * @param {string} [props.url] - * @param {string} [props.cta] - */ function ContainedSection({ image , title , description , color , height , h2 , url , cta , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const subColor = (()=>{ - if (color == "green") return "green"; - if (color == "gray") return "gray"; - if (color == "purple") return "purple"; - return ""; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "contained-section shadow-xl" + (color ? " " + subColor : ""), - style: height ? { - height: `${height}px` - } : undefined, - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "content text-left", - children: [ - h2 ? /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "m-0 text-white", - children: title - }) : /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-white", - children: title - }), - description && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: description - }), - url && cta && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: url, - className: "button mt-4", - children: cta - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "image-block", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: image, - alt: `${title} Image` - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/geometric-overlay.webp", - className: "absolute z-0 left-0 top-0 w-full h-full opacity-80 mix-blend-overlay", - alt: "Background Image" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/pages/homepage/BriefIntroSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function BriefIntroSection(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "py-20", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "main-container flex-col items-center text-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "m-0 lg:text-left", - children: "All your data storage needs in one place" - }), - /*#__PURE__*/ jsx_runtime_.jsx("p", { - className: "m-0 ", - children: "Datasquirel solves the hassle of storing data across different platforms using a centralized, easy-to-use, SQL-based cloud database administration system. Now you can have all your data in one place and retrieve from any location or environment using HTTP REST API calls and SQL queries." - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "grid grid-cols-1 xl:grid-cols-2 w-full mt-10 gap-10", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(ScreenShotDescriptionCard, { - image: "/images/screenshots/databases-light.webp", - title: "Data and Content", - description: "Create databases, tables, dynamic datatypes including rich text, JSON and other editable code blocks", - imageHeight: 400 - }), - /*#__PURE__*/ jsx_runtime_.jsx(ScreenShotDescriptionCard, { - image: "/images/screenshots/media-list-white.webp", - title: "Images, Videos, and other Media", - description: "Static images automatically compressed with multiple format support, videos, pdf, excel documents, and more.", - color: "green", - imageHeight: 400 - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "mt-10 w-full", - children: /*#__PURE__*/ jsx_runtime_.jsx(ContainedSection, { - image: "/images/screenshots/tables-list-white.webp", - title: "All the power of SQL without the hassle", - description: "Indexes, Foreign keys, encryption, triggers, stored proceedures, etc. You get the best of both worlds: the full power of SQL, and the best UI yet to better manipulate your data.", - cta: "Learn More", - url: "/about", - height: 500 - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 3987: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FooterCta) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ArticleTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1891); -/* harmony import */ var _mui_icons_material_ArticleTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ArticleTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType | null } [props.user] - */ function FooterCta({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "py-24 border-0 border-t border-b border-slate-100 dark:border-slate-100/10 border-solid", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full max-w-6xl gap-10 justify-between flex-col relative z-10", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-center max-w-2xl text-center ", - style: { - minWidth: "45%" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "m-0 leading-tight", - children: "Get started For Free." - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-lg font-normal", - children: "Get Started At no cost. Learn how to create and retrieve data by viewing our documentation." - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-start justify-center w-full mt-4", - children: [ - !user?.logged_in_status && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/create-account", - className: "button", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "", - children: "Sign Up For Free" - }) - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/docs", - className: "button outlined gray", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_ArticleTwoTone__WEBPACK_IMPORTED_MODULE_2___default()), { - sx: { - opacity: 0.8, - fontSize: 16 - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "See The Docs" - }) - ] - }) - ] - }) - ] - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/grid.webp", - alt: "Dotted image background", - className: "absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 662: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* unused harmony export default */ -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ThumbUpAltTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5768); -/* harmony import */ var _mui_icons_material_ThumbUpAltTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ThumbUpAltTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function MainFeaturesSection(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ _jsx("section", { - className: "py-20", - children: /*#__PURE__*/ _jsxs("div", { - className: "main-container flex-col items-center text-center", - children: [ - /*#__PURE__*/ _jsxs("div", { - children: [ - /*#__PURE__*/ _jsx(ThumbUpAltTwoToneIcon, { - color: "action" - }), - /*#__PURE__*/ _jsx("span", { - className: "text-slate-500 dark:text-white/80 font-medium", - children: "Built from ground up with core basic priciples" - }) - ] - }), - /*#__PURE__*/ _jsx("h2", { - className: "m-0 lg:text-left", - children: "Doing the basics and doing it right" - }), - /*#__PURE__*/ _jsxs("p", { - className: "m-0 ", - children: [ - "The main purpose of a database is to do three main things:", - " ", - /*#__PURE__*/ _jsx("b", { - children: "Create" - }), - ", ", - /*#__PURE__*/ _jsx("b", { - children: "Store" - }), - ", and ", - /*#__PURE__*/ _jsx("b", { - children: "Retrieve" - }), - ". Datasquirel focuses on these basic tasks and simplifies it as much as possible, then builds on them to make your data management even more robust." - ] - }), - /*#__PURE__*/ _jsxs("div", { - className: "grid grid-cols-1 xl:grid-cols-3 w-full gap-10 items-stretch mt-10 text-left", - children: [ - /*#__PURE__*/ _jsxs("div", { - className: "card col items-start", - children: [ - /*#__PURE__*/ _jsx("img", { - src: "/images/elastic-girl-with-the-book-and-the-globe.webp", - alt: "Real Estaste Crypto Image", - width: 250, - height: 250, - className: "object-contain" - }), - /*#__PURE__*/ _jsx("h3", { - className: "m-0", - children: "Create." - }), - /*#__PURE__*/ _jsx("span", { - className: "font-normal mb-4", - children: "Create databases, tables, columns, rows, fields, entries. Datasquirel uses all conventional SQL methods and query system for creating databases and entries: both for the GUI and for the REST api." - }), - /*#__PURE__*/ _jsx("div", { - className: "flex items-start justify-start w-full mt-auto", - children: /*#__PURE__*/ _jsx("a", { - href: "/docs/quick-start", - className: "button outlined gray", - children: /*#__PURE__*/ _jsx("span", { - children: "Learn More" - }) - }) - }) - ] - }), - /*#__PURE__*/ _jsxs("div", { - className: "card col items-start", - children: [ - /*#__PURE__*/ _jsx("img", { - src: "/images/elastic-11.webp", - alt: "Real Estaste Crypto Image", - width: 250, - height: 250, - className: "object-contain" - }), - /*#__PURE__*/ _jsx("h2", { - className: "m-0 text-3xl", - children: "Store." - }), - /*#__PURE__*/ _jsx("span", { - className: "font-normal mb-4", - children: "Store data in different formats as compatible with SQL standards. Integers, varchars, text. In addition datasquirel provides a media storage platform for easy and quick storage of images." - }), - /*#__PURE__*/ _jsxs("div", { - className: "flex items-center justify-start w-full mt-auto flex-wrap", - children: [ - /*#__PURE__*/ _jsx("a", { - href: "/docs/gui-reference/create-entry", - className: "button outlined gray", - children: /*#__PURE__*/ _jsx("span", { - children: "Learn More" - }) - }), - /*#__PURE__*/ _jsxs("a", { - href: "/docs/database-reference/data-types", - className: "text-sm text-sky-500 flex items-center gap-1", - style: { - border: "none" - }, - children: [ - "View Datatypes", - /*#__PURE__*/ _jsx("img", { - src: "/images/icons8-next-button-66.png", - alt: "", - width: 20 - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ _jsxs("div", { - className: "card col items-start", - children: [ - /*#__PURE__*/ _jsx("img", { - src: "/images/elastic-girl-looking-for-an-employee-online.webp", - alt: "Real Estaste Crypto Image", - width: 250, - height: 250, - className: "object-contain" - }), - /*#__PURE__*/ _jsx("h2", { - className: "m-0 text-3xl", - children: "Retrieve." - }), - /*#__PURE__*/ _jsx("span", { - className: "font-normal mb-4", - children: "Get sotred data from anywhere. Using SQLs powerful query system you can run queries directly via REST api with just a few lines of code. For stored media you have access to images and thumbnail links which you can view anywhere." - }), - /*#__PURE__*/ _jsxs("div", { - className: "flex items-center justify-start w-full mt-auto flex-wrap", - children: [ - /*#__PURE__*/ _jsx("a", { - href: "/docs/api-reference/get-data", - className: "button outlined gray", - children: /*#__PURE__*/ _jsx("span", { - children: "Learn More" - }) - }), - /*#__PURE__*/ _jsxs("a", { - href: "/docs/api-reference/get-data", - className: "text-sm text-sky-500 flex items-center gap-1", - style: { - border: "none" - }, - children: [ - "Rest API Docs", - /*#__PURE__*/ _jsx("img", { - src: "/images/icons8-next-button-66.png", - alt: "", - width: 20 - }) - ] - }) - ] - }) - ] - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8153.js b/dsql-app/.local_dist/server/chunks/8153.js new file mode 100644 index 0000000..1aa3a77 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8153.js @@ -0,0 +1 @@ +"use strict";exports.id=8153,exports.ids=[8153],exports.modules={51548:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732),n=l(58526);function a({selectOptions:e,name:t,onChangeHandler:l,required:a,setAlert:r,title:i,defaultValue:o,info:c,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!l.classList.contains("hidden")){l.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&l.classList.contains("hidden"))){if(!t){l.classList.add("hidden");return}if(l.classList.contains("hidden")){l.classList.remove("hidden");return}l.classList.add("hidden")}}return(0,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[i&&(0,s.jsxs)("label",{htmlFor:t,children:[i,a?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:a,onChange:e=>{r&&r(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:l,title:n}=e;return(0,s.jsx)("option",{value:l,selected:!!e.default,children:n},t+1)})}),(0,s.jsx)(n.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,s.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,s.jsx)("span",{children:c})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}l(82015)},46437:(e,t,l)=>{l.d(t,{A:()=>a});var s=l(8732);l(82015);var n=l(42178);function a(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(n.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},58548:(e,t,l)=>{l.d(t,{A:()=>r});var s=l(8732),n=l(82015),a=l.n(n);function r({confirmedDelegetedUser:e,linksArray:t,user:l}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);let[n,r]=a().useState(t||null);return n&&n[1]?(0,s.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:n.map((e,t,l)=>t===n.length-1?(0,s.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,s.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,s.jsx)(a().Fragment,{})}},75260:(e,t,l)=>{l.d(t,{A:()=>V});var s=l(8732),n=l(82015),a=l.n(n),r=l(13737),i=l(32415),o=l(40373),c=l(62506),d=l(24742),u=l(94081),h=l(18129),m=l(92184),x=l.n(m),p=l(13186),g=l.n(p),b=l(88754);function f({targetElement:e,setOpenStyleModal:t}){return e?(0,s.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{t(!1)},children:(0,s.jsx)(b.A,{})})]}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,s.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:t=>{let l=t.target;if(t.key?.match(/enter/i)){let t=l.closest(".add-css-block")?.children[0],s=l.closest(".add-css-block")?.children[1],n=t?.value,a=s?.value;if(!n?.match(/./)||!a?.match(/./))return;e.style[n]=a}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-css-block")?.children[0],n=l.closest(".add-css-block")?.children[1],a=s?.value,r=n?.value;a?.match(/./)&&r?.match(/./)&&(e.style[a]=r)},children:"Add"})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("button",{onClick:t=>{e.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,s.jsx)("button",{onClick:t=>{e.style.display="flex",e.style.alignItems="center",e.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,s.jsx)("button",{onClick:t=>{e.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,s.jsx)("button",{onClick:t=>{e.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,s.jsx)("button",{onClick:t=>{e.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.classList.add(t)}}}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.add(n)},children:"Add"}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".add-class-name-block")?.children[0],n=s?.value;n?.match(/./)&&e.classList.remove(n)},className:"outlined",children:"Remove"})]}),e?.nodeName?.match(/^a$/i)?(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:t=>{let l=t.target,s=l.closest(".href-block")?.children[0];if(t.key?.match(/enter/i)){let t=s?.value;if(!t?.match(/./))return;e.href=t}},defaultValue:e?.href}),(0,s.jsx)("button",{onClick:t=>{let l=t.target,s=l.closest(".href-block")?.children[0],n=s?.value;n?.match(/./)&&(e.href=n)},children:"Add"})]})]}):(0,s.jsx)(a().Fragment,{})]}):null}function j({targetElement:e,back:t}){if(!e)return;let l=e.nextElementSibling,s=e.previousElementSibling;!t&&l?l.after(e):t&&s&&s.before(e)}function v({editor:e,node:t,setTargetElement:l}){e.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")});let s=e.getWin(),n=s.getSelection()?.anchorNode?.parentElement,a=t||n||null;a&&(a?.classList?.add("target-node"),l&&l(a))}var y=l(29405),N=l(83722),w=l(30513),k=l(45561),S=l.n(k),C=l(63715);function A({targetElement:e,setTargetElement:t,editor:l,setOpenSnippetsModal:n}){let[r,o]=a().useState(!0),[c,d]=a().useState([]);return(0,s.jsxs)(S(),{className:"m-auto p-6 flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto relative",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Snippets"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{n(!1)},children:(0,s.jsx)(b.A,{})})]}),(0,s.jsxs)("div",{className:"flex-wrap relative w-full min-h-[100px] items-start",children:[r&&(0,s.jsx)(i.A,{}),c&&Array.isArray(c)&&c[0]&&c.map((a,r)=>(0,s.jsxs)("div",{className:"flex flex-col w-full items-start p-4 border border-slate-200 border-solid rounded cursor-pointer hover:shadow-lg transition-all hover:bg-slate-100",onClick:s=>{if(e){let s=document.createElement("div");s.innerHTML=Object.values(a)[0];let r=s.firstChild;r&&(e.appendChild(r),v({editor:l,node:r,setTargetElement:t})),n(!1)}else l.insertContent(Object.values(a)[0],{}),n(!1)},children:[(0,s.jsx)("span",{className:"font-semibold text-lg",children:Object.keys(a)[0]}),(0,s.jsx)("div",{className:"w-full block border border-slate-300 border-solid rounded-sm",dangerouslySetInnerHTML:{__html:Object.values(a)[0]}})]},r))]})]})}var L=l(5834),E=l(95281),D=l(77413),_=l(65054),O=l(57755);function R({editorRef:e}){let[t,l]=a().useState(null),[n,r]=a().useState(!1),[i,o]=a().useState(!1);return(0,s.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,s.jsxs)(c.A,{column:!0,className:"gap-[1px]",children:[(0,s.jsx)("div",{onClick:()=>{v({editor:e.current,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,s.jsx)(N.A,{})}),(0,s.jsx)("div",{onClick:()=>{j({targetElement:t,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(O.A,{})}),(0,s.jsx)("div",{onClick:()=>{j({targetElement:t})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(_.A,{})}),(0,s.jsx)("div",{onClick:()=>{o(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(d.A,{})}),(0,s.jsx)("div",{onClick:()=>{r(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(u.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.cloneNode(!0);s.nodeName.match(/html|document|body/i)||(t.insertAdjacentElement("afterend",s),t.classList.remove("target-node"),l(s))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(h.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t||t.nodeName.match(/html|document|body/i))return;let s=t.parentElement;s||(l(t),v({editor:e,node:t,setTargetElement:l})),s?.nodeName.match(/html|document|body/i)?(l(t),v({editor:e,node:t,setTargetElement:l})):s&&(l(s),v({editor:e,node:s,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(y.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(e.getWin(),!t)return;let s=t.children[0];s?(l(s),v({editor:e,node:s,setTargetElement:l})):(l(t),v({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(y.A,{className:"rotate-180"})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.previousElementSibling;s?(l(s),v({editor:e,node:s,setTargetElement:l})):(l(t),v({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(E.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function({editor:e,targetElement:t,setTargetElement:l}){if(!t)return;let s=t.nextElementSibling;s?(l(s),v({editor:e,node:s,setTargetElement:l})):(l(t),v({editor:e,node:t,setTargetElement:l}))}({editor:e.current,targetElement:t,setTargetElement:l})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(L.A,{})}),(0,s.jsx)("div",{onClick:()=>{if(t){let s=t.parentNode;s.removeChild(t),v({editor:e.current,node:s,setTargetElement:l})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,s.jsx)(D.A,{})}),(0,s.jsx)("div",{onClick:()=>{e.current.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")}),l(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,s.jsx)(w.A,{className:"rotate-180"})})]}),(0,s.jsx)(x(),{open:n,onClose:()=>{r(!1)},anchor:"right",children:(0,s.jsx)(f,{targetElement:t,setOpenStyleModal:r})}),(0,s.jsx)(g(),{open:i,onClose:()=>{o(!1)},children:(0,s.jsx)(A,{targetElement:t,setTargetElement:l,editor:e.current,setOpenSnippetsModal:o})})]})}function T({user:e,blockObject:t,placeholder:l,editorRef:n,height:r,extend:i}){let[c,d]=a().useState(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(o.Editor,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{if(i){let e=t.getBody();e.style.padding="40px",e.className="RTE-DOCS"}n&&(n.current=t)},initialValue:t&&t.content?t.content:"",init:{height:r||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:i?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:i?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:l||"Type something ...",content_css:i?"/styles/tiny.css":void 0,statusbar:!!i}}),i&&n&&(0,s.jsx)(R,{editorRef:n})]})}var B=l(46437),F=l(51548),P=l(58548);function V({data:e,user:t}){let l=!!e?.title,[n,o]=a().useState(!1),[c,d]=a().useState(e?.level),[u,h]=a().useState(e?.page_order),[m,x]=a().useState(null),[p,g]=a().useState(null),b=a().useRef(),f=a().useRef();return(0,s.jsx)(a().Fragment,{children:(0,s.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)(B.A,{}),(0,s.jsx)("h2",{className:"text-xl m-0",children:l?"Update page":"Create a new Docs Page"})]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(P.A,{user:t})}),(0,s.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[n&&(0,s.jsx)(i.A,{}),(0,s.jsxs)("form",{onSubmit:t=>{t.preventDefault(),o(!0);let s=t.target.title,n=f.current?.getDoc(),a=b.current?.getDoc();function r(e){let t=e.href;t?.match(/\~/)&&(e.href=t.replace(/.*?\~\//,"/")),t?.match(/\.\.\//)&&(e.href=t.replace(/.*?\.\.\//,"/"))}n?.querySelectorAll(".target-node").forEach(e=>e.classList.remove("target-node")),n?.querySelectorAll("a").forEach(e=>{r(e)}),a?.querySelectorAll("a").forEach(e=>{r(e)});let i=b.current?.getContent(),d=f.current?.getBody().innerHTML,h=f.current?.getBody().innerText,m={title:s.value,description:i,content:d,text_content:h,level:c,page_order:u};l&&(m.id=e.id),p?.id&&(m.parent_id=p.id),(0,C.A)(`/api/admin/docs/${l?"update-page":"add-page"}`,{method:"post",body:m}).then(e=>{e.success?window.location.reload():(alert("Operation Failed!"),setTimeout(()=>{o(!1)},1e3))})},className:"flex flex-col gap-4 w-full",children:[(0,s.jsx)(r.A,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:l?e.title:null}),(0,s.jsxs)("div",{className:"card no-hover",children:[(0,s.jsx)(r.A,{numberText:!0,placeholder:"Level",defaultValue:l?c:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:d}),(0,s.jsx)(r.A,{numberText:!0,placeholder:"Level",defaultValue:l?u:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:h}),m&&Array.isArray(m)&&(0,s.jsx)(F.A,{selectOptions:m.map(e=>({title:e.title,payload:e.id,default:p?.id==e.id})),title:"Parent Page",required:!0,onChangeHandler:e=>{let t=m.filter(t=>t.id==e.target.value);t[0]?g(t[0]):window.alert("No Matching parent page!")}})]}),(0,s.jsx)(T,{placeholder:"Describe this page briefly",editorRef:b,blockObject:l?{content:e.description}:null,height:200}),(0,s.jsx)(T,{placeholder:"Page Content",editorRef:f,blockObject:l?{content:e.content}:null,height:600,extend:!0}),(0,s.jsx)("button",{type:"submit",children:l?"Update Page":"Add Page"})]})]})]})})}},67216:(e,t,l)=>{let s=l(9973),n=l(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function r(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=r},31976:(e,t,l)=>{let s=l(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8164.js b/dsql-app/.local_dist/server/chunks/8164.js deleted file mode 100644 index 86cf9e9..0000000 --- a/dsql-app/.local_dist/server/chunks/8164.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -exports.id = 8164; -exports.ids = [8164]; -exports.modules = { - -/***/ 8164: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ grabUserSchemaData) -/* harmony export */ }); -// @ts-check -const serverError = __webpack_require__(2163); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null} - */ function grabUserSchemaData({ userId }) { - try { - const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`); - const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8")); - return userSchemaData; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/grabUserSchemaData", - message: error.message - }); - return null; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8264.js b/dsql-app/.local_dist/server/chunks/8264.js deleted file mode 100644 index 16e8f96..0000000 --- a/dsql-app/.local_dist/server/chunks/8264.js +++ /dev/null @@ -1,727 +0,0 @@ -"use strict"; -exports.id = 8264; -exports.ids = [8264]; -exports.modules = { - -/***/ 8264: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabasesTablesList), -/* harmony export */ "w": () => (/* binding */ ConnectedDatabaseBanner) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _TablesList__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6734); -/* harmony import */ var _general_ActiveCloneDbBanner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4986); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def[]} props.tables - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def | null>>} props.setTargetTable - * @param {any} props.confirmedDelegetedUser - * @param {any} props.query - * @param {import("@/package-shared/types").UserType} [props.user] - */ function DatabasesTablesList({ database , tables , setTargetTable , confirmedDelegetedUser , query , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - database.active_clone && user ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_ActiveCloneDbBanner__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - database: database, - user: user - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(ConnectedDatabaseBanner, { - database: database - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper gray", - children: [ - tables && tables[0] ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-wrap gap-4 justify-between w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0", - children: "Tables" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables`, - className: "button outlined gray small-text", - children: "See All Tables" - }) - ] - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0", - children: "This Database is empty" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", {}), - user ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_TablesList__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - database: database, - tables: tables, - setTargetTable: setTargetTable, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - user: user - }) : null - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ## Connected Database Banner - * @param {object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - */ function ConnectedDatabaseBanner({ database }) { - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "info green", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text font-normal", - children: [ - "This database is an active clone of", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: database.remote_db_full_name?.replace(/datasquirel_user_\d+_/, "") - }), - " ", - "on", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - className: "font-bold text-inherit", - href: database.remote_connection_host, - target: "_blank", - children: database.remote_connection_host - }), - " ", - "Host" - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 6734: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ TablesList) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: external "@mui/icons-material/BackupTableTwoTone" -var BackupTableTwoTone_ = __webpack_require__(1522); -var BackupTableTwoTone_default = /*#__PURE__*/__webpack_require__.n(BackupTableTwoTone_); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/admin/databases/TableListCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def} props.table - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def | null>>} props.setTargetTable - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} [props.confirmedDelegetedUser] - * @param {any} [props.query] - * @param {any} [props.icons] - * @param {import("@/package-shared/types").UserType} props.user - */ function TableListCard({ table , setTargetTable , database , confirmedDelegetedUser , query , icons , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Table/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.table_slug}`, - className: "card w-full items-center justify-between py-4" + (table?.child_table ? " green" : ""), - onClick: (e)=>{ - /** @type {HTMLAnchorElement} */ // @ts-ignore - const linkEl = e.target; - if (linkEl.closest(".db-list-item-actions-block")) { - e.preventDefault(); - } - }, - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap items-center flex", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((BackupTableTwoTone_default()), { - fontSize: "small", - className: "opacity-50", - color: "action" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "title", - style: { - fontSize: "16px" - }, - children: table.table_name - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm text-slate-400", - children: [ - "Created: ", - table.date_created?.substring(0, 21) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "db-list-item-actions-block flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.table_slug || "", - outlined: true - }), - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray small-text", - onClick: (e)=>{ - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.table_slug}/edit-table`; - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Edit" - }) - }) - }), - !active_clone_parent_db && !table.child_table && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray small-text", - onClick: (e)=>{ - window.location.href = `/admin/${user?.id}/databases/${database.db_slug}/tables/add-table?clone=true&clone_db=${database.db_slug}&clone_table=${table.table_slug}`; - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Clone" - }) - }), - (!isDelegated || isDelegated && isTableDeletable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined light-gray small-text", - onClick: (e)=>{ - setTargetTable(table); - (0,GeneralPopup/* openPopup */.Mw)("delete-table-confirmation"); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Delete" - }) - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronRight, { - className: "text-slate-600", - size: 20 - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/DriveFileRenameOutlineTwoTone" -var DriveFileRenameOutlineTwoTone_ = __webpack_require__(8193); -var DriveFileRenameOutlineTwoTone_default = /*#__PURE__*/__webpack_require__.n(DriveFileRenameOutlineTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/StorageTwoTone" -var StorageTwoTone_ = __webpack_require__(4063); -var StorageTwoTone_default = /*#__PURE__*/__webpack_require__.n(StorageTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DifferenceTwoTone" -var DifferenceTwoTone_ = __webpack_require__(930); -var DifferenceTwoTone_default = /*#__PURE__*/__webpack_require__.n(DifferenceTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/DeleteForeverTwoTone" -var DeleteForeverTwoTone_ = __webpack_require__(7039); -var DeleteForeverTwoTone_default = /*#__PURE__*/__webpack_require__.n(DeleteForeverTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/CopyAllTwoTone" -var CopyAllTwoTone_ = __webpack_require__(5050); -var CopyAllTwoTone_default = /*#__PURE__*/__webpack_require__.n(CopyAllTwoTone_); -// EXTERNAL MODULE: external "@mui/icons-material/TableViewTwoTone" -var TableViewTwoTone_ = __webpack_require__(3851); -var TableViewTwoTone_default = /*#__PURE__*/__webpack_require__.n(TableViewTwoTone_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./functions/frontend/inputFileToBase64.js -var inputFileToBase64 = __webpack_require__(8345); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/databases/ImportDbComponent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {Object} props.database - */ function ImportDbComponent({ database }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.LegacyRef<HTMLInputElement | undefined>} */ const fileRef = external_react_default().useRef(); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "file", - name: "sql-file-input", - id: "sql-file-input", - accept: ".sql", - className: "hidden", - // @ts-ignore - ref: fileRef - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex-col normal-weight outlined gray dashed w-full p-8 relative", - onClick: (e)=>{ - fileRef.current?.addEventListener("change", (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (!inputEl.files?.[0]) { - window.alert("No FIles selected"); - return; - } - (0,inputFileToBase64/* default */.Z)({ - inputFile: inputEl.files[0] - }).then((fileObject)=>{ - if (window.confirm(`Use this file '${fileObject.fileName}' as your import file?`)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/importDatabase", { - method: "post", - body: { - database: database, - fileBase64: fileObject.fileBase64 - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert("Import Failed!"); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - }); - }); - fileRef.current?.click(); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Do you have an SQL file already?" - }), - /*#__PURE__*/ jsx_runtime_.jsx((StorageTwoTone_default()), { - sx: { - fontSize: 80 - }, - className: "opacity-20" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Import Database" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/SummarizeTwoTone" -var SummarizeTwoTone_ = __webpack_require__(7428); -var SummarizeTwoTone_default = /*#__PURE__*/__webpack_require__.n(SummarizeTwoTone_); -;// CONCATENATED MODULE: ./components/admin/databases/ImportSchemaComponent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {Object} props.database - */ function ImportSchemaComponent({ database }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.LegacyRef<HTMLInputElement | undefined>} */ const fileRef = external_react_default().useRef(); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "file", - name: "json_file_input", - id: "json_file_input", - accept: ".json", - className: "hidden", - // @ts-ignore - ref: fileRef - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex-col normal-weight outlined gray dashed w-full p-8 relative", - onClick: (e)=>{ - fileRef.current?.addEventListener("change", (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (!inputEl.files?.[0]) { - window.alert("No FIles selected"); - return; - } - (0,inputFileToBase64/* default */.Z)({ - inputFile: inputEl.files[0] - }).then((fileObject)=>{ - if (window.confirm(`Use this file '${fileObject.fileName}' as your import file?`)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/importDatabaseSchema", { - method: "post", - body: { - database: database, - fileBase64: fileObject.fileBase64 - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert("Import Failed!"); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - }); - }); - fileRef.current?.click(); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Do you have a JSON schema?" - }), - /*#__PURE__*/ jsx_runtime_.jsx((SummarizeTwoTone_default()), { - sx: { - fontSize: 80 - }, - className: "opacity-20" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Import JSON schema" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/TablesList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def[]} props.tables - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def | null>>} props.setTargetTable - * @param {any} props.confirmedDelegetedUser - * @param {any} props.query - * @param {import("@/package-shared/types").UserType} props.user - */ function TablesList({ database , tables , setTargetTable , confirmedDelegetedUser , query , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Table/i); - const addTablePlaceholder = (()=>{ - if ((!tables || !tables[0]) && !isDelegated) return true; - if ((!tables || !tables[0]) && isDelegated && isTableCreatable) return true; - return false; - })(); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col", - children: [ - tables && tables[0] && tables.map((table)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(TableListCard, { - table: table, - setTargetTable: setTargetTable, - database: database, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - icons: { - edit: (DriveFileRenameOutlineTwoTone_default()), - duplicate: (DifferenceTwoTone_default()), - delete: (DeleteForeverTwoTone_default()), - copy: (CopyAllTwoTone_default()) - }, - user: user - }, table.id); - }), - addTablePlaceholder && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/add-table`, - className: "button flex-col normal-weight outlined gray dashed border-dotted w-full p-8", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "No Tables Created." - }), - /*#__PURE__*/ jsx_runtime_.jsx((TableViewTwoTone_default()), { - sx: { - fontSize: 100 - }, - className: "opacity-20" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Add Table" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(ImportDbComponent, { - database: database - }), - /*#__PURE__*/ jsx_runtime_.jsx(ImportSchemaComponent, { - database: database - }) - ] - }) - }), - (!tables || !tables[0]) && isDelegated && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400", - children: "Tables will show here once the owner of the database adds one" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8268.js b/dsql-app/.local_dist/server/chunks/8268.js new file mode 100644 index 0000000..6e5b78e --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8268.js @@ -0,0 +1 @@ +exports.id=8268,exports.ids=[8268],exports.modules={32415:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({width:e,position:t,style:a,borderWidth:r,screen:n,title:i}){return(0,s.jsxs)("div",{className:" top-0 left-0 w-full h-full flex items-center justify-center gap-4 bg-white/80 dark:bg-slate-800/80 z-50"+(n?" fixed":" absolute"),style:{...a,position:t,zIndex:2e4},children:[(0,s.jsx)("span",{className:"general_loader",style:e?{width:e,height:e,minWidth:e,borderWidth:r||"4px"}:{}}),i?(0,s.jsx)("span",{children:i}):(0,s.jsx)(l().Fragment,{})]})}},93353:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(8732);a(82015);var r=a(59266);function l({size:e,adminAside:t,collapseAsideMobile:a,setCollapseAsideMobile:l}){return(0,s.jsxs)("a",{href:"/",className:"logo",onClick:e=>{let t=e.target;if(t?.closest("button"))return e.preventDefault()},children:[t&&(0,s.jsxs)("button",{className:"flex lg:hidden small-text mr-2 primary-light",onClick:e=>{a&&l?l(!1):l&&l(!0)},children:[(0,s.jsx)("div",{className:"-mt-0.5",children:(0,s.jsx)(r.A,{color:"action"})}),(0,s.jsx)("span",{className:"dark:text-white",children:"Menu"})]}),(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"dark:hidden -mt-1.5 -mr-1.5"}),(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:35,className:"hidden dark:flex -mt-1.5 -mr-1.5"}),(0,s.jsx)("span",{className:"text-slate-800 dark:text-white text-[20px] font-bold hidden sm:flex -mt-[1px]",children:"Datasquirel"})]})}},87472:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({pageTitle:e,pageDescription:t,pagePathname:a,aceEditor:r}){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("link",{rel:"canonical",href:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{itemProp:"url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{name:"twitter:url",content:"http://localhost:7070"+a}),(0,s.jsx)("meta",{property:"og:title",content:e}),(0,s.jsx)("meta",{property:"og:description",content:t}),(0,s.jsx)("meta",{itemProp:"name",content:e}),(0,s.jsx)("meta",{itemProp:"description",content:t}),(0,s.jsx)("meta",{name:"twitter:title",content:e}),(0,s.jsx)("meta",{name:"twitter:description",content:t}),r&&(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,s.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]})}},34254:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n(e){let[t,a]=l().useState("Light Mode");return(0,s.jsx)("div",{className:"",id:"theme-selector-wrapper",onClick:()=>{let e=document.getElementById("theme-selector-graphic-wrapper"),t=localStorage.getItem("theme"),s=e?.querySelector("img.sun"),r=e?.querySelector("img.moon");!t||t?.match(/light/)?(document.documentElement.className="dark",localStorage.setItem("theme","dark"),t="dark",s?.classList.add("hidden"),r?.classList.remove("hidden"),e?.firstChild?.classList.add("ml-auto"),a("Dark Mode")):t?.match(/dark/)&&(document.documentElement.className="light",localStorage.setItem("theme","light"),t="light",r?.classList.add("hidden"),s?.classList.remove("hidden"),e?.firstChild?.classList.remove("ml-auto"),a("Light Mode"))},children:(0,s.jsx)("div",{className:"p-1 rounded-full w-12 transition-all",id:"theme-selector-graphic-wrapper",children:(0,s.jsxs)("div",{className:"pointer-events-none transition-all dark:ml-auto",children:[(0,s.jsx)("img",{src:"/images/sun.png",alt:"Sun Icon",width:18,className:"sun dark:hidden"}),(0,s.jsx)("img",{src:"/images/new-moon.png",alt:"Sun Icon",width:18,className:"moon hidden dark:flex"})]})})})}},62506:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(8732),r=a(82015),l=a.n(r);function n({children:e,column:t,className:a}){let r=l().useRef();return(0,s.jsx)("div",{className:"items-stretch gap-0"+(t?" flex-col":" flex-wrap xl:flex-nowrap")+(a?" "+a:""),ref:r,children:e})}},63715:(e,t,a)=>{"use strict";async function s(e,t,a){let s;let r=e.match(/\?/)?e:e+window.location.search;if("string"==typeof t)try{s="post"===t?(await fetch(r,{method:t,headers:{"Content-Type":"application/json","x-csrf-auth":a?localStorage.getItem("csrf"):""}})).json():(await fetch(r)).json()}catch(e){s=null}else if("object"==typeof t)try{let e;if(t.body&&"object"==typeof t.body){let e=t.body;t.body=JSON.stringify(e)}if(t.headers){t.headers["x-csrf-auth"]=a?localStorage.getItem("csrf"):"";let s={...t};e=await fetch(r,s)}else e=await fetch(r,{...t,headers:{"Content-Type":"application/json","x-csrf-auth":a?localStorage.getItem("csrf"):""}});s=e.json()}catch(e){s=null}else try{s=(await fetch(r)).json()}catch(e){s=null}return s}a.d(t,{A:()=>s})},54896:(e,t,a)=>{"use strict";async function s({links:e}){let t=e||document.querySelectorAll("nav a");if(t&&t.forEach(e=>{e.dataset.currentlink===window.location.pathname?e.classList.add("active"):window.location.pathname.match(RegExp(`${e.dataset.currentlink}\\/.*`))&&!e.dataset.strictlink&&e.classList.add("active")}),window.location.pathname.match(/\/databases\/.*/)){let e=document.querySelectorAll("a");e&&window.location.search.match(/delegated=true/)&&e.forEach((e,t)=>{e?.pathname?.match(/databases/)&&(e.href=e.pathname+window.location.search)})}}a.d(t,{A:()=>s})},71457:(e,t,a)=>{"use strict";a.d(t,{A:()=>h});var s=a(8732),r=a(82015),l=a.n(r),n=a(27912),i=a.n(n);a(54896);var c=a(20681),o=a(64699);function d(e){return(0,s.jsx)(l().Fragment,{})}var m=a(11169);function h({children:e,head:t,user:a,productionEnvironment:r,darkBgHeader:n,transparentHeader:h}){return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)(i(),{children:t}),(0,s.jsx)(d,{head:t,productionEnvironment:r}),(0,s.jsx)(c.A,{user:a,darkBg:n,transparent:h}),e,(0,s.jsx)(o.A,{}),(0,s.jsx)(m.A,{})]})}},49538:(e,t,a)=>{"use strict";a.d(t,{A:()=>m});var s=a(8732),r=a(82015),l=a.n(r),n=a(32415);a(62506);var i=a(52070);function c({user:e}){return(0,s.jsxs)("div",{className:"dropdown right-aligned",children:[(0,s.jsxs)("a",{href:"/admin",className:"button outlined gray more-padding relative z-20 mb-2",children:[(0,s.jsx)(i.A,{size:18,className:"mr-1"}),(0,s.jsx)("span",{children:"Dashboard"})]}),null,(0,s.jsx)("a",{href:`/admin/${e?.id}/settings`,className:"button plain-text more-padding normal-weight",children:"Settings"}),(0,s.jsx)("a",{href:"/logout",className:"button plain-text more-padding normal-weight",children:"Logout"})]})}var o=a(34254),d=a(58526);function m({activeUser:e,noModeSelector:t}){return e?.logged_in_status?(0,s.jsxs)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap",children:[(0,s.jsxs)("div",{className:"ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden",children:[(0,s.jsx)("a",{href:`/admin/${e?.id}/notifications`,className:"flex items-center justify-center",children:(0,s.jsx)("img",{src:"/images/notification-icon.svg",alt:"Notification Icon",width:20,className:"opacity-50"})}),(0,s.jsxs)("div",{className:"dropdown mt-0 xl:-mt-3 gap-2",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"Notifications"}),(0,s.jsx)(n.A,{position:"relative",width:"20px"})]})]}),(0,s.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,s.jsxs)("div",{className:"avatar",style:{width:"36px",height:"36px"},children:[(0,s.jsx)("img",{src:e?.image,alt:"User Image",width:35,className:"w-full h-full object-cover rounded-full"}),e?.social_login?(0,s.jsxs)("div",{className:"sub-img",children:[(0,s.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github.png":"/images/sharing.png",alt:"",className:"flex dark:hidden"}),(0,s.jsx)("img",{src:e?.social_platform?.match(/facebook/i)?"/images/facebook.png":e?.social_platform?.match(/google/i)?"/images/google.png":e?.social_platform?.match(/github/i)?"/images/github-white.png":"/images/sharing.png",alt:"",className:"hidden dark:flex"})]}):(0,s.jsx)(l().Fragment,{})]}),(0,s.jsx)("span",{className:"dark:text-white",children:(0,s.jsxs)("b",{children:[e?.first_name," ",e?.last_name]})}),(0,s.jsx)(d.A,{size:20}),(0,s.jsx)(c,{user:e})]}),!t&&(0,s.jsx)("div",{className:"ml-2",children:(0,s.jsx)(o.A,{})})]}):(0,s.jsx)(l().Fragment,{})}},64699:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(8732);a(82015);var r=a(93353);function l(e){return(0,s.jsxs)("footer",{className:"p-8 md:p-10 w-full flex flex-col items-center",children:[(0,s.jsxs)("div",{className:"main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-6",children:[(0,s.jsx)(r.A,{}),(0,s.jsx)("span",{className:"font-normal max-w-sm text-sm text-left",children:"Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management."})]}),(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("h4",{className:"m-0",children:"Features"}),(0,s.jsx)("a",{href:"/docs/database-reference/data-types",className:"text-slate-600",children:"Database Schema"}),(0,s.jsx)("a",{href:"/docs/database-reference/querying-data",className:"text-slate-600",children:"SQL Queries"}),(0,s.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"text-slate-600",children:"Media Storage"})]}),(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("h4",{className:"m-0",children:"Docs"}),(0,s.jsx)("a",{href:"/docs/quick-start",className:"text-slate-600",children:"Quick Start Guide"}),(0,s.jsx)("a",{href:"/docs/api-reference",className:"text-slate-600",children:"API Guide"}),(0,s.jsx)("a",{href:"/docs/gui-reference",className:"text-slate-600",children:"GUI Interface"})]}),(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("h4",{className:"m-0",children:"Company"}),(0,s.jsx)("a",{href:"/about",className:"text-slate-600",children:"About Us"}),(0,s.jsx)("a",{href:"/terms",className:"text-slate-600",children:"Terms and Conditions"}),(0,s.jsx)("a",{href:"/privacy",className:"text-slate-600",children:"Privacy Policy"})]})]}),(0,s.jsx)("hr",{className:"my-10"}),(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]})})]})}},20681:(e,t,a)=>{"use strict";a.d(t,{A:()=>d});var s=a(8732),r=a(82015),l=a.n(r),n=a(34254),i=a(93353),c=a(49538),o=a(58526);function d({user:e,darkBg:t,transparent:a}){let[r,d]=l().useState(e?.logged_in_status?e:null);return(0,s.jsx)("header",{className:"w-full px-4 md:px-8 flex justify-center gap-4 "+(t?" shadow-slate-900/20 dark-content":" shadow-slate-900/5")+(a?"":" bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50")+(e?.logged_in_status?" py-4":" py-6"),style:{zIndex:700},children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("nav",{className:"w-full flex items-center justify-between gap-4 md:gap-10",children:[(0,s.jsx)(i.A,{}),(0,s.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent"+(a?" bg-white xl:bg-transparent":" bg-white dark:bg-slate-800"),id:"main-nav-content-wrapper",children:[(0,s.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,s.jsx)("a",{href:"/",children:(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,s.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let t=document.getElementById("main-nav-content-wrapper");t?.classList.toggle("hidden")},style:{border:"none"},children:(0,s.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,s.jsxs)("div",{className:"flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0",children:[(0,s.jsxs)("div",{className:"flex-col xl:flex-row w-full gap-y-10 gap-x-6",children:[(0,s.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,s.jsxs)("a",{href:"/docs/gui-reference",className:"relative z-10 flex items-center gap-2",children:[(0,s.jsx)("span",{children:"Features"}),(0,s.jsx)(o.A,{size:20})]}),(0,s.jsxs)("div",{className:"dropdown",children:[(0,s.jsx)("a",{href:"/docs/database-reference/data-types",className:"button plain-text more-padding normal-weight",children:"Database Schema"}),(0,s.jsx)("a",{href:"/docs/database-reference/querying-data",className:"button plain-text more-padding normal-weight",children:"Sql Queries"}),(0,s.jsx)("a",{href:"/docs/gui-reference/upload-media",className:"button plain-text more-padding normal-weight",children:"Media Storage"})]})]}),(0,s.jsxs)("div",{className:"dropdown-wrapper flex items-center gap-1",children:[(0,s.jsxs)("a",{href:"/docs",className:"relative z-10 flex items-center gap-2",children:[(0,s.jsx)("span",{children:"Docs"}),(0,s.jsx)(o.A,{size:20})]}),(0,s.jsxs)("div",{className:"dropdown",children:[(0,s.jsx)("a",{href:"/docs/quick-start",className:"button plain-text more-padding normal-weight",children:"Quick Start"}),(0,s.jsx)("a",{href:"/docs/api-reference",className:"button plain-text more-padding normal-weight",children:"Api Guide"}),(0,s.jsx)("a",{href:"/docs/gui-reference",className:"button plain-text more-padding normal-weight",children:"GUI Interface"})]})]}),(0,s.jsx)("a",{href:"/about",children:"About Us"}),(0,s.jsx)("a",{href:"/contact",children:"Contact Us"})]}),r?.logged_in_status?(0,s.jsx)(c.A,{activeUser:r,noModeSelector:!0}):(0,s.jsxs)("div",{className:"ml-auto w-full xl:w-auto justify-center",children:[(0,s.jsx)("a",{href:"/login",className:"button outlined gray hidden xl:flex"+(t?" light":""),children:"Login"}),(0,s.jsx)("a",{href:"/login",className:"button outlined gray flex xl:hidden",children:"Login"}),(0,s.jsx)("a",{href:"/create-account",className:"button",children:"Get Started"})]})]})]}),(0,s.jsx)("div",{className:"ml-0 xl:-ml-2",children:(0,s.jsx)(n.A,{})}),(0,s.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all",onClick:e=>{let t=document.getElementById("main-nav-content-wrapper");t?.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,s.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,s.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,s.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})})}},11169:(e,t,a)=>{"use strict";a.d(t,{A:()=>i});var s=a(8732),r=a(58591),l=a(82015),n=a.n(l);function i({snug:e}){let[t,a]=n().useState(!1);return(0,s.jsx)(n().Fragment,{children:t&&(0,s.jsx)("button",{className:"fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent"+(e?" bottom-6 right-4":" bottom-4 md:bottom-10 right-4 md:right-10"),style:{outlineStyle:"solid",outlineWidth:"1px",zIndex:2e3},onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},children:(0,s.jsx)(r.A,{size:20})})})}},68268:(e,t,a)=>{"use strict";a.r(t),a.d(t,{AppContext:()=>p,default:()=>f});var s=a(8732),r=a(82015),l=a.n(r),n=a(28133),i=a.n(n),c=a(27912),o=a.n(c),d=a(90627);a(79061),a(44422);var m=a(63715),h=a(71457),x=a(87472);class g extends l().Component{constructor(e){super(e),this.state={hasError:!1};let t="Error | Datasquirel",a="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",r=(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"description",content:a}),(0,s.jsx)(x.A,{pageTitle:t,pageDescription:a,pagePathname:"/"})]});this.state.head=r}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){(0,m.A)("/api/admin/clientError",{method:"post",body:{component:"ErrorBoundary-class-component",message:e.message+" ==== Error Info => "+t,user:{}}})}render(){return this.state.hasError?(0,s.jsx)(h.A,{head:this.state.head,user:null,children:(0,s.jsxs)("div",{className:"paper items-center px-20",children:[(0,s.jsx)("h2",{className:"text-base text-slate-400 m-0",children:"Application Error!"}),(0,s.jsx)("h1",{className:"text-2xl m-0 mb-4",children:"Please try again!"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{href:"/",className:"button outlined",children:"Home"}),(0,s.jsx)("button",{onClick:e=>{window.history.back()},children:"Go Back"})]})]})}):this.props.children}}let u=(0,d.createTheme)({typography:{fontFamily:"inherit",fontSize:14},palette:{primary:{main:"#00948a"},secondary:{main:"#107ab8"},light:{main:"#c48ff0"},white:{main:"#ffffff"},grey:{main:"#64748b"},gray:{main:"#64748b"},dark:{main:"#1e293b"}}}),p=l().createContext({pageProps:{}});function f({Component:e,pageProps:t}){return(0,s.jsxs)(p.Provider,{value:{pageProps:t},children:[(0,s.jsx)(o(),{children:(0,s.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})}),(0,s.jsx)(g,{children:(0,s.jsx)(d.ThemeProvider,{theme:u,children:(0,s.jsx)(e,{...t})})}),(0,s.jsx)(i(),{src:"/scripts/main.js",strategy:"afterInteractive"})]})}},79061:()=>{},44422:()=>{}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8313.js b/dsql-app/.local_dist/server/chunks/8313.js deleted file mode 100644 index 6bc2707..0000000 --- a/dsql-app/.local_dist/server/chunks/8313.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -exports.id = 8313; -exports.ids = [8313]; -exports.modules = { - -/***/ 4981: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ThemeSelector) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - */ function ThemeSelector(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [theme, setTheme] = react__WEBPACK_IMPORTED_MODULE_1___default().useState("Light Mode"); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - let existingTheme = localStorage.getItem("theme"); - if (existingTheme?.match(/dark/)) { - setTheme("Dark Mode"); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "", - id: "theme-selector-wrapper", - onClick: ()=>{ - const graphicWrapper = document.getElementById("theme-selector-graphic-wrapper"); - let existingTheme = localStorage.getItem("theme"); - const sunIcon = graphicWrapper?.querySelector("img.sun"); - const moonIcon = graphicWrapper?.querySelector("img.moon"); - //////////////////////////////////////// - if (!existingTheme || existingTheme?.match(/light/)) { - document.documentElement.className = "dark"; - localStorage.setItem("theme", "dark"); - existingTheme = "dark"; - //////////////////////////////////////// - sunIcon?.classList.add("hidden"); - moonIcon?.classList.remove("hidden"); - // @ts-ignore - graphicWrapper?.firstChild?.classList.add("ml-auto"); - //////////////////////////////////////// - setTheme("Dark Mode"); - //////////////////////////////////////// - } else if (existingTheme?.match(/dark/)) { - document.documentElement.className = "light"; - localStorage.setItem("theme", "light"); - existingTheme = "light"; - //////////////////////////////////////// - moonIcon?.classList.add("hidden"); - sunIcon?.classList.remove("hidden"); - // @ts-ignore - graphicWrapper?.firstChild?.classList.remove("ml-auto"); - //////////////////////////////////////// - setTheme("Light Mode"); - //////////////////////////////////////// - } - //////////////////////////////////////// - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "p-1 rounded-full w-12 transition-all", - id: "theme-selector-graphic-wrapper", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "pointer-events-none transition-all dark:ml-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/sun.png", - alt: "Sun Icon", - width: 18, - className: "sun dark:hidden" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/new-moon.png", - alt: "Sun Icon", - width: 18, - className: "moon hidden dark:flex" - }) - ] - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9678: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ updateNavLinks) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * - * @param {object} param0 - * @param {HTMLAnchorElement[] | NodeListOf<HTMLAnchorElement>} [param0.links] - */ async function updateNavLinks({ links }) { - /** @type {NodeListOf<HTMLAnchorElement> | HTMLAnchorElement[]} */ let navLinks = links ? links : document.querySelectorAll("nav a"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (navLinks) { - navLinks.forEach((link)=>{ - if (link.dataset.currentlink === window.location.pathname) { - link.classList.add("active"); - } else if (window.location.pathname.match(new RegExp(`${link.dataset.currentlink}\\/.*`)) && !link.dataset.strictlink) { - link.classList.add("active"); - } - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const isDbPathValid = window.location.pathname.match(/\/databases\/.*/); - if (isDbPathValid) { - const links1 = document.querySelectorAll("a"); - if (links1 && window.location.search.match(/delegated=true/)) { - links1.forEach((link, index)=>{ - if (!link?.pathname?.match(/databases/)) return; - link.href = link.pathname + window.location.search; - }); - } - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8326.js b/dsql-app/.local_dist/server/chunks/8326.js deleted file mode 100644 index 49a8bda..0000000 --- a/dsql-app/.local_dist/server/chunks/8326.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -exports.id = 8326; -exports.ids = [8326]; -exports.modules = { - -/***/ 9046: -/***/ ((module) => { - -// @ts-check -/** - * Regular expression to match default fields - * - * @description Regular expression to match default fields - */ -const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = defaultFieldsRegexp; - - -/***/ }), - -/***/ 8326: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const decrypt = __webpack_require__(5425); -const defaultFieldsRegexp = __webpack_require__(9046); -/** - * Parse Database results - * ============================================================================== - * @description this function takes a database results array gotten from a DB handler - * function, decrypts encrypted fields, and returns an updated array with no encrypted - * fields - * - * @param {object} params - Single object params - * @param {any[]} params.unparsedResults - Array of data objects containing Fields(keys) - * and corresponding values of the fields(values) - * @param {import("../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @returns {Promise<object[]|null>} - */ module.exports = async function parseDbResults({ unparsedResults , tableSchema , }) { - /** - * Declare variables - * - * @description Declare "results" variable - */ let parsedResults = []; - try { - /** - * Declare variables - * - * @description Declare "results" variable - */ for(let pr = 0; pr < unparsedResults.length; pr++){ - let result = unparsedResults[pr]; - let resultFieldNames = Object.keys(result); - for(let i = 0; i < resultFieldNames.length; i++){ - const resultFieldName = resultFieldNames[i]; - let resultFieldSchema = tableSchema?.fields[i]; - if (resultFieldName?.match(defaultFieldsRegexp)) { - continue; - } - let value = result[resultFieldName]; - if (typeof value !== "number" && !value) { - continue; - } - if (resultFieldSchema?.encrypted) { - if (value?.match(/./)) { - result[resultFieldName] = decrypt(value); - } - } - } - parsedResults.push(result); - } - /** - * Declare variables - * - * @description Declare "results" variable - */ return parsedResults; - } catch (/** @type {any} */ error) { - console.log("ERROR in parseDbResults Function =>", error.message); - return unparsedResults; - } -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8345.js b/dsql-app/.local_dist/server/chunks/8345.js deleted file mode 100644 index 978acc1..0000000 --- a/dsql-app/.local_dist/server/chunks/8345.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -exports.id = 8345; -exports.ids = [8345]; -exports.modules = { - -/***/ 8345: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ inputFileToBase64) -/* harmony export */ }); -// @ts-check -/** - * @typedef {{ - * fileBase64: string | null, - * fileBase64Full: string | null, - * fileName: string | null, - * fileSize: number | null, - * fileType: string | null, - * }} FunctionReturn - */ /** - * Upload a file - * ============================================================================== - * @async - * - * @param {{ - * inputFile: File, - * }} params - Single object passed - * - * @description This function takes in a *SINGLE* input file from a HTML file input element. - * HTML file input elements usually return an array of input objects, so be sure to select the target - * file from the array. - * - * @returns { Promise<FunctionReturn> } - Return Object - */ async function inputFileToBase64({ inputFile }) { - /** - * == Initialize - * - * @description Initialize - */ // const allowedTypesRegex = /image\/*|\/pdf/; - // if (!inputFile?.type?.match(allowedTypesRegex)) { - // window.alert(`We currently don't support ${inputFile.type} file types. Support is coming soon. For now we support only images and PDFs.`); - // return { - // fileBase64: null, - // fileBase64Full: null, - // fileName: inputFile.name, - // fileSize: null, - // fileType: null, - // }; - // } - try { - /** - * == Process File - */ let fileName = inputFile.name.replace(/\..*/, ""); - /** Add source to new file **/ const fileData = await new Promise((resolve, reject)=>{ - var reader = new FileReader(); - reader.readAsDataURL(inputFile); - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function(/** @type {any} */ error) { - console.log("Error: ", error.message); - }; - }); - return { - fileBase64: fileData.replace(/.*?base64,/, ""), - fileBase64Full: fileData, - fileName: fileName, - fileSize: inputFile.size, - fileType: inputFile.type - }; - } catch (/** @type {any} */ error) { - console.log("Image Processing Error! =>", error.message); - return { - fileBase64: null, - fileBase64Full: null, - fileName: inputFile.name, - fileSize: null, - fileType: null - }; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8370.js b/dsql-app/.local_dist/server/chunks/8370.js new file mode 100644 index 0000000..5c60718 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8370.js @@ -0,0 +1,13 @@ +"use strict";exports.id=8370,exports.ids=[8370],exports.modules={95248:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.d(a,{A:()=>p});var r=t(8732),l=t(82015),d=t.n(l),n=t(58548),i=t(46437),o=t(63715),c=t(32415),m=t(77826),u=t(87730),h=e([u]);function p(e){let{singleUser:a,database:t,user:s}=d().useContext(u.SingleDbUserContext),l=Object.keys(a).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[h,p]=d().useState(!1),[_,g]=d().useState(a.image);return(0,r.jsxs)(d().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)(i.A,{}),_&&(0,r.jsx)("img",{src:_,alt:"",className:"avatar large outlined"}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[a.first_name," ",a.last_name]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("a",{href:`/admin/${s?.id}/databases/${t.db_slug}/users/${a.id}/change-password`,className:"button outlined gray",children:"Change Password"}),(0,r.jsx)("button",{className:"bg-red-500",onClick:e=>{p(!0),window.confirm("Delete this user?")&&(0,o.A)("/api/deleteDbUser",{method:"post",body:{userId:a.id,dbFullName:t.db_full_name}},!0).then(e=>{e.success&&(window.location.pathname=`/admin/${s?.id}/databases/${t.db_slug}/users`)})},children:"Delete User"})]})]}),(0,r.jsx)(n.A,{user:s})]}),(0,r.jsxs)("section",{className:"paper",children:[h&&(0,r.jsx)(c.A,{}),(0,r.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,r.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{e.preventDefault(),p(!0);let s=e.target,r=Array.from(s),l={};r.forEach(e=>{!e?.nodeName?.match(/button/i)&&e?.name&&e?.value?.match(/./)&&(e?.name?.match(/username|email/)||(l[e.name]=e.value))});let d={dbFullName:t.db_full_name,payload:{...l,id:a.id}};(0,o.A)("/api/updateDbUser",{method:"post",body:d},!0).then(e=>{_?.imageBase64?(_.imageName=`${t.db_slug}-user-${a.id}`,_.mimeType="jpeg",delete _.imageBase64Full,(0,o.A)("/api/addUserMedia",{method:"post",body:{media:[_],folder:t.db_slug.replace(/_/g,"-"),type:"image"}},!0).then(e=>{e&&e.mediaData&&e.mediaData[0]?.media_url?(0,o.A)("/api/updateDbUser",{method:"post",body:{dbFullName:t.db_full_name,payload:{id:a.id,image:e.mediaData[0].media_url,image_thumbnail:e.mediaData[0].media_thumbnail_url}}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{p(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[l.map((e,t)=>e?.match(/password|^database|email|username/)?(0,r.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,r.jsx)("label",{htmlFor:e,children:e}),(0,r.jsx)("input",{type:"text",name:e,id:e,value:a[e],placeholder:e,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},t+1)]},t+1):e?.match(/more_user_data/)?(0,r.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,r.jsx)("label",{htmlFor:e,children:e}),(0,r.jsx)("textarea",{name:e,id:e,defaultValue:a[e]?a[e]:void 0,placeholder:e,rows:6},t+1)]},t+1):(0,r.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,r.jsx)("label",{htmlFor:e,children:e}),(0,r.jsx)("input",{type:"text",name:e,id:e,defaultValue:a[e]?a[e]:void 0,placeholder:e},t+1)]},t+1)),(0,r.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,r.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),(0,r.jsx)(m.A,{userImage:_,setUserImage:g,className:"w-full"})]}),(0,r.jsx)("button",{children:"Update User"})]})})]})]})}u=(h.then?(await h)():h)[0],s()}catch(e){s(e)}})},31651:(e,a,t)=>{t(81630);let s=t(83007);e.exports=async function({request:e,databaseSlug:a,user:t,query:r}){try{let l=t.id,d=null;if(!r?.delegated)return{dbUserId:l};let n=r.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${n}_${a}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=s(e.cookies[o]);if(!t)throw Error("Invalid Token");if((d=JSON.parse(t)).databaseSlug===a)return{dbUserId:l=d.rootUserId,rootUserId:d.rootUserId,rootUserName:d.rootUserName,rootUserEmail:d.rootUserEmail,rootUserImage:d.rootUserImage,databaseFullName:d.databaseFullName,databaseSlug:d.databaseSlug,allowedTables:d.allowedTables,priviledges:d.priviledges,database:d.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},48987:(e,a,t)=>{var s=t(24994);a.A=void 0;var r=s(t(30887)),l=t(8732);a.A=(0,r.default)([(0,l.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,a,t)=>{var s=t(24994);a.A=void 0;var r=s(t(30887)),l=t(8732);a.A=(0,r.default)([(0,l.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,l.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,l.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,l.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,l.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,a,t)=>{var s=t(24994);a.A=void 0;var r=s(t(30887)),l=t(8732);a.A=(0,r.default)([(0,l.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},96089:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},98136:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,a,t)=>{let s=t(83007),r=t(68743);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l<e.length;l++){let d=e[l],n=Object.keys(d);for(let e=0;e<n.length;e++){let t=n[e],l=a?.fields[e];if(t?.match(r))continue;let i=d[t];("number"==typeof i||i)&&l?.encrypted&&i?.match(/./)&&(d[t]=s(i))}t.push(d)}return t}catch(a){return console.log("ERROR in parseDbResults Function =>",a.message),e}}},22373:(e,a,t)=>{let s=t(29021);e.exports=async function({user:e,message:a,component:t,noMail:r}){let l=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${a} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let d=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",l),s.appendFileSync("./.tmp/error.log",` + + + + +${d}`)}},90378:(e,a,t)=>{t(29021);let s=t(89545),r=t(22373),l=t(67216),d=t(1231);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:n}){let i;let o=!!t?.match(/^datasquirel$/),c=o?l:d;try{i=e&&a&&Array.isArray(a)&&a[0]?o?await c(e,a):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):o?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&n)try{let e=i;return await s({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},1231:(e,a,t)=>{let s=t(29021);t(33873);let r=t(9973),l=t(31976),d=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:a,queryString:t,queryValues:n}){try{return new Promise((i,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function m(e){d.end(),i(JSON.parse(JSON.stringify(e)))}function u(e){d.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:n,sql:e.sql})}d=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:a,ssl:l()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:a,ssl:l()}}),n&&Array.isArray(n)&&n[0]?d.query(t,n).then(m).catch(u):d.query(t).then(m).catch(u)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},87730:(e,a,t)=>{t.a(e,async(e,s)=>{try{t.r(a),t.d(a,{SingleDbUserContext:()=>v,default:()=>f,getServerSideProps:()=>y});var r=t(8732),l=t(82015),d=t.n(l),n=t(95222),i=t(20048),o=t.n(i),c=t(64098),m=t(31651),u=t.n(m),h=t(95248),p=t(67216),_=t.n(p),g=t(90378),b=t.n(g),x=e([c,h]);[c,h]=x.then?(await x)():x;let S=t(29021),v=d().createContext({});function f({user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:d,confirmedDelegetedUser:i}){let o=`${l.first_name} ${l.last_name} Users | Datasquirel"`,m=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:o}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,r.jsx)(n.A,{head:m,user:e,extraHeaderContent:(0,r.jsx)(c.A,{database:a,query:d,confirmedDelegetedUser:i,user:e}),children:(0,r.jsx)(v.Provider,{value:{user:e,database:a,table:t,dbSchemaData:s,singleUser:l,query:d,confirmedDelegetedUser:i},children:(0,r.jsx)(h.A,{})})})}async function y({req:e,res:a,query:t}){let s=await o()(e,a);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await u()({request:e,user:s,databaseSlug:t.single,query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:l,rootUserId:d}=r,n=await _()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${t.single}'`);if(!n||!n[0])return console.log("Database Not Found"),{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let i=JSON.parse(S.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),c=(i.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],m=await b()({database:n[0].db_full_name,queryString:`SELECT * FROM users WHERE id='${t.user}'`,tableSchema:c});return m?.[0]?{props:{user:s,database:n?.[0]||null,table:c||{},dbSchemaData:i,singleUser:m?.[0]||null,query:t,confirmedDelegetedUser:r}}:{redirect:{destination:`/admin/${s?.id}/databases/${n[0].db_slug}/users`,permanent:!1}}}s()}catch(e){s(e)}})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8374.js b/dsql-app/.local_dist/server/chunks/8374.js deleted file mode 100644 index 9d73be8..0000000 --- a/dsql-app/.local_dist/server/chunks/8374.js +++ /dev/null @@ -1,708 +0,0 @@ -"use strict"; -exports.id = 8374; -exports.ids = [8374]; -exports.modules = { - -/***/ 8374: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ SocialLogin) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var frontend_fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/pages/login/GoogleIdentityButton.jsx -/** - * Imports - * ============================================================================== - */ /** ********************* React/Next Imports */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Props from getServerSideProps or getStaticProps - * @param {import("@/package-shared/types").UserType} props.user - * @param {string} [props.userType] - * @param {React.Dispatch<React.SetStateAction<boolean>>} props.setLoading - */ function GoogleIdentityButton({ user , userType , setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (user?.logged_in_status || user?.current?.logged_in_status) return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ external_react_default().useEffect(()=>{ - function handleCredentialResponse(response) { - window.activeGooglePrompt = false; - userLoginWithGoogle({ - gUser: null, - tokenRes: response.credential, - setLoading - }); - } - //////////////////////////////////////// - google.accounts.id.initialize({ - client_id: "", - callback: handleCredentialResponse - }); - //////////////////////////////////////// - google.accounts.id.renderButton(document.getElementById("google-identity-button"), { - theme: "outline", - size: "large", - logo_alignment: "center" - }); - //////////////////////////////////////// - // if (user?.logged_in_status || document.cookie.match(/google_prompt_skipped=true/)) { - // google.accounts.id.cancel(); - // return; - // } - //////////////////////////////////////// - // window.activeGooglePrompt = true; - // google.accounts.id.prompt((notification) => { - // console.log("getMomentType => ", notification.getMomentType()); - // console.log("getDismissedReason => ", notification.getDismissedReason()); - // console.log("getNotDisplayedReason => ", notification.getNotDisplayedReason()); - // console.log("getSkippedReason => ", notification.getSkippedReason()); - // console.log("isDismissedMoment => ", notification.isDismissedMoment()); - // console.log("isDisplayMoment => ", notification.isDisplayMoment()); - // console.log("isDisplayed => ", notification.isDisplayed()); - // console.log("isNotDisplayed => ", notification.isNotDisplayed()); - // console.log("isSkippedMoment => ", notification.isSkippedMoment()); - // if (notification.isSkippedMoment()) { - // document.cookie = "google_prompt_skipped=true;max-age=" + 60000 * 60 * 24 * 5; - // window.activeGooglePrompt = false; - // } - // if (notification.isNotDisplayed()) { - // window.activeGooglePrompt = false; - // } - // }); // also display the One Tap dialog - }, []); - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex items-center justify-center h-[45px] overflow-hidden button outlined normal-weight small-text gray p-0", - style: { - padding: 0 - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "relative w-full h-full justify-center", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full h-full justify-center bg-white dark:bg-slate-800 relative z-10 pointer-events-none", - style: { - border: "none" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/google.png", - width: 18, - height: 18, - alt: "" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Login With Google" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - id: "google-identity-button", - className: "w-full absolute justify-center top-0 left-0", - style: { - transform: "scale(2)" - } - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ function userLoginWithGoogle({ gUser , tokenRes , setLoading }) { - setLoading(true); - if (!tokenRes) { - console.log("No Token Response received!"); - return closeLoader(); - } - (0,frontend_fetchApi/* default */.Z)(`/api/social-login/google-auth${window.location.search}`, { - method: "post", - body: { - token: tokenRes - } - }).then(async (res)=>{ - if (res.success && res.user) { - localStorage.setItem("csrf", res.user.csrf_k); - localStorage.setItem("user", JSON.stringify(res.user)); - window.location.reload(); - } else { - console.log(res); - setLoading(false); - if (res.alert) { - window.alert(res.msg); - } - } - }).catch(async (err)=>{ - alert("Login Failed"); - console.log("Google login fetch error => ", err); - setLoading(false); - }); -} - -// EXTERNAL MODULE: ./functions/frontend/clearCaches.js -var clearCaches = __webpack_require__(9137); -;// CONCATENATED MODULE: ./components/pages/login/GithubLogin.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Props from getServerSideProps or getStaticProps - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {React.Dispatch<React.SetStateAction<boolean>>} props.setLoading - */ function GithubLogin({ user , setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (user?.logged_in_status) return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ external_react_default().useEffect(()=>{ - const urlQuery = window.location.search; - const urlQueryParams = new URLSearchParams(urlQuery); - const codeParam = urlQueryParams.get("code"); - const emailParam = urlQueryParams.get("email"); - if (codeParam) { - setLoading(true); - (0,frontend_fetchApi/* default */.Z)(`/api/social-login/github-auth?code=${codeParam}${emailParam ? "&email=" + emailParam : ""}`).then((res)=>{ - if (!res?.success) { - if (res.msg?.match(/Github User Email not present/i)) { - const enterEmail = window.prompt(`Cannot access the email address of this github account. Please enter an email address to continue.`); - if (enterEmail && enterEmail?.match(/.*@.*\..*/) && !enterEmail?.match(/ /)) { - const newFetchUrl = `https://github.com/login/oauth/authorize?client_id=${""}&scope=user&redirect_uri=${"http://localhost:7070"}${window.location.pathname}?email=${enterEmail}`; - window.location.assign(newFetchUrl); - } - } - } - if (res?.msg && res?.alert) { - window.alert(res.msg); - } - if (res?.success && res?.user) { - localStorage.setItem("csrf", res.user.csrf_k); - localStorage.setItem("user", JSON.stringify(res.user)); - (0,clearCaches/* default */.Z)().then(()=>{ - window.location.reload(); - }); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }).catch((error)=>{ - console.log(error); - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - }, []); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex items-center justify-center", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray w-full more-padding small-text normal-weight gap-6", - onClick: (e)=>{ - setLoading(true); - const fetchUrl = `https://github.com/login/oauth/authorize?client_id=${""}&scope=user&redirect_uri=${"http://localhost:7070"}${window.location.pathname}`; - console.log(fetchUrl); - window.location.assign(fetchUrl); - // fetch(fetchUrl, { - // headers: { - // "Access-Control-Allow-Origin": "*", - // }, - // }) - // .then((res) => res.json()) - // .then((data) => { - // console.log(data); - // setTimeout(() => { - // setLoading(false); - // }, 1000); - // }) - // .catch((error) => { - // console.log(error); - // setTimeout(() => { - // setLoading(false); - // }, 1000); - // }); - setTimeout(()=>{ - setLoading(false); - }, 1000); - // fetchApi(fetchUrl).then((res) => { - // console.log(res); - // setTimeout(() => { - // setLoading(false); - // }, 1000); - // }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/github.png", - width: 18, - height: 18, - alt: "", - className: "flex dark:hidden" - }), - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/github-white.png", - width: 18, - height: 18, - alt: "", - className: "hidden dark:flex" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Login With Github" - }) - ] - }) - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/pages/login/FacebookSignInButton.jsx -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ********************* React/Next Imports */ - - -/** ~ End React/Next Imports *************** */ /** ********************* Functions and Other Page Imports */ // import clearCaches from "../functions/frontend/ "; -// import { closeLoader, openLoader } from "./PageLoaderBlock"; -/** ~ End Functions and Other Page Imports *************** */ /** ********************* Context Providers */ /** ~ End Context Providers *************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props object - * @param {function(): void} props.setLoading - Props from getServerSideProps or getStaticProps - */ function FacebookSignInButton({ setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ let [isSignedIn, setIsSignedIn] = React.useState(false); - let [refresh, setRefresh] = React.useState(0); - React.useEffect(()=>{ - // let reloads = localStorage.getItem("login_reloads"); - // if (reloads && parseInt(reloads) >= 1) return; - FB.init({ - appId: "", - cookie: true, - xfbml: true, - version: "v13.0" - }); - if (isSignedIn) return; - FB.getLoginStatus((response)=>{ - // console.log(response); - // if (!response.authResponse) { - // } else - if (response.status === "connected") { - // console.log("Facebook User Signed in"); - setIsSignedIn(true); - userLoginWithFacebook(response, setIsSignedIn, setLoading); - } else { - setIsSignedIn(false); - } - }); - }, [ - refresh - ]); - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ _jsx("div", { - className: "w-full", - children: /*#__PURE__*/ _jsxs("div", { - className: "w-full", - children: [ - !isSignedIn && /*#__PURE__*/ _jsxs("div", { - className: "button outlined gray w-full more-padding normal-weight small-text gap-6", - onClick: ()=>{ - if (setLoading) setLoading(true); - FB.login((res)=>{ - if (res.status === "connected") { - setIsSignedIn(true); - userLoginWithFacebook(res, setIsSignedIn, setLoading); - } else { - if (setLoading) setLoading(false); - } - setRefresh((prev)=>prev + 1); - }, { - auth_type: "rerequest", - scope: "email,public_profile", - return_scopes: true, - enable_profile_selector: true - }); - }, - children: [ - /*#__PURE__*/ _jsx("img", { - src: "/images/facebook.png", - width: 18, - height: 18, - alt: "" - }), - /*#__PURE__*/ _jsx("span", { - children: "Login With Facebook" - }) - ] - }), - isSignedIn && /*#__PURE__*/ _jsxs("div", { - className: "button outlined gray w-full pointer-events-none more-padding", - onClick: ()=>{ - if (setLoading) setLoading(true); - FB.logout((res)=>{ - // console.log(res); - setIsSignedIn(false); - if (setLoading) setLoading(false); - }); - }, - children: [ - /*#__PURE__*/ _jsx("img", { - src: "/images/facebook.png", - width: 20, - alt: "" - }), - /*#__PURE__*/ _jsx("span", { - children: "Sign Out of Facebook" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** - * Facebook Login Function - * ============================================================================== - * @param {object} fbUser - React component props object - * @param {object} fbUser.authResponse - React component props object - * @param {function(): void} signInDispatch - Set signin status - * @param {function(): void} setLoading - Set loading function - */ function userLoginWithFacebook(fbUser, signInDispatch, setLoading) { - console.log("LOGGING IN WITH FB ..."); - if (!fbUser.authResponse) { - if (setLoading) setLoading(false); - return; - } - FB.api("/me", { - fields: "first_name,last_name,email,name,picture" - }, async (response)=>{ - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ let existingSocialId = await fetchApi(`/api/social-login/utils/checkSocialId?social_id=${response.id}&social_platform=facebook`); - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ let finalEmail, supEmail; - if (!response.email) { - /** - * Get Email Function - * ============================================================================== - * - * @description get email from server - */ async function getEmail() { - if (existingSocialId.social_id) { - let existingEmailExistingUser = await fetchApi(`/api/social-login/utils/getEmailFromSocialId?social_id=${response.id}&social_platform=facebook`); - finalEmail = existingEmailExistingUser.email; - return existingEmailExistingUser.email; - } - let userEmail = window.prompt("You have no email linked with this account: please Enter an email address to continue"); - if (!userEmail) { - alert("Can't create account without an email address: please provide an email address for easy contact. Thanks."); - return false; - } - let isEmailValid = userEmail.match(/.*@.*\..*/); - if (!isEmailValid) { - alert("Email not valid: Please enter a valid email address"); - return await getEmail(); - } - let existingEmail = await fetchApi(`/api/social-login/utils/checkEmail?email=${userEmail}`); - if (existingEmail?.email) { - alert("Email already taken: please enter another email address"); - return await getEmail(); - } else { - supEmail = userEmail; - return userEmail; - } - } - let isEmailResolved = await getEmail(); - if (isEmailResolved) { - finalEmail = isEmailResolved; - } else { - finalEmail = null; - } - } else { - finalEmail = response.email; - } - //////////////////////////////////////// - if (!finalEmail) { - alert("No Email Provided, Please try again"); - if (setLoading) setLoading(false); - return; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let usernamEmail = (()=>{ - if (!response.email) { - return `facebook_${response.name.toLowerCase().replace(/ /g, "-")}`; - } else { - return `facebook_${response.email.replace(/@.*/, "")}`; - } - })(); - let fbUserImage = `https://graph.facebook.com/${response.id}/picture?type=large`; - let fbUserImageTiny = response.picture.data.url; - fetch(`/api/social-login/facebook-auth${window.location.search}`, { - method: "post", - headers: { - "Content-Type": "application/json" - }, - body: JSON.stringify({ - facebookUserId: response.id, - facebookUserImage: fbUserImage, - facebookUserFullName: response.name, - facebookUserFirstName: response.first_name, - facebookUserLastName: response.last_name, - facebookUserEmail: finalEmail, - supEmail: supEmail - }) - }).then((res)=>res.json()).then(async (data)=>{ - signInDispatch(true); - localStorage.setItem("user", JSON.stringify(data.user)); - localStorage.setItem("csrf", JSON.stringify(data.user.csrf_k)); - window.location.reload(); - }).catch(async (err)=>{ - console.log(err); - signInDispatch(true); - }); - }); -} - -;// CONCATENATED MODULE: ./components/pages/login/SocialLogin.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {any} props.user - * @param {string} props.userType - * @param {React.Dispatch<React.SetStateAction<boolean>>} props.setLoading - */ function SocialLogin({ user , userType , setLoading }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ if (true) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (user?.logged_in_status) return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [googleLogin, setGoogleLogin] = external_react_default().useState(false); - // const [facebookLogin, setFacebookLogin] = React.useState(false); - external_react_default().useEffect(()=>{ - if (!user?.logged_in_status) { - // if (window.location.protocol.match(/https/i)) { - // const facebookScript = document.createElement("script"); - // facebookScript.src = `https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v14.0&appId=${process.env.NEXT_PUBLIC_DSQL_FACEBOOK_ID}&autoLogAppEvents=1`; - // facebookScript.className = "social-script-tag"; - // facebookScript.crossOrigin = "anonymous"; - // document.body.appendChild(facebookScript); - // facebookScript.onload = function (e) { - // // console.log("Facebook SDK loaded"); - // setFacebookLogin(true); - // }; - // } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const googleScript = document.createElement("script"); - googleScript.src = "https://accounts.google.com/gsi/client"; - googleScript.className = "social-script-tag"; - document.body.appendChild(googleScript); - googleScript.onload = function(e) { - // @ts-ignore - if (google) setGoogleLogin(true); - }; - //////////////////////////////////////// - return function cleanup() { - document.querySelectorAll(".social-script-tag")?.forEach((scriptTag)=>{ - scriptTag.parentNode?.removeChild(scriptTag); - }); - }; - } - }, [ - user - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-stretch gap-3 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(GithubLogin, { - user: user, - setLoading: setLoading - }), - googleLogin && /*#__PURE__*/ jsx_runtime_.jsx(GoogleIdentityButton, { - user: user, - userType: userType, - setLoading: setLoading - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9137: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ clearCaches) -/* harmony export */ }); -// @ts-check -/** - * Clear Caches function - * ============================================================================== - */ async function clearCaches() { - try { - /** Initialize - * ============================================================================== - */ /** ********************* Variables */ const keys = await caches.keys(); - if (keys[0]) { - await Promise.all(keys.map((key)=>{ - return caches.delete(key); - })); - } - } catch (/** @type {any} */ error) { - console.log("Error in clearing cache =>", error.message); - } -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8515.js b/dsql-app/.local_dist/server/chunks/8515.js deleted file mode 100644 index dd5aa92..0000000 --- a/dsql-app/.local_dist/server/chunks/8515.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -exports.id = 8515; -exports.ids = [8515]; -exports.modules = { - -/***/ 8515: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ActiveCloneTableBanner) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {number} [props.activeDbClone] - * @param {import("@/package-shared/types").UserType} props.user - */ function ActiveCloneTableBanner({ table , database , user , activeDbClone , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const cloneParentDb = table?.childTableDbFullName ? table.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/), "") : null; - const isCurrentDb = table.childTableDbFullName === database.db_full_name; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (!cloneParentDb) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}); - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "info small green gap-1" + (database?.active_clone ? " -mt-6" : ""), - style: { - fontWeight: "500" - }, - children: [ - "This Table is an active clone of", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${cloneParentDb}/tables/${table.childTableName}`, - target: "_blank", - className: "button gray outlined small-text", - style: { - display: "inline-block", - fontSize: "12px", - padding: "3px 7px" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: table.childTableName - }) - }), - " ", - "in", - " ", - isCurrentDb ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - children: [ - "this current database(", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: database.db_name - }), - ")." - ] - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${cloneParentDb}`, - target: "_blank", - className: "button gray outlined small-text", - style: { - display: "inline-block", - fontSize: "12px", - padding: "3px 7px" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: cloneParentDb - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "database." - }) - ] - }), - " ", - database?.active_clone ? "" : "Only Foreign keys and Entries can be updated." - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8682.js b/dsql-app/.local_dist/server/chunks/8682.js deleted file mode 100644 index db62cc3..0000000 --- a/dsql-app/.local_dist/server/chunks/8682.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -exports.id = 8682; -exports.ids = [8682]; -exports.modules = { - -/***/ 8682: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(3260); -let DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_READ_ONLY_USERNAME, - password: process.env.DSQL_DB_READ_ONLY_PASSWORD, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {"Full Access" | "FA" | "Read Only"} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ function DSQL_USER_DB_HANDLER({ paradigm , database , queryString , queryValues , }) { - try { - return new Promise((resolve, reject)=>{ - const fullAccess = paradigm?.match(/full.access|^fa$/i) ? true : false; - try { - if (fullAccess) { - DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_FULL_ACCESS_USERNAME, - password: process.env.DSQL_DB_FULL_ACCESS_PASSWORD, - database: database, - ssl: grabDbSSL() - } - }); - } else { - DSQL_USER = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_READ_ONLY_USERNAME, - password: process.env.DSQL_DB_READ_ONLY_PASSWORD, - database: database, - ssl: grabDbSSL() - } - }); - } - /** - * ### Run query Function - * @param {any} results - */ function runQuery(results) { - DSQL_USER.end(); - resolve(JSON.parse(JSON.stringify(results))); - } - /** - * ### Query Error - * @param {any} err - */ function queryError(err) { - DSQL_USER.end(); - resolve({ - error: err.message, - queryStringGenerated: queryString, - queryValuesGenerated: queryValues, - sql: err.sql - }); - } - if (queryValues && Array.isArray(queryValues) && queryValues[0]) { - DSQL_USER.query(queryString, queryValues).then(runQuery).catch(queryError); - } else { - DSQL_USER.query(queryString).then(runQuery).catch(queryError); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - fs.appendFileSync("./.tmp/dbErrorLogs.txt", error.message + "\n" + Date() + "\n\n\n", "utf8"); - resolve({ - error: error.message - }); - } - }); - } catch (/** @type {any} */ error) { - return { - success: false, - error: error.message - }; - } -} -module.exports = DSQL_USER_DB_HANDLER; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/883.js b/dsql-app/.local_dist/server/chunks/883.js new file mode 100644 index 0000000..201e96c --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/883.js @@ -0,0 +1,6 @@ +exports.id=883,exports.ids=[883],exports.modules={70781:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Head:function(){return b},Html:function(){return y},Main:function(){return N},NextScript:function(){return O},default:function(){return P}});let n=r(8732),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=g(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(r(82015)),i=r(8939),a=r(34251),s=r(61611),l=function(e){return e&&e.__esModule?e:{default:e}}(r(83382)),u=r(84244),c=r(81149),d=r(96510),p=r(73010);function g(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(g=function(e){return e?r:t})(e)}let f=new Set;function _(e,t,r){let n=(0,a.getPageFiles)(e,"/_app"),o=r?[]:(0,a.getPageFiles)(e,t);return{sharedFiles:n,pageFiles:o,allFiles:[...new Set([...n,...o])]}}function h(e,t){let{assetPrefix:r,buildManifest:o,assetQueryString:i,disableOptimizedLoading:a,crossOrigin:s}=e;return o.polyfillFiles.filter(e=>e.endsWith(".js")&&!e.endsWith(".module.js")).map(e=>(0,n.jsx)("script",{defer:!a,nonce:t.nonce,crossOrigin:t.crossOrigin||s,noModule:!0,src:`${r}/_next/${(0,c.encodeURIPath)(e)}${i}`},e))}function m({styles:e}){if(!e)return null;let t=Array.isArray(e)?e:[];if(e.props&&Array.isArray(e.props.children)){let r=e=>{var t,r;return null==e?void 0:null==(r=e.props)?void 0:null==(t=r.dangerouslySetInnerHTML)?void 0:t.__html};e.props.children.forEach(e=>{Array.isArray(e)?e.forEach(e=>r(e)&&t.push(e)):r(e)&&t.push(e)})}return(0,n.jsx)("style",{"amp-custom":"",dangerouslySetInnerHTML:{__html:t.map(e=>e.props.dangerouslySetInnerHTML.__html).join("").replace(/\/\*# sourceMappingURL=.*\*\//g,"").replace(/\/\*@ sourceURL=.*?\*\//g,"")}})}function S(e,t,r){let{dynamicImports:o,assetPrefix:i,isDevelopment:a,assetQueryString:s,disableOptimizedLoading:l,crossOrigin:u}=e;return o.map(e=>!e.endsWith(".js")||r.allFiles.includes(e)?null:(0,n.jsx)("script",{async:!a&&l,defer:!l,src:`${i}/_next/${(0,c.encodeURIPath)(e)}${s}`,nonce:t.nonce,crossOrigin:t.crossOrigin||u},e))}function v(e,t,r){var o;let{assetPrefix:i,buildManifest:a,isDevelopment:s,assetQueryString:l,disableOptimizedLoading:u,crossOrigin:d}=e;return[...r.allFiles.filter(e=>e.endsWith(".js")),...null==(o=a.lowPriorityFiles)?void 0:o.filter(e=>e.endsWith(".js"))].map(e=>(0,n.jsx)("script",{src:`${i}/_next/${(0,c.encodeURIPath)(e)}${l}`,nonce:t.nonce,async:!s&&u,defer:!u,crossOrigin:t.crossOrigin||d},e))}function E(e,t){let{scriptLoader:r,disableOptimizedLoading:i,crossOrigin:a}=e,s=function(e,t){let{assetPrefix:r,scriptLoader:i,crossOrigin:a,nextScriptWorkers:s}=e;if(!s)return null;try{let{partytownSnippet:e}=require("@builder.io/partytown/integration"),s=(Array.isArray(t.children)?t.children:[t.children]).find(e=>{var t,r;return!!e&&!!e.props&&(null==e?void 0:null==(r=e.props)?void 0:null==(t=r.dangerouslySetInnerHTML)?void 0:t.__html.length)&&"data-partytown-config"in e.props});return(0,n.jsxs)(n.Fragment,{children:[!s&&(0,n.jsx)("script",{"data-partytown-config":"",dangerouslySetInnerHTML:{__html:` + partytown = { + lib: "${r}/_next/static/~partytown/" + }; + `}}),(0,n.jsx)("script",{"data-partytown":"",dangerouslySetInnerHTML:{__html:e()}}),(i.worker||[]).map((e,r)=>{let{strategy:n,src:i,children:s,dangerouslySetInnerHTML:l,...u}=e,c={};if(i)c.src=i;else if(l&&l.__html)c.dangerouslySetInnerHTML={__html:l.__html};else if(s)c.dangerouslySetInnerHTML={__html:"string"==typeof s?s:Array.isArray(s)?s.join(""):""};else throw Error("Invalid usage of next/script. Did you forget to include a src attribute or an inline script? https://nextjs.org/docs/messages/invalid-script");return(0,o.createElement)("script",{...c,...u,type:"text/partytown",key:i||r,nonce:t.nonce,"data-nscript":"worker",crossOrigin:t.crossOrigin||a})})]})}catch(e){return(0,l.default)(e)&&"MODULE_NOT_FOUND"!==e.code&&console.warn(`Warning: ${e.message}`),null}}(e,t),u=(r.beforeInteractive||[]).filter(e=>e.src).map((e,r)=>{let{strategy:n,...s}=e;return(0,o.createElement)("script",{...s,key:s.src||r,defer:s.defer??!i,nonce:t.nonce,"data-nscript":"beforeInteractive",crossOrigin:t.crossOrigin||a})});return(0,n.jsxs)(n.Fragment,{children:[s,u]})}class b extends o.default.Component{static #e=this.contextType=u.HtmlContext;getCssLinks(e){let{assetPrefix:t,assetQueryString:r,dynamicImports:o,crossOrigin:i,optimizeCss:a}=this.context,s=e.allFiles.filter(e=>e.endsWith(".css")),l=new Set(e.sharedFiles),u=new Set([]),d=Array.from(new Set(o.filter(e=>e.endsWith(".css"))));if(d.length){let e=new Set(s);u=new Set(d=d.filter(t=>!(e.has(t)||l.has(t)))),s.push(...d)}let p=[];return s.forEach(e=>{let o=l.has(e);a||p.push((0,n.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${(0,c.encodeURIPath)(e)}${r}`,as:"style",crossOrigin:this.props.crossOrigin||i},`${e}-preload`));let s=u.has(e);p.push((0,n.jsx)("link",{nonce:this.props.nonce,rel:"stylesheet",href:`${t}/_next/${(0,c.encodeURIPath)(e)}${r}`,crossOrigin:this.props.crossOrigin||i,"data-n-g":s?void 0:o?"":void 0,"data-n-p":s?void 0:o?void 0:""},e))}),0===p.length?null:p}getPreloadDynamicChunks(){let{dynamicImports:e,assetPrefix:t,assetQueryString:r,crossOrigin:o}=this.context;return e.map(e=>e.endsWith(".js")?(0,n.jsx)("link",{rel:"preload",href:`${t}/_next/${(0,c.encodeURIPath)(e)}${r}`,as:"script",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||o},e):null).filter(Boolean)}getPreloadMainLinks(e){let{assetPrefix:t,assetQueryString:r,scriptLoader:o,crossOrigin:i}=this.context,a=e.allFiles.filter(e=>e.endsWith(".js"));return[...(o.beforeInteractive||[]).map(e=>(0,n.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:e.src,as:"script",crossOrigin:this.props.crossOrigin||i},e.src)),...a.map(e=>(0,n.jsx)("link",{nonce:this.props.nonce,rel:"preload",href:`${t}/_next/${(0,c.encodeURIPath)(e)}${r}`,as:"script",crossOrigin:this.props.crossOrigin||i},e))]}getBeforeInteractiveInlineScripts(){let{scriptLoader:e}=this.context,{nonce:t,crossOrigin:r}=this.props;return(e.beforeInteractive||[]).filter(e=>!e.src&&(e.dangerouslySetInnerHTML||e.children)).map((e,n)=>{let{strategy:i,children:a,dangerouslySetInnerHTML:s,src:l,...u}=e,c="";return s&&s.__html?c=s.__html:a&&(c="string"==typeof a?a:Array.isArray(a)?a.join(""):""),(0,o.createElement)("script",{...u,dangerouslySetInnerHTML:{__html:c},key:u.id||n,nonce:t,"data-nscript":"beforeInteractive",crossOrigin:r||void 0})})}getDynamicChunks(e){return S(this.context,this.props,e)}getPreNextScripts(){return E(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}render(){let{styles:e,ampPath:t,inAmpMode:i,hybridAmp:a,canonicalBase:s,__NEXT_DATA__:l,dangerousAsPath:u,headTags:g,unstable_runtimeJS:f,unstable_JsPreload:h,disableOptimizedLoading:S,optimizeCss:v,assetPrefix:E,nextFontManifest:b}=this.context,O=!1===f,y=!1===h||!S;this.context.docComponentsRendered.Head=!0;let{head:N}=this.context,P=[],T=[];N&&(N.forEach(e=>{e&&"link"===e.type&&"preload"===e.props.rel&&"style"===e.props.as?this.context.strictNextHead?P.push(o.default.cloneElement(e,{"data-next-head":""})):P.push(e):e&&(this.context.strictNextHead?T.push(o.default.cloneElement(e,{"data-next-head":""})):T.push(e))}),N=P.concat(T));let R=o.default.Children.toArray(this.props.children).filter(Boolean),I=!1,x=!1;N=o.default.Children.map(N||[],e=>{if(!e)return e;let{type:t,props:r}=e;if(i){let n="";if("meta"===t&&"viewport"===r.name?n='name="viewport"':"link"===t&&"canonical"===r.rel?x=!0:"script"===t&&(r.src&&-1>r.src.indexOf("ampproject")||r.dangerouslySetInnerHTML&&(!r.type||"text/javascript"===r.type))&&(n="<script",Object.keys(r).forEach(e=>{n+=` ${e}="${r[e]}"`}),n+="/>"),n)return console.warn(`Found conflicting amp tag "${e.type}" with conflicting prop ${n} in ${l.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`),null}else"link"===t&&"amphtml"===r.rel&&(I=!0);return e});let M=_(this.context.buildManifest,this.context.__NEXT_DATA__.page,i),C=function(e,t,r=""){if(!e)return{preconnect:null,preload:null};let o=e.pages["/_app"],i=e.pages[t],a=Array.from(new Set([...o??[],...i??[]]));return{preconnect:0===a.length&&(o||i)?(0,n.jsx)("link",{"data-next-font":e.pagesUsingSizeAdjust?"size-adjust":"",rel:"preconnect",href:"/",crossOrigin:"anonymous"}):null,preload:a?a.map(e=>{let t=/\.(woff|woff2|eot|ttf|otf)$/.exec(e)[1];return(0,n.jsx)("link",{rel:"preload",href:`${r}/_next/${(0,c.encodeURIPath)(e)}`,as:"font",type:`font/${t}`,crossOrigin:"anonymous","data-next-font":e.includes("-s")?"size-adjust":""},e)}):null}}(b,u,E),A=((0,p.getTracedMetadata)((0,d.getTracer)().getTracePropagationData(),this.context.experimentalClientTraceMetadata)||[]).map(({key:e,value:t},r)=>(0,n.jsx)("meta",{name:e,content:t},`next-trace-data-${r}`));return(0,n.jsxs)("head",{...function(e){let{crossOrigin:t,nonce:r,...n}=e;return n}(this.props),children:[this.context.isDevelopment&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{"data-next-hide-fouc":!0,"data-ampdevmode":i?"true":void 0,dangerouslySetInnerHTML:{__html:"body{display:none}"}}),(0,n.jsx)("noscript",{"data-next-hide-fouc":!0,"data-ampdevmode":i?"true":void 0,children:(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{display:block}"}})})]}),N,this.context.strictNextHead?null:(0,n.jsx)("meta",{name:"next-head-count",content:o.default.Children.count(N||[]).toString()}),R,C.preconnect,C.preload,i&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("meta",{name:"viewport",content:"width=device-width,minimum-scale=1,initial-scale=1"}),!x&&(0,n.jsx)("link",{rel:"canonical",href:s+r(15656).cleanAmpPath(u)}),(0,n.jsx)("link",{rel:"preload",as:"script",href:"https://cdn.ampproject.org/v0.js"}),(0,n.jsx)(m,{styles:e}),(0,n.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}"}}),(0,n.jsx)("noscript",{children:(0,n.jsx)("style",{"amp-boilerplate":"",dangerouslySetInnerHTML:{__html:"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}"}})}),(0,n.jsx)("script",{async:!0,src:"https://cdn.ampproject.org/v0.js"})]}),!i&&(0,n.jsxs)(n.Fragment,{children:[!I&&a&&(0,n.jsx)("link",{rel:"amphtml",href:s+(t||`${u}${u.includes("?")?"&":"?"}amp=1`)}),this.getBeforeInteractiveInlineScripts(),!v&&this.getCssLinks(M),!v&&(0,n.jsx)("noscript",{"data-n-css":this.props.nonce??""}),!O&&!y&&this.getPreloadDynamicChunks(),!O&&!y&&this.getPreloadMainLinks(M),!S&&!O&&this.getPolyfillScripts(),!S&&!O&&this.getPreNextScripts(),!S&&!O&&this.getDynamicChunks(M),!S&&!O&&this.getScripts(M),v&&this.getCssLinks(M),v&&(0,n.jsx)("noscript",{"data-n-css":this.props.nonce??""}),this.context.isDevelopment&&(0,n.jsx)("noscript",{id:"__next_css__DO_NOT_USE__"}),A,e||null]}),o.default.createElement(o.default.Fragment,{},...g||[])]})}}class O extends o.default.Component{static #e=this.contextType=u.HtmlContext;getDynamicChunks(e){return S(this.context,this.props,e)}getPreNextScripts(){return E(this.context,this.props)}getScripts(e){return v(this.context,this.props,e)}getPolyfillScripts(){return h(this.context,this.props)}static getInlineScriptSource(e){let{__NEXT_DATA__:t,largePageDataBytes:n}=e;try{let o=JSON.stringify(t);if(f.has(t.page))return(0,s.htmlEscapeJsonString)(o);let i=Buffer.from(o).byteLength,a=r(40911).A;return n&&i>n&&(f.add(t.page),console.warn(`Warning: data for page "${t.page}"${t.page===e.dangerousAsPath?"":` (path "${e.dangerousAsPath}")`} is ${a(i)} which exceeds the threshold of ${a(n)}, this amount of data can reduce performance. +See more info here: https://nextjs.org/docs/messages/large-page-data`)),(0,s.htmlEscapeJsonString)(o)}catch(e){if((0,l.default)(e)&&-1!==e.message.indexOf("circular structure"))throw Error(`Circular structure in "getInitialProps" result of page "${t.page}". https://nextjs.org/docs/messages/circular-structure`);throw e}}render(){let{assetPrefix:e,inAmpMode:t,buildManifest:r,unstable_runtimeJS:o,docComponentsRendered:i,assetQueryString:a,disableOptimizedLoading:s,crossOrigin:l}=this.context,u=!1===o;if(i.NextScript=!0,t)return null;let d=_(this.context.buildManifest,this.context.__NEXT_DATA__.page,t);return(0,n.jsxs)(n.Fragment,{children:[!u&&r.devFiles?r.devFiles.map(t=>(0,n.jsx)("script",{src:`${e}/_next/${(0,c.encodeURIPath)(t)}${a}`,nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l},t)):null,u?null:(0,n.jsx)("script",{id:"__NEXT_DATA__",type:"application/json",nonce:this.props.nonce,crossOrigin:this.props.crossOrigin||l,dangerouslySetInnerHTML:{__html:O.getInlineScriptSource(this.context)}}),s&&!u&&this.getPolyfillScripts(),s&&!u&&this.getPreNextScripts(),s&&!u&&this.getDynamicChunks(d),s&&!u&&this.getScripts(d)]})}}function y(e){let{inAmpMode:t,docComponentsRendered:r,locale:i,scriptLoader:a,__NEXT_DATA__:s}=(0,u.useHtmlContext)();return r.Html=!0,function(e,t,r){var n,i,a,s;if(!r.children)return;let l=[],u=Array.isArray(r.children)?r.children:[r.children],c=null==(i=u.find(e=>e.type===b))?void 0:null==(n=i.props)?void 0:n.children,d=null==(s=u.find(e=>"body"===e.type))?void 0:null==(a=s.props)?void 0:a.children,p=[...Array.isArray(c)?c:[c],...Array.isArray(d)?d:[d]];o.default.Children.forEach(p,t=>{var r;if(t&&(null==(r=t.type)?void 0:r.__nextScript)){if("beforeInteractive"===t.props.strategy){e.beforeInteractive=(e.beforeInteractive||[]).concat([{...t.props}]);return}if(["lazyOnload","afterInteractive","worker"].includes(t.props.strategy)){l.push(t.props);return}if(void 0===t.props.strategy){l.push({...t.props,strategy:"afterInteractive"});return}}}),t.scriptLoader=l}(a,s,e),(0,n.jsx)("html",{...e,lang:e.lang||i||void 0,amp:t?"":void 0,"data-ampdevmode":void 0})}function N(){let{docComponentsRendered:e}=(0,u.useHtmlContext)();return e.Main=!0,(0,n.jsx)("next-js-internal-body-render-target",{})}class P extends o.default.Component{static getInitialProps(e){return e.defaultGetInitialProps(e)}render(){return(0,n.jsxs)(y,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)("body",{children:[(0,n.jsx)(N,{}),(0,n.jsx)(O,{})]})]})}}P[i.NEXT_BUILTIN_DOCUMENT]=function(){return(0,n.jsxs)(y,{children:[(0,n.jsx)(b,{}),(0,n.jsxs)("body",{children:[(0,n.jsx)(N,{}),(0,n.jsx)(O,{})]})]})}},8939:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{APP_BUILD_MANIFEST:function(){return v},APP_CLIENT_INTERNALS:function(){return q},APP_PATHS_MANIFEST:function(){return h},APP_PATH_ROUTES_MANIFEST:function(){return m},BARREL_OPTIMIZATION_PREFIX:function(){return $},BLOCKED_PAGES:function(){return B},BUILD_ID_FILE:function(){return w},BUILD_MANIFEST:function(){return S},CLIENT_PUBLIC_FILES_PATH:function(){return F},CLIENT_REFERENCE_MANIFEST:function(){return G},CLIENT_STATIC_FILES_PATH:function(){return U},CLIENT_STATIC_FILES_RUNTIME_AMP:function(){return Z},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return X},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return Y},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return ee},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return et},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return J},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return Q},COMPILER_INDEXES:function(){return i},COMPILER_NAMES:function(){return o},CONFIG_FILES:function(){return D},DEFAULT_RUNTIME_WEBPACK:function(){return er},DEFAULT_SANS_SERIF_FONT:function(){return es},DEFAULT_SERIF_FONT:function(){return ea},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return A},DEV_CLIENT_PAGES_MANIFEST:function(){return x},EDGE_RUNTIME_WEBPACK:function(){return en},EDGE_UNSUPPORTED_NODE_APIS:function(){return ep},EXPORT_DETAIL:function(){return N},EXPORT_MARKER:function(){return y},FUNCTIONS_CONFIG_MANIFEST:function(){return E},IMAGES_MANIFEST:function(){return R},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return K},MIDDLEWARE_BUILD_MANIFEST:function(){return W},MIDDLEWARE_MANIFEST:function(){return M},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return z},MODERN_BROWSERSLIST_TARGET:function(){return n.default},NEXT_BUILTIN_DOCUMENT:function(){return k},NEXT_FONT_MANIFEST:function(){return O},PAGES_MANIFEST:function(){return f},PHASE_DEVELOPMENT_SERVER:function(){return d},PHASE_EXPORT:function(){return l},PHASE_INFO:function(){return g},PHASE_PRODUCTION_BUILD:function(){return u},PHASE_PRODUCTION_SERVER:function(){return c},PHASE_TEST:function(){return p},PRERENDER_MANIFEST:function(){return P},REACT_LOADABLE_MANIFEST:function(){return j},ROUTES_MANIFEST:function(){return T},RSC_MODULE_TYPES:function(){return ed},SERVER_DIRECTORY:function(){return L},SERVER_FILES_MANIFEST:function(){return I},SERVER_PROPS_ID:function(){return ei},SERVER_REFERENCE_MANIFEST:function(){return H},STATIC_PROPS_ID:function(){return eo},STATIC_STATUS_PAGES:function(){return el},STRING_LITERAL_DROP_BUNDLE:function(){return V},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return b},SYSTEM_ENTRYPOINTS:function(){return eg},TRACE_OUTPUT_VERSION:function(){return eu},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return C},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return ec},UNDERSCORE_NOT_FOUND_ROUTE:function(){return a},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return s},WEBPACK_STATS:function(){return _}});let n=r(99929)._(r(1999)),o={client:"client",server:"server",edgeServer:"edge-server"},i={[o.client]:0,[o.server]:1,[o.edgeServer]:2},a="/_not-found",s=""+a+"/page",l="phase-export",u="phase-production-build",c="phase-production-server",d="phase-development-server",p="phase-test",g="phase-info",f="pages-manifest.json",_="webpack-stats.json",h="app-paths-manifest.json",m="app-path-routes-manifest.json",S="build-manifest.json",v="app-build-manifest.json",E="functions-config-manifest.json",b="subresource-integrity-manifest",O="next-font-manifest",y="export-marker.json",N="export-detail.json",P="prerender-manifest.json",T="routes-manifest.json",R="images-manifest.json",I="required-server-files.json",x="_devPagesManifest.json",M="middleware-manifest.json",C="_clientMiddlewareManifest.json",A="_devMiddlewareManifest.json",j="react-loadable-manifest.json",L="server",D=["next.config.js","next.config.mjs","next.config.ts"],w="BUILD_ID",B=["/_document","/_app","/_error"],F="public",U="static",V="__NEXT_DROP_CLIENT_FILE__",k="__NEXT_BUILTIN_DOCUMENT__",$="__barrel_optimize__",G="client-reference-manifest",H="server-reference-manifest",W="middleware-build-manifest",z="middleware-react-loadable-manifest",K="interception-route-rewrite-manifest",X="main",Y=""+X+"-app",q="app-pages-internals",J="react-refresh",Z="amp",Q="webpack",ee="polyfills",et=Symbol(ee),er="webpack-runtime",en="edge-runtime-webpack",eo="__N_SSG",ei="__N_SSP",ea={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},es={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},el=["/500"],eu=1,ec=6e3,ed={client:"client",server:"server"},ep=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eg=new Set([X,J,Z,Y]);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81149:(e,t)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"encodeURIPath",{enumerable:!0,get:function(){return r}})},82101:(e,t)=>{"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},93322:(e,t)=>{"use strict";function r(e){return null!==e&&"object"==typeof e&&"then"in e&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isThenable",{enumerable:!0,get:function(){return r}})},1999:e=>{"use strict";e.exports=["chrome 64","edge 79","firefox 67","opera 51","safari 12"]},4590:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return i}});let n=r(50732),o=r(83102);function i(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},65075:(e,t)=>{"use strict";function r(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return r}})},66623:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(65075),o=r(50732),i=r(72811);function a(e){let t=/^\/index(\/|$)/.test(e)&&!(0,o.isDynamicRoute)(e)?"/index"+e:"/"===e?"/index":(0,n.ensureLeadingSlash)(e);{let{posix:e}=r(33873),n=e.normalize(t);if(n!==t)throw new i.NormalizeError("Requested and resolved page mismatch: "+t+" "+n)}return t}},83102:(e,t)=>{"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},81394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{normalizeAppPath:function(){return i},normalizeRscURL:function(){return a}});let n=r(65075),o=r(18355);function i(e){return(0,n.ensureLeadingSlash)(e.split("/").reduce((e,t,r,n)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function a(e){return e.replace(/\.rsc($|\?)/,"$1")}},50732:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return n.getSortedRouteObjects},getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(80610),o=r(50270)},50270:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let n=r(91900),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,n.isInterceptionRouteAppPath)(e)&&(e=(0,n.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},80610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRouteObjects:function(){return o},getSortedRoutes:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),a=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),a=!0),r.startsWith("…"))throw Error("Detected a three-dot character ('…') at ('"+r+"'). Did you mean ('...')?");if(r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function i(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}function o(e,t){let r={},o=[];for(let n=0;n<e.length;n++){let i=t(e[n]);r[i]=n,o[n]=i}return n(o).map(t=>e[r[t]])}},18355:(e,t)=>{"use strict";function r(e){return"("===e[0]&&e.endsWith(")")}function n(e,t){if(e.includes(o)){let e=JSON.stringify(t);return"{}"!==e?o+"?"+e:o}return e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DEFAULT_SEGMENT_KEY:function(){return i},PAGE_SEGMENT_KEY:function(){return o},addSearchParamsIfPageSegment:function(){return n},isGroupSegment:function(){return r}});let o="__PAGE__",i="__DEFAULT__"},72811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DecodeError:function(){return f},MiddlewareNotFoundError:function(){return S},MissingStaticPage:function(){return m},NormalizeError:function(){return _},PageNotFoundError:function(){return h},SP:function(){return p},ST:function(){return g},WEB_VITALS:function(){return r},execOnce:function(){return n},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return s},isAbsoluteUrl:function(){return i},isResSent:function(){return u},loadGetInitialProps:function(){return d},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return v}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return r||(r=!0,t=e(...o)),t}}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>o.test(e);function a(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function s(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.');return n}let p="undefined"!=typeof performance,g=p&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class f extends Error{}class _ extends Error{}class h extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class m extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class S extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function v(e){return JSON.stringify({message:e.message,stack:e.stack})}},20306:e=>{(()=>{"use strict";var t={491:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContextAPI=void 0;let n=r(223),o=r(172),i=r(930),a="context",s=new n.NoopContextManager;class l{constructor(){}static getInstance(){return this._instance||(this._instance=new l),this._instance}setGlobalContextManager(e){return(0,o.registerGlobal)(a,e,i.DiagAPI.instance())}active(){return this._getContextManager().active()}with(e,t,r,...n){return this._getContextManager().with(e,t,r,...n)}bind(e,t){return this._getContextManager().bind(e,t)}_getContextManager(){return(0,o.getGlobal)(a)||s}disable(){this._getContextManager().disable(),(0,o.unregisterGlobal)(a,i.DiagAPI.instance())}}t.ContextAPI=l},930:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagAPI=void 0;let n=r(56),o=r(912),i=r(957),a=r(172);class s{constructor(){function e(e){return function(...t){let r=(0,a.getGlobal)("diag");if(r)return r[e](...t)}}let t=this;t.setLogger=(e,r={logLevel:i.DiagLogLevel.INFO})=>{var n,s,l;if(e===t){let e=Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=e.stack)&&void 0!==n?n:e.message),!1}"number"==typeof r&&(r={logLevel:r});let u=(0,a.getGlobal)("diag"),c=(0,o.createLogLevelDiagLogger)(null!==(s=r.logLevel)&&void 0!==s?s:i.DiagLogLevel.INFO,e);if(u&&!r.suppressOverrideMessage){let e=null!==(l=Error().stack)&&void 0!==l?l:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${e}`),c.warn(`Current logger will overwrite one already registered from ${e}`)}return(0,a.registerGlobal)("diag",c,t,!0)},t.disable=()=>{(0,a.unregisterGlobal)("diag",t)},t.createComponentLogger=e=>new n.DiagComponentLogger(e),t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}static instance(){return this._instance||(this._instance=new s),this._instance}}t.DiagAPI=s},653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetricsAPI=void 0;let n=r(660),o=r(172),i=r(930),a="metrics";class s{constructor(){}static getInstance(){return this._instance||(this._instance=new s),this._instance}setGlobalMeterProvider(e){return(0,o.registerGlobal)(a,e,i.DiagAPI.instance())}getMeterProvider(){return(0,o.getGlobal)(a)||n.NOOP_METER_PROVIDER}getMeter(e,t,r){return this.getMeterProvider().getMeter(e,t,r)}disable(){(0,o.unregisterGlobal)(a,i.DiagAPI.instance())}}t.MetricsAPI=s},181:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PropagationAPI=void 0;let n=r(172),o=r(874),i=r(194),a=r(277),s=r(369),l=r(930),u="propagation",c=new o.NoopTextMapPropagator;class d{constructor(){this.createBaggage=s.createBaggage,this.getBaggage=a.getBaggage,this.getActiveBaggage=a.getActiveBaggage,this.setBaggage=a.setBaggage,this.deleteBaggage=a.deleteBaggage}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalPropagator(e){return(0,n.registerGlobal)(u,e,l.DiagAPI.instance())}inject(e,t,r=i.defaultTextMapSetter){return this._getGlobalPropagator().inject(e,t,r)}extract(e,t,r=i.defaultTextMapGetter){return this._getGlobalPropagator().extract(e,t,r)}fields(){return this._getGlobalPropagator().fields()}disable(){(0,n.unregisterGlobal)(u,l.DiagAPI.instance())}_getGlobalPropagator(){return(0,n.getGlobal)(u)||c}}t.PropagationAPI=d},997:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceAPI=void 0;let n=r(172),o=r(846),i=r(139),a=r(607),s=r(930),l="trace";class u{constructor(){this._proxyTracerProvider=new o.ProxyTracerProvider,this.wrapSpanContext=i.wrapSpanContext,this.isSpanContextValid=i.isSpanContextValid,this.deleteSpan=a.deleteSpan,this.getSpan=a.getSpan,this.getActiveSpan=a.getActiveSpan,this.getSpanContext=a.getSpanContext,this.setSpan=a.setSpan,this.setSpanContext=a.setSpanContext}static getInstance(){return this._instance||(this._instance=new u),this._instance}setGlobalTracerProvider(e){let t=(0,n.registerGlobal)(l,this._proxyTracerProvider,s.DiagAPI.instance());return t&&this._proxyTracerProvider.setDelegate(e),t}getTracerProvider(){return(0,n.getGlobal)(l)||this._proxyTracerProvider}getTracer(e,t){return this.getTracerProvider().getTracer(e,t)}disable(){(0,n.unregisterGlobal)(l,s.DiagAPI.instance()),this._proxyTracerProvider=new o.ProxyTracerProvider}}t.TraceAPI=u},277:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.deleteBaggage=t.setBaggage=t.getActiveBaggage=t.getBaggage=void 0;let n=r(491),o=(0,r(780).createContextKey)("OpenTelemetry Baggage Key");function i(e){return e.getValue(o)||void 0}t.getBaggage=i,t.getActiveBaggage=function(){return i(n.ContextAPI.getInstance().active())},t.setBaggage=function(e,t){return e.setValue(o,t)},t.deleteBaggage=function(e){return e.deleteValue(o)}},993:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaggageImpl=void 0;class r{constructor(e){this._entries=e?new Map(e):new Map}getEntry(e){let t=this._entries.get(e);if(t)return Object.assign({},t)}getAllEntries(){return Array.from(this._entries.entries()).map(([e,t])=>[e,t])}setEntry(e,t){let n=new r(this._entries);return n._entries.set(e,t),n}removeEntry(e){let t=new r(this._entries);return t._entries.delete(e),t}removeEntries(...e){let t=new r(this._entries);for(let r of e)t._entries.delete(r);return t}clear(){return new r}}t.BaggageImpl=r},830:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataSymbol=void 0,t.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")},369:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.baggageEntryMetadataFromString=t.createBaggage=void 0;let n=r(930),o=r(993),i=r(830),a=n.DiagAPI.instance();t.createBaggage=function(e={}){return new o.BaggageImpl(new Map(Object.entries(e)))},t.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(a.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:i.baggageEntryMetadataSymbol,toString:()=>e}}},67:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.context=void 0;let n=r(491);t.context=n.ContextAPI.getInstance()},223:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopContextManager=void 0;let n=r(780);class o{active(){return n.ROOT_CONTEXT}with(e,t,r,...n){return t.call(r,...n)}bind(e,t){return t}enable(){return this}disable(){return this}}t.NoopContextManager=o},780:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ROOT_CONTEXT=t.createContextKey=void 0,t.createContextKey=function(e){return Symbol.for(e)};class r{constructor(e){let t=this;t._currentContext=e?new Map(e):new Map,t.getValue=e=>t._currentContext.get(e),t.setValue=(e,n)=>{let o=new r(t._currentContext);return o._currentContext.set(e,n),o},t.deleteValue=e=>{let n=new r(t._currentContext);return n._currentContext.delete(e),n}}}t.ROOT_CONTEXT=new r},506:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.diag=void 0;let n=r(930);t.diag=n.DiagAPI.instance()},56:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagComponentLogger=void 0;let n=r(172);class o{constructor(e){this._namespace=e.namespace||"DiagComponentLogger"}debug(...e){return i("debug",this._namespace,e)}error(...e){return i("error",this._namespace,e)}info(...e){return i("info",this._namespace,e)}warn(...e){return i("warn",this._namespace,e)}verbose(...e){return i("verbose",this._namespace,e)}}function i(e,t,r){let o=(0,n.getGlobal)("diag");if(o)return r.unshift(t),o[e](...r)}t.DiagComponentLogger=o},972:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagConsoleLogger=void 0;let r=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];class n{constructor(){for(let e=0;e<r.length;e++)this[r[e].n]=function(e){return function(...t){if(console){let r=console[e];if("function"!=typeof r&&(r=console.log),"function"==typeof r)return r.apply(console,t)}}}(r[e].c)}}t.DiagConsoleLogger=n},912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createLogLevelDiagLogger=void 0;let n=r(957);t.createLogLevelDiagLogger=function(e,t){function r(r,n){let o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return e<n.DiagLogLevel.NONE?e=n.DiagLogLevel.NONE:e>n.DiagLogLevel.ALL&&(e=n.DiagLogLevel.ALL),t=t||{},{error:r("error",n.DiagLogLevel.ERROR),warn:r("warn",n.DiagLogLevel.WARN),info:r("info",n.DiagLogLevel.INFO),debug:r("debug",n.DiagLogLevel.DEBUG),verbose:r("verbose",n.DiagLogLevel.VERBOSE)}}},957:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DiagLogLevel=void 0,function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(t.DiagLogLevel||(t.DiagLogLevel={}))},172:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.unregisterGlobal=t.getGlobal=t.registerGlobal=void 0;let n=r(200),o=r(521),i=r(130),a=o.VERSION.split(".")[0],s=Symbol.for(`opentelemetry.js.api.${a}`),l=n._globalThis;t.registerGlobal=function(e,t,r,n=!1){var i;let a=l[s]=null!==(i=l[s])&&void 0!==i?i:{version:o.VERSION};if(!n&&a[e]){let t=Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(t.stack||t.message),!1}if(a.version!==o.VERSION){let t=Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${o.VERSION}`);return r.error(t.stack||t.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${o.VERSION}.`),!0},t.getGlobal=function(e){var t,r;let n=null===(t=l[s])||void 0===t?void 0:t.version;if(n&&(0,i.isCompatible)(n))return null===(r=l[s])||void 0===r?void 0:r[e]},t.unregisterGlobal=function(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${o.VERSION}.`);let r=l[s];r&&delete r[e]}},130:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isCompatible=t._makeCompatibilityCheck=void 0;let n=r(521),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function i(e){let t=new Set([e]),r=new Set,n=e.match(o);if(!n)return()=>!1;let i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;let n=e.match(o);if(!n)return a(e);let s={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};return null!=s.prerelease||i.major!==s.major?a(e):0===i.major?i.minor===s.minor&&i.patch<=s.patch?(t.add(e),!0):a(e):i.minor<=s.minor?(t.add(e),!0):a(e)}}t._makeCompatibilityCheck=i,t.isCompatible=i(n.VERSION)},886:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=void 0;let n=r(653);t.metrics=n.MetricsAPI.getInstance()},901:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ValueType=void 0,function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"}(t.ValueType||(t.ValueType={}))},102:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createNoopMeter=t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=t.NOOP_OBSERVABLE_GAUGE_METRIC=t.NOOP_OBSERVABLE_COUNTER_METRIC=t.NOOP_UP_DOWN_COUNTER_METRIC=t.NOOP_HISTOGRAM_METRIC=t.NOOP_COUNTER_METRIC=t.NOOP_METER=t.NoopObservableUpDownCounterMetric=t.NoopObservableGaugeMetric=t.NoopObservableCounterMetric=t.NoopObservableMetric=t.NoopHistogramMetric=t.NoopUpDownCounterMetric=t.NoopCounterMetric=t.NoopMetric=t.NoopMeter=void 0;class r{constructor(){}createHistogram(e,r){return t.NOOP_HISTOGRAM_METRIC}createCounter(e,r){return t.NOOP_COUNTER_METRIC}createUpDownCounter(e,r){return t.NOOP_UP_DOWN_COUNTER_METRIC}createObservableGauge(e,r){return t.NOOP_OBSERVABLE_GAUGE_METRIC}createObservableCounter(e,r){return t.NOOP_OBSERVABLE_COUNTER_METRIC}createObservableUpDownCounter(e,r){return t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC}addBatchObservableCallback(e,t){}removeBatchObservableCallback(e){}}t.NoopMeter=r;class n{}t.NoopMetric=n;class o extends n{add(e,t){}}t.NoopCounterMetric=o;class i extends n{add(e,t){}}t.NoopUpDownCounterMetric=i;class a extends n{record(e,t){}}t.NoopHistogramMetric=a;class s{addCallback(e){}removeCallback(e){}}t.NoopObservableMetric=s;class l extends s{}t.NoopObservableCounterMetric=l;class u extends s{}t.NoopObservableGaugeMetric=u;class c extends s{}t.NoopObservableUpDownCounterMetric=c,t.NOOP_METER=new r,t.NOOP_COUNTER_METRIC=new o,t.NOOP_HISTOGRAM_METRIC=new a,t.NOOP_UP_DOWN_COUNTER_METRIC=new i,t.NOOP_OBSERVABLE_COUNTER_METRIC=new l,t.NOOP_OBSERVABLE_GAUGE_METRIC=new u,t.NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC=new c,t.createNoopMeter=function(){return t.NOOP_METER}},660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NOOP_METER_PROVIDER=t.NoopMeterProvider=void 0;let n=r(102);class o{getMeter(e,t,r){return n.NOOP_METER}}t.NoopMeterProvider=o,t.NOOP_METER_PROVIDER=new o},200:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(46),t)},651:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t._globalThis=void 0,t._globalThis="object"==typeof globalThis?globalThis:global},46:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(651),t)},939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.propagation=void 0;let n=r(181);t.propagation=n.PropagationAPI.getInstance()},874:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTextMapPropagator=void 0;class r{inject(e,t){}extract(e,t){return e}fields(){return[]}}t.NoopTextMapPropagator=r},194:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTextMapSetter=t.defaultTextMapGetter=void 0,t.defaultTextMapGetter={get(e,t){if(null!=e)return e[t]},keys:e=>null==e?[]:Object.keys(e)},t.defaultTextMapSetter={set(e,t,r){null!=e&&(e[t]=r)}}},845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.trace=void 0;let n=r(997);t.trace=n.TraceAPI.getInstance()},403:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonRecordingSpan=void 0;let n=r(476);class o{constructor(e=n.INVALID_SPAN_CONTEXT){this._spanContext=e}spanContext(){return this._spanContext}setAttribute(e,t){return this}setAttributes(e){return this}addEvent(e,t){return this}setStatus(e){return this}updateName(e){return this}end(e){}isRecording(){return!1}recordException(e,t){}}t.NonRecordingSpan=o},614:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracer=void 0;let n=r(491),o=r(607),i=r(403),a=r(139),s=n.ContextAPI.getInstance();class l{startSpan(e,t,r=s.active()){if(null==t?void 0:t.root)return new i.NonRecordingSpan;let n=r&&(0,o.getSpanContext)(r);return"object"==typeof n&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&(0,a.isSpanContextValid)(n)?new i.NonRecordingSpan(n):new i.NonRecordingSpan}startActiveSpan(e,t,r,n){let i,a,l;if(arguments.length<2)return;2==arguments.length?l=t:3==arguments.length?(i=t,l=r):(i=t,a=r,l=n);let u=null!=a?a:s.active(),c=this.startSpan(e,i,u),d=(0,o.setSpan)(u,c);return s.with(d,l,void 0,c)}}t.NoopTracer=l},124:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NoopTracerProvider=void 0;let n=r(614);class o{getTracer(e,t,r){return new n.NoopTracer}}t.NoopTracerProvider=o},125:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracer=void 0;let n=new(r(614)).NoopTracer;class o{constructor(e,t,r,n){this._provider=e,this.name=t,this.version=r,this.options=n}startSpan(e,t,r){return this._getTracer().startSpan(e,t,r)}startActiveSpan(e,t,r,n){let o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)}_getTracer(){if(this._delegate)return this._delegate;let e=this._provider.getDelegateTracer(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):n}}t.ProxyTracer=o},846:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyTracerProvider=void 0;let n=r(125),o=new(r(124)).NoopTracerProvider;class i{getTracer(e,t,r){var o;return null!==(o=this.getDelegateTracer(e,t,r))&&void 0!==o?o:new n.ProxyTracer(this,e,t,r)}getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:o}setDelegate(e){this._delegate=e}getDelegateTracer(e,t,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t,r)}}t.ProxyTracerProvider=i},996:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SamplingDecision=void 0,function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(t.SamplingDecision||(t.SamplingDecision={}))},607:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSpanContext=t.setSpanContext=t.deleteSpan=t.setSpan=t.getActiveSpan=t.getSpan=void 0;let n=r(780),o=r(403),i=r(491),a=(0,n.createContextKey)("OpenTelemetry Context Key SPAN");function s(e){return e.getValue(a)||void 0}function l(e,t){return e.setValue(a,t)}t.getSpan=s,t.getActiveSpan=function(){return s(i.ContextAPI.getInstance().active())},t.setSpan=l,t.deleteSpan=function(e){return e.deleteValue(a)},t.setSpanContext=function(e,t){return l(e,new o.NonRecordingSpan(t))},t.getSpanContext=function(e){var t;return null===(t=s(e))||void 0===t?void 0:t.spanContext()}},325:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceStateImpl=void 0;let n=r(564);class o{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce((e,t)=>(e.push(t+"="+this.get(t)),e),[]).join(",")}_parse(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce((e,t)=>{let r=t.trim(),o=r.indexOf("=");if(-1!==o){let i=r.slice(0,o),a=r.slice(o+1,t.length);(0,n.validateKey)(i)&&(0,n.validateValue)(a)&&e.set(i,a)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new o;return e._internalState=new Map(this._internalState),e}}t.TraceStateImpl=o},564:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.validateValue=t.validateKey=void 0;let r="[_0-9a-z-*/]",n=`[a-z]${r}{0,255}`,o=`[a-z0-9]${r}{0,240}@[a-z]${r}{0,13}`,i=RegExp(`^(?:${n}|${o})$`),a=/^[ -~]{0,255}[!-~]$/,s=/,|=/;t.validateKey=function(e){return i.test(e)},t.validateValue=function(e){return a.test(e)&&!s.test(e)}},98:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createTraceState=void 0;let n=r(325);t.createTraceState=function(e){return new n.TraceStateImpl(e)}},476:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INVALID_SPAN_CONTEXT=t.INVALID_TRACEID=t.INVALID_SPANID=void 0;let n=r(475);t.INVALID_SPANID="0000000000000000",t.INVALID_TRACEID="00000000000000000000000000000000",t.INVALID_SPAN_CONTEXT={traceId:t.INVALID_TRACEID,spanId:t.INVALID_SPANID,traceFlags:n.TraceFlags.NONE}},357:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanKind=void 0,function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(t.SpanKind||(t.SpanKind={}))},139:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapSpanContext=t.isSpanContextValid=t.isValidSpanId=t.isValidTraceId=void 0;let n=r(476),o=r(403),i=/^([0-9a-f]{32})$/i,a=/^[0-9a-f]{16}$/i;function s(e){return i.test(e)&&e!==n.INVALID_TRACEID}function l(e){return a.test(e)&&e!==n.INVALID_SPANID}t.isValidTraceId=s,t.isValidSpanId=l,t.isSpanContextValid=function(e){return s(e.traceId)&&l(e.spanId)},t.wrapSpanContext=function(e){return new o.NonRecordingSpan(e)}},847:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SpanStatusCode=void 0,function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"}(t.SpanStatusCode||(t.SpanStatusCode={}))},475:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TraceFlags=void 0,function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"}(t.TraceFlags||(t.TraceFlags={}))},521:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION=void 0,t.VERSION="1.6.0"}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e].call(i.exports,i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab=__dirname+"/";var o={};(()=>{Object.defineProperty(o,"__esModule",{value:!0}),o.trace=o.propagation=o.metrics=o.diag=o.context=o.INVALID_SPAN_CONTEXT=o.INVALID_TRACEID=o.INVALID_SPANID=o.isValidSpanId=o.isValidTraceId=o.isSpanContextValid=o.createTraceState=o.TraceFlags=o.SpanStatusCode=o.SpanKind=o.SamplingDecision=o.ProxyTracerProvider=o.ProxyTracer=o.defaultTextMapSetter=o.defaultTextMapGetter=o.ValueType=o.createNoopMeter=o.DiagLogLevel=o.DiagConsoleLogger=o.ROOT_CONTEXT=o.createContextKey=o.baggageEntryMetadataFromString=void 0;var e=n(369);Object.defineProperty(o,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return e.baggageEntryMetadataFromString}});var t=n(780);Object.defineProperty(o,"createContextKey",{enumerable:!0,get:function(){return t.createContextKey}}),Object.defineProperty(o,"ROOT_CONTEXT",{enumerable:!0,get:function(){return t.ROOT_CONTEXT}});var r=n(972);Object.defineProperty(o,"DiagConsoleLogger",{enumerable:!0,get:function(){return r.DiagConsoleLogger}});var i=n(957);Object.defineProperty(o,"DiagLogLevel",{enumerable:!0,get:function(){return i.DiagLogLevel}});var a=n(102);Object.defineProperty(o,"createNoopMeter",{enumerable:!0,get:function(){return a.createNoopMeter}});var s=n(901);Object.defineProperty(o,"ValueType",{enumerable:!0,get:function(){return s.ValueType}});var l=n(194);Object.defineProperty(o,"defaultTextMapGetter",{enumerable:!0,get:function(){return l.defaultTextMapGetter}}),Object.defineProperty(o,"defaultTextMapSetter",{enumerable:!0,get:function(){return l.defaultTextMapSetter}});var u=n(125);Object.defineProperty(o,"ProxyTracer",{enumerable:!0,get:function(){return u.ProxyTracer}});var c=n(846);Object.defineProperty(o,"ProxyTracerProvider",{enumerable:!0,get:function(){return c.ProxyTracerProvider}});var d=n(996);Object.defineProperty(o,"SamplingDecision",{enumerable:!0,get:function(){return d.SamplingDecision}});var p=n(357);Object.defineProperty(o,"SpanKind",{enumerable:!0,get:function(){return p.SpanKind}});var g=n(847);Object.defineProperty(o,"SpanStatusCode",{enumerable:!0,get:function(){return g.SpanStatusCode}});var f=n(475);Object.defineProperty(o,"TraceFlags",{enumerable:!0,get:function(){return f.TraceFlags}});var _=n(98);Object.defineProperty(o,"createTraceState",{enumerable:!0,get:function(){return _.createTraceState}});var h=n(139);Object.defineProperty(o,"isSpanContextValid",{enumerable:!0,get:function(){return h.isSpanContextValid}}),Object.defineProperty(o,"isValidTraceId",{enumerable:!0,get:function(){return h.isValidTraceId}}),Object.defineProperty(o,"isValidSpanId",{enumerable:!0,get:function(){return h.isValidSpanId}});var m=n(476);Object.defineProperty(o,"INVALID_SPANID",{enumerable:!0,get:function(){return m.INVALID_SPANID}}),Object.defineProperty(o,"INVALID_TRACEID",{enumerable:!0,get:function(){return m.INVALID_TRACEID}}),Object.defineProperty(o,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return m.INVALID_SPAN_CONTEXT}});let S=n(67);Object.defineProperty(o,"context",{enumerable:!0,get:function(){return S.context}});let v=n(506);Object.defineProperty(o,"diag",{enumerable:!0,get:function(){return v.diag}});let E=n(886);Object.defineProperty(o,"metrics",{enumerable:!0,get:function(){return E.metrics}});let b=n(939);Object.defineProperty(o,"propagation",{enumerable:!0,get:function(){return b.propagation}});let O=n(845);Object.defineProperty(o,"trace",{enumerable:!0,get:function(){return O.trace}}),o.default={context:S.context,diag:v.diag,metrics:E.metrics,propagation:b.propagation,trace:O.trace}})(),e.exports=o})()},83382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return i}});let n=r(82101);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function i(e){return o(e)?e:Error((0,n.isPlainObject)(e)?function(e){let t=new WeakSet;return JSON.stringify(e,(e,r)=>{if("object"==typeof r&&null!==r){if(t.has(r))return"[Circular]";t.add(r)}return r})}(e):e+"")}},40911:(e,t)=>{"use strict";Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o}});let r=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],n=(e,t)=>{let r=e;return"string"==typeof t?r=e.toLocaleString(t):!0===t&&(r=e.toLocaleString()),r};function o(e,t){if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);if((t=Object.assign({},t)).signed&&0===e)return" 0 B";let o=e<0,i=o?"-":t.signed?"+":"";if(o&&(e=-e),e<1)return i+n(e,t.locale)+" B";let a=Math.min(Math.floor(Math.log10(e)/3),r.length-1);return i+n(e=Number((e/Math.pow(1e3,a)).toPrecision(3)),t.locale)+" "+r[a]}},34251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getPageFiles",{enumerable:!0,get:function(){return i}});let n=r(4590),o=r(66623);function i(e,t){let r=(0,n.denormalizePagePath)((0,o.normalizePagePath)(t));return e.pages[r]||(console.warn(`Could not find files for ${r} in .next/build-manifest.json`),[])}},61611:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ESCAPE_REGEX:function(){return n},htmlEscapeJsonString:function(){return o}});let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},n=/[&><\u2028\u2029]/g;function o(e){return e.replace(n,e=>r[e])}},91900:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return a},isInterceptionRouteAppPath:function(){return i}});let n=r(81394),o=["(..)(..)","(.)","(..)","(...)"];function i(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function a(e){let t,r,i;for(let n of e.split("/"))if(r=o.find(e=>n.startsWith(e))){[t,i]=e.split(r,2);break}if(!t||!r||!i)throw Error(`Invalid interception route: ${e}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":i="/"===t?`/${i}`:t+"/"+i;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);i=t.split("/").slice(0,-1).concat(i).join("/");break;case"(...)":i="/"+i;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);i=a.slice(0,-2).concat(i).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:i}}},2186:(e,t)=>{"use strict";var r,n,o,i,a,s,l,u,c,d,p,g;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{AppRenderSpan:function(){return l},AppRouteRouteHandlersSpan:function(){return d},BaseServerSpan:function(){return r},LoadComponentsSpan:function(){return n},LogSpanAllowList:function(){return _},MiddlewareSpan:function(){return g},NextNodeServerSpan:function(){return i},NextServerSpan:function(){return o},NextVanillaSpanAllowlist:function(){return f},NodeSpan:function(){return c},RenderSpan:function(){return s},ResolveMetadataSpan:function(){return p},RouterSpan:function(){return u},StartServerSpan:function(){return a}}),function(e){e.handleRequest="BaseServer.handleRequest",e.run="BaseServer.run",e.pipe="BaseServer.pipe",e.getStaticHTML="BaseServer.getStaticHTML",e.render="BaseServer.render",e.renderToResponseWithComponents="BaseServer.renderToResponseWithComponents",e.renderToResponse="BaseServer.renderToResponse",e.renderToHTML="BaseServer.renderToHTML",e.renderError="BaseServer.renderError",e.renderErrorToResponse="BaseServer.renderErrorToResponse",e.renderErrorToHTML="BaseServer.renderErrorToHTML",e.render404="BaseServer.render404"}(r||(r={})),function(e){e.loadDefaultErrorComponents="LoadComponents.loadDefaultErrorComponents",e.loadComponents="LoadComponents.loadComponents"}(n||(n={})),function(e){e.getRequestHandler="NextServer.getRequestHandler",e.getServer="NextServer.getServer",e.getServerRequestHandler="NextServer.getServerRequestHandler",e.createServer="createServer.createServer"}(o||(o={})),function(e){e.compression="NextNodeServer.compression",e.getBuildId="NextNodeServer.getBuildId",e.createComponentTree="NextNodeServer.createComponentTree",e.clientComponentLoading="NextNodeServer.clientComponentLoading",e.getLayoutOrPageModule="NextNodeServer.getLayoutOrPageModule",e.generateStaticRoutes="NextNodeServer.generateStaticRoutes",e.generateFsStaticRoutes="NextNodeServer.generateFsStaticRoutes",e.generatePublicRoutes="NextNodeServer.generatePublicRoutes",e.generateImageRoutes="NextNodeServer.generateImageRoutes.route",e.sendRenderResult="NextNodeServer.sendRenderResult",e.proxyRequest="NextNodeServer.proxyRequest",e.runApi="NextNodeServer.runApi",e.render="NextNodeServer.render",e.renderHTML="NextNodeServer.renderHTML",e.imageOptimizer="NextNodeServer.imageOptimizer",e.getPagePath="NextNodeServer.getPagePath",e.getRoutesManifest="NextNodeServer.getRoutesManifest",e.findPageComponents="NextNodeServer.findPageComponents",e.getFontManifest="NextNodeServer.getFontManifest",e.getServerComponentManifest="NextNodeServer.getServerComponentManifest",e.getRequestHandler="NextNodeServer.getRequestHandler",e.renderToHTML="NextNodeServer.renderToHTML",e.renderError="NextNodeServer.renderError",e.renderErrorToHTML="NextNodeServer.renderErrorToHTML",e.render404="NextNodeServer.render404",e.startResponse="NextNodeServer.startResponse",e.route="route",e.onProxyReq="onProxyReq",e.apiResolver="apiResolver",e.internalFetch="internalFetch"}(i||(i={})),(a||(a={})).startServer="startServer.startServer",function(e){e.getServerSideProps="Render.getServerSideProps",e.getStaticProps="Render.getStaticProps",e.renderToString="Render.renderToString",e.renderDocument="Render.renderDocument",e.createBodyResult="Render.createBodyResult"}(s||(s={})),function(e){e.renderToString="AppRender.renderToString",e.renderToReadableStream="AppRender.renderToReadableStream",e.getBodyResult="AppRender.getBodyResult",e.fetch="AppRender.fetch"}(l||(l={})),(u||(u={})).executeRoute="Router.executeRoute",(c||(c={})).runHandler="Node.runHandler",(d||(d={})).runHandler="AppRouteRouteHandlers.runHandler",function(e){e.generateMetadata="ResolveMetadata.generateMetadata",e.generateViewport="ResolveMetadata.generateViewport"}(p||(p={})),(g||(g={})).execute="Middleware.execute";let f=["Middleware.execute","BaseServer.handleRequest","Render.getServerSideProps","Render.getStaticProps","AppRender.fetch","AppRender.getBodyResult","Render.renderDocument","Node.runHandler","AppRouteRouteHandlers.runHandler","ResolveMetadata.generateMetadata","ResolveMetadata.generateViewport","NextNodeServer.createComponentTree","NextNodeServer.findPageComponents","NextNodeServer.getLayoutOrPageModule","NextNodeServer.startResponse","NextNodeServer.clientComponentLoading"],_=["NextNodeServer.findPageComponents","NextNodeServer.createComponentTree","NextNodeServer.clientComponentLoading"]},96510:(e,t,r)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{BubbledError:function(){return p},SpanKind:function(){return c},SpanStatusCode:function(){return u},getTracer:function(){return b},isBubbledError:function(){return g}});let o=r(2186),i=r(93322);try{n=r(20306)}catch(e){n=r(20306)}let{context:a,propagation:s,trace:l,SpanStatusCode:u,SpanKind:c,ROOT_CONTEXT:d}=n;class p extends Error{constructor(e,t){super(),this.bubble=e,this.result=t}}function g(e){return"object"==typeof e&&null!==e&&e instanceof p}let f=(e,t)=>{g(t)&&t.bubble?e.setAttribute("next.bubble",!0):(t&&e.recordException(t),e.setStatus({code:u.ERROR,message:null==t?void 0:t.message})),e.end()},_=new Map,h=n.createContextKey("next.rootSpanId"),m=0,S=()=>m++,v={set(e,t,r){e.push({key:t,value:r})}};class E{getTracerInstance(){return l.getTracer("next.js","0.0.1")}getContext(){return a}getTracePropagationData(){let e=a.active(),t=[];return s.inject(e,t,v),t}getActiveScopeSpan(){return l.getSpan(null==a?void 0:a.active())}withPropagatedContext(e,t,r){let n=a.active();if(l.getSpanContext(n))return t();let o=s.extract(n,e,r);return a.with(o,t)}trace(...e){var t;let[r,n,s]=e,{fn:u,options:c}="function"==typeof n?{fn:n,options:{}}:{fn:s,options:{...n}},p=c.spanName??r;if(!o.NextVanillaSpanAllowlist.includes(r)&&"1"!==process.env.NEXT_OTEL_VERBOSE||c.hideSpan)return u();let g=this.getSpanContext((null==c?void 0:c.parentSpan)??this.getActiveScopeSpan()),m=!1;g?(null==(t=l.getSpanContext(g))?void 0:t.isRemote)&&(m=!0):(g=(null==a?void 0:a.active())??d,m=!0);let v=S();return c.attributes={"next.span_name":p,"next.span_type":r,...c.attributes},a.with(g.setValue(h,v),()=>this.getTracerInstance().startActiveSpan(p,c,e=>{let t="performance"in globalThis&&"measure"in performance?globalThis.performance.now():void 0,n=()=>{_.delete(v),t&&process.env.NEXT_OTEL_PERFORMANCE_PREFIX&&o.LogSpanAllowList.includes(r||"")&&performance.measure(`${process.env.NEXT_OTEL_PERFORMANCE_PREFIX}:next-${(r.split(".").pop()||"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}`,{start:t,end:performance.now()})};m&&_.set(v,new Map(Object.entries(c.attributes??{})));try{if(u.length>1)return u(e,t=>f(e,t));let t=u(e);if((0,i.isThenable)(t))return t.then(t=>(e.end(),t)).catch(t=>{throw f(e,t),t}).finally(n);return e.end(),n(),t}catch(t){throw f(e,t),n(),t}}))}wrap(...e){let t=this,[r,n,i]=3===e.length?e:[e[0],{},e[1]];return o.NextVanillaSpanAllowlist.includes(r)||"1"===process.env.NEXT_OTEL_VERBOSE?function(){let e=n;"function"==typeof e&&"function"==typeof i&&(e=e.apply(this,arguments));let o=arguments.length-1,s=arguments[o];if("function"!=typeof s)return t.trace(r,e,()=>i.apply(this,arguments));{let n=t.getContext().bind(a.active(),s);return t.trace(r,e,(e,t)=>(arguments[o]=function(e){return null==t||t(e),n.apply(this,arguments)},i.apply(this,arguments)))}}:i}startSpan(...e){let[t,r]=e,n=this.getSpanContext((null==r?void 0:r.parentSpan)??this.getActiveScopeSpan());return this.getTracerInstance().startSpan(t,r,n)}getSpanContext(e){return e?l.setSpan(a.active(),e):void 0}getRootSpanAttributes(){let e=a.active().getValue(h);return _.get(e)}setRootSpanAttribute(e,t){let r=a.active().getValue(h),n=_.get(r);n&&n.set(e,t)}}let b=(()=>{let e=new E;return()=>e})()},73010:(e,t)=>{"use strict";function r(e,t){if(t)return e.filter(({key:e})=>t.includes(e))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTracedMetadata",{enumerable:!0,get:function(){return r}})},84244:(e,t,r)=>{"use strict";e.exports=r(63865).vendored.contexts.HtmlContext},15656:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cleanAmpPath:function(){return i},debounce:function(){return a},isBlockedPage:function(){return o}});let n=r(8939);function o(e){return n.BLOCKED_PAGES.includes(e)}function i(e){return e.match(/\?amp=(y|yes|true|1)/)&&(e=e.replace(/\?amp=(y|yes|true|1)&?/,"?")),e.match(/&=(y|yes|true|1)/)&&(e=e.replace(/&=(y|yes|true|1)/,"")),e=e.replace(/\?$/,"")}function a(e,t,r=1/0){let n,o,i;let s=0,l=0;function u(){let a=Date.now(),c=l+t-a;c<=0||s+r>=a?(n=void 0,e.apply(i,o)):n=setTimeout(u,c)}return function(...e){o=e,i=this,l=Date.now(),void 0===n&&(s=l,n=setTimeout(u,t))}}},20883:(e,t,r)=>{e.exports=r(70781)}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8842.js b/dsql-app/.local_dist/server/chunks/8842.js new file mode 100644 index 0000000..7203730 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/8842.js @@ -0,0 +1 @@ +"use strict";exports.id=8842,exports.ids=[8842],exports.modules={30469:(e,t,a)=>{a.d(t,{A:()=>o});var s=a(8732),l=a(82015),i=a.n(l),r=a(32415),n=a(83147),d=a(63715);function c({paradigm:e,payload:t,setLoading:a,table:s,database:l}){a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:e,dbName:l.db_slug,tableName:s.tableName,payload:t}},!0).then(t=>{if(t.success){if("export"==e){let e=new Blob([JSON.stringify(t.data||[],null,4)],{type:"application/json"}),a=URL.createObjectURL(e),i=document.createElement("a");i.href=a,i.style.display="none",i.download=`${l.db_slug}-${s.tableName}-${Date.now()}.json`,document.body.appendChild(i),i.click(),document.body.removeChild(i)}else"import"==e&&(window.alert("Data Imported Successfully"),window.location.reload())}else t.msg&&window.alert(t.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function o({database:e,table:t}){let[a,l]=i().useState(!1),[d,o]=i().useState(!0),u=i().useRef(null);return i().useRef(null),(0,s.jsxs)("div",{className:"relative",children:[a&&(0,s.jsx)(r.A,{width:"15px"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{c({paradigm:"export",database:e,setLoading:l,table:t})},children:"Export"}),(0,s.jsx)("div",{className:"button outlined gray",onClick:a=>{u.current?.addEventListener("change",a=>{l(!0);let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected"),l(!1);return}n.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)?c({paradigm:"import",payload:a.fileBase64,database:e,setLoading:l,table:t}):l(!1),o(!1),setTimeout(()=>{o(!0)},200)})}),u.current?.click()},children:"Import"}),d&&(0,s.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:u})]})}},56775:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(8732),l=a(82015),i=a.n(l),r=a(41836),n=a(95939),d=a(20173);function c({database:e,table:t,dbSchemaData:a,query:l}){let[c,o]=i().useState(!1);return(0,s.jsx)(r.Popover,{isOpen:c,onClickOutside:()=>o(!1),positions:["bottom"],align:"end",content:(0,s.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,s.jsx)(d.A,{database:e,table:t,setOpenPopover:o,dbSchemaData:a,query:l}),(0,s.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,s.jsx)("button",{onClick:()=>{o(!c)},className:"outlined gray px-2 py-1.5",children:(0,s.jsx)(n.A,{})})})}},87663:(e,t,a)=>{a.a(e,async(e,s)=>{try{let p;a.d(t,{A:()=>h});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(51548),c=a(13737),o=a(63715),u=a(32415),m=e([n]);function h({data:e}){let{table:t,entries:s,activeEntries:i,setActiveEntries:m,confirmedDelegetedUser:h,database:x,targetField:f,searchTerm:b}=r().useContext(n.TableEntriesContext);a(43431),h?.delegated,h?.priviledges?.match(/Edit Tables/i),h?.priviledges?.match(/Delete Tables/i),h?.priviledges?.match(/Create Tables/i);let[g,j]=r().useState(!1),y=r().useRef(),[N,v]=r().useState(null);function w(e){if(j(!0),i&&m(null),!e?.toString().match(/./)){setTimeout(()=>{m&&m(s||[]),j(!1)},500);return}window.clearTimeout(p);let a=t?.fields.filter(e=>e.fieldName===f?.current),l=a&&a[0]&&a[0].dataType?.match(/int/i)||f?.current?.match(/^id$/)?"equal":"like";p=setTimeout(()=>{j(!1),(0,o.A)(`/api/queryEntriesSearchTerm?db=${x?.db_full_name}&table=${t?.tableName}&field=${f?.current}&term=${e}&operator=${l}`).then(e=>{"number"==typeof e.count&&v(e.count),e.success&&m&&m(e.result),j(!1)})},500)}return(0,l.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),b?.current&&w(b.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,l.jsx)("div",{className:"max-w-xs",children:(0,l.jsx)(d.A,{required:!0,selectOptions:t?t.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{f&&(f.current=e.target.value)},title:"Select Field",defaultValue:f?.current,id:"entries-search-field-select"})}),(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{let t=e.target;t.value?.match(/./)&&b?b.current=t.value:b&&(b.current=null),w(t.value)},elementRef:y,id:"entries-search-input"})}),g&&(0,l.jsx)("div",{className:"relative items-center justify-center",children:(0,l.jsx)("div",{className:"relative mt-5 w-6",children:(0,l.jsx)(u.A,{width:"20px"})})})]}),b?.current?.match(/./)&&(0,l.jsx)("div",{className:"py-4",children:(0,l.jsxs)("span",{className:"text-lg",children:["number"==typeof N?N>0?(0,l.jsxs)("b",{children:[N," "]}):(0,l.jsx)(l.Fragment,{children:"No "}):"... ","Search result",N&&1!==N?"s":""," for"," ",(0,l.jsxs)("b",{children:['"',b.current,'"']})]})})]})}n=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},20173:(e,t,a)=>{a.d(t,{A:()=>u});var s=a(8732),l=a(43656),i=a(51548),r=a(32415),n=a(2817),d=a(63715);a(27825);var c=a(82015),o=a.n(c);function u({database:e,table:t,setOpenPopover:a,dbSchemaData:l,query:i}){let[r,d]=o().useState(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{d(!0),setTimeout(()=>{a&&a(!1)},200)},children:"Sync Data"}),(0,s.jsx)(n.A,{open:r,setOpen:d,children:(0,s.jsx)(m,{database:e,table:t,dbSchemaData:l,query:i})})]})}function m({database:e,table:t,query:a,dbSchemaData:n}){let[c,u]=o().useState(n),[m,h]=o().useState("Push"),[p,x]=o().useState(c?.[0]),[f,b]=o().useState(p?.tables),[g,j]=o().useState(f?.[0]),[y,N]=o().useState(!1),[v,w]=o().useState(!1);return(0,s.jsxs)("div",{className:"stack gap-2 relative w-full",children:[y||!c&&(0,s.jsx)(r.A,{width:"20px"}),(0,s.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),v?(0,s.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,s.jsx)("b",{children:t.tableFullName})," ","schema"]}):(0,s.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,s.jsx)("b",{children:t.tableFullName})]}),c&&(0,s.jsxs)("form",{onSubmit:s=>{!function({e,setLoading:t,database:a,table:s,query:l}){e.preventDefault(),t(!0);let i=e.target,r=i.paradigm?.value,n=i.database?.value,c=i.table?.value,o={paradigm:r,src:{db:a.db_slug,table:s.tableName},dst:{db:n,table:c},delegated:l.delegated};if(!window.confirm("Pull"==r?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{t(!1)},1e3);return}(0,d.A)("/api/sync-table-data",{method:"POST",body:{...o}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{t(!1)},1e3)})}({e:s,database:e,setLoading:N,table:t,query:a})},className:"w-full stack gap-2 items-stretch",children:[(0,s.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,s.jsx)(l.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{h(e.target.value)}}),(0,s.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==m?(0,s.jsxs)(s.Fragment,{children:["Sync data from the current table(",(0,s.jsx)("b",{children:t.tableFullName}),") to the selected table below"]}):(0,s.jsxs)(s.Fragment,{children:["Sync data from the selected table below to the current table(",(0,s.jsx)("b",{children:t.tableFullName}),")"]})})]}),(0,s.jsx)(i.A,{selectOptions:c.filter(t=>t.dbFullName!==e.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=c.find(t=>t.dbSlug==e.target.value);t&&(x(t),b(t.tables),j(t.tables?.[0]))}}),(0,s.jsx)(i.A,{selectOptions:f.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=f.find(t=>t.tableName===e.target.value);t&&j(t)}}),(0,s.jsx)("button",{className:v?"":"disabled",children:"Sync"})]})]})}},74511:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>j});var l=a(8732),i=a(82015),r=a.n(i),n=a(98842),d=a(46437),c=a(58548),o=a(94010),u=a(34486),m=a(86571),h=a(65241),p=a(59621),x=a(32415);a(63715),a(27825);var f=a(30469),b=a(56775),g=e([n,o,u,p]);function j(e){let{user:t,database:s,table:i,dbSchemaData:x,setTargetEntry:g,richTextEditors:j,jsonTextEditors:N,query:v,confirmedDelegetedUser:w,activeEntries:T,entriesCount:S,setActiveEntries:A}=r().useContext(n.TableEntriesContext),E=a(43431);return w?.delegated,w?.priviledges?.match(/Edit Tables/i),w?.priviledges?.match(/Delete Tables/i),w?.priviledges?.match(/Create Tables/i),(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsxs)("div",{className:"flex-wrap",children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:(0,l.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,l.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[i.tableFullName,(0,l.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,l.jsx)(o.A,{slugText:i.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,l.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,l.jsxs)("a",{href:`/admin/${t?.id}/databases/${s.db_slug}/tables/${i.tableName}/entries/add-entry`,className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(f.A,{database:s,table:i}),(0,l.jsx)(b.A,{database:s,table:i,dbSchemaData:x,query:v})]})]}),(0,l.jsx)(c.A,{confirmedDelegetedUser:v?.delegated,user:t})]}),s.active_clone?(0,l.jsx)(m.A,{database:s,user:t}):(0,l.jsx)(l.Fragment,{}),s.remote_connected?(0,l.jsx)(p.p,{database:s}):(0,l.jsx)(l.Fragment,{}),(0,l.jsx)(h.A,{table:i,database:s,user:t}),(0,l.jsx)(u.A,{user:t,entries:T,database:s,table:i,setTargetEntry:g,dbSchemaData:x,richTextEditors:j,dataTypes:E,query:v,confirmedDelegetedUser:w,jsonTextEditors:N,search:!0}),S>20&&(0,l.jsx)(y,{activeEntries:T,setActiveEntries:A,database:s,table:i,entriesCount:S})]})}function y({activeEntries:e,setActiveEntries:t,database:a,table:s,entriesCount:i}){r().useContext(n.TableEntriesContext);let d=r().useRef(),c=r().useRef(1);return 20*Number(c.current)>=i?(0,l.jsx)(r().Fragment,{}):(0,l.jsx)("div",{className:"w-full flex items-center justify-center",ref:d,children:(0,l.jsx)(x.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}[n,o,u,p]=g.then?(await g)():g,s()}catch(e){s(e)}})},34486:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>p});var l=a(8732),i=a(82015),r=a.n(i),n=a(89579),d=a(87663),c=a(10238),o=a(32415),u=a(30469),m=a(56775);a(20173);var h=e([d]);function p({user:e,entries:t,database:a,table:s,setTargetEntry:i,dbSchemaData:h,richTextEditors:p,jsonTextEditors:x,dataTypes:f,title:b,confirmedDelegetedUser:g,query:j,search:y,entriesCount:N}){g?.delegated,g?.priviledges?.match(/Edit Tables/i),g?.priviledges?.match(/Delete Tables/i),g?.priviledges?.match(/Create Tables/i),g?.priviledges?.match(/Edit Entries/i),g?.priviledges?.match(/Delete Entries/i);let{active_clone:v,active_clone_parent_db:w,remote_connected:T}=a;return(0,l.jsx)(r().Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[b&&(0,l.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:b}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("a",{className:"button flex gap-2 items-center",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(u.A,{database:a,table:s}),(0,l.jsx)(m.A,{database:a,table:s,dbSchemaData:h,query:j})]})]}),y&&(0,l.jsx)(d.A,{}),(0,l.jsxs)("div",{className:"w-full flex-col gap-6",children:[t?.[0]&&t.map(t=>(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(n.A,{user:e,database:a,table:s,dbSchemaData:h,richTextEditors:p,dataTypes:f,entry:t,query:j,confirmedDelegetedUser:g,jsonTextEditors:x})},t.id)),!t&&(0,l.jsx)("div",{className:"w-full h-[300px]",children:(0,l.jsx)(o.A,{position:"relative"})}),t&&!t?.[0]&&(0,l.jsxs)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,l.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,l.jsx)(c.A,{className:"opacity-20 my-4",sx:{fontSize:80}}),(0,l.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),N&&N>10?(0,l.jsx)("a",{href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries`,className:"button outlined gray w-full -mb-4",children:(0,l.jsx)("span",{children:"See All Entries"})}):null,t?.[0]&&b&&(0,l.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:`/admin/${e?.id}/databases/${a.db_slug}/tables/${s.tableName}/entries/add-entry`,style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]})]})]})})}d=(h.then?(await h)():h)[0],s()}catch(e){s(e)}})},89579:(e,t,a)=>{a.d(t,{A:()=>g});var s=a(8732),l=a(82015),i=a.n(l),r=a(64030),n=a(63715),d=a(86152),c=a(39897),o=a(32415),u=a(22621),m=a(27825),h=a.n(m),p=a(63014),x=a(95939),f=a(41836);function b({user:e,table:t,entry:a,url:l,query:r}){let[n,d]=i().useState(!1),c=i().useRef(null);return(0,s.jsx)("div",{className:"relative z-[1000]",children:(0,s.jsx)(f.Popover,{isOpen:n,onClickOutside:()=>d(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,s.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,s.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(a)).then(()=>{window.alert("Post Copied"),d(!1)})},children:"Copy Object"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,p.A)({paradigm:"JavaScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("JavaScript Type Definition Copied"),d(!1)})},children:"Copy JS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let a=(0,p.A)({paradigm:"TypeScript",table:t,query:r,user:e});navigator.clipboard.writeText(a||"").then(()=>{window.alert("TypeScript Type Definition Copied"),d(!1)})},children:"Copy TS Type Definition"}),(0,s.jsx)("hr",{className:"m-0"}),(0,s.jsx)("a",{href:l,className:"button plain-text justify-start py-3",children:(0,s.jsx)("span",{children:"View Entry"})})]})}),children:(0,s.jsx)("button",{onClick:()=>{d(!n)},ref:c,className:"ghost p-2",children:(0,s.jsx)(x.A,{})})})})}function g({user:e,database:t,table:a,dbSchemaData:l,richTextEditors:m,jsonTextEditors:p,dataTypes:x,entry:f,entryPage:g,confirmedDelegetedUser:j,query:y}){let N=a.fields.filter(e=>e.fieldName&&!e.fieldName.match(r.A)),v=a.fields.find(e=>"uuid"===e.fieldName),w=j?.delegated;j?.priviledges?.match(/Edit Tables/i),j?.priviledges?.match(/Delete Tables/i),j?.priviledges?.match(/Create Tables/i),j?.priviledges?.match(/Edit Entries/i);let T=j?.priviledges?.match(/Delete Entries/i);v&&N.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),N.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),N.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),N.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),N.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),N.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),N.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),N.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[S,A]=i().useState(!1),[E,_]=i().useState(!0),[C,$]=i().useState(f),[F,D]=i().useState(!1);i().useRef(null);let k=i().useRef([]),[R,O]=i().useState(`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/${C.id}`),I=`${t.db_slug}-${a.tableName}-${C.id}-submit-button`;return(0,s.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,s.jsx)("a",{href:R,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,s.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(R,"__blank"):window.location.href=R)},children:[(0,s.jsxs)("span",{children:["Entry #",C.id]}),(0,s.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!w||w&&T)&&(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(S?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm(`Delete Entry #${C.id}?`)&&(A(!0),(0,n.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:t.db_full_name,tableName:a.tableName,entryId:C.id,dbSlug:t.db_slug,dbId:t.id,delegated:y?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{A(!1)},500))}))},children:"Delete Entry"}),!g&&(0,s.jsxs)(i().Fragment,{children:[(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{E?_(!1):_(!0)},children:E?(0,s.jsx)("span",{children:"Expand"}):(0,s.jsx)("span",{children:"Collapse"})})]}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)("div",{className:"button ghost px-0",onClick:s=>{let l=h().cloneDeep(f);delete l.date_created,delete l.date_created_code,delete l.date_created_timestamp,delete l.date_updated,delete l.date_updated_code,delete l.date_updated_timestamp,delete l.id,delete l.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(l)),window.location.href=`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/add-entry?duplicate=true&id=${f.id}`},children:(0,s.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,s.jsx)("span",{className:"opacity-20",children:"|"}),(0,s.jsx)(b,{table:a,user:e,entry:f,query:y,url:R})]})]})}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:g?{}:{maxHeight:E?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),A(!0);let s={},l=e.target;N.forEach(e=>{if(!e.fieldName||!l[e.fieldName])return;let t="string"!=typeof l[e.fieldName].value,a="number"!=typeof l[e.fieldName].value;(t||a||l[e.fieldName].value)&&(l[e.fieldName]?.dataset.default||(s[e.fieldName]=l[e.fieldName].value))}),k.current[0]&&k.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getContent())}),p.current[0]&&p.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(s[e.fieldName]=e.ref.current.getValue())}),(0,n.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:t.db_full_name,dbSlug:t.db_slug,dbId:t.id,tableName:a.tableName,entryId:C.id,payload:s,tableSchema:a,delegated:y?.delegated,confirmedDelegetedUser:j}},!0).then(e=>{e.success?(0,n.A)(`/api/refreshEntry?table=${a.tableName}&db=${t.db_full_name}&id=${C.id}&schema=${JSON.stringify(a)}`).then(e=>{e.success&&($(e.entry),setTimeout(()=>{A(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{A(!1)},500))})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Update this Form?")&&document.getElementById(I)?.click()},children:[S&&(0,s.jsx)(o.A,{}),(E&&!g?N.slice(0,3):N).map((e,t)=>{let a=x.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(0,s.jsx)(u.A,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:m,currentRichTextEditorForms:k,entry:C,query:y,entryPage:g,confirmedDelegetedUser:j,jsonTextEditors:p,formButtonId:I},t+1)}),(0,s.jsx)("button",{type:"submit",className:S?" pointer-events-none opacity-40":"",id:I,children:"Update Entry"})]}),!g&&(0,s.jsx)(c.A,{collapse:E,setCollapse:_})]})}},43656:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(8732);function l({radioValues:e,name:t,onChangeHandler:a,setAlert:l,flexRow:i,labelColor:r,baseText:n,smallText:d,className:c}){try{return(0,s.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(c||""),children:e.map((e,i)=>{let{payload:c,title:o,jsx:u}=e,m=!1===c?c:c||o||null;return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{className:"m-0"+(n?" w-5 h-5":d?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:t=>{l&&l(null),e.onChangeHandler?e.onChangeHandler(t):a&&a(t)},value:"string"==typeof m?m:void 0}),u||(0,s.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(n?" text-base":d?" text-sm":" text-lg"),children:o})]},i+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,s.jsx)("div",{children:"Form Radio Error"})}}a(82015)},51548:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),l=a(58526);function i({selectOptions:e,name:t,onChangeHandler:a,required:i,setAlert:r,title:n,defaultValue:d,info:c,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[n&&(0,s.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:i,onChange:e=>{r&&r(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||void 0,children:e.map((e,t)=>{let{payload:a,title:l}=e;return(0,s.jsx)("option",{value:a,selected:!!e.default,children:l},t+1)})}),(0,s.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,s.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,s.jsx)("span",{children:c})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}a(82015)},10238:(e,t,a)=>{var s=a(24994);t.A=void 0;var l=s(a(30887)),i=a(8732);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M8 16h12V4H8zm2-7h3V6h2v3h3v2h-3v3h-2v-3h-3z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2M8 2c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm12 14H8V4h12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z"},"1")],"LibraryAddTwoTone")},95939:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},98842:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{TableEntriesContext:()=>S,default:()=>v,getServerSideProps:()=>w});var l=a(8732),i=a(82015),r=a.n(i),n=a(20048),d=a.n(n),c=a(95222),o=a(74511),u=a(64098),m=a(90378),h=a.n(m),p=a(31651),x=a.n(p),f=a(68942),b=a.n(f),g=a(67216),j=a.n(g),y=a(11169),N=e([o,u]);[o,u]=N.then?(await N)():N;let T=a(29021),S=r().createContext({});function v({user:e,database:t,table:a,dbSchemaData:s,entries:i,query:n,confirmedDelegetedUser:d,entriesCount:m}){let h=`${a.tableFullName} Table Entries | Datasquirel`,p=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:h}),(0,l.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[x,f]=r().useState(null),[b,g]=r().useState(i),j=r().useRef("title"),N=r().useRef(null),v=r().useRef([]),w=r().useRef([]);return(0,l.jsx)(c.A,{head:p,user:e,extraHeaderContent:(0,l.jsx)(u.A,{database:t,query:n,confirmedDelegetedUser:d,user:e}),children:(0,l.jsxs)(S.Provider,{value:{user:e,database:t,table:a,dbSchemaData:s,entries:i,targetEntry:x,setTargetEntry:f,richTextEditors:v,jsonTextEditors:w,query:n,confirmedDelegetedUser:d,activeEntries:b,setActiveEntries:g,targetField:j,searchTerm:N,entriesCount:m},children:[(0,l.jsx)(o.A,{}),(0,l.jsx)(y.A,{snug:!0})]})})}async function w({req:e,res:t,query:a}){let s=await d()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=a.single,l=await x()({request:e,user:s,databaseSlug:t,query:a});if(!l)throw Error("No Db Object Found!");let{dbUserId:i}=l,r=await j()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${a.single}'`);if(!r||!r[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let n=JSON.parse(T.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(n.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables).filter(e=>e.tableName===a.single_table)[0],c=await h()({database:r[0].db_full_name,queryString:`SELECT * FROM \`${d.tableName}\` ORDER BY id DESC LIMIT 20`,tableSchema:d}),o=await h()({database:r[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${d.tableName}`,tableSchema:d});return{props:{user:s,database:r[0],table:d,dbSchemaData:n,entries:c,query:a,confirmedDelegetedUser:l,entriesCount:o?.[0]?.count||0}}}catch(e){return b()({component:"[single_table]/entries-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null,entries:[]}}}}s()}catch(e){s(e)}})}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/8999.js b/dsql-app/.local_dist/server/chunks/8999.js deleted file mode 100644 index 8468b33..0000000 --- a/dsql-app/.local_dist/server/chunks/8999.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -exports.id = 8999; -exports.ids = [8999]; -exports.modules = { - -/***/ 8999: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const DB_HANDLER = __webpack_require__(2224); -const serverError = __webpack_require__(2163); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @async - * - * @param {{ - * user: {id:number}, - * confirmedDelegetedUser: any, - * database: string, - * table: string, - * priviledgeRegex: RegExp, - * dbId: number, - * }} params - parameters - * - * @returns {Promise<boolean>} does user have the rights for this operation? true if yes, false if no - */ module.exports = async function checkUserRights({ user , confirmedDelegetedUser , database , table , priviledgeRegex , dbId , }) { - /** - * Fetch user - * - * @description Fetch user from db - */ let userConfirmation, priviledge; - try { - if (confirmedDelegetedUser?.delegated) { - userConfirmation = await DB_HANDLER(`SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND \`database\`=? AND \`table\`=?`, [ - confirmedDelegetedUser.rootUserId, - user.id, - database, - table - ]); - priviledge = userConfirmation[0]?.priviledge?.match(priviledgeRegex); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else { - userConfirmation = await DB_HANDLER(`SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?`, [ - user.id, - table, - dbId - ]); - priviledge = true; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } - } catch (/** @type {any} */ error) { - serverError({ - component: "checkUserRights", - message: error.message, - user: user - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (userConfirmation && userConfirmation[0] && priviledge) { - return true; - } else { - return false; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9035.js b/dsql-app/.local_dist/server/chunks/9035.js deleted file mode 100644 index 71bc561..0000000 --- a/dsql-app/.local_dist/server/chunks/9035.js +++ /dev/null @@ -1,2217 +0,0 @@ -"use strict"; -exports.id = 9035; -exports.ids = [9035,2348]; -exports.modules = { - -/***/ 2943: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ ImportExportEntries) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/inputFileToBase64.js -var inputFileToBase64 = __webpack_require__(8345); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/admin/databases/functions/import-export-handler.js -// @ts-check - - -/** - * Import ot Export Table Data - * ============================================================================== - * @param {Object} param0 - * @param {"import" | "export"} param0.paradigm - * @param {any} [param0.payload] - * @param {any} param0.setLoading - * @param {import("@/package-shared/types").DSQL_TableSchemaType} param0.table - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} param0.database - */ function importExportHandler({ paradigm , payload , setLoading , table , database , }) { - setLoading(true); - if (paradigm === "import") {} - (0,fetchApi/* default */.Z)("/api/exportTableData", { - method: "POST", - body: { - paradigm, - dbName: database.db_slug, - tableName: table.tableName, - payload: payload - } - }, true).then((res)=>{ - if (res.success) { - if (paradigm == "export") { - const data = res.data; - const jsonString = JSON.stringify(data || [], null, 4); - const blob = new Blob([ - jsonString - ], { - type: "application/json" - }); - const url = URL.createObjectURL(blob); - const a = document.createElement("a"); - a.href = url; - a.style.display = "none"; - a.download = `${database.db_slug}-${table.tableName}-${Date.now()}.json`; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); - } else if (paradigm == "import") { - window.alert("Data Imported Successfully"); - window.location.reload(); - } - } else if (res.msg) { - window.alert(res.msg); - } - }).catch((error)=>{ - console.log(error); - }).finally(()=>{ - setLoading(false); - }); -} - -;// CONCATENATED MODULE: ./components/admin/databases/ImportExportEntries.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # Import Export Entries - * =================================================== - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @returns - */ function ImportExportEntries({ database , table }) { - const [loading, setLoading] = external_react_default().useState(false); - const [inputReady, setInputReady] = external_react_default().useState(true); - /** @type {React.RefObject<HTMLInputElement>} */ const fileRef = external_react_default().useRef(null); - /** @type {React.RefObject<HTMLFormElement>} */ const formRef = external_react_default().useRef(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - function resetForm() { - setInputReady(false); - setTimeout(()=>{ - setInputReady(true); - }, 200); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "relative", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "15px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray", - onClick: (e)=>{ - importExportHandler({ - paradigm: "export", - database, - setLoading, - table - }); - }, - children: "Export" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray", - onClick: (e)=>{ - fileRef.current?.addEventListener("change", (e)=>{ - setLoading(true); - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (!inputEl.files?.[0]) { - window.alert("No FIles selected"); - setLoading(false); - return; - } - (0,inputFileToBase64/* default */.Z)({ - inputFile: inputEl.files[0] - }).then((fileObject)=>{ - if (window.confirm(`Use this file '${fileObject.fileName}' as your import file?`)) { - importExportHandler({ - paradigm: "import", - payload: fileObject.fileBase64, - database, - setLoading, - table - }); - resetForm(); - } else { - setLoading(false); - resetForm(); - } - }); - }); - fileRef.current?.click(); - }, - children: "Import" - }), - inputReady && /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "file", - name: "json_file_input", - id: "json_file_input", - accept: ".json", - className: "hidden", - ref: fileRef - }) - ] - }); -} - - -/***/ }), - -/***/ 3684: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ MoreTableOptions) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_tiny_popover__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7076); -/* harmony import */ var react_tiny_popover__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_tiny_popover__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _SyncDataButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(436); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * # Import Export Entries - * =================================================== - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - * @returns - */ function MoreTableOptions({ database , table , dbSchemaData , query , }) { - const [open, setOpen] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_tiny_popover__WEBPACK_IMPORTED_MODULE_2__.Popover, { - isOpen: open, - onClickOutside: ()=>setOpen(false), - positions: [ - "bottom" - ], - align: "end", - content: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_SyncDataButton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - database, - table, - setOpenPopover: setOpen, - dbSchemaData, - query - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "m-0" - }) - ] - }), - containerClassName: "z-[1000]", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: ()=>{ - setOpen(!open); - }, - className: "outlined gray px-2 py-1.5", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_3__.Ellipsis, {}) - }) - }); -} - - -/***/ }), - -/***/ 436: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ SyncDataButton) -}); - -// UNUSED EXPORTS: SyncDataModalContent - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: ./components/form/FormRadios.jsx -var FormRadios = __webpack_require__(2348); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/general/Modal.jsx -var Modal = __webpack_require__(9471); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./functions/frontend/syncTableDataFormHandler.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {React.FormEvent<HTMLFormElement>} params.e - * @param {React.Dispatch<React.SetStateAction<boolean>>} params.setLoading - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - * @param {any} params.query - * - * @requires search-field name attribute - */ function syncTableDataFormHandler({ e , setLoading , database , table , query , }) { - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - const paradigm = formEl["paradigm"]?.value; - const dstDbName = formEl["database"]?.value; - const dstTableName = formEl["table"]?.value; - /** @type {import("@/pages/api/sync-table-data").SyncTableBody} */ const fetchObject = { - paradigm: paradigm, - src: { - db: database.db_slug, - table: table.tableName - }, - dst: { - db: dstDbName, - table: dstTableName - }, - delegated: query.delegated - }; - const alertMsg = paradigm == "Pull" ? "NOTE: This operation will override the current database entries. Continue?" : "NOTE: This operation will override the selected database entries. Continue?"; - if (!window.confirm(alertMsg)) { - setTimeout(()=>{ - setLoading(false); - }, 1000); - return; - } - (0,fetchApi/* default */.Z)("/api/sync-table-data", { - method: "POST", - body: { - ...fetchObject - } - }, true).then((res)=>{ - if (res.success) { - window.alert("Data Sync Successful"); - window.location.reload(); - } else { - if (res.msg) window.alert("ERROR: " + res.msg); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -;// CONCATENATED MODULE: ./components/admin/databases/SyncDataButton.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {React.Dispatch<React.SetStateAction<boolean>>} [props.setOpenPopover] - * @param {any} props.query - */ function SyncDataButton({ database , table , setOpenPopover , dbSchemaData , query , }) { - const [open, setOpen] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ghost p-3 justify-start", - onClick: ()=>{ - setOpen(true); - setTimeout(()=>{ - if (setOpenPopover) setOpenPopover(false); - }, 200); - }, - children: "Sync Data" - }), - /*#__PURE__*/ jsx_runtime_.jsx(Modal/* default */.Z, { - open: open, - setOpen: setOpen, - children: /*#__PURE__*/ jsx_runtime_.jsx(SyncDataModalContent, { - database, - table, - dbSchemaData, - query - }) - }) - ] - }); -} -/** - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - */ function SyncDataModalContent({ database , table , query , dbSchemaData: initialSchema , }) { - /** @type {[ state: import("@/package-shared/types").DSQL_DatabaseSchemaType[], dispatch: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_DatabaseSchemaType[]>> ]} */ // @ts-ignore - const [dbSchemaData, setDbSchemaData] = external_react_default().useState(initialSchema); - const [paradigm, setParadigm] = external_react_default().useState("Push"); - const [targetDb, setTargetDb] = external_react_default().useState(dbSchemaData?.[0]); - const [tables, setTables] = external_react_default().useState(targetDb?.tables); - const [targetTable, setTargetTable] = external_react_default().useState(tables?.[0]); - const [loading, setLoading] = external_react_default().useState(false); - const [isCompatible, setIsCompatible] = external_react_default().useState(false); - external_react_default().useEffect(()=>{ - const isEqual = external_lodash_default().isEqual(table?.fields, targetTable?.fields); - if (isEqual) { - setIsCompatible(true); - } else { - setIsCompatible(false); - } - }, [ - targetTable, - setTargetDb - ]); - external_react_default().useEffect(()=>{ - if (query.delegated) { - (0,fetchApi/* default */.Z)("/api/get-authorized-databases").then((res)=>{ - if (res.success && res.payload) { - setDbSchemaData(res.payload); - } - }); - } - }, []); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "stack gap-2 relative w-full", - children: [ - loading || !dbSchemaData && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg", - children: "Sync Data with another table" - }), - !isCompatible ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "info warning inline", - children: [ - "The selected table is not compatible with", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: table.tableFullName - }) - ] - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "info green inline", - children: [ - "The selected table matches ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: table.tableFullName - }), - " ", - "schema" - ] - }), - dbSchemaData && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - syncTableDataFormHandler({ - e, - database, - setLoading, - table, - query - }); - }, - className: "w-full stack gap-2 items-stretch", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "stack gap-2 my-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormRadios/* default */.Z, { - radioValues: [ - { - title: "Push", - payload: "Push", - default: true - }, - { - title: "Pull", - payload: "Pull" - }, - ], - name: "paradigm", - smallText: true, - flexRow: true, - onChangeHandler: (e)=>{ - setParadigm(e.target.value); - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs text-slate-500 dark:text-slate-400", - children: paradigm == "Push" ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - "Sync data from the current table(", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: table.tableFullName - }), - ") to the selected table below" - ] - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - "Sync data from the selected table below to the current table(", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: table.tableFullName - }), - ")" - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: dbSchemaData.filter((dbObj)=>dbObj.dbFullName !== database.db_full_name).map((dbObj)=>({ - title: dbObj.dbName, - payload: dbObj.dbSlug - })), - name: "database", - onChangeHandler: (e)=>{ - const targetDatabase = dbSchemaData.find((db)=>db.dbSlug == e.target.value); - if (targetDatabase) { - setTargetDb(targetDatabase); - setTables(targetDatabase.tables); - setTargetTable(targetDatabase.tables?.[0]); - } - } - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: tables.map((tbl)=>({ - title: tbl.tableFullName, - payload: tbl.tableName - })), - name: "table", - onChangeHandler: (e)=>{ - const findTable = tables.find((tb)=>tb.tableName === e.target.value); - if (findTable) setTargetTable(findTable); - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: isCompatible ? "" : "disabled", - children: "Sync" - }) - ] - }) - ] - }); -} - - -/***/ }), - -/***/ 6122: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ TableEntriesList) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./components/admin/databases/UpdateEntryForm.jsx + 1 modules -var UpdateEntryForm = __webpack_require__(1985); -// EXTERNAL MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx + 1 modules -var _single_table_entries = __webpack_require__(7722); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./components/form/FormInput.jsx + 2 modules -var FormInput = __webpack_require__(7901); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/databases/SearchEntriesSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** @type {any} */ let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} [props.data] - */ function SearchEntriesSection({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { table , entries , activeEntries , setActiveEntries , confirmedDelegetedUser , database , targetField , searchTerm , } = external_react_default().useContext(_single_table_entries.TableEntriesContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const dataTypes = __webpack_require__(9594); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {React.MutableRefObject<HTMLElement | undefined>} */ const searchInputRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - if (searchInputRef.current) searchInputRef.current.focus(); - }, []); - const [count, setCount] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - function search(/** @type {string} */ term) { - setLoading(true); - if (activeEntries) setActiveEntries(null); - if (!term?.toString().match(/./)) { - setTimeout(()=>{ - if (setActiveEntries) setActiveEntries(entries || []); - setLoading(false); - }, 500); - return; - } - window.clearTimeout(timeout); - const targetFieldObject = table?.fields.filter((fld)=>fld.fieldName === targetField?.current); - const operator = (()=>{ - if (targetFieldObject && targetFieldObject[0]) { - if (targetFieldObject[0].dataType?.match(/int/i)) return "equal"; - } - if (targetField?.current?.match(/^id$/)) return "equal"; - return "like"; - })(); - timeout = setTimeout(()=>{ - setLoading(false); - (0,fetchApi/* default */.Z)(`/api/queryEntriesSearchTerm?db=${database?.db_full_name}&table=${table?.tableName}&field=${targetField?.current}&term=${term}&operator=${operator}`).then((res)=>{ - if (typeof res.count == "number") { - setCount(res.count); - } - if (res.success && setActiveEntries) { - setActiveEntries(res.result); - } - setLoading(false); - }); - }, 500); - } - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col items-stretch", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - if (searchTerm?.current) search(searchTerm.current); - }, - className: "flex flex-row items-stretch gap-4 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "max-w-xs", - children: /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - required: true, - selectOptions: table ? table.fields.map((fieldObject)=>{ - return { - title: fieldObject.fieldName || "", - payload: fieldObject.fieldName || "" - }; - }) : [], - name: "database_tables", - onChangeHandler: (e)=>{ - if (targetField) targetField.current = e.target.value; - // setTimeout(() => { - // search(searchTerm); - // }, 500); - }, - title: "Select Field", - defaultValue: targetField?.current, - id: "entries-search-field-select" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "grow", - children: /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - title: "Search Term", - placeholder: "Enter search term that corresponds with the selected field type ...", - onInputHandler: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value?.match(/./) && searchTerm) { - searchTerm.current = inputEl.value; - } else if (searchTerm) { - searchTerm.current = null; - } - search(inputEl.value); - }, - elementRef: searchInputRef, - id: "entries-search-input" - }) - }), - loading && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "relative items-center justify-center", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "relative mt-5 w-6", - children: /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }) - }) - }) - ] - }), - searchTerm?.current?.match(/./) && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "py-4", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-lg", - children: [ - typeof count == "number" ? count > 0 ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("b", { - children: [ - count, - " " - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, { - children: "No " - }) : "... ", - "Search result", - !count || count === 1 ? "" : "s", - " for", - " ", - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("b", { - children: [ - '"', - searchTerm.current, - '"' - ] - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "@mui/icons-material/LibraryAddTwoTone" -var LibraryAddTwoTone_ = __webpack_require__(9438); -var LibraryAddTwoTone_default = /*#__PURE__*/__webpack_require__.n(LibraryAddTwoTone_); -// EXTERNAL MODULE: ./components/admin/databases/ImportExportEntries.jsx + 1 modules -var ImportExportEntries = __webpack_require__(2943); -// EXTERNAL MODULE: ./components/admin/databases/MoreTableOptions.jsx -var MoreTableOptions = __webpack_require__(3684); -// EXTERNAL MODULE: ./components/admin/databases/SyncDataButton.jsx + 1 modules -var SyncDataButton = __webpack_require__(436); -;// CONCATENATED MODULE: ./components/admin/databases/TableEntriesList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any[] | null} props.entries - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {React.Dispatch<React.SetStateAction<any>>} [props.setTargetEntry] - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {React.MutableRefObject<import("@/package-shared/types").RichTextEditorsRefArray[]>} props.richTextEditors - * @param {React.MutableRefObject<import("@/package-shared/types").JSONTextEditorsRefArray[]>} props.jsonTextEditors - * @param {any[]} props.dataTypes - * @param {string} [props.title] - * @param {any} [props.confirmedDelegetedUser] - * @param {any} [props.query] - * @param {any} [props.search] - * @param {number} [props.entriesCount] - */ function TableEntriesList({ user , entries , database , table , setTargetEntry , dbSchemaData , richTextEditors , jsonTextEditors , dataTypes , title , confirmedDelegetedUser , query , search , entriesCount , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper gray gray-bg", - children: [ - title && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: title - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - className: "button flex gap-2 items-center", - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Entry" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(ImportExportEntries/* default */.Z, { - database, - table - }), - /*#__PURE__*/ jsx_runtime_.jsx(MoreTableOptions/* default */.Z, { - database, - table, - dbSchemaData, - query - }) - ] - }) - ] - }), - search && /*#__PURE__*/ jsx_runtime_.jsx(SearchEntriesSection, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col gap-6", - children: [ - entries?.[0] && entries.map((entry)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(UpdateEntryForm/* default */.Z, { - user: user, - database: database, - table: table, - dbSchemaData: dbSchemaData, - richTextEditors: richTextEditors, - dataTypes: dataTypes, - entry: entry, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors - }) - }, entry.id); - }), - !entries && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full h-[300px]", - children: /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative" - }) - }), - entries && !entries?.[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - className: "border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400 text-center", - children: "No Entries Added Yet." - }), - /*#__PURE__*/ jsx_runtime_.jsx((LibraryAddTwoTone_default()), { - className: "opacity-20 my-4", - sx: { - fontSize: 80 - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-center", - children: "Add an Entry to this Table" - }) - ] - }), - entriesCount && entriesCount > 10 ? /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries`, - className: "button outlined gray w-full -mb-4", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "See All Entries" - }) - }) : null, - entries?.[0] && title && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - className: "button flex gap-2 items-center w-full justify-center mt-2 more-padding", - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - style: { - borderStyle: "dotted", - borderWidth: "2px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Entry" - }) - ] - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 1985: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ UpdateEntryForm) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/frontend/defaultFieldsRegexp.js -var defaultFieldsRegexp = __webpack_require__(3907); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./functions/frontend/updateDiskUsage.js -var updateDiskUsage = __webpack_require__(1069); -// EXTERNAL MODULE: ./components/general/ExpandBlock.jsx -var ExpandBlock = __webpack_require__(6169); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/databases/TableEntryField.jsx + 11 modules -var TableEntryField = __webpack_require__(4559); -// EXTERNAL MODULE: external "@mui/material" -var material_ = __webpack_require__(5692); -// EXTERNAL MODULE: external "@mui/icons-material/MoreHoriz" -var MoreHoriz_ = __webpack_require__(5453); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -// EXTERNAL MODULE: ./components/admin/databases/functions/generateTypeDefinition.js -var generateTypeDefinition = __webpack_require__(5753); -// EXTERNAL MODULE: external "react-tiny-popover" -var external_react_tiny_popover_ = __webpack_require__(7076); -;// CONCATENATED MODULE: ./components/admin/databases/UpdateEntryMoreOptions.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {any} [props.entry] - * @param {string} [props.url] - * @param {any} [props.query] - */ function UpdateEntryMoreOptions({ user , table , entry , url , query , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [openMore, setOpenMore] = external_react_default().useState(false); - const openMoreButtonRef = external_react_default().useRef(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "relative z-[1000]", - children: /*#__PURE__*/ jsx_runtime_.jsx(external_react_tiny_popover_.Popover, { - isOpen: openMore, - onClickOutside: ()=>setOpenMore(false), - containerClassName: "z-[1000]", - positions: [ - "bottom" - ], - align: "end", - content: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "bg-white dark:bg-slate-900 rounded shadow-md cancel-link", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col min-w-[200px] items-stretch gap-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "plain-text justify-start py-3", - onClick: ()=>{ - navigator.clipboard.writeText(JSON.stringify(entry)).then(()=>{ - window.alert("Post Copied"); - setOpenMore(false); - }); - }, - children: "Copy Object" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "plain-text justify-start py-3", - onClick: ()=>{ - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "JavaScript", - table, - query, - user - }); - navigator.clipboard.writeText(txt || "").then(()=>{ - window.alert("JavaScript Type Definition Copied"); - setOpenMore(false); - }); - }, - children: "Copy JS Type Definition" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "plain-text justify-start py-3", - onClick: ()=>{ - const txt = (0,generateTypeDefinition/* default */.Z)({ - paradigm: "TypeScript", - table, - query, - user - }); - navigator.clipboard.writeText(txt || "").then(()=>{ - window.alert("TypeScript Type Definition Copied"); - setOpenMore(false); - }); - }, - children: "Copy TS Type Definition" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "m-0" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: url, - className: "button plain-text justify-start py-3", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "View Entry" - }) - }) - ] - }) - }), - children: /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: ()=>{ - setOpenMore(!openMore); - }, - ref: openMoreButtonRef, - className: "ghost p-2", - children: /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.Ellipsis, {}) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/UpdateEntryForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} [props.dbSchemaData] - * @param {React.MutableRefObject<any[]>} props.richTextEditors - * @param {React.MutableRefObject<any[]>} props.jsonTextEditors - * @param {any[]} props.dataTypes - * @param {any} [props.entry] - * @param {boolean} [props.entryPage] - * @param {any} [props.confirmedDelegetedUser] - * @param {any} [props.query] - */ function UpdateEntryForm({ user , database , table , dbSchemaData , richTextEditors , jsonTextEditors , dataTypes , entry , entryPage , confirmedDelegetedUser , query , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const filteredFields = table.fields.filter((field)=>field.fieldName && !field.fieldName.match(defaultFieldsRegexp/* default */.Z)); - const isUUID = table.fields.find((field)=>field.fieldName === "uuid"); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - //////////////////////////////////////// - if (isUUID) { - filteredFields.unshift({ - dataType: "UUID", - fieldName: "uuid", - defaultField: true - }); - } - filteredFields.unshift({ - dataType: "BIGINT", - fieldName: "id", - defaultField: true - }); - filteredFields.push({ - dataType: "VARCHAR(250)", - fieldName: "date_created", - defaultField: true - }); - filteredFields.push({ - dataType: "BIGINT", - fieldName: "date_created_code", - defaultField: true - }); - filteredFields.push({ - dataType: "TIMESTAMP", - fieldName: "date_created_timestamp", - defaultField: true - }); - filteredFields.push({ - dataType: "VARCHAR(250)", - fieldName: "date_updated", - defaultField: true - }); - filteredFields.push({ - dataType: "BIGINT", - fieldName: "date_updated_code", - defaultField: true - }); - filteredFields.push({ - dataType: "TIMESTAMP", - fieldName: "date_updated_timestamp", - defaultField: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [collapse, setCollapse] = external_react_default().useState(true); - const [activeEntry, setActiveEntry] = external_react_default().useState(entry); - const [openMore, setOpenMore] = external_react_default().useState(false); - const openMoreButtonRef = external_react_default().useRef(null); - /** @type {React.MutableRefObject<import("@/package-shared/types").RichTextEditorsRefArray[]>} */ const currentRichTextEditorForms = external_react_default().useRef([]); - const [url, setUrl] = external_react_default().useState(`/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${activeEntry.id}`); - external_react_default().useEffect(()=>{ - if (confirmedDelegetedUser?.dbUserId && Number(user.id) !== Number(confirmedDelegetedUser.dbUserId)) { - setUrl(`/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${activeEntry.id}` + window.location.search); - } - }, []); - const formButtonId = `${database.db_slug}-${table.tableName}-${activeEntry.id}-submit-button`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card col w-full overflow-hidden", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: url, - onClick: (e)=>{ - /** @type {HTMLElement} */ // @ts-ignore - const targetEl = e.target; - if (targetEl.closest(".cancel-link") || targetEl.closest(".MuiPopover-root")) { - e.preventDefault(); - } - }, - className: "w-full", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ", - onClick: (e)=>{ - /** @type {HTMLDivElement} */ // @ts-ignore - const divEl = e.target; - if (divEl.closest(".cancel-link") || divEl.closest(".MuiPopover-root")) return; - if (e.ctrlKey) { - window.open(url, "__blank"); - } else { - window.location.href = url; - } - }, - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - "Entry #", - activeEntry.id - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap cancel-link", - children: [ - (!isDelegated || isDelegated && areEntriesDeletable) && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300 hover:text-fuchsia-200 cursor-pointer" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - if (window.confirm(`Delete Entry #${activeEntry.id}?`)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/deleteTableEntry" + window.location.search, { - method: "post", - body: { - dbFullName: database.db_full_name, - tableName: table.tableName, - entryId: activeEntry.id, - dbSlug: database.db_slug, - dbId: database.id, - delegated: query?.delegated, - confirmedDelegetedUser - } - }, true).then((res)=>{ - if (res.success) { - (0,updateDiskUsage/* default */.Z)().then(()=>{ - window.location.reload(); - }); - } else { - window.alert(res.msg); - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); - } - }, - children: "Delete Entry" - }), - !entryPage && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-20", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300 hover:text-fuchsia-200 cursor-pointer", - onClick: (e)=>{ - if (collapse) { - setCollapse(false); - } else { - setCollapse(true); - } - }, - children: collapse ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Expand" - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Collapse" - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-20", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button ghost px-0", - onClick: (e)=>{ - let duplicateEntry = external_lodash_default().cloneDeep(entry); - delete duplicateEntry["date_created"]; - delete duplicateEntry["date_created_code"]; - delete duplicateEntry["date_created_timestamp"]; - delete duplicateEntry["date_updated"]; - delete duplicateEntry["date_updated_code"]; - delete duplicateEntry["date_updated_timestamp"]; - delete duplicateEntry["id"]; - delete duplicateEntry["uuid"]; - localStorage.setItem("duplicate_entry", JSON.stringify(duplicateEntry)); - window.location.href = `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry?duplicate=true&id=${entry.id}`; - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-300", - children: "Duplicate" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "opacity-20", - children: "|" - }), - /*#__PURE__*/ jsx_runtime_.jsx(UpdateEntryMoreOptions, { - table, - user, - entry, - query, - url - }) - ] - }) - ] - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative", - style: !entryPage ? { - maxHeight: collapse ? "300px" : "none", - paddingTop: "10px", - paddingBottom: "10px", - overflow: "hidden" - } : {}, - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {any} */ let payload = {}; - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - filteredFields.forEach((field)=>{ - if (!field.fieldName) return; - if (!formEl[field.fieldName]) return; - const isString = typeof formEl[field.fieldName].value !== "string"; - const isNumber = typeof formEl[field.fieldName].value !== "number"; - if (!isString && !isNumber && !formEl[field.fieldName].value) return; - if (formEl[field.fieldName]?.dataset.default) return; - payload[field.fieldName] = formEl[field.fieldName].value; - }); - if (currentRichTextEditorForms.current[0]) { - currentRichTextEditorForms.current.forEach((/** @type {any} */ richTextObject)=>{ - if (!richTextObject?.fieldName || !richTextObject?.ref?.current) return; - payload[richTextObject.fieldName] = richTextObject.ref.current.getContent(); - }); - } - if (jsonTextEditors.current[0]) { - jsonTextEditors.current.forEach((jsonEditor)=>{ - if (!jsonEditor?.fieldName || !jsonEditor?.ref?.current) return; - payload[jsonEditor.fieldName] = jsonEditor.ref.current.getValue(); - }); - } - (0,fetchApi/* default */.Z)("/api/updateTableEntry", { - method: "post", - body: { - dbFullName: database.db_full_name, - dbSlug: database.db_slug, - dbId: database.id, - tableName: table.tableName, - entryId: activeEntry.id, - payload: payload, - tableSchema: table, - delegated: query?.delegated, - confirmedDelegetedUser - } - }, true).then((res)=>{ - if (res.success) { - (0,fetchApi/* default */.Z)(`/api/refreshEntry?table=${table.tableName}&db=${database.db_full_name}&id=${activeEntry.id}&schema=${JSON.stringify(table)}`).then((_res)=>{ - if (_res.success) { - setActiveEntry(_res.entry); - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); - } else { - window.alert(res.msg + "\n" + (res.err || "")); - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); - }, - onKeyUp: (e)=>{ - if (e.ctrlKey && e.key == "Enter") { - const confirm = window.confirm("Update this Form?"); - if (!confirm) return; - document.getElementById(formButtonId)?.click(); - } - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - (collapse && !entryPage ? filteredFields.slice(0, 3) : filteredFields).map((field, index)=>{ - let dataTypeSchema = dataTypes.filter((type)=>type.name === field.dataType?.replace(/\d|\(|\)/g, "")); - return /*#__PURE__*/ jsx_runtime_.jsx(TableEntryField/* default */.Z, { - fieldObject: field, - dataTypeSchema: dataTypeSchema[0], - richTextEditors: richTextEditors, - currentRichTextEditorForms: currentRichTextEditorForms, - entry: activeEntry, - query: query, - entryPage: entryPage, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors, - formButtonId: formButtonId - }, index + 1); - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "" + (loading ? " pointer-events-none opacity-40" : ""), - id: formButtonId, - children: "Update Entry" - }) - ] - }), - !entryPage && /*#__PURE__*/ jsx_runtime_.jsx(ExpandBlock/* default */.Z, { - collapse: collapse, - setCollapse: setCollapse - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 2348: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormRadios) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {{ - * title: string, - * payload: string | boolean, - * default?: boolean, - * jsx?: React.ReactNode, - * onChangeHandler?: (e: any) => void, - * }[]} props.radioValues - array of objects - * @param {string} props.name - form radios collective name - * @param {(e: any) => void} [props.onChangeHandler] - when radios change - * @param {React.Dispatch<React.SetStateAction<any>>} [props.setAlert] - set an external alert dispatch - * @param {boolean} [props.flexRow] - if the radio and label are stacked on each other or side-by-side - * @param {string} [props.labelColor] - Label color using tailwind syntax - * @param {boolean} [props.baseText] - Font size regular - * @param {boolean} [props.smallText] - Font size smaller - * @param {string} [props.className] - Additional class names for the wrapper - */ function FormRadios({ radioValues , name , onChangeHandler , setAlert , flexRow , labelColor , baseText , smallText , className , }) { - try { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex items-start gap-4 flex-wrap " + (flexRow ? "" : " flex-col ") + (className ? className : ""), - children: radioValues.map((value, index)=>{ - const { payload , title , jsx } = value; - const radioPayload = payload === false ? payload : payload ? payload : title ? title : null; - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - className: "m-0" + (baseText ? " w-5 h-5" : smallText ? " w-4 h-4" : " w-6 h-6"), - type: "radio", - defaultChecked: value.default ? true : false, - name: name, - id: name + "_" + radioPayload, - onChange: (e)=>{ - if (setAlert) setAlert(null); - if (value.onChangeHandler) { - value.onChangeHandler(e); - } else if (onChangeHandler) { - onChangeHandler(e); - } - }, - value: typeof radioPayload == "string" ? radioPayload : undefined - }), - jsx ? jsx : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: name + "_" + radioPayload, - className: "text-lg m-0 " + (labelColor ? labelColor : "text-slate-800") + (baseText ? " text-base" : smallText ? " text-sm" : " text-lg"), - children: title - }) - ] - }, index + 1); - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log("ERROR in FormRadio =>", error); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - children: "Form Radio Error" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 7722: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "TableEntriesContext": () => (/* binding */ TableEntriesContext), - "default": () => (/* binding */ TableEntries), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/admin/databases/TableEntriesList.jsx + 1 modules -var TableEntriesList = __webpack_require__(6122); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/ActiveCloneTableBanner.jsx -var ActiveCloneTableBanner = __webpack_require__(8515); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -// EXTERNAL MODULE: ./components/admin/databases/ImportExportEntries.jsx + 1 modules -var ImportExportEntries = __webpack_require__(2943); -// EXTERNAL MODULE: ./components/admin/databases/MoreTableOptions.jsx -var MoreTableOptions = __webpack_require__(3684); -;// CONCATENATED MODULE: ./components/admin/databases/TableEntriesContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ const BATCH_NO = 20; -/** @type {any} */ let refreshTimeout; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function TableEntriesContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , dbSchemaData , setTargetEntry , richTextEditors , jsonTextEditors , query , confirmedDelegetedUser , activeEntries , entriesCount , setActiveEntries , } = external_react_default().useContext(TableEntriesContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const dataTypes = __webpack_require__(9594); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full relative z-50", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "flex items-center flex-wrap gap-2", - children: [ - "All Entries In", - " ", - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative", - children: [ - table.tableFullName, - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-5 -right-4", - children: /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.tableName, - justIcon: true - }) - }) - ] - }), - " ", - "Table" - ] - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full sm:w-auto", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - className: "button flex items-center gap-2 w-full sm:w-auto justify-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Entry" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(ImportExportEntries/* default */.Z, { - database, - table - }), - /*#__PURE__*/ jsx_runtime_.jsx(MoreTableOptions/* default */.Z, { - database, - table, - dbSchemaData, - query - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneTableBanner/* default */.Z, { - table: table, - database: database, - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx(TableEntriesList/* default */.Z, { - user: user, - entries: activeEntries, - database: database, - table: table, - setTargetEntry: setTargetEntry, - dbSchemaData: dbSchemaData, - richTextEditors: richTextEditors, - dataTypes: dataTypes, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors, - search: true - }), - entriesCount > BATCH_NO && /*#__PURE__*/ jsx_runtime_.jsx(InfiniteScroll, { - activeEntries, - setActiveEntries, - database, - table, - entriesCount - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * - * @param {object} props - * @param {any[] | null} props.activeEntries - * @param {React.Dispatch<React.SetStateAction<any[] | null>>} props.setActiveEntries - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {number} props.entriesCount - * @returns - */ function InfiniteScroll({ activeEntries , setActiveEntries , database , table , entriesCount , }) { - const context = external_react_default().useContext(TableEntriesContext); - /** @type {React.RefObject<HTMLDivElement>} */ // @ts-ignore - const infiniteScrollRef = external_react_default().useRef(); - const pageRef = external_react_default().useRef(1); - const totalEntriesDisplayed = BATCH_NO * Number(pageRef.current); - const exhausted = Boolean(totalEntriesDisplayed >= entriesCount); - external_react_default().useEffect(()=>{ - /** @type {IntersectionObserverCallback} */ function ISObserverCb(entries, observer) { - if (entries?.[0]?.isIntersecting) { - /** @type {HTMLInputElement | null} */ // @ts-ignore - const searchInput = document.getElementById("entries-search-input"); - /** @type {HTMLInputElement | null} */ // @ts-ignore - const searchField = document.getElementById("entries-search-field-select"); - /** @type {import("@/pages/api/infiniteScroll").InfiniteScrollBodyObject} */ const fetchObject = { - tableName: table.tableName, - dbName: database.db_slug, - page: pageRef.current, - tableSchema: table, - search: searchInput ? searchInput.value : undefined, - searchField: searchField ? searchField.value : undefined, - delegated: Boolean(context.query.delegated) - }; - (0,fetchApi/* default */.Z)("/api/infiniteScroll", { - method: "POST", - body: fetchObject - }, true).then((/** @type {import("@/pages/api/infiniteScroll").InfiniteScrollAPIRes} */ res)=>{ - if (!res.success) { - return; - } - if (res.page) { - pageRef.current = res.page; - } - window.clearTimeout(refreshTimeout); - refreshTimeout = setTimeout(()=>{ - if (!res.data?.[0]) return; - if (res.data?.[0]) { - setActiveEntries((prev)=>{ - if (!prev) { - return null; - } - return [ - ...prev, - // @ts-ignore - ...res.data, - ]; - }); - } - }, 500); - }).catch((err)=>{ - console.log("Infinite Scroll Error =>", err); - }).finally(()=>{ - console.log("Infinite Scroll Done. Page", pageRef.current); - }); - } - } - /** @type {IntersectionObserverInit} */ const ISObserverOptions = { - rootMargin: "0px 0px 0px 0px" - }; - setTimeout(()=>{ - requestAnimationFrame(()=>{ - const infiniteScrollObserver = new IntersectionObserver(ISObserverCb, ISObserverOptions); - if (infiniteScrollRef.current) infiniteScrollObserver.observe(infiniteScrollRef.current); - }); - }, 1000); - }, []); - if (exhausted) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - } - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex items-center justify-center", - ref: infiniteScrollRef, - children: /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative", - style: { - backgroundColor: "transparent" - }, - width: "20px" - }) - }); -} - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2317); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/ScrollToTopButton.jsx -var ScrollToTopButton = __webpack_require__(9360); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").TableEntriesContextType} */ // @ts-ignore -const init = {}; -const TableEntriesContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any[]} props.entries - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - * @param {number} props.entriesCount - */ function TableEntries({ user , database , table , dbSchemaData , entries , query , confirmedDelegetedUser , entriesCount , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${table.tableFullName} Table Entries | Datasquirel`; - const pageDescription = "All Entries in table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [targetEntry, setTargetEntry] = external_react_default().useState(null); - /** @type {[ state: any[] | null, dispatch: React.Dispatch<React.SetStateAction<any[] | null>> ]} */ // @ts-ignore - const [activeEntries, setActiveEntries] = external_react_default().useState(entries); - const targetField = external_react_default().useRef("title"); - const searchTerm = external_react_default().useRef(null); - /** @type {React.MutableRefObject<any[]>} */ const richTextEditors = external_react_default().useRef([]); - /** @type {React.MutableRefObject<any[]>} */ const jsonTextEditors = external_react_default().useRef([]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(TableEntriesContext.Provider, { - value: { - user, - database, - table, - dbSchemaData, - entries, - targetEntry, - setTargetEntry, - richTextEditors, - jsonTextEditors, - query, - confirmedDelegetedUser, - activeEntries, - setActiveEntries, - targetField, - searchTerm, - entriesCount - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(TableEntriesContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ScrollToTopButton/* default */.Z, { - snug: true - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ /** @type {string} */ // @ts-ignore - const slug = query.single; - const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - databaseSlug: slug, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - throw new Error("No Db Object Found!"); - } - const { dbUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === query.single_table)[0]; - const tableEntries = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM \`${targetTable.tableName}\` ORDER BY id DESC LIMIT 20`, - tableSchema: targetTable - }); - const tableEntriesCount = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT COUNT(id) AS count FROM ${targetTable.tableName}`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - table: targetTable, - dbSchemaData: dbSchemaData, - entries: tableEntries, - query, - confirmedDelegetedUser, - entriesCount: tableEntriesCount?.[0]?.count || 0 - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError_default()({ - component: "[single_table]/entries-page-component/getServerSideProps/catch-error", - message: error.message, - user: user - }); - return { - // redirect: { - // destination: "/login", - // permanent: false - // }, - props: { - user: user, - database: null, - table: null, - entries: [] - } - }; - } -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/913.js b/dsql-app/.local_dist/server/chunks/913.js deleted file mode 100644 index 8beba19..0000000 --- a/dsql-app/.local_dist/server/chunks/913.js +++ /dev/null @@ -1,713 +0,0 @@ -"use strict"; -exports.id = 913; -exports.ids = [913]; -exports.modules = { - -/***/ 5484: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ AdminUserBlock) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/CottageTwoTone" -var CottageTwoTone_ = __webpack_require__(386); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./layouts/components/AdminUserDropdown.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Admin User Dropdown - * ============================================================================== - * @param {object} props - * @param {import("@/package-shared/types").UserType} props.user - */ function AdminUserDropdown({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown right-aligned", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: "/admin", - className: "button outlined gray more-padding relative z-20 mb-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.CircleGauge, { - size: 18, - className: "mr-1" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Dashboard" - }) - ] - }), - false ? /*#__PURE__*/ 0 : null, - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/settings`, - className: "button plain-text more-padding normal-weight", - children: "Settings" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/logout", - className: "button plain-text more-padding normal-weight", - children: "Logout" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./components/general/ThemeSelector.jsx -var ThemeSelector = __webpack_require__(4981); -;// CONCATENATED MODULE: ./layouts/components/AdminLayout/AdminUserBlock.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {import("@/package-shared/types").UserType | null} [props.activeUser] - user object - * @param {boolean} [props.noModeSelector] - Add dark mode toggler or not - */ function AdminUserBlock({ activeUser , noModeSelector }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (!activeUser?.logged_in_status) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}); - } - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2 whitespace-nowrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "ml-auto dropdown-wrapper p-0 xl:p-4 hover:bg-slate-100 hidden", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${activeUser?.id}/notifications`, - className: "flex items-center justify-center", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/notification-icon.svg", - alt: "Notification Icon", - width: 20, - className: "opacity-50" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown mt-0 xl:-mt-3 gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Notifications" - }), - /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative", - width: "20px" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "ml-auto dropdown-wrapper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "avatar", - style: { - width: "36px", - height: "36px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: activeUser?.image, - alt: "User Image", - width: 35, - className: "w-full h-full object-cover rounded-full" - }), - activeUser?.social_login ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "sub-img", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: (()=>{ - if (activeUser?.social_platform?.match(/facebook/i)) return "/images/facebook.png"; - if (activeUser?.social_platform?.match(/google/i)) return "/images/google.png"; - if (activeUser?.social_platform?.match(/github/i)) return "/images/github.png"; - return "/images/sharing.png"; - })(), - alt: "", - className: "flex dark:hidden" - }), - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: (()=>{ - if (activeUser?.social_platform?.match(/facebook/i)) return "/images/facebook.png"; - if (activeUser?.social_platform?.match(/google/i)) return "/images/google.png"; - if (activeUser?.social_platform?.match(/github/i)) return "/images/github-white.png"; - return "/images/sharing.png"; - })(), - alt: "", - className: "hidden dark:flex" - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "dark:text-white", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("b", { - children: [ - activeUser?.first_name, - " ", - activeUser?.last_name - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronDown, { - size: 20 - }), - /*#__PURE__*/ jsx_runtime_.jsx(AdminUserDropdown, { - user: activeUser - }) - ] - }), - !noModeSelector && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-2", - children: /*#__PURE__*/ jsx_runtime_.jsx(ThemeSelector/* default */.Z, {}) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 5281: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ Footer) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _components_general_Logo__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4017); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - */ function Footer(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("footer", { - className: "p-8 md:p-10 w-full flex flex-col items-center", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "main-container items-start justify-between gap-6 flex-wrap flex-col md:flex-row pt-6", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-6", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_Logo__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-normal max-w-sm text-sm text-left", - children: "Datasquirel is a fast efficient cloud-based data store that takes away the entire hassle of data management." - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0", - children: "Features" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/database-reference/data-types", - className: "text-slate-600", - children: "Database Schema" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/database-reference/querying-data", - className: "text-slate-600", - children: "SQL Queries" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/gui-reference/upload-media", - className: "text-slate-600", - children: "Media Storage" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0", - children: "Docs" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/quick-start", - className: "text-slate-600", - children: "Quick Start Guide" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/api-reference", - className: "text-slate-600", - children: "API Guide" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/gui-reference", - className: "text-slate-600", - children: "GUI Interface" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0", - children: "Company" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/about", - className: "text-slate-600", - children: "About Us" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/terms", - className: "text-slate-600", - children: "Terms and Conditions" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/privacy", - className: "text-slate-600", - children: "Privacy Policy" - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "my-10" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "container", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-sm text-slate-400 dark:text-slate-600", - children: [ - new Date().getFullYear(), - " \xa9 Datasquirel. All rights reserved." - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 7108: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ Header) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _components_general_ThemeSelector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4981); -/* harmony import */ var _components_general_Logo__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4017); -/* harmony import */ var _AdminLayout_AdminUserBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5484); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - React component props - * @param {import("@/package-shared/types").UserType | null} [props.user] - * @param {boolean} [props.darkBg] - * @param {boolean} [props.transparent] - */ function Header({ user , darkBg , transparent }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [activeUser, setActiveUser] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(user?.logged_in_status ? user : null); - // const [activeUser, setActiveUser] = React.useState(user); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - /** @type {*} */ const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - window.addEventListener("click", (e)=>{ - /** @type {*} */ const clickTarget = e.target; - if (clickTarget?.closest("#main-nav-content-wrapper") || clickTarget?.closest("#main-header-hamburger-button")) return; - if (!mainNavWrapper.classList.contains("hidden")) { - mainNavWrapper.classList.add("hidden"); - } - }); - const navLinks = document.querySelectorAll("nav a"); - navLinks.forEach((/** @type {HTMLAnchorElement | *} */ link)=>{ - if (link.pathname === window.location.pathname) { - if (link.href.match(/#/) || link.pathname.match(/http/)) return; - link.classList.add("active-page-link"); - } - }); - }, []); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (user?.logged_in_status) { - setActiveUser(user); - } - }, [ - user - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("header", { - className: "w-full px-4 md:px-8 flex justify-center gap-4 " + (darkBg ? " shadow-slate-900/20 dark-content" : " shadow-slate-900/5") + (transparent ? "" : " bg-white dark:bg-slate-800 shadow-lg dark:shadow-black/10 z-50") + (user?.logged_in_status ? " py-4" : " py-6"), - style: { - zIndex: 700 - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "container", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("nav", { - className: "w-full flex items-center justify-between gap-4 md:gap-10", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_Logo__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 p-4 xl:p-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto xl:bg-transparent" + (transparent ? " bg-white xl:bg-transparent" : " bg-white dark:bg-slate-800"), - id: "main-nav-content-wrapper", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "items-center mb-2 flex xl:hidden", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/logo-icon-alt-2.png", - alt: "Logo Icon", - width: 37 - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray ml-auto", - onClick: (e)=>{ - /** @type {*} */ const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - border: "none" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-semibold text-4xl", - children: "✕" - }) - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center grow flex-col-reverse xl:flex-row mb-10 xl:mb-0", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col xl:flex-row w-full gap-y-10 gap-x-6", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper flex items-center gap-1", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/docs/gui-reference", - className: "relative z-10 flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Features" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_5__.ChevronDown, { - size: 20 - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/database-reference/data-types", - className: "button plain-text more-padding normal-weight", - children: "Database Schema" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/database-reference/querying-data", - className: "button plain-text more-padding normal-weight", - children: "Sql Queries" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/gui-reference/upload-media", - className: "button plain-text more-padding normal-weight", - children: "Media Storage" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper flex items-center gap-1", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/docs", - className: "relative z-10 flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Docs" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_5__.ChevronDown, { - size: 20 - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/quick-start", - className: "button plain-text more-padding normal-weight", - children: "Quick Start" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/api-reference", - className: "button plain-text more-padding normal-weight", - children: "Api Guide" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/docs/gui-reference", - className: "button plain-text more-padding normal-weight", - children: "GUI Interface" - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/about", - children: "About Us" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/pricing", - children: "Pricing" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/contact", - children: "Contact Us" - }) - ] - }), - activeUser?.logged_in_status ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_AdminLayout_AdminUserBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - activeUser: activeUser, - noModeSelector: true - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "ml-auto w-full xl:w-auto justify-center", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/login", - className: "button outlined gray hidden xl:flex" + (darkBg ? " light" : ""), - children: "Login" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/login", - className: "button outlined gray flex xl:hidden", - children: "Login" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/create-account", - className: "button", - children: "Get Started" - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "ml-0 xl:-ml-2", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_ThemeSelector__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}) - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("button", { - className: "bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all", - onClick: (e)=>{ - /** @type {*} */ const mainNavWrapper = document.getElementById("main-nav-content-wrapper"); - mainNavWrapper?.classList.toggle("hidden"); - }, - style: { - minWidth: "50px", - backgroundColor: "transparent" - }, - id: "main-header-hamburger-button", - "aria-label": "Mobile Hambutget Button", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full" - }) - ] - }) - ] - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9132.js b/dsql-app/.local_dist/server/chunks/9132.js deleted file mode 100644 index 1aa0409..0000000 --- a/dsql-app/.local_dist/server/chunks/9132.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -exports.id = 9132; -exports.ids = [9132]; -exports.modules = { - -/***/ 9132: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const serverError = __webpack_require__(3017); -const NO_DB_HANDLER = __webpack_require__(7487); -/** - * Create database from Schema Function - * ============================================================================== - * @param {string} queryString - Query String - * @returns {Promise<any>} - */ module.exports = async function noDatabaseDbHandler(queryString) { - "production"?.match(/dev/) && fs.appendFileSync("./.tmp/sqlQuery.sql", queryString + "\n" + Date() + "\n\n\n", "utf8"); - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - /** ********************* Run Query */ results = await NO_DB_HANDLER(queryString); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "noDatabaseDbHandler", - message: error.message - }); - console.log("ERROR in noDatabaseDbHandler =>", error.message); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results) { - return results; - } else { - return null; - } -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9205.js b/dsql-app/.local_dist/server/chunks/9205.js new file mode 100644 index 0000000..a72d535 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9205.js @@ -0,0 +1 @@ +"use strict";exports.id=9205,exports.ids=[9205],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},4545:(e,t,s)=>{s.d(t,{A:()=>p});var a=s(8732),i=s(82015),c=s.n(i),l=s(97780),r=s(63715),n=s(32415),o=s(42583);function d({docPageObject:e}){let[t,s]=c().useState(!1),[i,d]=c().useState([]);return(0,a.jsxs)("div",{className:"card col relative cursor-pointer",onClick:t=>{t.target?.closest(".cancel-link")?t.preventDefault():window.location.pathname=`/su/docs/pages/${e.id}`},children:[t&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("div",{className:"w-full items-start",children:[(0,a.jsx)(l.A,{color:"inherit",className:"opacity-40 text-gray-600"}),(0,a.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,a.jsx)("span",{className:"title",children:e.title}),(0,a.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:e.description||""}})]}),(0,a.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,a.jsx)("button",{onClick:()=>{window.location.href=`/su/docs/edit-page?id=${e.id}`},className:"outlined small-text light-gray",children:"Edit Page"}),(0,a.jsx)("button",{onClick:()=>{window.confirm("Delete this page?")&&(s(!0),(0,r.A)("/api/admin/docs/delete-page",{method:"post",body:e}).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{s(!1)},1e3)}))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),i&&(0,a.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.A,{className:"opacity-20",fontSize:"small"}),(0,a.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),i.map((e,t)=>(0,a.jsxs)("div",{className:"card w-full",onClick:()=>{window.location.pathname=`/su/docs/pages/${e.id}`},children:[(0,a.jsx)(l.A,{color:"inherit",className:"opacity-40 text-gray-500"}),(0,a.jsx)("span",{children:e.title})]},t))]})]})}var h=s(62506);function p({data:e}){let{env:t}=e,s=e.docPages,[i,l]=c().useState(!1);function o(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(l(!0),(0,r.A)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then(t=>{t.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout(()=>{l(!1)},1e3)}).catch(e=>{setTimeout(()=>{l(!1)},1e3)}))}return(0,a.jsxs)(c().Fragment,{children:[i&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,a.jsxs)(h.A,{children:[(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{o(!1)},children:"Push"}),(0,a.jsx)("button",{className:"outlined gray",onClick:()=>{o(!0)},children:"Pull"})]})]})]}),(0,a.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:s.map((e,t)=>(0,a.jsx)(d,{docPageObject:e},t))})]})]})}},42583:(e,t,s)=>{var a=s(24994);t.A=void 0;var i=a(s(30887)),c=s(8732);t.A=(0,i.default)([(0,c.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z"},"0"),(0,c.jsx)("path",{d:"M7 5v4H4V5zm13 0v4h-3V5zm0 10v4h-3v-4z",opacity:".3"},"1")],"AccountTreeTwoTone")},97780:(e,t,s)=>{var a=s(24994);t.A=void 0;var i=a(s(30887)),c=s(8732);t.A=(0,i.default)([(0,c.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-2-6H7v-2h10zm0-4H7V7h10zm-3 8H7v-2h7z"},"1")],"ArticleTwoTone")},67105:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},67216:(e,t,s)=>{let a=s(9973),i=s(31976),c=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function l(...e){try{let t=await c.query(...e);return await c.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},31976:(e,t,s)=>{let a=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!a.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9216.js b/dsql-app/.local_dist/server/chunks/9216.js new file mode 100644 index 0000000..bd28ec8 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9216.js @@ -0,0 +1,13 @@ +"use strict";exports.id=9216,exports.ids=[9216],exports.modules={22621:(e,t,a)=>{a.d(t,{A:()=>S});var l=a(8732),r=a(82015),s=a.n(r),d=a(32415),i=a(93669),n=a(40373),o=a(1976),c=a.n(o);function m({editor:e,rootElement:t}){return(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full",children:(0,l.jsxs)("form",{onSubmit:a=>{a.preventDefault();let l=a.target["embed-text-area"].value;if(!l?.match(/./))return alert("Please Enter HTML Text to continue.");e.insertContent(l),document.body.removeChild(t)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,l.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,l.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,l.jsx)("button",{type:"submit",children:"Embed"})]})})}function p({editor:e}){navigator.clipboard.writeText(e?.getContent()||"").then(()=>{alert("Html Copied to Clipboard!")})}var u=a(58150);function x({editor:e,rootElement:t}){e.getContent();let a=s().useRef(),r=s().useRef(),[d,i]=s().useState(null);return(0,l.jsxs)("div",{onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&r.current?.click()},children:[(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,l.jsx)("div",{ref:a,className:"w-full h-[80vh] text-[18px]"}),(0,l.jsx)("button",{className:"absolute bottom-4 right-4",onClick:a=>{if(d){let a=d.getValue();e.setContent(a),setTimeout(()=>{document.body.removeChild(t)},200)}},ref:r,children:"Save"})]})}),(0,l.jsx)("button",{className:"absolute top-4 right-8 rounded-full white",onClick:()=>{try{document.body.removeChild(t)}catch(e){}},style:{width:"40px",height:"40px",padding:"0",zIndex:"12039800000"},children:(0,l.jsx)(u.A,{})})]})}function f({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{e.target.closest(".embed-popup-form-content-wrapper")||document.body.removeChild(t)},e&&c().createRoot(t).render((0,l.jsx)(x,{editor:e,rootElement:t}))}function h({editor:e}){let t=document.createElement("div");t.style.position="fixed",t.style.width="100vw",t.style.height="100vh",t.style.zIndex="123000000000000000",t.style.backgroundColor="rgba(0,0,0,0.8)",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.top="0",t.style.left="0",document.body.append(t),t.onclick=e=>{if(e.target.closest(".embed-popup-form-content-wrapper")){console.log("Still In Form");return}document.body.removeChild(t)},e&&c().createRoot(t).render((0,l.jsx)(m,{editor:e,rootElement:t}))}function y({fieldObject:e,dataTypeSchema:t,richTextEditors:a,entry:r,currentRichTextEditorForms:o,entryPage:c,formButtonId:m}){let[u,x]=s().useState(!1),y=s().useRef(),b=s().useRef();return(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(i.A,{fontSize:"small",className:"opacity-50"}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsxs)("div",{ref:y,id:e.fieldName,className:"w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},children:[!u&&(0,l.jsx)(d.A,{}),u&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(n.Editor,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{b.current=t},initialValue:e.defaultValue||(r&&e.fieldName&&r[e.fieldName]?r[e.fieldName]:""),init:{height:c?400:300,width:"100%",convert_urls:!1,menubar:!1,plugins:["advlist","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount"],toolbar:"undo redo | blocks | bold italic forecolor | link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat help | editCode embedCode copyCode",placeholder:"Type something ...",document_base_url:"/",content_css:e.cssFiles||void 0,setup:e=>{!function({editor:e,formButtonId:t}){e.addShortcut("meta+13","Save Entry.",()=>{window.confirm("Update this Form?")&&t&&document.getElementById(t)?.click()}),e.addShortcut("meta+shift+e","Edit Code.",()=>{f({editor:e})}),e.addShortcut("meta+shift+d","Embed Code.",()=>{h({editor:e})}),e.addShortcut("meta+shift+c","Copy Code.",()=>{p({editor:e})}),e.ui.registry.addButton("editCode",{icon:"edit-block",onAction:t=>f({editor:e}),tooltip:"Edit HTML Code"}),e.ui.registry.addButton("embedCode",{icon:"sourcecode",onAction:t=>h({editor:e}),tooltip:"Embed Code"}),e.ui.registry.addButton("copyCode",{icon:"copy",onAction:t=>p({editor:e}),tooltip:"Copy HTML"})}({editor:e,formButtonId:m})}}})})]})]})}a(90317),a(63715),a(51859);var b=a(82544);let g=(0,b.A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),N=(0,b.A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);function v({fieldObject:e,typeFinal:t,isExpanded:a,setHeight:r,COLLAPSED_HEIGHT:s,EXPANDED_HEIGHT:d}){return(0,l.jsxs)("div",{className:"gap-2 w-full",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(i.A,{fontSize:"small",className:"opacity-50"}),(0,l.jsx)("span",{children:e.fieldName})]}),(0,l.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,l.jsx)("span",{children:t})}),(0,l.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:e=>{a?r(s):r(d)},children:[(0,l.jsx)("span",{className:"font-semibold text-sm",children:a?"Collapse":"Expand"}),a?(0,l.jsx)(g,{size:18,className:"mt-[-1px]"}):(0,l.jsx)(N,{size:18,className:"mt-[-1px]"})]})]})}function j({fieldObject:e,dataTypeSchema:t,entry:a,entryPage:r,jsonTextEditors:d,type:i}){try{let[t,a]=s().useState(0),[r,d]=s().useState(300),n=s().useRef();return s().useRef(),(0,l.jsx)(s().Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsx)(v,{fieldObject:e,isExpanded:300!==r,setHeight:d,typeFinal:i||"json",COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,l.jsx)(_,{height:r,jsonEditorRef:n})]})})}catch(e){return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function _({height:e,jsonEditorRef:t}){return(0,l.jsx)("div",{className:"w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px",height:`${e}px`},children:(0,l.jsx)("div",{ref:t,className:"w-full text-[18px] h-full"})})}function S({fieldObject:e,dataTypeSchema:t,richTextEditors:a,jsonTextEditors:r,entry:d,currentRichTextEditorForms:n,confirmedDelegetedUser:o,query:c,entryPage:m,formButtonId:p}){o?.delegated,o?.priviledges?.match(/Edit Tables/i),o?.priviledges?.match(/Delete Tables/i),o?.priviledges?.match(/Create Tables/i),o?.priviledges?.match(/Edit Entries/i),o?.priviledges?.match(/Delete Entries/i);let u=function({fieldObject:e,dataTypeSchema:t,elementRef:a,entry:r}){let s;let d=e=>{let t=e.target.closest("form");if(!t)return;let a=t?.querySelector("#slug");a&&(a.value=e.target.value.toLowerCase().replace(/ /g,"-").replace(/[^a-z\-0-9]/g,""))};return e.defaultField?s=(0,l.jsx)("input",{ref:a,type:"text",name:"def_field_"+e.fieldName,id:"def_field_"+e.fieldName,placeholder:e.fieldName,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},readOnly:!0,"data-default":"true"}):(e.dataType?.match(/varchar/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,maxLength:e.dataType?.match(/\d+/)?.[0]?parseInt(e.dataType?.match(/\d+/)?.[0]||""):void 0,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},onChange:t=>{e.fieldName?.match(/^title$/)&&d(t)}})),e.dataType?.match(/int$/i)&&(s=(0,l.jsx)("input",{ref:a,type:"number",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),e.dataType?.match(/text$/i)&&(s=(0,l.jsx)("textarea",{ref:a,name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},rows:10,onChange:e=>{}})),e.fieldName?.match(/password|^pass$|^key$/i)&&(s=(0,l.jsxs)("div",{className:"w-full relative",children:[(0,l.jsx)("input",{ref:a,type:"password",name:e.fieldName,id:e.fieldName,placeholder:e.fieldName,required:!!e.notNullValue,max:t.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName]?r[e.fieldName]:e.defaultValue?e.defaultValue:"",onChange:e=>{}}),(0,l.jsx)("span",{className:"absolute right-4 cursor-pointer",onClick:e=>{let t=e.target.closest("div").querySelector("input");"password"===t.type?(t.type="text",e.target.innerText="Hide"):(t.type="password",e.target.innerText="Reveal")},children:"Reveal"})]})),s||(s=(0,l.jsx)("input",{ref:a,type:"text",name:e.fieldName,id:e.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:r&&r[e.fieldName||""]?r[e.fieldName||""]:e.defaultValue?e.defaultValue:"",onChange:e=>{}})),s)}({fieldObject:e,dataTypeSchema:t,elementRef:s().useRef(),entry:d});if(e.dataType?.match(/text$/i)&&e.richText&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&e.richText)return(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(y,{fieldObject:e,dataTypeSchema:t,richTextEditors:a,currentRichTextEditorForms:n,entry:d,entryPage:m,formButtonId:p})});let x=e.json||e.yaml||e.html||e.css||e.javascript||e.shell;return e.dataType?.match(/text$/i)&&x&&!e.plainText&&!e.fieldName?.match(/^pass|^key$/i)&&!e.encrypted||e.encrypted&&x?(0,l.jsx)(j,{fieldObject:e,dataTypeSchema:t,entry:d,entryPage:m,jsonTextEditors:r,type:e.json?"json":e.yaml?"yaml":e.html?"html":e.css?"css":e.javascript?"javascript":e.shell?"shell":"json"}):(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(e.defaultField?" opacity-50":""),children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:e.fieldName,children:[e.encrypted&&(0,l.jsx)(s().Fragment,{children:(0,l.jsx)(i.A,{fontSize:"small",className:"opacity-50"})}),(0,l.jsx)("span",{children:e.fieldName}),e.defaultField&&(0,l.jsx)("span",{className:"bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs",children:"Default Field"})]}),u]})}},65241:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(8732),r=a(82015),s=a.n(r);function d({table:e,database:t,user:a,activeDbClone:r}){let d=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,i=e.childTableDbFullName===t.db_full_name;return d?(0,l.jsxs)("span",{className:"info small green gap-1"+(t?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:e.childTableName})})," ","in"," ",i?(0,l.jsxs)("span",{children:["this current database(",(0,l.jsx)("b",{children:t.db_name}),")."]}):(0,l.jsxs)(s().Fragment,{children:[(0,l.jsx)("a",{href:`/admin/${a?.id}/databases/${d}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:d})}),(0,l.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(s().Fragment,{})}},31651:(e,t,a)=>{a(81630);let l=a(83007);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let s=a.id,d=null;if(!r?.delegated)return{dbUserId:s};let i=r.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${i}_${t}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let a=l(e.cookies[o]);if(!a)throw Error("Invalid Token");if((d=JSON.parse(a)).databaseSlug===t)return{dbUserId:s=d.rootUserId,rootUserId:d.rootUserId,rootUserName:d.rootUserName,rootUserEmail:d.rootUserEmail,rootUserImage:d.rootUserImage,databaseFullName:d.databaseFullName,databaseSlug:d.databaseSlug,allowedTables:d.allowedTables,priviledges:d.priviledges,database:d.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:s}}catch(e){return null}}},93669:(e,t,a)=>{var l=a(24994);t.A=void 0;var r=l(a(30887)),s=a(8732);t.A=(0,r.default)((0,s.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,a)=>{let l=a(83007),r=a(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let a=[];try{for(let s=0;s<e.length;s++){let d=e[s],i=Object.keys(d);for(let e=0;e<i.length;e++){let a=i[e],s=t?.fields[e];if(a?.match(r))continue;let n=d[a];("number"==typeof n||n)&&s?.encrypted&&n?.match(/./)&&(d[a]=l(n))}a.push(d)}return a}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},22373:(e,t,a)=>{let l=a(29021);e.exports=async function({user:e,message:t,component:a,noMail:r}){let s=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${a} +Date: ${Date()} +========================================`;l.existsSync("./.tmp/error.log")||l.writeFileSync("./.tmp/error.log","","utf-8");let d=l.readFileSync("./.tmp/error.log","utf-8");l.writeFileSync("./.tmp/error.log",s),l.appendFileSync("./.tmp/error.log",` + + + + +${d}`)}},90378:(e,t,a)=>{a(29021);let l=a(89545),r=a(22373),s=a(67216),d=a(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:a,tableSchema:i}){let n;let o=!!a?.match(/^datasquirel$/),c=o?s:d;try{n=e&&t&&Array.isArray(t)&&t[0]?o?await c(e,t):await c({paradigm:"Full Access",database:a,queryString:e,queryValues:t}):o?await c(e):await c({paradigm:"Full Access",database:a,queryString:e})}catch(e){r({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(n&&i)try{let e=n;return await l({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",a,e),r({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(n)return n;else return null}},1231:(e,t,a)=>{let l=a(29021);a(33873);let r=a(9973),s=a(31976),d=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:s()}});e.exports=function({paradigm:e,database:t,queryString:a,queryValues:i}){try{return new Promise((n,o)=>{let c=!!e?.match(/full.access|^fa$/i);try{function m(e){d.end(),n(JSON.parse(JSON.stringify(e)))}function p(e){d.end(),n({error:e.message,queryStringGenerated:a,queryValuesGenerated:i,sql:e.sql})}d=c?r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:s()}}):r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:s()}}),i&&Array.isArray(i)&&i[0]?d.query(a,i).then(m).catch(p):d.query(a).then(m).catch(p)}catch(e){l.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),n({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9258.js b/dsql-app/.local_dist/server/chunks/9258.js deleted file mode 100644 index 4ca695b..0000000 --- a/dsql-app/.local_dist/server/chunks/9258.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -exports.id = 9258; -exports.ids = [9258]; -exports.modules = { - -/***/ 9258: -/***/ ((module) => { - -module.exports = JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"VARCHAR(250)","notNullValue":true},{"fieldName":"image","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}'); - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9282.js b/dsql-app/.local_dist/server/chunks/9282.js deleted file mode 100644 index b3fd505..0000000 --- a/dsql-app/.local_dist/server/chunks/9282.js +++ /dev/null @@ -1,763 +0,0 @@ -"use strict"; -exports.id = 9282; -exports.ids = [9282]; -exports.modules = { - -/***/ 2184: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabaseListCard) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_DatabaseSlugCopy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4739); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5472); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6729); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -/* harmony import */ var _general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5449); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type>>} [props.setTargetDatabase] - * @param {boolean} [props.delegated] - * @param {any} [props.icons] - * @param {import("@/package-shared/types").UserType} props.user - */ function DatabaseListCard({ database , setTargetDatabase , delegated , icons , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const url = `/admin/${user?.id}/databases/${database.db_slug}` + (delegated ? `?delegated=true&dbUserId=${database.user_id}` : ""); - const { active_clone , active_clone_parent_db } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: url, - className: "card", - onClick: (e)=>{ - if (// @ts-ignore - e.target.closest(".db-list-item-actions-block") || // @ts-ignore - e.target.closest(".cancel-link")) { - e.preventDefault(); - } - if (delegated) { - e.preventDefault(); - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)("/api/getDelegatedDatabaseToken", { - method: "post", - body: { - rootUserId: database.user_id, - priviledges: database.user_priviledge, - database: database.db_slug - } - }, true).then((res)=>{ - if (res.success) { - window.location.href = url; - } - }); - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }, - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: database.db_image ? database.db_image : "/images/folder.svg", - alt: "Folder Image", - width: 20, - className: database.db_image ? "avatar" : "avatar opacity-50" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start grow", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "title", - children: database.db_name - }), - active_clone_parent_db && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1", - children: [ - "This Database is an active Clone of", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: active_clone_parent_db.replace(/datasquirel_user_\d+_/, "") - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "-mt-2", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_DatabaseSlugCopy__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - slugText: database.db_slug, - smaller: true - }) - }), - true && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "-mt-1 gap-1", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_DatabaseSlugCopy__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - slugText: database.db_full_name, - smaller: true, - full: true - }) - }), - !delegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-sm text-slate-400", - children: [ - "Created: ", - database.date_created?.substring(0, 21) - ] - }), - delegated && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center mt-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: database.image_thumbnail, - alt: "", - className: "w-8 h-8 rounded-full object-cover" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start gap-0", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "text-xs text-slate-600", - children: [ - database.first_name, - " ", - database.last_name - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-xs text-slate-400", - children: database.email - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "db-list-item-actions-block flex-wrap", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_ui_ButtonGroup__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - children: [ - !delegated && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined light-gray small-text", - onClick: (e)=>{ - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/edit-database`; - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Edit" - }) - }), - !delegated && !active_clone && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined light-gray small-text", - onClick: (e)=>{ - window.location.href = `/admin/${user?.id}/databases/add-database?duplicate=${database.db_full_name}`; - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Duplicate" - }) - }), - !delegated && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined light-gray small-text", - onClick: (e)=>{ - if (setTargetDatabase) setTargetDatabase(database); - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* .openPopup */ .Mw)("delete-database-confirmation"); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Delete" - }) - }) - ] - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_6__.ChevronRight, { - className: "text-slate-600", - size: 20 - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8744: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabasesContent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _pages_admin_user_id_databases__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2109); -/* harmony import */ var _general_Breadcrumbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(424); -/* harmony import */ var _general_VerificationBanner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7946); -/* harmony import */ var _DatabasesList__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6891); -/* harmony import */ var _DelegatedDatabasesSection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5592); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabasesContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , setTargetDatabase , user } = react__WEBPACK_IMPORTED_MODULE_1___default().useContext(_pages_admin_user_id_databases__WEBPACK_IMPORTED_MODULE_2__.DatabasesContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "text-3xl m-0", - children: "Databases" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: `/admin/${user?.id}/databases/add-database`, - className: "button flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Add Database" - }) - ] - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_Breadcrumbs__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - user: user - }) - ] - }), - user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabasesList__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - databases: databases, - setTargetDatabase: setTargetDatabase, - user: user - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DelegatedDatabasesSection__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - user: user - }) - ] - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_VerificationBanner__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 6891: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DatabasesList) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _DatabaseListCard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2184); -/* harmony import */ var _mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8193); -/* harmony import */ var _mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(930); -/* harmony import */ var _mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7039); -/* harmony import */ var _mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5050); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _mui_icons_material_StorageTwoTone__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4063); -/* harmony import */ var _mui_icons_material_StorageTwoTone__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_StorageTwoTone__WEBPACK_IMPORTED_MODULE_7__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} [props.databases] - Server props - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type>>} [props.setTargetDatabase] - Section Title - * @param {string} [props.title] - Section Title - * @param {boolean} [props.more] - More button - * @param {import("@/package-shared/types").UserType} [props.user] - */ function DatabasesList({ databases , setTargetDatabase , title , more , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0", - children: title ? title : "Database List" - }), - user && databases && databases[0] && setTargetDatabase && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6", - children: databases.map((database)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseListCard__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - database: database, - setTargetDatabase: setTargetDatabase, - icons: { - edit: (_mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_3___default()), - duplicate: (_mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_4___default()), - delete: (_mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_5___default()), - copy: (_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_6___default()) - }, - user: user - }, database.id); - }) - }), - more && databases && databases[0] && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases`, - className: "button w-full more-padding", - children: "See All Databases" - }), - !databases || !databases[0] && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: `/admin/${user?.id}/databases/add-database`, - className: "button outlined gray dashed w-full p-10 flex-col", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-slate-400", - children: "No Databases Created." - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_StorageTwoTone__WEBPACK_IMPORTED_MODULE_7___default()), { - color: "action", - sx: { - fontSize: 80 - }, - className: "opacity-40" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "", - children: "Add Database" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 5592: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DelegatedDatabasesSection) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8193); -/* harmony import */ var _mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(930); -/* harmony import */ var _mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7039); -/* harmony import */ var _mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5050); -/* harmony import */ var _mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5264); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(6729); -/* harmony import */ var _DatabaseListCard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2184); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - */ function DelegatedDatabasesSection({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const databasesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type { [databases: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[] | null, setDatabases: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[] | null>>] } */ const [databases, setDatabases] = databasesState; - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)("/api/getDelegatedDatabases").then((res)=>{ - if (res.success) { - setDatabases(res.databases); - setLoading(false); - } - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "Delegated Databases" - }), - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, {}), - user && databases ? databases[0] ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6", - children: databases.map((database)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseListCard__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z, { - database: database, - delegated: true, - icons: { - edit: (_mui_icons_material_DriveFileRenameOutlineTwoTone__WEBPACK_IMPORTED_MODULE_2___default()), - duplicate: (_mui_icons_material_DifferenceTwoTone__WEBPACK_IMPORTED_MODULE_3___default()), - delete: (_mui_icons_material_DeleteForeverTwoTone__WEBPACK_IMPORTED_MODULE_4___default()), - copy: (_mui_icons_material_CopyAllTwoTone__WEBPACK_IMPORTED_MODULE_5___default()) - }, - user: user - }, database.id); - }) - }) - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "info gray w-full font-normal justify-center", - children: "No Delegated Databases Yet" - }) - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full justify-center", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - position: "relative", - width: "20px" - }) - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 2109: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "DatabasesContext": () => (/* binding */ DatabasesContext), -/* harmony export */ "default": () => (/* binding */ Databases), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4858); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _components_admin_databases_DatabasesContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8744); -/* harmony import */ var _components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5012); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DbContextType} */ let databaseContextObject = {}; -const DatabasesContext = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(databaseContextObject); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - User Object - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - Databases - */ function Databases({ user , databases }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Databases | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const targetDatabaseState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(0); - /** @type {[ dbTables: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type | undefined, setDbTables: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type>> ]} */ const [targetDatabase, setTargetDatabase] = targetDatabaseState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(DatabasesContext.Provider, { - value: { - user, - databases, - targetDatabase, - setTargetDatabase - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_databases_DatabasesContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - targetDatabase: targetDatabase - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const databases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT * FROM user_databases WHERE user_id=? ORDER BY id DESC`, [ - user.id - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - databases: databases - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9360.js b/dsql-app/.local_dist/server/chunks/9360.js deleted file mode 100644 index 7b81169..0000000 --- a/dsql-app/.local_dist/server/chunks/9360.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; -exports.id = 9360; -exports.ids = [9360]; -exports.modules = { - -/***/ 9360: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ScrollToTopButton) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - * @param {boolean} [props.snug] - */ function ScrollToTopButton({ snug }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [isVisible, setIsVisible] = react__WEBPACK_IMPORTED_MODULE_2___default().useState(false); - react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(()=>{ - window.addEventListener("scroll", (e)=>{ - if (window.scrollY > 600) { - setIsVisible(true); - } else { - setIsVisible(false); - } - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_2___default().Fragment), { - children: isVisible && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "fixed z-40 w-12 h-12 p-2 rounded-full bg-white dark:bg-slate-600 shadow-xl flex items-center justify-center hover:bg-slate-800 dark:hover:bg-slate-800 text-slate-500 dark:text-slate-200 outline-slate-300 dark:outline-transparent" + (snug ? " bottom-6 right-4" : " bottom-4 md:bottom-10 right-4 md:right-10"), - style: { - outlineStyle: "solid", - outlineWidth: "1px", - zIndex: 2000 - }, - onClick: (e)=>{ - window.scrollTo({ - top: 0, - left: 0, - behavior: "smooth" - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_1__.ChevronUp, { - size: 20 - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9417.js b/dsql-app/.local_dist/server/chunks/9417.js deleted file mode 100644 index 14d164b..0000000 --- a/dsql-app/.local_dist/server/chunks/9417.js +++ /dev/null @@ -1,344 +0,0 @@ -"use strict"; -exports.id = 9417; -exports.ids = [9417]; -exports.modules = { - -/***/ 9417: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ TargetUserPreviewPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6729); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _form_FormCheckboxes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9486); -/* harmony import */ var _form_FormSelect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4114); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").MYSQL_user_users_table_def | null} props.targetUser - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>>} props.setTargetUser - * @param {import("@/package-shared/types").UserType} props.user - */ function TargetUserPreviewPopup({ targetUser , user , setTargetUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userPriviledges = __webpack_require__(9169); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!targetUser) { - return null; - } - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(true); - /** @type {any} */ const databasesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState([]); - /** @type {[ dbTables: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[], setDbTables: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]>> ]} */ const [databases, setDatabases] = databasesState; - const [allDbSelected, setAllDbSelected] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - /** @type {any} */ const priviledgesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetUser ? targetUser.user_priviledge?.split("|") : []); - /** @type {[ dbTables: string[], setDbTables: React.Dispatch<React.SetStateAction<string[]>> ]} */ const [priviledges, setPriviledges] = priviledgesState; - const [databasesAccess, setDatabasesAccess] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetUser?.database_access ? targetUser.database_access.split("|") : []); - /** @type {any} */ const targetDbsState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetUser ? targetUser.database_access?.split("|")[0] : null); - /** @type {[ dbTables: string | null, setDbTables: React.Dispatch<React.SetStateAction<string | null>> ]} */ const [targetDb, setTargetDb] = targetDbsState; - /** @type {any} */ const dbTablesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState([]); - /** @type {[ dbTables: import("@/package-shared/types").MYSQL_user_database_tables_table_def[] | null, setDbTables: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def[] | null>> ]} */ const [dbTables, setDbTables] = dbTablesState; - /** @type {any} */ const selectedDbTablesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState([]); - /** @type {[ dbTables: string[], setDbTables: React.Dispatch<React.SetStateAction<string[]>> ]} */ const [selectedDbTables, setSlectedDbTables] = selectedDbTablesState; - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)("/api/getUserDatabases").then((res)=>{ - if (res.success) { - setDatabases(res.databases); - } - }); - }, []); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (!targetUser) return; - if (!targetDb) { - setTargetDb(targetUser.database_access?.split("|")[0] || null); - } else { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(`/api/getDatabaseTables?dbSlug=${targetDb}&dbOwnerId=${user.id}&delegatedUserId=${targetUser.invited_user_id}`).then((res)=>{ - if (res.success) { - setDbTables(null); - setTimeout(()=>{ - setDbTables([ - ...res.tables - ]); - }, 200); - } - if (res.accessed_tables && res.accessed_tables[0] && !selectedDbTables[0]) { - setSlectedDbTables(res.accessed_tables.map((/** @type {any} */ acTb)=>`${acTb.database}-${acTb.table}`)); - } - }); - } - }, [ - targetDb - ]); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - setLoading(true); - if (targetUser) { - setPriviledges(targetUser.user_priviledge?.split("|") || []); - setDatabasesAccess(targetUser.database_access?.split("|") || []); - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }, [ - targetUser - ]); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - setTargetDb(databasesAccess?.[0] || null); - }, [ - databasesAccess - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "target-user-popup", - closePopupDispatch: ()=>{ - setTargetUser(null); - }, - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - position: "relative" - }), - !loading && targetUser && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col w-full items-start p-4", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0", - children: [ - "Edit ", - targetUser.first_name, - " ", - targetUser.last_name, - "'s Access" - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - className: "flex flex-col items-start w-full", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)("/api/updateAdminUserAccess", { - method: "post", - body: { - userObject: targetUser, - user_priviledge: priviledges.join("|"), - database_access: databasesAccess?.join("|"), - db_tables: databasesAccess && databasesAccess[0] ? selectedDbTables.join("|") : "", - inv_user_id: targetUser.invited_user_id - } - }, true).then((res)=>{ - window.location.reload(); - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600", - children: "User Priviledges" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormCheckboxes__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - checkBoxValues: userPriviledges.map((userPriviledge)=>{ - return { - title: userPriviledge, - name: userPriviledge, - default: priviledges.includes(userPriviledge) ? true : false, - onChangeHandler: (e)=>{ - if (priviledges.includes(userPriviledge)) { - let newArray = priviledges.filter((priv)=>priv != userPriviledge); - setPriviledges([ - ...newArray, - ]); - } else { - setPriviledges((prev)=>[ - ...prev, - userPriviledge, - ]); - } - } - }; - }), - smallText: true, - flexRow: true - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "my-6" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "m-0 text-lg font-semibold mb-2 text-slate-600", - children: "Databases Access" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "button outlined gray px-4 py-1 -mt-1 mb-1.5", - onClick: (e)=>{ - if (allDbSelected) { - databases.forEach((db)=>{ - setTimeout(()=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const elt = document.getElementById(db.db_slug); - if (elt?.checked) elt.click(); - }, 200); - }); - setAllDbSelected(false); - } else { - databases.forEach((db)=>{ - setTimeout(()=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const elt = document.getElementById(db.db_slug); - if (!elt.checked) elt.click(); - }, 200); - }); - setAllDbSelected(true); - } - }, - children: allDbSelected ? "Deselect All" : "Select All" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormCheckboxes__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - checkBoxValues: databases.map((db)=>{ - return { - title: db.db_name, - name: db.db_slug, - onChangeHandler: (e)=>{ - if (databasesAccess.includes(db.db_slug)) { - let newArray = databasesAccess.filter((_db)=>_db != db.db_slug); - setDatabasesAccess([ - ...newArray, - ]); - } else { - setDatabasesAccess((prev)=>[ - ...prev, - db.db_slug, - ]); - } - if (databasesAccess.length === databases.length) { - setAllDbSelected(true); - } else { - setAllDbSelected(false); - } - }, - default: databasesAccess.includes(db.db_slug) ? true : false - }; - }), - smallText: true, - flexRow: true - }), - databasesAccess && databasesAccess[0] && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "my-6" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "m-0 text-lg font-semibold mb-2 text-slate-600", - children: "Database Tables" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormSelect__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - required: true, - selectOptions: databases.filter((db)=>databasesAccess.includes(db.db_slug)).map((db)=>{ - return { - title: db.db_name, - payload: db.db_slug - }; - }), - name: "databases", - onChangeHandler: (e)=>{ - setTargetDb(e.target.value); - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "h-2" - }), - dbTables && dbTables[0] && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_form_FormCheckboxes__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - checkBoxValues: dbTables.map((dbTable)=>{ - return { - title: dbTable.table_name, - name: dbTable.table_slug, - onChangeHandler: (e)=>{ - if (selectedDbTables.includes(`${targetDb}-${dbTable.table_slug}`)) { - let newArray = selectedDbTables.filter((table)=>table != `${targetDb}-${dbTable.table_slug}`); - setSlectedDbTables([ - ...newArray, - ]); - } else { - setSlectedDbTables((prev)=>[ - ...prev, - `${targetDb}-${dbTable.table_slug}`, - ]); - } - }, - default: selectedDbTables.includes(`${targetDb}-${dbTable.table_slug}`) ? true : false - }; - }), - smallText: true, - flexRow: true - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "mt-4 w-full", - children: "Update User Access" - }) - ] - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 9169: -/***/ ((module) => { - -module.exports = JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]'); - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9471.js b/dsql-app/.local_dist/server/chunks/9471.js deleted file mode 100644 index 369c8df..0000000 --- a/dsql-app/.local_dist/server/chunks/9471.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -exports.id = 9471; -exports.ids = [9471]; -exports.modules = { - -/***/ 9471: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ Modal) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7849); -/* harmony import */ var react_dom_client__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom_client__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2423); -/* harmony import */ var lucide_react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lucide_react__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {React.ReactNode} props.children - React children - * @param {boolean} props.open - * @param {React.Dispatch<React.SetStateAction<boolean>>} [props.setOpen] - * @param {()=>void} [props.onClose] - * @param {string} [props.maxWidth] - Ex "500px" - */ function Modal({ children , open , setOpen , onClose , maxWidth }) { - /** - * Get Contexts - * - * @description { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @description Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (open) { - const modalWrapper = document.createElement("div"); - modalWrapper.className = "modal-wrapper"; - const domNode = (0,react_dom_client__WEBPACK_IMPORTED_MODULE_2__.createRoot)(modalWrapper); - domNode.render(/*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(ModalComponent, { - onClose: onClose, - maxWidth: maxWidth, - children: children - })); - document.body.appendChild(modalWrapper); - } else { - document.querySelectorAll(".modal-wrapper").forEach((modalEl)=>{ - modalEl.parentElement?.removeChild(modalEl); - }); - } - }, [ - open - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ //////////////////////////////////////// - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {}); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @param {Object} props - React component props including { children } - * @param {React.ReactNode} props.children - React children - * @param {()=>void} [props.onClose] - * @param {string} [props.maxWidth] - * @param {boolean} [props.open] - */ function ModalComponent({ children , onClose , maxWidth , open }) { - /** @type {React.Ref<HTMLDivElement>} */ // @ts-ignore - const modalRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - // React.useEffect(() => { - // if (!open) { - // /** @type {HTMLDivElement} */ // @ts-ignore - // const modalEl = modalRef.current?.closest(".modal-wrapper"); - // closeModal({ modalEl }); - // } - // }, [open]); - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "modal-cancel", - onClick: (e)=>{ - /** @type {HTMLDivElement} */ // @ts-ignore - const modalEl = e.target.closest(".modal-wrapper"); - closeModal({ - modalEl, - closeFn: onClose - }); - } - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "modal-content", - style: { - maxWidth: maxWidth || undefined - }, - ref: modalRef, - children: [ - children, - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "ghost modal-cancel-button", - onClick: (e)=>{ - /** @type {HTMLDivElement} */ // @ts-ignore - const modalEl = e.target.closest(".modal-wrapper"); - closeModal({ - modalEl, - closeFn: onClose - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(lucide_react__WEBPACK_IMPORTED_MODULE_3__.X, {}) - }) - ] - }) - ] - }); -} -/** - * @param {object} param0 - * @param {HTMLElement} param0.modalEl - * @param {()=>void} [param0.closeFn] - */ function closeModal({ modalEl , closeFn }) { - if (closeFn) closeFn(); - modalEl.parentElement?.removeChild(modalEl); -} - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9486.js b/dsql-app/.local_dist/server/chunks/9486.js deleted file mode 100644 index 902c0b5..0000000 --- a/dsql-app/.local_dist/server/chunks/9486.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -exports.id = 9486; -exports.ids = [9486]; -exports.modules = { - -/***/ 9486: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ FormCheckboxes) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} [props.name] - Name of checkbox group - * @param {{ - * name?: string, - * title?: string, - * payload?: string, - * onChangeHandler?: (e:any, value:any) => void, - * default?: boolean, - * fixed?: boolean, - * jsx?: React.ReactNode, - * className?: string, - * }[]} props.checkBoxValues - array of objects - * @param {React.Dispatch<React.SetStateAction<string | null>>} [props.setAlert] - set an external alert dispatch - * @param {string} [props.labelColor] - Label color using tailwind syntax - * @param {boolean} [props.flexRow] - if the radio and label are stacked on each other or side-by-side - * @param {boolean} [props.baseText] - Font size regular - * @param {boolean} [props.smallText] - Font size smaller - * @param {string} [props.className] - Additional Class Names for wrapper - */ function FormCheckboxes({ name , checkBoxValues , setAlert , labelColor , flexRow , baseText , smallText , className , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex items-start gap-x-4" + (flexRow ? " flex-row flex-wrap gap-y-2 " : " flex-col gap-y-4 ") + (className ? className : ""), - children: checkBoxValues.map((value, index)=>{ - const { payload , title , onChangeHandler , fixed , jsx } = value; - const chxName = value.name ? `${name}-${value.name}` : payload ? name + "-" + payload : name; - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center" + (value.default && fixed ? " pointer-events-none" : "") + (smallText ? " gap-1 " : " gap-2 ") + (value?.className ? value.className : ""), - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - className: "m-0" + (smallText ? " w-4 h-4" : " w-5 h-5"), - type: "checkbox", - defaultChecked: value.default ? true : false, - name: chxName, - id: chxName, - onChange: (e)=>{ - if (setAlert) setAlert(null); - if (onChangeHandler) onChangeHandler(e, value); - }, - value: payload, - style: { - minWidth: "20px" - } - }), - jsx ? jsx : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: chxName, - className: "m-0 " + (labelColor ? labelColor : "text-slate-800 dark:text-white/80") + (baseText || smallText ? " text-base" : " text-lg"), - children: title - }) - ] - }, index + 1); - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9594.js b/dsql-app/.local_dist/server/chunks/9594.js deleted file mode 100644 index 83fdcbe..0000000 --- a/dsql-app/.local_dist/server/chunks/9594.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -exports.id = 9594; -exports.ids = [9594]; -exports.modules = { - -/***/ 9594: -/***/ ((module) => { - -module.exports = JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]'); - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9621.js b/dsql-app/.local_dist/server/chunks/9621.js new file mode 100644 index 0000000..e6c6118 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9621.js @@ -0,0 +1 @@ +"use strict";exports.id=9621,exports.ids=[9621],exports.modules={59621:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>o,p:()=>m});var t=s(8732),i=s(82015),n=s.n(i),r=s(48241),c=s(86571),d=e([r]);function o({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:d}){return l?.delegated,l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i),l?.priviledges?.match(/Create Tables/i),(0,t.jsxs)(n().Fragment,{children:[e.active_clone&&d?(0,t.jsx)(c.A,{database:e,user:d}):(0,t.jsx)(t.Fragment,{}),e.remote_connected?(0,t.jsx)(m,{database:e}):(0,t.jsx)(t.Fragment,{}),(0,t.jsxs)("section",{className:"paper gray",children:[a&&a[0]?(0,t.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,t.jsx)("a",{href:`/admin/${d?.id}/databases/${e.db_slug}/tables`,className:"button outlined gray small-text",children:"See All Tables"})]}):(0,t.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,t.jsx)("hr",{}),d?(0,t.jsx)(r.A,{database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:d}):null]})]})}function m({database:e}){return(0,t.jsx)("div",{className:"info green",children:(0,t.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,t.jsx)("b",{children:e.remote_db_full_name?.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,t.jsx)("a",{className:"font-bold text-inherit",href:e.remote_connection_host,target:"_blank",children:e.remote_connection_host})," ","Host"]})})}r=(d.then?(await d)():d)[0],l()}catch(e){l(e)}})},6258:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),i=s.n(t),n=s(68253),r=s(63715),c=s(83147),d=s(32415);function o({database:e}){let a=i().useRef(),[s,t]=i().useState(!1);return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}c.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),r.A("/api/importDatabase",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(d.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,l.jsx)(n.A,{sx:{fontSize:80},className:"opacity-20"}),(0,l.jsx)("span",{className:"",children:"Import Database"})]})]})}},39615:(e,a,s)=>{s.d(a,{A:()=>o});var l=s(8732),t=s(82015),i=s.n(t),n=s(63715),r=s(83147),c=s(32415),d=s(42125);function o({database:e}){let a=i().useRef(),[s,t]=i().useState(!1);return(0,l.jsxs)(i().Fragment,{children:[(0,l.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,l.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:s=>{a.current?.addEventListener("change",a=>{let s=a.target;if(!s.files?.[0]){window.alert("No FIles selected");return}r.A({inputFile:s.files[0]}).then(a=>{window.confirm(`Use this file '${a.fileName}' as your import file?`)&&(t(!0),n.A("/api/importDatabaseSchema",{method:"post",body:{database:e,fileBase64:a.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{t(!1)},1e3)}))})}),a.current?.click()},children:[s&&(0,l.jsx)(c.A,{}),(0,l.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,l.jsx)(d.A,{sx:{fontSize:80},className:"opacity-20"}),(0,l.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}},15510:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>h});var t=s(8732),i=s(82015),n=s.n(i),r=s(94010),c=s(55158),d=s(62506),o=s(8740),m=s(6070),u=e([r]);function h({table:e,setTargetTable:a,database:s,confirmedDelegetedUser:l,query:i,icons:u,user:h}){let p=l?.delegated,x=l?.priviledges?.match(/Edit Tables/i),f=l?.priviledges?.match(/Delete Tables/i);l?.priviledges?.match(/Create Table/i);let{active_clone:b,active_clone_parent_db:j,remote_connected:g}=s;return(0,t.jsxs)("a",{href:`/admin/${h?.id}/databases/${s.db_slug}/tables/${e.table_slug}`,className:"card w-full items-center justify-between py-4"+(e?.child_table?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,t.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,t.jsx)(o.A,{fontSize:"small",className:"opacity-50",color:"action"}),(0,t.jsx)("span",{className:"title",style:{fontSize:"16px"},children:e.table_name}),(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",e.date_created?.substring(0,21)]})]}),(0,t.jsxs)("div",{className:"flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(d.A,{children:[(0,t.jsx)(r.A,{slugText:e.table_slug||"",outlined:!0}),(!p||p&&x)&&!j&&!g&&(0,t.jsx)(n().Fragment,{children:(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.pathname=`/admin/${h?.id}/databases/${s.db_slug}/tables/${e.table_slug}/edit-table`},children:(0,t.jsx)("span",{children:"Edit"})})}),!j&&!e.child_table&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:a=>{window.location.href=`/admin/${h?.id}/databases/${s.db_slug}/tables/add-table?clone=true&clone_db=${s.db_slug}&clone_table=${e.table_slug}`},children:(0,t.jsx)("span",{children:"Clone"})}),(!p||p&&f)&&!j&&!g&&(0,t.jsx)("div",{className:"button outlined light-gray small-text",onClick:s=>{a(e),(0,c.PB)("delete-table-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(m.A,{className:"text-slate-600",size:20})]})]})}r=(u.then?(await u)():u)[0],l()}catch(e){l(e)}})},48241:(e,a,s)=>{s.a(e,async(e,l)=>{try{s.d(a,{A:()=>f});var t=s(8732),i=s(82015),n=s.n(i),r=s(15510),c=s(6078),d=s(18129),o=s(8248),m=s(69290),u=s(61141),h=s(6258),p=s(39615),x=e([r]);function f({database:e,tables:a,setTargetTable:s,confirmedDelegetedUser:l,query:i,user:x}){let f=l?.delegated;l?.priviledges?.match(/Edit Tables/i),l?.priviledges?.match(/Delete Tables/i);let b=l?.priviledges?.match(/Create Table/i),j=(!a||!a[0])&&!f||(!a||!a[0])&&!!f&&!!b,{active_clone:g,active_clone_parent_db:N,remote_connected:y}=e;return(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("div",{className:"w-full flex-col",children:[a&&a[0]&&a.map(a=>(0,t.jsx)(r.A,{table:a,setTargetTable:s,database:e,confirmedDelegetedUser:l,query:i,icons:{edit:c.A,duplicate:d.A,delete:o.A,copy:m.A},user:x},a.id)),j&&!N&&!y&&(0,t.jsx)(n().Fragment,{children:(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,t.jsxs)("a",{href:`/admin/${x?.id}/databases/${e.db_slug}/tables/add-table`,className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,t.jsx)(u.A,{sx:{fontSize:100},className:"opacity-20"}),(0,t.jsx)("span",{className:"",children:"Add Table"})]}),(0,t.jsx)(h.A,{database:e}),(0,t.jsx)(p.A,{database:e})]})}),(!a||!a[0])&&f&&(0,t.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}r=(x.then?(await x)():x)[0],l()}catch(e){l(e)}})},86571:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(8732);function t({database:e,user:a}){let s=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),t=`/admin/${a?.id}/databases/${s}`;return(0,l.jsx)("div",{className:"info green",children:(0,l.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,l.jsx)("b",{children:(0,l.jsx)("a",{href:t,target:"_blank",className:"query-url",children:s})})]})})}s(82015)},55158:(e,a,s)=>{s.d(a,{Ay:()=>r,PB:()=>c,fs:()=>d});var l=s(8732),t=s(58150),i=s(82015),n=s.n(i);function r({children:e,title:a,data:s,fullPage:i,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:o,noContainer:m}){return i?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:o,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,l.jsx)(t.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,l.jsx)(n().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function c(e,a){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",a&&a(s))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},83147:(e,a,s)=>{s.d(a,{A:()=>l});async function l({inputFile:e}){try{let a=e.name.replace(/\..*/,""),s=await new Promise((a,s)=>{var l=new FileReader;l.readAsDataURL(e),l.onload=function(){a(l.result)},l.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:s.replace(/.*?base64,/,""),fileBase64Full:s,fileName:a,fileSize:e.size,fileType:e.type}}catch(a){return console.log("Image Processing Error! =>",a.message),{fileBase64:null,fileBase64Full:null,fileName:e.name,fileSize:null,fileType:null}}}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9764.js b/dsql-app/.local_dist/server/chunks/9764.js new file mode 100644 index 0000000..7efa1b4 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9764.js @@ -0,0 +1,2 @@ +exports.id=9764,exports.ids=[9764],exports.modules={59266:(e,t,r)=>{"use strict";var a=r(24994);t.A=void 0;var n=a(r(30887)),o=r(8732);t.A=(0,n.default)([(0,o.jsx)("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1M3 18.5V7c1.1-.35 2.3-.5 3.5-.5 1.34 0 3.13.41 4.5.99v11.5C9.63 18.41 7.84 18 6.5 18c-1.2 0-2.4.15-3.5.5m18 0c-1.1-.35-2.3-.5-3.5-.5-1.34 0-3.13.41-4.5.99V7.49c1.37-.59 3.16-.99 4.5-.99 1.2 0 2.4.15 3.5.5z"},"0"),(0,o.jsx)("path",{d:"M11 7.49c-1.37-.58-3.16-.99-4.5-.99-1.2 0-2.4.15-3.5.5v11.5c1.1-.35 2.3-.5 3.5-.5 1.34 0 3.13.41 4.5.99z",opacity:".3"},"1"),(0,o.jsx)("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.28 0-2.46.16-3.5.47v1.57c.99-.35 2.18-.54 3.5-.54m0 2.66c.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.28 0-2.46.16-3.5.47v1.57c.99-.34 2.18-.54 3.5-.54m0 2.67c.88 0 1.73.09 2.5.26v-1.52c-.79-.15-1.64-.24-2.5-.24-1.28 0-2.46.16-3.5.47v1.57c.99-.35 2.18-.54 3.5-.54"},"2")],"MenuBookTwoTone")},30887:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.createSvgIcon}});var a=r(40170)},61573:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.useDefaultProps=function(e){return(0,o.useDefaultProps)(e)};var n=a(r(94634));u(r(82015)),a(r(29825));var o=u(r(37616)),i=r(8732);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}t.default=function(e){return(0,i.jsx)(o.default,(0,n.default)({},e))}},57001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"useDefaultProps",{enumerable:!0,get:function(){return a.useDefaultProps}});var a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a}(r(61573));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}},93991:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultConfig=t.default=void 0;var n=a(r(94634));(function(e,t){if((!e||!e.__esModule)&&null!==e&&("object"==typeof e||"function"==typeof e)){var r=l(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,r&&r.set(e,a)}})(r(82015));var o=a(r(24509)),i=r(8732);function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}let u=t.defaultConfig={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};t.default=function(e){return(0,i.jsx)(o.default,(0,n.default)({},u,e))}},10351:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(94634)),o=a(r(54893)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var l=a(r(74956)),u=a(r(14036)),f=a(r(83922)),d=r(57001),s=a(r(88456)),c=r(19483),p=r(8732);let g=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let v=e=>{let{color:t,fontSize:r,classes:a}=e,n={root:["root","inherit"!==t&&`color${(0,f.default)(t)}`,`fontSize${(0,f.default)(r)}`]};return(0,u.default)(n,c.getSvgIconUtilityClass,a)},y=(0,s.default)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,f.default)(r.color)}`],t[`fontSize${(0,f.default)(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,a,n,o,i,l,u,f,d,s,c,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(a=r.create)?void 0:a.call(r,"fill",{duration:null==(n=e.transitions)||null==(n=n.duration)?void 0:n.shorter}),fontSize:({inherit:"inherit",small:(null==(o=e.typography)||null==(i=o.pxToRem)?void 0:i.call(o,20))||"1.25rem",medium:(null==(l=e.typography)||null==(u=l.pxToRem)?void 0:u.call(l,24))||"1.5rem",large:(null==(f=e.typography)||null==(d=f.pxToRem)?void 0:d.call(f,35))||"2.1875rem"})[t.fontSize],color:null!=(s=null==(c=(e.vars||e).palette)||null==(c=c[t.color])?void 0:c.main)?s:({action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(g=(e.vars||e).palette)||null==(g=g.action)?void 0:g.disabled,inherit:void 0})[t.color]}}),h=i.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiSvgIcon"}),{children:a,className:u,color:f="inherit",component:s="svg",fontSize:c="medium",htmlColor:b,inheritViewBox:h=!1,titleAccess:m,viewBox:_="0 0 24 24"}=r,O=(0,o.default)(r,g),P=i.isValidElement(a)&&"svg"===a.type,j=(0,n.default)({},r,{color:f,component:s,fontSize:c,instanceFontSize:e.fontSize,inheritViewBox:h,viewBox:_,hasSvgAsChild:P}),k={};h||(k.viewBox=_);let w=v(j);return(0,p.jsxs)(y,(0,n.default)({as:s,className:(0,l.default)(w.root,u),focusable:"false",color:b,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},k,O,P&&a.props,{ownerState:j,children:[P?a.props.children:a,m?(0,p.jsx)("title",{children:m}):null]}))});h.muiName="SvgIcon",t.default=h},93116:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={svgIconClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"svgIconClasses",{enumerable:!0,get:function(){return i.default}});var o=a(r(10351)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(19483));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},19483:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getSvgIconUtilityClass=function(e){return(0,o.default)("MuiSvgIcon",e)};var n=a(r(81699)),o=a(r(61119));let i=(0,n.default)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.default=i},38357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"}},15616:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={black:"#000",white:"#fff"}},15766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},56614:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},75033:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"}},10363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},48103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"}},36314:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},66523:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.useColorScheme=t.getInitColorSchemeScript=t.Experimental_CssVarsProvider=void 0;var n=a(r(94634)),o=r(66099),i=a(r(16670)),l=a(r(72155)),u=a(r(9034)),f=a(r(73588)),d=a(r(89448)),s=r(93991);let c=(0,l.default)(),{CssVarsProvider:p,useColorScheme:g,getInitColorSchemeScript:b}=(0,o.unstable_createCssVarsProvider)({themeId:d.default,theme:c,attribute:s.defaultConfig.attribute,colorSchemeStorageKey:s.defaultConfig.colorSchemeStorageKey,modeStorageKey:s.defaultConfig.modeStorageKey,defaultColorScheme:{light:s.defaultConfig.defaultLightColorScheme,dark:s.defaultConfig.defaultDarkColorScheme},resolveTheme:e=>{let t=(0,n.default)({},e,{typography:(0,u.default)(e.palette,e.typography)});return t.unstable_sx=function(e){return(0,i.default)({sx:e,theme:this})},t},excludeVariablesFromRoot:f.default});t.useColorScheme=g,t.Experimental_CssVarsProvider=p,t.getInitColorSchemeScript=b},2315:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{theme:t}=e,r=(0,o.default)(e,f),a=t[l.default];return(0,u.jsx)(i.ThemeProvider,(0,n.default)({},r,{themeId:a?l.default:void 0,theme:a||t}))};var n=a(r(94634)),o=a(r(54893));(function(e,t){if((!e||!e.__esModule)&&null!==e&&("object"==typeof e||"function"==typeof e)){var r=d(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,r&&r.set(e,a)}})(r(82015)),a(r(29825));var i=r(66099),l=a(r(89448)),u=r(8732);let f=["theme"];function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(d=function(e){return e?r:t})(e)}},15208:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{defaultProps:t={},mixins:r={},overrides:a={},palette:f={},props:d={},styleOverrides:s={}}=e,c=(0,o.default)(e,l),p=(0,n.default)({},c,{components:{}});Object.keys(t).forEach(e=>{let r=p.components[e]||{};r.defaultProps=t[e],p.components[e]=r}),Object.keys(d).forEach(e=>{let t=p.components[e]||{};t.defaultProps=d[e],p.components[e]=t}),Object.keys(s).forEach(e=>{let t=p.components[e]||{};t.styleOverrides=s[e],p.components[e]=t}),Object.keys(a).forEach(e=>{let t=p.components[e]||{};t.styleOverrides=a[e],p.components[e]=t}),p.spacing=(0,i.createSpacing)(e.spacing);let g=(0,i.createBreakpoints)(e.breakpoints||{}),b=p.spacing;p.mixins=(0,n.default)({gutters:(e={})=>(0,n.default)({paddingLeft:b(2),paddingRight:b(2)},e,{[g.up("sm")]:(0,n.default)({paddingLeft:b(3),paddingRight:b(3)},e[g.up("sm")])})},r);let{type:v,mode:y}=f,h=(0,o.default)(f,u),m=y||v||"light";return p.palette=(0,n.default)({text:{hint:"dark"===m?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:m,type:m},h),p};var n=a(r(94634)),o=a(r(54893)),i=r(66099);let l=["defaultProps","mixins","overrides","palette","props","styleOverrides"],u=["type","mode"]},51021:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)};var n=a(r(94634))},48499:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,...t){return(0,o.default)((0,n.default)({unstable_strictMode:!0},e),...t)};var n=a(r(7546)),o=a(r(97690))},21120:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.dark=void 0,t.default=function(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:a=.2}=e,O=(0,o.default)(e,y),P=e.primary||function(e="light"){return"dark"===e?{main:g.default[200],light:g.default[50],dark:g.default[400]}:{main:g.default[700],light:g.default[400],dark:g.default[800]}}(t),j=e.secondary||function(e="light"){return"dark"===e?{main:s.default[200],light:s.default[50],dark:s.default[400]}:{main:s.default[500],light:s.default[300],dark:s.default[700]}}(t),k=e.error||function(e="light"){return"dark"===e?{main:c.default[500],light:c.default[300],dark:c.default[700]}:{main:c.default[700],light:c.default[400],dark:c.default[800]}}(t),w=e.info||function(e="light"){return"dark"===e?{main:b.default[400],light:b.default[300],dark:b.default[700]}:{main:b.default[700],light:b.default[500],dark:b.default[900]}}(t),C=e.success||function(e="light"){return"dark"===e?{main:v.default[400],light:v.default[300],dark:v.default[700]}:{main:v.default[800],light:v.default[500],dark:v.default[900]}}(t),S=e.warning||function(e="light"){return"dark"===e?{main:p.default[400],light:p.default[300],dark:p.default[700]}:{main:"#ed6c02",light:p.default[500],dark:p.default[900]}}(t);function M(e){return(0,u.getContrastRatio)(e,m.text.primary)>=r?m.text.primary:h.text.primary}let x=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:l=700})=>{if(!(e=(0,n.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,i.default)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,i.default)(12,t?` (${t})`:"",JSON.stringify(e.main)));return _(e,"light",o,a),_(e,"dark",l,a),e.contrastText||(e.contrastText=M(e.main)),e};return(0,l.default)((0,n.default)({common:(0,n.default)({},f.default),mode:t,primary:x({color:P,name:"primary"}),secondary:x({color:j,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:x({color:k,name:"error"}),warning:x({color:S,name:"warning"}),info:x({color:w,name:"info"}),success:x({color:C,name:"success"}),grey:d.default,contrastThreshold:r,getContrastText:M,augmentColor:x,tonalOffset:a},{dark:m,light:h}[t]),O)},t.light=void 0;var n=a(r(94634)),o=a(r(54893)),i=a(r(20985)),l=a(r(7546)),u=r(84781),f=a(r(15616)),d=a(r(56614)),s=a(r(48103)),c=a(r(36314)),p=a(r(10363)),g=a(r(38357)),b=a(r(75033)),v=a(r(15766));let y=["mode","contrastThreshold","tonalOffset"],h=t.light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.default.white,default:f.default.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},m=t.dark={text:{primary:f.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,r,a){let n=a.light||a,o=a.dark||1.5*a;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,u.lighten)(e.main,n):"dark"===t&&(e.dark=(0,u.darken)(e.main,o)))}},27369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r||(console.warn("MUI: createStyles from @mui/material/styles is deprecated.\nPlease use @mui/styles/createStyles"),r=!0),e};let r=!1},97690:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.createMuiTheme=function(...e){return h(...e)},t.default=void 0;var n=a(r(94634)),o=a(r(54893)),i=a(r(20985)),l=a(r(7546)),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(16670)),f=a(r(59989));a(r(61119));var d=a(r(51021)),s=a(r(21120)),c=a(r(9034)),p=a(r(98758)),g=a(r(18595)),b=a(r(29133));let v=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function h(e={},...t){let{mixins:r={},palette:a={},transitions:y={},typography:m={}}=e,_=(0,o.default)(e,v);if(e.vars)throw Error((0,i.default)(18));let O=(0,s.default)(a),P=(0,f.default)(e),j=(0,l.default)(P,{mixins:(0,d.default)(P.breakpoints,r),palette:O,shadows:p.default.slice(),typography:(0,c.default)(O,m),transitions:(0,g.default)(y),zIndex:(0,n.default)({},b.default)});return j=(0,l.default)(j,_),(j=t.reduce((e,t)=>(0,l.default)(e,t),j)).unstable_sxConfig=(0,n.default)({},u.unstable_defaultSxConfig,null==_?void 0:_.unstable_sxConfig),j.unstable_sx=function(e){return(0,u.default)({sx:e,theme:this})},j}t.default=h},18595:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let t=(0,o.default)({},l,e.easing),r=(0,o.default)({},u,e.duration);return(0,o.default)({getAutoHeightDuration:d,create:(e=["all"],a={})=>{let{duration:o=r.standard,easing:l=t.easeInOut,delay:u=0}=a;return(0,n.default)(a,i),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:f(o)} ${l} ${"string"==typeof u?u:f(u)}`).join(",")}},e,{easing:t,duration:r})},t.easing=t.duration=void 0;var n=a(r(54893)),o=a(r(94634));let i=["duration","easing","delay"],l=t.easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},u=t.duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f(e){return`${Math.round(e)}ms`}function d(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}},9034:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r="function"==typeof t?t(e):t,{fontFamily:a=f,fontSize:d=14,fontWeightLight:s=300,fontWeightRegular:c=400,fontWeightMedium:p=500,fontWeightBold:g=700,htmlFontSize:b=16,allVariants:v,pxToRem:y}=r,h=(0,o.default)(r,l),m=d/14,_=y||(e=>`${e/b*m}rem`),O=(e,t,r,o,i)=>(0,n.default)({fontFamily:a,fontWeight:e,fontSize:_(t),lineHeight:r},a===f?{letterSpacing:`${Math.round(o/t*1e5)/1e5}em`}:{},i,v),P={h1:O(s,96,1.167,-1.5),h2:O(s,60,1.2,-.5),h3:O(c,48,1.167,0),h4:O(c,34,1.235,.25),h5:O(c,24,1.334,0),h6:O(p,20,1.6,.15),subtitle1:O(c,16,1.75,.15),subtitle2:O(p,14,1.57,.1),body1:O(c,16,1.5,.15),body2:O(c,14,1.43,.15),button:O(p,14,1.75,.4,u),caption:O(c,12,1.66,.4),overline:O(c,12,2.66,1,u),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,i.default)((0,n.default)({htmlFontSize:b,pxToRem:_,fontFamily:a,fontSize:d,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:p,fontWeightBold:g},P),h,{clone:!1})};var n=a(r(94634)),o=a(r(54893)),i=a(r(7546));let l=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],u={textTransform:"uppercase"},f='"Roboto", "Helvetica", "Arial", sans-serif'},76855:(e,t)=>{"use strict";function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function a(e){return parseFloat(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.alignProperty=function({size:e,grid:t}){let r=e-e%t,a=r+t;return e-r<a-e?r:a},t.convertLength=function(e){return(t,n)=>{let o=r(t);if(o===n)return t;let i=a(t);"px"!==o&&("em"===o?i=a(t)*a(e):"rem"===o&&(i=a(t)*a(e)));let l=i;if("px"!==n){if("em"===n)l=i/a(e);else{if("rem"!==n)return t;l=i/a(e)}}return parseFloat(l.toFixed(5))+n}},t.fontGrid=function({lineHeight:e,pixels:t,htmlFontSize:r}){return t/(e*r)},t.getUnit=r,t.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},t.responsiveProperty=function({cssProperty:e,min:t,max:r,unit:a="rem",breakpoints:n=[600,900,1200],transform:o=null}){let i={[e]:`${t}${a}`},l=(r-t)/n[n.length-1];return n.forEach(r=>{let n=t+l*r;null!==o&&(n=o(n)),i[`@media (min-width:${r}px)`]={[e]:`${Math.round(1e4*n)/1e4}${a}`}}),i},t.toUnitless=a},16909:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n=(0,a(r(97690)).default)();t.default=n},73588:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>[...[...Array(24)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`]},72155:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.createGetCssVar=void 0,t.default=function(e={},...t){var r,a,c,b,P,j;let{colorSchemes:k={},cssVarPrefix:w="mui",shouldSkipGeneratingVar:C=d.default}=e,S=(0,o.default)(e,p),M=O(w),x=(0,s.default)((0,n.default)({},S,k.light&&{palette:null==(r=k.light)?void 0:r.palette})),{palette:A}=x,T=(0,o.default)(x,g),{palette:D}=(0,s.default)({palette:(0,n.default)({mode:"dark"},null==(a=k.dark)?void 0:a.palette)}),I=(0,n.default)({},T,{cssVarPrefix:w,getCssVar:M,colorSchemes:(0,n.default)({},k,{light:(0,n.default)({},k.light,{palette:A,opacity:(0,n.default)({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(c=k.light)?void 0:c.opacity),overlays:(null==(b=k.light)?void 0:b.overlays)||[]}),dark:(0,n.default)({},k.dark,{palette:D,opacity:(0,n.default)({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(P=k.dark)?void 0:P.opacity),overlays:(null==(j=k.dark)?void 0:j.overlays)||v})})});Object.keys(I.colorSchemes).forEach(e=>{let t=I.colorSchemes[e].palette,r=e=>{let r=e.split("-"),a=r[1],n=r[2];return M(e,t[a][n])};if("light"===e?(y(t.common,"background","#fff"),y(t.common,"onBackground","#000")):(y(t.common,"background","#000"),y(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===e){y(t.Alert,"errorColor",(0,f.private_safeDarken)(t.error.light,.6)),y(t.Alert,"infoColor",(0,f.private_safeDarken)(t.info.light,.6)),y(t.Alert,"successColor",(0,f.private_safeDarken)(t.success.light,.6)),y(t.Alert,"warningColor",(0,f.private_safeDarken)(t.warning.light,.6)),y(t.Alert,"errorFilledBg",r("palette-error-main")),y(t.Alert,"infoFilledBg",r("palette-info-main")),y(t.Alert,"successFilledBg",r("palette-success-main")),y(t.Alert,"warningFilledBg",r("palette-warning-main")),y(t.Alert,"errorFilledColor",_(()=>A.getContrastText(t.error.main))),y(t.Alert,"infoFilledColor",_(()=>A.getContrastText(t.info.main))),y(t.Alert,"successFilledColor",_(()=>A.getContrastText(t.success.main))),y(t.Alert,"warningFilledColor",_(()=>A.getContrastText(t.warning.main))),y(t.Alert,"errorStandardBg",(0,f.private_safeLighten)(t.error.light,.9)),y(t.Alert,"infoStandardBg",(0,f.private_safeLighten)(t.info.light,.9)),y(t.Alert,"successStandardBg",(0,f.private_safeLighten)(t.success.light,.9)),y(t.Alert,"warningStandardBg",(0,f.private_safeLighten)(t.warning.light,.9)),y(t.Alert,"errorIconColor",r("palette-error-main")),y(t.Alert,"infoIconColor",r("palette-info-main")),y(t.Alert,"successIconColor",r("palette-success-main")),y(t.Alert,"warningIconColor",r("palette-warning-main")),y(t.AppBar,"defaultBg",r("palette-grey-100")),y(t.Avatar,"defaultBg",r("palette-grey-400")),y(t.Button,"inheritContainedBg",r("palette-grey-300")),y(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),y(t.Chip,"defaultBorder",r("palette-grey-400")),y(t.Chip,"defaultAvatarColor",r("palette-grey-700")),y(t.Chip,"defaultIconColor",r("palette-grey-700")),y(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),y(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),y(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),y(t.LinearProgress,"primaryBg",(0,f.private_safeLighten)(t.primary.main,.62)),y(t.LinearProgress,"secondaryBg",(0,f.private_safeLighten)(t.secondary.main,.62)),y(t.LinearProgress,"errorBg",(0,f.private_safeLighten)(t.error.main,.62)),y(t.LinearProgress,"infoBg",(0,f.private_safeLighten)(t.info.main,.62)),y(t.LinearProgress,"successBg",(0,f.private_safeLighten)(t.success.main,.62)),y(t.LinearProgress,"warningBg",(0,f.private_safeLighten)(t.warning.main,.62)),y(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.11)`),y(t.Slider,"primaryTrack",(0,f.private_safeLighten)(t.primary.main,.62)),y(t.Slider,"secondaryTrack",(0,f.private_safeLighten)(t.secondary.main,.62)),y(t.Slider,"errorTrack",(0,f.private_safeLighten)(t.error.main,.62)),y(t.Slider,"infoTrack",(0,f.private_safeLighten)(t.info.main,.62)),y(t.Slider,"successTrack",(0,f.private_safeLighten)(t.success.main,.62)),y(t.Slider,"warningTrack",(0,f.private_safeLighten)(t.warning.main,.62));let e=(0,f.private_safeEmphasize)(t.background.default,.8);y(t.SnackbarContent,"bg",e),y(t.SnackbarContent,"color",_(()=>A.getContrastText(e))),y(t.SpeedDialAction,"fabHoverBg",(0,f.private_safeEmphasize)(t.background.paper,.15)),y(t.StepConnector,"border",r("palette-grey-400")),y(t.StepContent,"border",r("palette-grey-400")),y(t.Switch,"defaultColor",r("palette-common-white")),y(t.Switch,"defaultDisabledColor",r("palette-grey-100")),y(t.Switch,"primaryDisabledColor",(0,f.private_safeLighten)(t.primary.main,.62)),y(t.Switch,"secondaryDisabledColor",(0,f.private_safeLighten)(t.secondary.main,.62)),y(t.Switch,"errorDisabledColor",(0,f.private_safeLighten)(t.error.main,.62)),y(t.Switch,"infoDisabledColor",(0,f.private_safeLighten)(t.info.main,.62)),y(t.Switch,"successDisabledColor",(0,f.private_safeLighten)(t.success.main,.62)),y(t.Switch,"warningDisabledColor",(0,f.private_safeLighten)(t.warning.main,.62)),y(t.TableCell,"border",(0,f.private_safeLighten)((0,f.private_safeAlpha)(t.divider,1),.88)),y(t.Tooltip,"bg",(0,f.private_safeAlpha)(t.grey[700],.92))}else{y(t.Alert,"errorColor",(0,f.private_safeLighten)(t.error.light,.6)),y(t.Alert,"infoColor",(0,f.private_safeLighten)(t.info.light,.6)),y(t.Alert,"successColor",(0,f.private_safeLighten)(t.success.light,.6)),y(t.Alert,"warningColor",(0,f.private_safeLighten)(t.warning.light,.6)),y(t.Alert,"errorFilledBg",r("palette-error-dark")),y(t.Alert,"infoFilledBg",r("palette-info-dark")),y(t.Alert,"successFilledBg",r("palette-success-dark")),y(t.Alert,"warningFilledBg",r("palette-warning-dark")),y(t.Alert,"errorFilledColor",_(()=>D.getContrastText(t.error.dark))),y(t.Alert,"infoFilledColor",_(()=>D.getContrastText(t.info.dark))),y(t.Alert,"successFilledColor",_(()=>D.getContrastText(t.success.dark))),y(t.Alert,"warningFilledColor",_(()=>D.getContrastText(t.warning.dark))),y(t.Alert,"errorStandardBg",(0,f.private_safeDarken)(t.error.light,.9)),y(t.Alert,"infoStandardBg",(0,f.private_safeDarken)(t.info.light,.9)),y(t.Alert,"successStandardBg",(0,f.private_safeDarken)(t.success.light,.9)),y(t.Alert,"warningStandardBg",(0,f.private_safeDarken)(t.warning.light,.9)),y(t.Alert,"errorIconColor",r("palette-error-main")),y(t.Alert,"infoIconColor",r("palette-info-main")),y(t.Alert,"successIconColor",r("palette-success-main")),y(t.Alert,"warningIconColor",r("palette-warning-main")),y(t.AppBar,"defaultBg",r("palette-grey-900")),y(t.AppBar,"darkBg",r("palette-background-paper")),y(t.AppBar,"darkColor",r("palette-text-primary")),y(t.Avatar,"defaultBg",r("palette-grey-600")),y(t.Button,"inheritContainedBg",r("palette-grey-800")),y(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),y(t.Chip,"defaultBorder",r("palette-grey-700")),y(t.Chip,"defaultAvatarColor",r("palette-grey-300")),y(t.Chip,"defaultIconColor",r("palette-grey-300")),y(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),y(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),y(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),y(t.LinearProgress,"primaryBg",(0,f.private_safeDarken)(t.primary.main,.5)),y(t.LinearProgress,"secondaryBg",(0,f.private_safeDarken)(t.secondary.main,.5)),y(t.LinearProgress,"errorBg",(0,f.private_safeDarken)(t.error.main,.5)),y(t.LinearProgress,"infoBg",(0,f.private_safeDarken)(t.info.main,.5)),y(t.LinearProgress,"successBg",(0,f.private_safeDarken)(t.success.main,.5)),y(t.LinearProgress,"warningBg",(0,f.private_safeDarken)(t.warning.main,.5)),y(t.Skeleton,"bg",`rgba(${r("palette-text-primaryChannel")} / 0.13)`),y(t.Slider,"primaryTrack",(0,f.private_safeDarken)(t.primary.main,.5)),y(t.Slider,"secondaryTrack",(0,f.private_safeDarken)(t.secondary.main,.5)),y(t.Slider,"errorTrack",(0,f.private_safeDarken)(t.error.main,.5)),y(t.Slider,"infoTrack",(0,f.private_safeDarken)(t.info.main,.5)),y(t.Slider,"successTrack",(0,f.private_safeDarken)(t.success.main,.5)),y(t.Slider,"warningTrack",(0,f.private_safeDarken)(t.warning.main,.5));let e=(0,f.private_safeEmphasize)(t.background.default,.98);y(t.SnackbarContent,"bg",e),y(t.SnackbarContent,"color",_(()=>D.getContrastText(e))),y(t.SpeedDialAction,"fabHoverBg",(0,f.private_safeEmphasize)(t.background.paper,.15)),y(t.StepConnector,"border",r("palette-grey-600")),y(t.StepContent,"border",r("palette-grey-600")),y(t.Switch,"defaultColor",r("palette-grey-300")),y(t.Switch,"defaultDisabledColor",r("palette-grey-600")),y(t.Switch,"primaryDisabledColor",(0,f.private_safeDarken)(t.primary.main,.55)),y(t.Switch,"secondaryDisabledColor",(0,f.private_safeDarken)(t.secondary.main,.55)),y(t.Switch,"errorDisabledColor",(0,f.private_safeDarken)(t.error.main,.55)),y(t.Switch,"infoDisabledColor",(0,f.private_safeDarken)(t.info.main,.55)),y(t.Switch,"successDisabledColor",(0,f.private_safeDarken)(t.success.main,.55)),y(t.Switch,"warningDisabledColor",(0,f.private_safeDarken)(t.warning.main,.55)),y(t.TableCell,"border",(0,f.private_safeDarken)((0,f.private_safeAlpha)(t.divider,1),.68)),y(t.Tooltip,"bg",(0,f.private_safeAlpha)(t.grey[700],.92))}m(t.background,"default"),m(t.background,"paper"),m(t.common,"background"),m(t.common,"onBackground"),m(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];r&&"object"==typeof r&&(r.main&&y(t[e],"mainChannel",(0,f.private_safeColorChannel)(h(r.main))),r.light&&y(t[e],"lightChannel",(0,f.private_safeColorChannel)(h(r.light))),r.dark&&y(t[e],"darkChannel",(0,f.private_safeColorChannel)(h(r.dark))),r.contrastText&&y(t[e],"contrastTextChannel",(0,f.private_safeColorChannel)(h(r.contrastText))),"text"===e&&(m(t[e],"primary"),m(t[e],"secondary")),"action"===e&&(r.active&&m(t[e],"active"),r.selected&&m(t[e],"selected")))})}),I=t.reduce((e,t)=>(0,i.default)(e,t),I);let{vars:B,generateCssVars:L}=(0,l.unstable_prepareCssVars)(I,{prefix:w,shouldSkipGeneratingVar:C});return I.vars=B,I.generateCssVars=L,I.shouldSkipGeneratingVar=C,I.unstable_sxConfig=(0,n.default)({},u.unstable_defaultSxConfig,null==S?void 0:S.unstable_sxConfig),I.unstable_sx=function(e){return(0,u.default)({sx:e,theme:this})},I};var n=a(r(94634)),o=a(r(54893)),i=a(r(7546)),l=r(66099),u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=b(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(16670)),f=r(84781),d=a(r(95466)),s=a(r(97690)),c=a(r(3167));let p=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],g=["palette"];function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(b=function(e){return e?r:t})(e)}let v=[...Array(25)].map((e,t)=>{if(0===t)return;let r=(0,c.default)(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function y(e,t,r){!e[t]&&r&&(e[t]=r)}function h(e){return e&&e.startsWith("hsl")?(0,f.hslToRgb)(e):e}function m(e,t){`${t}Channel`in e||(e[`${t}Channel`]=(0,f.private_safeColorChannel)(h(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). +To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}let _=e=>{try{return e()}catch(e){}},O=(e="mui")=>(0,l.unstable_createGetCssVar)(e);t.createGetCssVar=O},3167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2)},89448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="$$material"},90627:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var n={experimental_sx:!0,THEME_ID:!0,adaptV4Theme:!0,hexToRgb:!0,rgbToHex:!0,hslToRgb:!0,decomposeColor:!0,recomposeColor:!0,getContrastRatio:!0,getLuminance:!0,emphasize:!0,alpha:!0,darken:!0,lighten:!0,css:!0,keyframes:!0,StyledEngineProvider:!0,createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,unstable_getUnit:!0,unstable_toUnitless:!0,responsiveFontSizes:!0,duration:!0,easing:!0,useTheme:!0,useThemeProps:!0,styled:!0,experimentalStyled:!0,ThemeProvider:!0,makeStyles:!0,withStyles:!0,withTheme:!0,experimental_extendTheme:!0,getOverlayAlpha:!0,shouldSkipGeneratingVar:!0,private_createTypography:!0,private_createMixins:!0,private_excludeVariablesFromRoot:!0};Object.defineProperty(t,"StyledEngineProvider",{enumerable:!0,get:function(){return u.StyledEngineProvider}}),Object.defineProperty(t,"THEME_ID",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ThemeProvider",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"adaptV4Theme",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"alpha",{enumerable:!0,get:function(){return u.alpha}}),Object.defineProperty(t,"createMuiTheme",{enumerable:!0,get:function(){return f.createMuiTheme}}),Object.defineProperty(t,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"createTheme",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"css",{enumerable:!0,get:function(){return u.css}}),Object.defineProperty(t,"darken",{enumerable:!0,get:function(){return u.darken}}),Object.defineProperty(t,"decomposeColor",{enumerable:!0,get:function(){return u.decomposeColor}}),Object.defineProperty(t,"duration",{enumerable:!0,get:function(){return g.duration}}),Object.defineProperty(t,"easing",{enumerable:!0,get:function(){return g.easing}}),Object.defineProperty(t,"emphasize",{enumerable:!0,get:function(){return u.emphasize}}),Object.defineProperty(t,"experimentalStyled",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"experimental_extendTheme",{enumerable:!0,get:function(){return j.default}}),t.experimental_sx=function(){throw Error((0,o.default)(20))},Object.defineProperty(t,"getContrastRatio",{enumerable:!0,get:function(){return u.getContrastRatio}}),Object.defineProperty(t,"getLuminance",{enumerable:!0,get:function(){return u.getLuminance}}),Object.defineProperty(t,"getOverlayAlpha",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"hexToRgb",{enumerable:!0,get:function(){return u.hexToRgb}}),Object.defineProperty(t,"hslToRgb",{enumerable:!0,get:function(){return u.hslToRgb}}),Object.defineProperty(t,"keyframes",{enumerable:!0,get:function(){return u.keyframes}}),Object.defineProperty(t,"lighten",{enumerable:!0,get:function(){return u.lighten}}),Object.defineProperty(t,"makeStyles",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"private_createMixins",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"private_createTypography",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"private_excludeVariablesFromRoot",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"recomposeColor",{enumerable:!0,get:function(){return u.recomposeColor}}),Object.defineProperty(t,"responsiveFontSizes",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"rgbToHex",{enumerable:!0,get:function(){return u.rgbToHex}}),Object.defineProperty(t,"shouldSkipGeneratingVar",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"styled",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"unstable_getUnit",{enumerable:!0,get:function(){return c.getUnit}}),Object.defineProperty(t,"unstable_toUnitless",{enumerable:!0,get:function(){return c.toUnitless}}),Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"useThemeProps",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"withStyles",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"withTheme",{enumerable:!0,get:function(){return O.default}});var o=a(r(20985)),i=a(r(89448)),l=a(r(15208)),u=r(66099),f=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=x(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(97690)),d=a(r(48499)),s=a(r(27369)),c=r(76855),p=a(r(57196)),g=r(18595),b=a(r(90403)),v=a(r(33493)),y=a(r(88456)),h=a(r(2315)),m=a(r(91395)),_=a(r(69861)),O=a(r(53174)),P=r(66523);Object.keys(P).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))});var j=a(r(72155)),k=a(r(3167)),w=a(r(95466)),C=a(r(9034)),S=a(r(51021)),M=a(r(73588));function x(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(x=function(e){return e?r:t})(e)}},91395:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw Error((0,n.default)(14))};var n=a(r(20985))},57196:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){let{breakpoints:r=["sm","md","lg"],disableAlign:a=!1,factor:l=2,variants:u=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,f=(0,n.default)({},e);f.typography=(0,n.default)({},f.typography);let d=f.typography,s=(0,i.convertLength)(d.htmlFontSize),c=r.map(e=>f.breakpoints.values[e]);return u.forEach(e=>{let t=d[e];if(!t)return;let r=parseFloat(s(t.fontSize,"rem"));if(r<=1)return;let{lineHeight:u}=t;if(!(0,i.isUnitless)(u)&&!a)throw Error((0,o.default)(6));(0,i.isUnitless)(u)||(u=parseFloat(s(u,"rem"))/parseFloat(r));let f=null;a||(f=e=>(0,i.alignProperty)({size:e,grid:(0,i.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:d.htmlFontSize})})),d[e]=(0,n.default)({},t,(0,i.responsiveProperty)({cssProperty:"fontSize",min:1+(r-1)/l,max:r,unit:"rem",breakpoints:c,transform:f}))}),f};var n=a(r(94634)),o=a(r(20985)),i=r(76855)},13882:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(22198));t.default=e=>(0,n.default)(e)&&"classes"!==e},98758:(e,t)=>{"use strict";function r(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let a=["none",r(0,2,1,-1,0,1,1,0,0,1,3,0),r(0,3,1,-2,0,2,2,0,0,1,5,0),r(0,3,3,-2,0,3,4,0,0,1,8,0),r(0,2,4,-1,0,4,5,0,0,1,10,0),r(0,3,5,-1,0,5,8,0,0,1,14,0),r(0,3,5,-1,0,6,10,0,0,1,18,0),r(0,4,5,-2,0,7,10,1,0,2,16,1),r(0,5,5,-3,0,8,10,1,0,3,14,2),r(0,5,6,-3,0,9,12,1,0,3,16,2),r(0,6,6,-3,0,10,14,1,0,4,18,3),r(0,6,7,-4,0,11,15,1,0,4,20,3),r(0,7,8,-4,0,12,17,2,0,5,22,4),r(0,7,8,-4,0,13,19,2,0,5,24,4),r(0,7,9,-4,0,14,21,2,0,5,26,4),r(0,8,9,-5,0,15,22,2,0,6,28,5),r(0,8,10,-5,0,16,24,2,0,6,30,5),r(0,8,11,-5,0,17,26,2,0,6,32,5),r(0,9,11,-5,0,18,28,2,0,7,34,6),r(0,9,12,-6,0,19,29,2,0,7,36,6),r(0,10,13,-6,0,20,31,3,0,8,38,7),r(0,10,13,-6,0,21,33,3,0,8,40,7),r(0,10,14,-6,0,22,35,3,0,8,42,7),r(0,11,14,-7,0,23,36,3,0,9,44,8),r(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=a},95466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/(mode|contrastThreshold|tonalOffset)/))}},22198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},88456:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,Object.defineProperty(t,"rootShouldForwardProp",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"slotShouldForwardProp",{enumerable:!0,get:function(){return u.default}});var n=a(r(18215)),o=a(r(16909)),i=a(r(89448)),l=a(r(13882)),u=a(r(22198));let f=(0,n.default)({themeId:i.default,defaultTheme:o.default,rootShouldForwardProp:l.default});t.default=f},90403:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){let e=(0,n.useTheme)(o.default);return e[i.default]||e},function(e,t){if((!e||!e.__esModule)&&null!==e&&("object"==typeof e||"function"==typeof e)){var r=l(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,r&&r.set(e,a)}}(r(82015));var n=r(66099),o=a(r(16909)),i=a(r(89448));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}},33493:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({props:e,name:t}){return(0,n.default)({props:e,name:t,defaultTheme:o.default,themeId:i.default})};var n=a(r(88698)),o=a(r(16909)),i=a(r(89448))},69861:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw Error((0,n.default)(15))};var n=a(r(20985))},53174:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw Error((0,n.default)(16))};var n=a(r(20985))},29133:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},83922:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(28578));t.default=n.default},32526:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(31112));t.default=n.default},31057:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){function r(r,a){return(0,l.jsx)(i.default,(0,n.default)({"data-testid":`${t}Icon`,ref:a},r,{children:e}))}return r.muiName=i.default.muiName,o.memo(o.forwardRef(r))};var n=a(r(94634)),o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}return a.default=e,r&&r.set(e,a),a}(r(82015)),i=a(r(93116)),l=r(8732);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}},58607:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(21763));t.default=n.default},27344:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(5928));t.default=n.default},40170:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"createChainedFunction",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createSvgIcon",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"deprecatedPropType",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"isMuiElement",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"ownerDocument",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ownerWindow",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"requirePropFactory",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"setRef",{enumerable:!0,get:function(){return g.default}}),t.unstable_ClassNameGenerator=void 0,Object.defineProperty(t,"unstable_useEnhancedEffect",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"unstable_useId",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"unsupportedProp",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"useControlled",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"useEventCallback",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"useForkRef",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"useIsFocusVisible",{enumerable:!0,get:function(){return O.default}});var n=r(76831),o=a(r(83922)),i=a(r(32526)),l=a(r(31057)),u=a(r(58607)),f=a(r(27344)),d=a(r(86463)),s=a(r(90392)),c=a(r(24885)),p=a(r(20560)),g=a(r(93929)),b=a(r(50682)),v=a(r(42404)),y=a(r(90680)),h=a(r(51655)),m=a(r(87418)),_=a(r(68660)),O=a(r(33107));t.unstable_ClassNameGenerator={configure:e=>{n.unstable_ClassNameGenerator.configure(e)}}},86463:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(29823));t.default=n.default},90392:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(55402));t.default=n.default},24885:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(46875));t.default=n.default},20560:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(48080));t.default=n.default},93929:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(39597));t.default=n.default},90680:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(88190));t.default=n.default},51655:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(83889));t.default=n.default},50682:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(21956));t.default=n.default},87418:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(4926));t.default=n.default},68660:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(7376));t.default=n.default},42404:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(63310));t.default=n.default},33107:(e,t,r)=>{"use strict";var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(r(10977));t.default=n.default},82544:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var a=r(82015),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=(e,t)=>{let r=(0,a.forwardRef)(({color:r="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:u,className:f="",children:d,...s},c)=>(0,a.createElement)("svg",{ref:c,...n,width:i,height:i,stroke:r,strokeWidth:u?24*Number(l)/Number(i):l,className:["lucide",`lucide-${o(e)}`,f].join(" "),...s},[...t.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(d)?d:[d]]));return r.displayName=`${e}`,r}},58526:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(82544).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},58591:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(82544).A)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},52070:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(82544).A)("CircleGauge",[["path",{d:"M15.6 2.7a10 10 0 1 0 5.7 5.7",key:"1e0p6d"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M13.4 10.6 19 5",key:"1kr7tw"}]])},52026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cancelIdleCallback:function(){return a},requestIdleCallback:function(){return r}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42369:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return v}});let a=r(99929),n=r(24588),o=r(8732),i=a._(r(22326)),l=n._(r(82015)),u=r(19241),f=r(3958),d=r(52026),s=new Map,c=new Set,p=e=>{if(i.default.preinit){e.forEach(e=>{i.default.preinit(e,{as:"style"})});return}},g=e=>{let{src:t,id:r,onLoad:a=()=>{},onReady:n=null,dangerouslySetInnerHTML:o,children:i="",strategy:l="afterInteractive",onError:u,stylesheets:d}=e,g=r||t;if(g&&c.has(g))return;if(s.has(t)){c.add(g),s.get(t).then(a,u);return}let b=()=>{n&&n(),c.add(g)},v=document.createElement("script"),y=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),a&&a.call(this,t),b()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(v.innerHTML=o.__html||"",b()):i?(v.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",b()):t&&(v.src=t,s.set(t,y)),(0,f.setAttributesFromProps)(v,e),"worker"===l&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",l),d&&p(d),document.body.appendChild(v)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>g(e))}):g(e)}function v(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");c.add(t)})}function y(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:n=null,strategy:f="afterInteractive",onError:s,stylesheets:p,...b}=e,{updateScripts:v,scripts:y,getIsSsr:h,appDir:m,nonce:_}=(0,l.useContext)(u.HeadManagerContext),O=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||r;O.current||(n&&e&&c.has(e)&&n(),O.current=!0)},[n,t,r]);let P=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{!P.current&&("afterInteractive"===f?g(e):"lazyOnload"===f&&("complete"===document.readyState?(0,d.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,d.requestIdleCallback)(()=>g(e))})),P.current=!0)},[e,f]),("beforeInteractive"===f||"worker"===f)&&(v?(y[f]=(y[f]||[]).concat([{id:t,src:r,onLoad:a,onReady:n,onError:s,...b}]),v(y)):h&&h()?c.add(t||r):h&&!h()&&g(e)),m){if(p&&p.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===f)return r?(i.default.preload(r,b.integrity?{as:"script",integrity:b.integrity,nonce:_,crossOrigin:b.crossOrigin}:{as:"script",nonce:_,crossOrigin:b.crossOrigin}),(0,o.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r,{...b,id:t}])+")"}})):(b.dangerouslySetInnerHTML&&(b.children=b.dangerouslySetInnerHTML.__html,delete b.dangerouslySetInnerHTML),(0,o.jsx)("script",{nonce:_,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...b,id:t}])+")"}}));"afterInteractive"===f&&r&&i.default.preload(r,b.integrity?{as:"script",integrity:b.integrity,nonce:_,crossOrigin:b.crossOrigin}:{as:"script",nonce:_,crossOrigin:b.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let h=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return o}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},a=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function n(e){return["async","defer","noModule"].includes(e)}function o(e,t){for(let[o,i]of Object.entries(t)){if(!t.hasOwnProperty(o)||a.includes(o)||void 0===i)continue;let l=r[o]||o.toLowerCase();"SCRIPT"===e.tagName&&n(l)?e[l]=!!i:e.setAttribute(l,String(i)),(!1===i||"SCRIPT"===e.tagName&&n(l)&&(!i||"false"===i))&&(e.setAttribute(l,""),e.removeAttribute(l))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63865:(e,t,r)=>{"use strict";e.exports=r(40361)},19241:(e,t,r)=>{"use strict";e.exports=r(63865).vendored.contexts.HeadManagerContext},28133:(e,t,r)=>{e.exports=r(42369)},94634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},24994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},54893:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var a in e)if(({}).hasOwnProperty.call(e,a)){if(t.includes(a))continue;r[a]=e[a]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},99929:(e,t)=>{"use strict";t._=function(e){return e&&e.__esModule?e:{default:e}}},24588:(e,t)=>{"use strict";function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(r=function(e){return e?a:t})(e)}t._=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=r(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(n,i,l):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n}}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9810.js b/dsql-app/.local_dist/server/chunks/9810.js new file mode 100644 index 0000000..cd714a0 --- /dev/null +++ b/dsql-app/.local_dist/server/chunks/9810.js @@ -0,0 +1 @@ +"use strict";exports.id=9810,exports.ids=[9810],exports.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},36299:(e,t,s)=>{s.d(t,{A:()=>d});var a=s(8732),l=s(82015),r=s.n(l),i=s(63715),n=s(32415),c=s(21498);function d({data:e}){Object.keys(e.users[0]);let[t,s]=r().useState(null),[l,d]=r().useState(0),[h,o]=r().useState(!1);return console.log(typeof t),(0,a.jsx)(r().Fragment,{children:(0,a.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,a.jsxs)("section",{className:"paper w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,a.jsx)("div",{className:"flex-col items-stretch gap-10",children:e.users.map((e,t)=>(0,a.jsx)(c.A,{userObject:e},t+1))})]}),(0,a.jsxs)("section",{className:"paper",children:[(0,a.jsxs)("div",{className:"w-full justify-between",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,a.jsx)("div",{children:(0,a.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(o(!0),(0,i.A)("/api/admin/clearErrorLogs","post").then(e=>{d(e=>e+1)}),setTimeout(()=>{o(!1)},2e3))},className:"outlined gray relative",children:[h&&(0,a.jsx)(n.A,{width:"20px"}),"Clear Error Log"]})})]}),t&&(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:t||"No Log"}}),"string"!=typeof t&&(0,a.jsx)(n.A,{position:"relative",width:"25px"})]})]})})}},21498:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),l=s(82015),r=s.n(l);function i({userObject:e,userPage:t}){let s=Object.keys(e),[l,i]=r().useState(!1),[n,c]=r().useState(0),[d,h]=r().useState(!t);return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(d?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:e=>{d?h(!1):h(!0)},children:d?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,l)=>(0,a.jsxs)(r().Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,a.jsx)("b",{children:e[t]})]})}),l<s.length-1&&(0,a.jsx)("hr",{})]},l+1))}),(0,a.jsx)("button",{className:"outlined gray small-text w-full",onClick:e=>{h(!0)},children:"Collapse"})]})}},67105:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))}}; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9922.js b/dsql-app/.local_dist/server/chunks/9922.js deleted file mode 100644 index b9dba03..0000000 --- a/dsql-app/.local_dist/server/chunks/9922.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -exports.id = 9922; -exports.ids = [9922]; -exports.modules = { - -/***/ 9922: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ clientAuthUser) -/* harmony export */ }); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - React ref with current value - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").UserType | {} | *>>} params.setUser - React ref with current value - * - * @requires search-field name attribute - */ function clientAuthUser({ setUser }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ let localStorageUser = localStorage.getItem("user"); - if (localStorageUser) { - try { - setUser(JSON.parse(localStorageUser)); - return; - } catch (error) { - setUser({}); - return; - } - } - /** - * Fetch User from server - * - * @description Preventdefault, declare variables - */ (0,_fetchApi__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)("/api/clientSideAuth", { - method: "post", - body: {} - }, true).then((res)=>{ - let finalUser = res.user ? res.user : {}; - setUser(finalUser); - localStorage.setItem("user", JSON.stringify(finalUser)); - // localStorage.setItem("user", JSON.stringify(res.user)); - }).catch((error)=>{ - console.log(error); - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9967.js b/dsql-app/.local_dist/server/chunks/9967.js deleted file mode 100644 index 4cc8a82..0000000 --- a/dsql-app/.local_dist/server/chunks/9967.js +++ /dev/null @@ -1,1472 +0,0 @@ -"use strict"; -exports.id = 9967; -exports.ids = [9967]; -exports.modules = { - -/***/ 9967: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ExistingFieldEdit) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _MoreOptionsModal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4209); -/* harmony import */ var _fields_text_JSONTextOption__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4838); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>} props.setTableFields - * @param {any} props.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").UserType} props.user - * @param {React.Dispatch<React.SetStateAction<boolean>>} [props.setActiveEdit] - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - */ function ExistingFieldEdit({ targetField , fieldIndex , tableFields , setTableFields , refreshFieldsListRef , setActiveEdit , database , currentTable , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const varcharDesc = "Varchar is simply letters and numbers within the range 0 - 255"; - let defaultType = targetField?.dataType ? targetField.dataType.replace(/\d|\(|\)/g, "") : null; - let defaultDataTypeValue = targetField?.dataType ? targetField.dataType.replace(/[^\d]/g, "") : "200"; - const dataTypes = __webpack_require__(9594); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.Ref<import("@/package-shared/types").DSQL_FieldSchemaType>} */ const initialField = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(lodash__WEBPACK_IMPORTED_MODULE_4___default().cloneDeep(targetField)); - const newFieldRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - const [fieldData, setFieldData] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetField); - const [fieldName, setFieldName] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetField?.fieldName); - const [dataType, setDataType] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(defaultType); - const [dataTypeValue, setDataTypeValue] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(defaultDataTypeValue); - const [dataTypeDesc, setDataTypeDesc] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(varcharDesc); - const [isRichText, setIsRichText] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetField?.richText && !targetField?.encrypted ? "Yes" : "No"); - const isLiteral = Boolean(dataType?.match(/uuid/i)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap", - // @ts-ignore - ref: newFieldRef, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - className: "flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap", - onSubmit: (e)=>{ - e.preventDefault(); - setTableFields((prev)=>{ - let newArray = prev; - newArray[fieldIndex] = fieldData; - return newArray; - }); - refreshFieldsListRef.current((/** @type {any} */ prev)=>prev + 1); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - formEl.closest(".table-field-wrapper")?.querySelector(".edit-table-field-section")?.classList.toggle("hidden"); - }, - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "new_field_name", - children: "Field Name" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "new_field_name", - id: "new_field_name", - placeholder: "Eg. post_title", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - inputEl.value = inputEl.value.toLowerCase().replace(/ /g, "_"); - setFieldData((prev)=>{ - let existingFieldData = prev; - existingFieldData.fieldName = inputEl.value; - existingFieldData.updatedField = true; - if (!existingFieldData.originName) existingFieldData.originName = fieldName; - return existingFieldData; - }); - }, - required: true, - defaultValue: fieldName - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-4 xl:gap-0.5", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-wrap xl:flex-nowrap w-full md:w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "new_field_data_type", - children: "Data Type" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper reversed text-sm items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex", - children: "Info" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "dropdown mt-0 xl:-mt-2", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: dataTypeDesc - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("select", { - name: "new_field_data_type", - id: "new_field_data_type", - className: "w-full xl-w-auto", - onChange: (e)=>{ - /** @type {HTMLSelectElement} */ // @ts-ignore - const selectEl = e.target; - setDataType(selectEl.value); - selectEl.childNodes.forEach((/** @type {any} */ option)=>{ - if (option.value === selectEl.value && option.dataset.desc) { - setDataTypeDesc(option.dataset.desc); - } - if (option.value === selectEl.value && option.dataset.literal) { - fieldData.defaultValueLiteral = option.dataset.literal; - fieldData.nullValue = false; - } else { - delete fieldData.defaultValueLiteral; - } - }); - targetField.dataType = selectEl.value + (selectEl.value.match(/VARCHAR/) ? `(${dataTypeValue ? dataTypeValue : 200})` : ""); - }, - defaultValue: dataType || undefined, - children: dataTypes.map((type, index)=>{ - if (type.name.match(/VARCHAR/)) { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: type.name, - "data-desc": type.description, - children: type.title + "(" + (dataTypeValue ? dataTypeValue : 200) + ")" - }, index + 1); - } else { - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: type.name, - "data-desc": type.description, - "data-literal": type.valueLiteral || undefined, - children: type.title - }, index + 1); - } - }) - }), - dataType?.match(/VARCHAR/) && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "number", - defaultValue: dataTypeValue ? dataTypeValue : 200, - className: "px-2", - style: { - maxWidth: "60px" - }, - max: 255, - min: 5, - onChange: (e)=>{ - setDataTypeValue(e.target.value); - targetField.dataType = dataType + `(${e.target.value})`; - } - }) - ] - }) - ] - }), - dataType?.match(/text/i) && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_fields_text_JSONTextOption__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - targetField: targetField - }) - }), - !targetField.dataType?.match(/text/i) && !isLiteral && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "new_field_required", - children: "Required?" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", { - name: "new_field_required", - id: "new_field_required", - className: "px-2", - defaultValue: targetField?.notNullValue ? "Yes" : "No", - onChange: (e)=>{ - console.log(targetField); - if (e.target.value === "Yes") { - targetField.notNullValue = true; - } else { - targetField.notNullValue = false; - delete targetField.notNullValue; - // if (!targetField?.dataType?.match(/text/i)) { - // targetField.nullValue = true; - // } - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }) - ] - }), - !isLiteral && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "new_field_default_value", - children: fieldData?.dataType?.match(/text$/i) ? "Can't Set Default for text values" : "Default Value (optional)" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "new_field_default_value", - id: "new_field_default_value", - className: fieldData?.dataType?.match(/text$/i) ? "pointer-events-none opacity-50" : "", - placeholder: "Default Value", - defaultValue: fieldData?.defaultValue ? fieldData.defaultValue : fieldData?.nullValue ? "NULL" : "", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (fieldData.dataType?.match(/text$/i)) return; - setFieldData((prev)=>{ - let newFieldData = prev; - if (inputEl.value.match(/./)) { - delete newFieldData.notNullValue; - } else { - delete newFieldData.defaultValue; - delete newFieldData.nullValue; - } - if (inputEl.value.match(/^null$/i)) { - delete newFieldData.defaultValue; - newFieldData.nullValue = true; - } else if (inputEl.value.match(/./)) { - delete newFieldData.nullValue; - newFieldData.defaultValue = inputEl.value; - } - return newFieldData; - }); - } - }) - ] - }), - !isLiteral && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_MoreOptionsModal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - database, - setFieldData, - setTableFields, - tableFields, - targetField, - user, - currentTable, - fieldIndex - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "secondary mt-auto flex-wrap w-full xl:w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - type: "submit", - className: "secondary mt-auto py-3 w-full md:w-auto grow", - children: "Save Updates" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow", - onClick: (e)=>{ - if (initialField.current) targetField = lodash__WEBPACK_IMPORTED_MODULE_4___default().cloneDeep(initialField.current); - setTableFields((prev)=>{ - const newFields = lodash__WEBPACK_IMPORTED_MODULE_4___default().cloneDeep(prev); - if (fieldIndex && initialField.current) newFields[fieldIndex] = lodash__WEBPACK_IMPORTED_MODULE_4___default().cloneDeep(initialField.current); - return newFields; - }); - if (setActiveEdit) setActiveEdit(false); - }, - children: "Cancel" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4209: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "Z": () => (/* binding */ MoreOptionsModal) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "@mui/icons-material/Close" -var Close_ = __webpack_require__(4173); -// EXTERNAL MODULE: ./components/form/FormInput.jsx + 2 modules -var FormInput = __webpack_require__(7901); -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/admin/databases/fields/fields-inputs/CSSFiles.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - */ function CSSFiles({ targetField }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!targetField?.richText) return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ state: string[], dispatch: React.Dispatch<React.SetStateAction<string[]>> ]} */ // @ts-ignore - const [cssFiles, setCssFiles] = external_react_default().useState(targetField.cssFiles || []); - /** @type {React.Ref<HTMLInputElement | null>} */ const cssFileInputRef = external_react_default().useRef(null); - external_react_default().useEffect(()=>{ - targetField.cssFiles = cssFiles; - }, [ - cssFiles - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-2 w-full my-4", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "label text-xs text-slate-500", - children: "Add CSS" - }), - cssFiles.map((url, index)=>/*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: url - }), - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.X, { - size: 20, - onClick: ()=>{ - setCssFiles((prev)=>prev.filter((ln)=>ln !== url)); - }, - className: "cursor-pointer hover:opacity-60 " - }) - ] - }, index + 1)), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "row w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - name: "css-file", - placeholder: "CSS file URL", - elementRef: cssFileInputRef - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "secondary outlined", - onClick: ()=>{ - const url = cssFileInputRef.current?.value; - if (url?.match(/./)) { - setCssFiles((prev)=>[ - ...new Set([ - ...prev, - url - ]) - ]); - } - }, - children: "Add" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-slate-600", - children: "Add CSS files to your Rich Text field" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/fields/fields-inputs/EncryptionSelect.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let EncryptionSelect_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>} props.setFieldData - React state dispatch function - */ function EncryptionSelect({ targetField , setFieldData }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "encryption_field", - children: "Encrypt?" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "encryption_field", - id: "encryption_field", - className: "px-2", - defaultValue: targetField?.encrypted ? "Yes" : "No", - onChange: (e)=>{ - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - if (e.target.value.match(/yes/i)) { - existingFieldData.encrypted = true; - } else { - existingFieldData.encrypted = false; - delete existingFieldData.encrypted; - } - return existingFieldData; - }); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/fields/fields-inputs/ForeignKey.jsx -var ForeignKey = __webpack_require__(3699); -;// CONCATENATED MODULE: ./components/admin/databases/fields/fields-inputs/AutoIncrement.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let AutoIncrement_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>} [props.setFieldData] - React state dispatch function - */ function AutoIncrement({ targetField , setFieldData }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ return null; - if (!targetField?.dataType?.match(/int$/i)) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "encryption_field", - children: "Auto Increment?" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "encryption_field", - id: "encryption_field", - className: "px-2", - defaultValue: targetField?.autoIncrement ? "Yes" : "No", - onChange: (e)=>{ - if (targetField) { - if (e.target.value?.match(/yes/i)) { - targetField.autoIncrement = true; - } else { - delete targetField.autoIncrement; - } - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/fields/fields-inputs/RegexPattern.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let RegexPattern_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - */ function RegexPattern({ targetField }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-2 w-full", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "encryption_field", - children: "Pattern" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-slate-500", - children: 'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.' - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "Regex Pattern. Eg: '\\\\.[a-z]+'", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl?.value?.length > 0) { - targetField.pattern = inputEl.value; - } else { - delete targetField.pattern; - } - }, - defaultValue: targetField?.pattern - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - placeholder: "Regex Pattern Flags. Eg: igm", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl?.value?.length > 0) { - targetField.patternFlags = inputEl.value; - } else { - delete targetField.patternFlags; - } - }, - defaultValue: targetField?.patternFlags - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -// EXTERNAL MODULE: ./components/general/Modal.jsx -var Modal = __webpack_require__(9471); -;// CONCATENATED MODULE: ./components/admin/databases/fields/fields-inputs/UniqueFieldSelect.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>} props.setFieldData - React state dispatch function - */ function UniqueFieldSelect({ targetField , setFieldData }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "unique_field", - children: "Unique Field?" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "unique_field", - id: "unique_field", - className: "px-2", - defaultValue: targetField?.unique ? "Yes" : "No", - onChange: (e)=>{ - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - if (e.target.value.match(/yes/i)) { - existingFieldData.unique = true; - } else { - existingFieldData.unique = false; - delete existingFieldData.unique; - } - return existingFieldData; - }); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/MoreOptionsModal.jsx -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 2 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [ExistingFieldEdit.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\ExistingFieldEdit.jsx - * `import` Statement Found in [NewFieldTemp.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\NewFieldTemp.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>} props.setFieldData - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [props.tableFields] - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>} [props.setTableFields] - * @param {import("@/package-shared/types").UserType} props.user - * @param {number} props.fieldIndex - */ function MoreOptionsModal({ targetField , currentTable , database , tableFields , setTableFields , setFieldData , user , fieldIndex , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [openExtraOptions, setOpenExtraOptions] = external_react_default().useState(false); - /** @type {React.Ref<import("@/package-shared/types").DSQL_FieldSchemaType>} */ const initialField = external_react_default().useRef(external_lodash_default().cloneDeep(targetField)); - external_react_default().useEffect(()=>{}, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "button outlined gray mt-5 w-full xl:w-auto", - onClick: ()=>{ - setOpenExtraOptions(true); - }, - children: "More" - }), - /*#__PURE__*/ jsx_runtime_.jsx(Modal/* default */.Z, { - open: openExtraOptions, - onClose: ()=>{ - if (initialField.current) { - const oldTargetField = external_lodash_default().cloneDeep(initialField.current); - targetField = oldTargetField; - } - setOpenExtraOptions(false); - }, - maxWidth: "600px", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xl", - children: "More Options" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(CSSFiles, { - targetField: targetField - }), - /*#__PURE__*/ jsx_runtime_.jsx(UniqueFieldSelect, { - targetField: targetField, - setFieldData: setFieldData - }), - /*#__PURE__*/ jsx_runtime_.jsx(EncryptionSelect, { - targetField: targetField, - setFieldData: setFieldData - }), - currentTable && /*#__PURE__*/ jsx_runtime_.jsx(ForeignKey/* default */.Z, { - targetField: targetField, - setFieldData: setFieldData, - database: database, - tableFields: tableFields, - setTableFields: setTableFields, - currentTable: currentTable, - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx(AutoIncrement, { - targetField: targetField, - setFieldData: setFieldData - }), - /*#__PURE__*/ jsx_runtime_.jsx(RegexPattern, { - targetField: targetField - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full outlined more-padding", - onClick: ()=>{ - setOpenExtraOptions(false); - }, - children: "Done" - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 3699: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ForeignKey) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6729); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - DSQL schema field object - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>} [props.setFieldData] - React state dispatch function - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [props.tableFields] - All Fields Array - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>} [props.setTableFields] - React state dispatch function - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - MYSQL user_databases object - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - MYSQL user_databases object - * @param {import("@/package-shared/types").UserType} [props.user] - User object - * @param {React.Dispatch<React.SetStateAction<boolean>>} [props.setActiveEdit] - React state dispatch function - * @param {boolean} [props.activeClonedTable] - Is table an active clone? - */ function ForeignKey({ targetField , setFieldData , tableFields , setTableFields , database , currentTable , user , setActiveEdit , activeClonedTable , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [isForeignKey, setIsForeignKey] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(targetField?.foreignKey ? true : false); - /** @type {any} */ const tablesState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type {[import("@/package-shared/types").DSQL_TableSchemaType[] | null, React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_TableSchemaType[]>>]} */ const [tables, setTables] = tablesState; - /** @type {any} */ const foreignKeyTableState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type {[import("@/package-shared/types").DSQL_TableSchemaType | null, React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_TableSchemaType>>]} */ const [foreignKeyTable, setForeignKeyTable] = foreignKeyTableState; - /** @type {any} */ const columnsState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type {[import("@/package-shared/types").DSQL_FieldSchemaType[] | null, React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>]} */ const [columns, setColumns] = columnsState; - /** @type {any} */ const foreignKeyTableColumnState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type {[import("@/package-shared/types").DSQL_FieldSchemaType | null, React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType>>]} */ const [foreignKeyTableColumn, setForeignKeyTableColumn] = foreignKeyTableColumnState; - const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (!isForeignKey && !targetField?.foreignKey) return; - // const fetchUrl =`/api/getUserSchemaData?dbSlug=${database.db_slug}${window.location.search.match("delegated=true") ? "&delegated=true" : ""}`; - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(`/api/getUserSchemaData`).then((res)=>{ - if (res.success) { - try { - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const userSchemaData = res.schemaData; - const targetDatabase = userSchemaData.filter((db)=>db.dbFullName === database.db_full_name); - const filteredTables = currentTable ? targetDatabase[0].tables.filter((table)=>table.tableName !== currentTable.tableName) : targetDatabase[0].tables; - setTables(filteredTables); - if (targetField?.foreignKey) { - const destinationTargetTable = filteredTables.filter((table)=>table.tableName === targetField?.foreignKey?.destinationTableName); - setForeignKeyTable(destinationTargetTable[0]); - if (destinationTargetTable[0]?.fields) setColumns(destinationTargetTable[0].fields); - } - // const targetTable = targetDatabase[0].tables.filter(table => table.tableName === "") - } catch (/** @type {any} */ error) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/clientError", { - method: "post", - body: { - component: "ForeignKey/fetch-error-getUserSchemaData/lines-65-77", - message: error.message, - user: user - } - }); - } - } - }); - }, [ - isForeignKey - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-2 w-full mt-2 relative", - style: { - minWidth: "70px" - }, - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("label", { - htmlFor: "foreign_key_field", - className: "flex flex-wrap items-center gap-2 mt-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Foreign Key?" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "dropdown-wrapper reversed text-sm items-start", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600", - children: "Info" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "dropdown mt-0 xl:-mt-2", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Foriegn key links the current table to another table" - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", { - name: "foreign_key_field", - id: "foreign_key_field", - className: "px-2", - defaultValue: targetField?.foreignKey ? "Yes" : "No", - onChange: (e)=>{ - if (e.target.value.match(/yes/i)) { - setIsForeignKey(true); - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - existingFieldData["foreignKey"] = { - foreignKeyName: undefined, - destinationTableName: undefined, - destinationTableColumnName: undefined, - cascadeDelete: true - }; - return existingFieldData; - }); - } - } else { - setIsForeignKey(false); - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - delete existingFieldData.foreignKey; - return existingFieldData; - }); - } - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "No", - children: "No" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "Yes", - children: "Yes" - }) - ] - }), - isForeignKey && tables && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", { - name: "foreign_key_destination_table_name", - id: "foreign_key_destination_table_name", - className: "px-2", - defaultValue: targetField?.foreignKey?.destinationTableName ? targetField.foreignKey.destinationTableName : undefined, - onChange: (e)=>{ - /** @type {HTMLSelectElement} */ const selectEl = e.target; - if (e.target.value?.match(/--/)) { - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - /** @type {import("@/package-shared/types").DSQL_ForeignKeyType|undefined} */ const targetForeignKey = existingFieldData.foreignKey; - if (targetForeignKey) targetForeignKey.destinationTableName = undefined; - return existingFieldData; - }); - } else { - selectEl.dataset.destinationTableName = undefined; - } - return; - } - const targetTable = tables.filter((tb)=>tb.tableName === e.target.value)[0]; - setForeignKeyTable(targetTable); - if (targetTable?.fields) setColumns(targetTable.fields); - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - /** @type {import("@/package-shared/types").DSQL_ForeignKeyType|undefined} */ const targetForeignKey = existingFieldData.foreignKey; - if (targetForeignKey) targetForeignKey.destinationTableName = e.target.value; - return existingFieldData; - }); - } else { - e.target.dataset.destinationTableName = e.target.value; - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "--", - children: "--Select Table--" - }), - tables.map((table, index)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: table.tableName, - children: table.tableFullName - }, index + 1); - }) - ] - }) - }), - foreignKeyTable && columns && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", { - name: "foreign_key_destination_table_column_name", - id: "foreign_key_destination_table_column_name", - className: "px-2", - defaultValue: targetField?.foreignKey?.destinationTableColumnName ? targetField.foreignKey.destinationTableColumnName : undefined, - onChange: (e)=>{ - try { - const targetColumn = columns.filter((column)=>column.fieldName === e.target.value)[0]; - setForeignKeyTableColumn(targetColumn); - if (e.target.value?.match(/--/)) { - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - /** @type {import("@/package-shared/types").DSQL_ForeignKeyType|undefined} */ const targetForeignKey = existingFieldData.foreignKey; - if (targetForeignKey) targetForeignKey.destinationTableColumnName = undefined; - return existingFieldData; - }); - } - return; - } - const keyName = `dsql_${database.user_id}_${database.db_slug}_${Date.now()}`; - if (setFieldData) { - setFieldData((prev)=>{ - let existingFieldData = prev; - existingFieldData.dataType = targetColumn.dataType; - /** @type {import("@/package-shared/types").DSQL_ForeignKeyType|undefined} */ const targetForeignKey = existingFieldData.foreignKey; - if (targetForeignKey) { - targetForeignKey.destinationTableColumnName = targetColumn.fieldName; - targetForeignKey.destinationTableColumnType = targetColumn.dataType; - targetForeignKey.foreignKeyName = keyName; - } - return existingFieldData; - }); - } else { - e.target.dataset.dataType = targetColumn.dataType; - e.target.dataset.destinationTableColumnName = targetColumn.fieldName; - // e.target.dataset.foreignKeyName = `dsql_${user.id}_${tableName}_table_${targetField?.fieldName ? targetField.fieldName : "{{__tmp_field_name}}"}_${foreignKeyTable.tableName}_${targetColumn.fieldName}_ref`; - e.target.dataset.foreignKeyName = keyName; - } - } catch (/** @type {any} */ error) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/admin/clientError", { - method: "post", - body: { - component: "ForeignKey/lines-232-264", - message: error.message, - user: user - } - }); - } - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "--", - children: "--Select Column--" - }), - columns.map((field, index)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: field.fieldName, - children: field.fieldName - }, index + 1); - }) - ] - }), - activeClonedTable && foreignKeyTableColumn && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "secondary w-full", - onClick: (e)=>{ - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)("/api/updateClonedTableForeignKeys", { - method: "post", - body: { - tableData: currentTable, - database: database.db_full_name, - dbSlug: database.db_slug, - delegated: window.location?.search?.match(/delegated=true/i) ? true : false - } - }, true).then((res)=>{ - if (res.success) { - window.alert("Foreign Key Added Successfully!"); - } else { - window.alert("Update Failed, Please Try again."); - } - setTimeout(()=>{ - if (setActiveEdit) setActiveEdit(false); - }, 1000); - }); - }, - children: "Add Foreign Key" - }) - ] - }), - activeClonedTable && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "light-gray w-full", - onClick: (e)=>{ - delete targetField.foreignKey; - setActiveEdit && setActiveEdit(false); - }, - children: "Cancel" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4838: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ JSONTextOption) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - Field object - */ function JSONTextOption({ targetField }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "rich_text_option", - children: "Text Type" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("select", { - name: "rich_text_option", - id: "rich_text_option", - className: "px-2", - onChange: (e)=>{ - delete targetField.json; - delete targetField.richText; - delete targetField.yaml; - delete targetField.html; - delete targetField.javascript; - delete targetField.shell; - switch(e.target.value){ - case "plain": - break; - case "rte": - targetField.richText = true; - break; - case "json": - targetField.json = true; - break; - case "yaml": - targetField.yaml = true; - break; - case "html": - targetField.html = true; - break; - case "css": - targetField.css = true; - break; - case "javascript": - targetField.javascript = true; - break; - case "shell": - targetField.shell = true; - break; - default: - break; - } - }, - defaultValue: (()=>{ - if (targetField.richText) return "rte"; - if (targetField.json) return "json"; - if (targetField.yaml) return "yaml"; - if (targetField.html) return "html"; - if (targetField.javascript) return "javascript"; - if (targetField.shell) return "shell"; - if (targetField.css) return "css"; - return "plain"; - })(), - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "plain", - children: "Plain Text" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "rte", - children: "Rich Text" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "json", - children: "JSON" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "yaml", - children: "YAML" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "html", - children: "HTML" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "css", - children: "CSS" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "javascript", - children: "Javascript" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("option", { - value: "shell", - children: "Shell" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/9971.js b/dsql-app/.local_dist/server/chunks/9971.js deleted file mode 100644 index a8bf815..0000000 --- a/dsql-app/.local_dist/server/chunks/9971.js +++ /dev/null @@ -1,231 +0,0 @@ -exports.id = 9971; -exports.ids = [9971]; -exports.modules = { - -/***/ 6069: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -const { hashPassword , } = __webpack_require__(5382); -const serverError = __webpack_require__(2163); -const httpsRequest = __webpack_require__(722); -const DB_HANDLER = __webpack_require__(2224); -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * - * @typedef {object} GithubUserPayload - * @property {string} login - Full name merged eg. "JohnDoe" - * @property {number} id - github user id - * @property {string} node_id - Some other id - * @property {string} avatar_url - profile picture - * @property {string} gravatar_id - some other id - * @property {string} url - Github user URL - * @property {string} html_url - User html URL - whatever that means - * @property {string} followers_url - Followers URL - * @property {string} following_url - Following URL - * @property {string} gists_url - Gists URL - * @property {string} starred_url - Starred URL - * @property {string} subscriptions_url - Subscriptions URL - * @property {string} organizations_url - Organizations URL - * @property {string} repos_url - Repositories URL - * @property {string} received_events_url - Received Events URL - * @property {string} type - Common value => "User" - * @property {boolean} site_admin - Is site admin or not? Boolean - * @property {string} name - More like "username" - * @property {string} company - User company - * @property {string} blog - User blog URL - * @property {string} location - User Location - * @property {string} email - User Email - * @property {string} hireable - Is user hireable - * @property {string} bio - User bio - * @property {string} twitter_username - User twitter username - * @property {number} public_repos - Number of public repositories - * @property {number} public_gists - Number of public gists - * @property {number} followers - Number of followers - * @property {number} following - Number of following - * @property {string} created_at - Date created - * @property {string} updated_at - Date updated - */ /** - * Login/signup a github user - * ============================================================================== - * @async - * - * @param {Object} params - foundUser if any - * @param {string} params.code - github auth token - * @param {string} params.clientId - github client Id - * @param {string} params.clientSecret - github client Secret - * - * @returns {Promise<GithubUserPayload|null|undefined>} - */ module.exports = async function githubLogin({ code , clientId , clientSecret }) { - /** @type {GithubUserPayload | undefined} */ let gitHubUser; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ // const response = await fetch(`https://github.com/login/oauth/access_token?client_id=${process.env.DSQL_GITHUB_ID}`); - const response = await httpsRequest({ - method: "POST", - hostname: "github.com", - path: `/login/oauth/access_token?client_id=${clientId}&client_secret=${clientSecret}&code=${code}`, - headers: { - Accept: "application/json", - "User-Agent": "*" - }, - scheme: "https" - }); - // `https://github.com/login/oauth/access_token?client_id=${process.env.DSQL_GITHUB_ID}&client_secret=${process.env.DSQL_GITHUB_SECRET}&code=${code}`, - // body: JSON.stringify({ - // client_id: process.env.DSQL_GITHUB_ID, - // client_secret: process.env.DSQL_GITHUB_SECRET, - // code: code, - // }), - const accessTokenObject = JSON.parse(response); - if (!accessTokenObject?.access_token) { - return gitHubUser; - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const userDataResponse = await httpsRequest({ - method: "GET", - hostname: "api.github.com", - path: "/user", - headers: { - Authorization: `Bearer ${accessTokenObject.access_token}`, - "User-Agent": "*" - }, - scheme: "https" - }); - gitHubUser = JSON.parse(userDataResponse); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (!gitHubUser?.email && gitHubUser) { - const existingGithubUser = await DB_HANDLER(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${gitHubUser.id}'`); - if (existingGithubUser && existingGithubUser[0]) { - gitHubUser.email = existingGithubUser[0].email; - } - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - console.log("ERROR in githubLogin.js backend function =>", error.message); - // serverError({ - // component: "/api/social-login/github-auth/catch-error", - // message: error.message, - // user: user, - // }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - return gitHubUser; -}; - - -/***/ }), - -/***/ 5382: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -// @ts-check -const { createHmac } = __webpack_require__(6113); -// -/** - * # Password Hash function - * @param {string} password - * @returns - */ function hashPassword(password) { - const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD || ""); - hmac.update(password); - let hashed = hmac.digest("base64"); - return hashed; -} -exports.hashPassword = hashPassword; // export const comparePasswords = async (password) => { - // const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD); - // hmac.update(password); - // let hashed = hmac.digest("base64"); - // let dbPass = await global.DB_HANDLER(`SELECT * FROM users WHERE password = '${hashed}'`); - // console.log(dbPass); - // return dbPass; - // }; - - -/***/ }), - -/***/ 2127: -/***/ ((module) => { - -"use strict"; -// @ts-check -/** - * Convert Camel Joined Text to Camel Spaced Text - * ============================================================================== - * @description this function takes a camel cased text without spaces, and returns - * a camel-case-spaced text - * - * @param {string} text - text string without spaces - * - * @returns {string | null} - */ -module.exports = function camelJoinedtoCamelSpace(text) { - if (!text?.match(/./)) { - return ""; - } - if (text?.match(/ /)) { - return text; - } - if (text) { - let textArray = text.split(""); - let capIndexes = []; - for(let i = 0; i < textArray.length; i++){ - const char = textArray[i]; - if (i === 0) continue; - if (char.match(/[A-Z]/)) { - capIndexes.push(i); - } - } - let textChunks = [ - `${textArray[0].toUpperCase()}${text.substring(1, capIndexes[0])}`, - ]; - for(let j = 0; j < capIndexes.length; j++){ - const capIndex = capIndexes[j]; - if (capIndex === 0) continue; - const startIndex = capIndex + 1; - const endIndex = capIndexes[j + 1]; - textChunks.push(`${textArray[capIndex].toUpperCase()}${text.substring(startIndex, endIndex)}`); - } - return textChunks.join(" "); - } else { - return null; - } -}; - - -/***/ }) - -}; -; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/chunks/font-manifest.json b/dsql-app/.local_dist/server/chunks/font-manifest.json deleted file mode 100644 index 048107a..0000000 --- a/dsql-app/.local_dist/server/chunks/font-manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "url": "https://fonts.googleapis.com/css?family=Poppins", - "content": "@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - }, - { - "url": "https://fonts.googleapis.com/css?family=Inter", - "content": "@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - }, - { - "url": "https://fonts.googleapis.com/css?family=IBM+Plex+Mono", - "content": "@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - } -] \ No newline at end of file diff --git a/dsql-app/.local_dist/server/font-manifest.json b/dsql-app/.local_dist/server/font-manifest.json deleted file mode 100644 index 048107a..0000000 --- a/dsql-app/.local_dist/server/font-manifest.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "url": "https://fonts.googleapis.com/css?family=Poppins", - "content": "@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - }, - { - "url": "https://fonts.googleapis.com/css?family=Inter", - "content": "@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - }, - { - "url": "https://fonts.googleapis.com/css?family=IBM+Plex+Mono", - "content": "@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}" - } -] \ No newline at end of file diff --git a/dsql-app/.local_dist/server/functions-config-manifest.json b/dsql-app/.local_dist/server/functions-config-manifest.json new file mode 100644 index 0000000..996cd78 --- /dev/null +++ b/dsql-app/.local_dist/server/functions-config-manifest.json @@ -0,0 +1 @@ +{"version":1,"functions":{}} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/interception-route-rewrite-manifest.js b/dsql-app/.local_dist/server/interception-route-rewrite-manifest.js new file mode 100644 index 0000000..24f77ba --- /dev/null +++ b/dsql-app/.local_dist/server/interception-route-rewrite-manifest.js @@ -0,0 +1 @@ +self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]"; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/middleware-build-manifest.js b/dsql-app/.local_dist/server/middleware-build-manifest.js index ec8dac6..2af745d 100644 --- a/dsql-app/.local_dist/server/middleware-build-manifest.js +++ b/dsql-app/.local_dist/server/middleware-build-manifest.js @@ -1 +1 @@ -self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js","static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/3935-eea593fa60dfd620.js","static/css/65efe10b506f9812.css","static/chunks/pages/index-c2ab88c2111475dd.js"],"/404":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/404-d04d8d42f75218d9.js"],"/500":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/500-7db225cc6b4dea2c.js"],"/_app":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/css/38c6a6484b610a50.css","static/chunks/pages/_app-881c4f419bb13dab.js"],"/_error":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/about":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/3935-eea593fa60dfd620.js","static/chunks/pages/about-76deaa37497c062c.js"],"/admin":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/3181-1097b37499196dce.js","static/chunks/5667-9e7b94f8ce529764.js","static/chunks/pages/admin-81e2733c0d783481.js"],"/admin/[user_id]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/3181-1097b37499196dce.js","static/chunks/5667-9e7b94f8ce529764.js","static/chunks/pages/admin/[user_id]-e36cc5d13c2aa929.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/pages/admin/[user_id]/api-keys-ad926df40536b287.js"],"/admin/[user_id]/connect":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/pages/admin/[user_id]/connect-8973f4ea35b17adf.js"],"/admin/[user_id]/databases":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/3181-1097b37499196dce.js","static/chunks/pages/admin/[user_id]/databases-2ede91ae9bfe108a.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/pages/admin/[user_id]/databases/[single]-91b6e8d432bef987.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-6fe32fdcf255139c.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/9967-c027b915261dae19.js","static/chunks/8887-5917115e54cd417b.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a60b50dd21c29ae2.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/8473-1a1faf3d4d34beef.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9967-c027b915261dae19.js","static/chunks/8887-5917115e54cd417b.js","static/chunks/7200-4c384098300f07db.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-7b76b5c228e273d4.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/3795-b7a314b891092ea4.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-cb2910aa3bd12a22.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-512e452212994e35.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/94726e6d-f5320de901b4c44f.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/9572-f67b1194a0e6ae72.js","static/chunks/1502-965711da5f99a5c8.js","static/chunks/8446-a36a685092b53a06.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9967-c027b915261dae19.js","static/chunks/4893-e30c16360c86c67d.js","static/chunks/9788-84477f8e20625988.js","static/chunks/9035-b11038b244e852f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-0d9a8a82c8b584d3.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/94726e6d-f5320de901b4c44f.js","static/chunks/9572-f67b1194a0e6ae72.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9967-c027b915261dae19.js","static/chunks/4893-e30c16360c86c67d.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-4d03eae9a64fe6a7.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/1502-965711da5f99a5c8.js","static/chunks/8446-a36a685092b53a06.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9788-84477f8e20625988.js","static/chunks/9035-b11038b244e852f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-3a14a471d2dc7b00.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/1502-965711da5f99a5c8.js","static/chunks/8446-a36a685092b53a06.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9788-84477f8e20625988.js","static/chunks/9035-b11038b244e852f0.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-a15e553c68e1ca23.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/1502-965711da5f99a5c8.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9788-84477f8e20625988.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-0ecd226005afec57.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/94726e6d-f5320de901b4c44f.js","static/chunks/9572-f67b1194a0e6ae72.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9967-c027b915261dae19.js","static/chunks/4893-e30c16360c86c67d.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab993bc50ce1e800.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/94726e6d-f5320de901b4c44f.js","static/chunks/9572-f67b1194a0e6ae72.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/9967-c027b915261dae19.js","static/chunks/4893-e30c16360c86c67d.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-09cebcb0b429f6de.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/5949-b1c68b62cd5dbfee.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-c33e649f1474fb77.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/2870-4390329ae1d5a1f2.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f7cdffc0b0c094c6.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-21db218c89054e75.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/2870-4390329ae1d5a1f2.js","static/chunks/9719-14cc8b76a1deed3c.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-3e4d353e902f53ae.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/2870-4390329ae1d5a1f2.js","static/chunks/9719-14cc8b76a1deed3c.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-36cc73c2fdadfc25.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/9967-c027b915261dae19.js","static/chunks/8887-5917115e54cd417b.js","static/chunks/pages/admin/[user_id]/databases/add-database-e3a5509e700b0e80.js"],"/admin/[user_id]/media":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/4156-f3d2d008f94f3178.js","static/chunks/pages/admin/[user_id]/media-922d349166d14d18.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/4156-f3d2d008f94f3178.js","static/chunks/pages/admin/[user_id]/media/[...folder]-773d7108b2688df4.js"],"/admin/[user_id]/schema":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/8473-1a1faf3d4d34beef.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7200-4c384098300f07db.js","static/chunks/pages/admin/[user_id]/schema-d264203c84a34e72.js"],"/admin/[user_id]/settings":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/9967-c027b915261dae19.js","static/chunks/3181-1097b37499196dce.js","static/chunks/8374-f28680e628b18bd5.js","static/chunks/5667-9e7b94f8ce529764.js","static/chunks/5114-a70f18877cc7f8bc.js","static/chunks/pages/admin/[user_id]/settings-fed09966c6dcd870.js"],"/admin/[user_id]/users":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/5949-b1c68b62cd5dbfee.js","static/chunks/pages/admin/[user_id]/users-6de0335d6b77da5f.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/pages/admin/[user_id]/users/add-user-c50fb941e687320a.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/5949-b1c68b62cd5dbfee.js","static/chunks/pages/admin/[user_id]/users/databases-ee8daf5a492656f7.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/5949-b1c68b62cd5dbfee.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-8ce86ff54e77daca.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/9365-101d5c9d637cef9a.js","static/chunks/2870-4390329ae1d5a1f2.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-cba9dda9369d222a.js"],"/blog":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/blog-be6db5dd2389f8c4.js"],"/contact":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/contact-513427eea0db408d.js"],"/create-account":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/8374-f28680e628b18bd5.js","static/chunks/5114-a70f18877cc7f8bc.js","static/chunks/pages/create-account-c97da041b7809649.js"],"/docs":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/docs-de42203d30b1880d.js"],"/docs/[page]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/docs/[page]-3602862f9a9542f8.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/docs/[page]/[sub-page]-b3641ae1942e2312.js"],"/email-verification":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/email-verification-2643dd10f1b54d59.js"],"/login":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/8374-f28680e628b18bd5.js","static/chunks/pages/login-5453e8ec28f13db7.js"],"/logout":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/logout-3c3e2d0c564c405f.js"],"/pricing":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/pricing-e193043fd895ccd5.js"],"/privacy":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/privacy-6a6371ab4eda9c15.js"],"/redirect":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/redirect-f189e8f0d6ae1482.js"],"/reset-password":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/pages/reset-password-a754110c3b3e20fb.js"],"/send-password-reset-link":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/send-password-reset-link-62def12808387ec7.js"],"/su":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/3695-c03f5685e1b79345.js","static/chunks/pages/su-0929bdda8a625d2f.js"],"/su/backups":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/pages/su/backups-4a9e96c30acc4626.js"],"/su/console":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/ed150ef9-713e0b995a8779c6.js","static/chunks/493-ec86d71e0fece010.js","static/chunks/5313-568ff7314fa4913c.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-46c6d0d0303e04b9.js"],"/su/docs":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/5622-0b01b71a2de3acf8.js","static/chunks/pages/su/docs-b48cfe163578ba42.js"],"/su/docs/create-page":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/2452-ed265b549204d978.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/2378-3a97fbefe0f48bac.js","static/chunks/pages/su/docs/create-page-9be0d237216b00cd.js"],"/su/docs/edit-page":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/2452-ed265b549204d978.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/2378-3a97fbefe0f48bac.js","static/chunks/pages/su/docs/edit-page-4892c3a874c645b3.js"],"/su/docs/pages":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/5622-0b01b71a2de3acf8.js","static/chunks/pages/su/docs/pages-5eee4e47bc092505.js"],"/su/docs/pages/[id]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/2452-ed265b549204d978.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/2378-3a97fbefe0f48bac.js","static/chunks/pages/su/docs/pages/[id]-abedeaddb98ac372.js"],"/su/envar":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/pages/su/envar-42f3065b06c71be8.js"],"/su/error-logs":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/3695-c03f5685e1b79345.js","static/chunks/pages/su/error-logs-5c9265bc2ac8176f.js"],"/su/login":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/su/login-522c70b6952cc65b.js"],"/su/users":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/pages/su/users-464900047fbc0228.js"],"/su/users/[single]":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/8473-1a1faf3d4d34beef.js","static/chunks/3795-b7a314b891092ea4.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/pages/su/users/[single]-65b1051395f52052.js"],"/su/users/new":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/pages/su/users/new-6cf4001cfdd2ec66.js"],"/terms":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/terms-da8c5b5b6b17b132.js"],"/unsubscribe":["static/chunks/webpack-309fbebe2073f18c.js","static/chunks/framework-4ed89e9640adfb9e.js","static/chunks/main-fd9fe2eccf11c307.js","static/chunks/pages/unsubscribe-b9517fbaaacff29b.js"]},ampFirstPages:[]}; \ No newline at end of file +self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1105-7897faceec5c28c2.js","static/chunks/9654-126cc84864d517d8.js","static/css/60c48dd4b3301227.css","static/chunks/pages/index-532424a20b7a2bf0.js"],"/404":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/404-ea399aa435cfea80.js"],"/500":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/500-7ba9270f0440a8d8.js"],"/_app":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/css/9e0355af56c249a3.css","static/chunks/pages/_app-cd983c5392320351.js"],"/_error":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/_error-69472128dcb42fe2.js"],"/about":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9654-126cc84864d517d8.js","static/chunks/pages/about-4d0a17a30a0500d1.js"],"/admin":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/8866-9b36026d12284c11.js","static/chunks/7538-4d24663ed2f4cf5c.js","static/chunks/820-56dea9360dca328f.js","static/chunks/pages/admin-49478fe846117a0e.js"],"/admin/[user_id]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/8866-9b36026d12284c11.js","static/chunks/7538-4d24663ed2f4cf5c.js","static/chunks/820-56dea9360dca328f.js","static/chunks/pages/admin/[user_id]-feea3c942d7835c6.js"],"/admin/[user_id]/api-keys":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/pages/admin/[user_id]/api-keys-573e321568dd09df.js"],"/admin/[user_id]/connect":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/pages/admin/[user_id]/connect-790f9099b66fef32.js"],"/admin/[user_id]/databases":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/8866-9b36026d12284c11.js","static/chunks/7538-4d24663ed2f4cf5c.js","static/chunks/pages/admin/[user_id]/databases-59484629b8b44f12.js"],"/admin/[user_id]/databases/[single]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/8866-9b36026d12284c11.js","static/chunks/pages/admin/[user_id]/databases/[single]-8ce2d76060c9ed77.js"],"/admin/[user_id]/databases/[single]/connect":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/pages/admin/[user_id]/databases/[single]/connect-8cc9395e06e17172.js"],"/admin/[user_id]/databases/[single]/edit-database":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/3293-731fa0758fa0e0aa.js","static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-ff76b5ff2ba45d36.js"],"/admin/[user_id]/databases/[single]/schema":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-b60634778115f32f.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1105-7897faceec5c28c2.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/3293-731fa0758fa0e0aa.js","static/chunks/1950-50556c64bfd6a337.js","static/chunks/pages/admin/[user_id]/databases/[single]/schema-4662715012e5fbec.js"],"/admin/[user_id]/databases/[single]/shell":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/8949-61dcde8a69a04065.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/pages/admin/[user_id]/databases/[single]/shell-b7f2eb4ea57ef7f4.js"],"/admin/[user_id]/databases/[single]/tables":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables-83300661b97dcb65.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-127d67a0a413791e.js","static/chunks/8717-b60634778115f32f.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/2913-7d2040b72d4074a0.js","static/chunks/3838-4945afef2ebfef04.js","static/chunks/5680-7669f210caba7d73.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/6156-05a27ce6a6fd29e7.js","static/chunks/8012-d8811518e02e800f.js","static/chunks/6460-4b0051e1ff7a0e1a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-af1b385f3aca5922.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-127d67a0a413791e.js","static/chunks/8717-b60634778115f32f.js","static/chunks/2913-7d2040b72d4074a0.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/6156-05a27ce6a6fd29e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-208bed39283e9dc2.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-b60634778115f32f.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/3838-4945afef2ebfef04.js","static/chunks/5680-7669f210caba7d73.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/8012-d8811518e02e800f.js","static/chunks/6460-4b0051e1ff7a0e1a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-27bbdc1d677f8cb1.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/8717-b60634778115f32f.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/3838-4945afef2ebfef04.js","static/chunks/5680-7669f210caba7d73.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/8012-d8811518e02e800f.js","static/chunks/6460-4b0051e1ff7a0e1a.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-d7fa8978def2325e.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/3838-4945afef2ebfef04.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/8012-d8811518e02e800f.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-03d47072a48fb2bd.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-127d67a0a413791e.js","static/chunks/8717-b60634778115f32f.js","static/chunks/2913-7d2040b72d4074a0.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/6156-05a27ce6a6fd29e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-45a4105fe834745e.js"],"/admin/[user_id]/databases/[single]/tables/add-table":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/94726e6d-127d67a0a413791e.js","static/chunks/8717-b60634778115f32f.js","static/chunks/2913-7d2040b72d4074a0.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/6156-05a27ce6a6fd29e7.js","static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-4cda86686f4c8cb1.js"],"/admin/[user_id]/databases/[single]/users":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/6836-dd09a62c09c3ff54.js","static/chunks/6946-fbee9d68cca6962a.js","static/chunks/pages/admin/[user_id]/databases/[single]/users-0c592ccf1f7e3651.js"],"/admin/[user_id]/databases/[single]/users/[user]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5580-b9a6e4d2e2b38b6e.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-01317598688f942e.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-db21c3e58e866586.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5580-b9a6e4d2e2b38b6e.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-21166663519cfa71.js"],"/admin/[user_id]/databases/[single]/users/add-user":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5580-b9a6e4d2e2b38b6e.js","static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-a3576b8aed90e1dc.js"],"/admin/[user_id]/databases/add-database":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/3293-731fa0758fa0e0aa.js","static/chunks/pages/admin/[user_id]/databases/add-database-2e2159e3727905b1.js"],"/admin/[user_id]/media":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/4750-16db76b374e35273.js","static/chunks/pages/admin/[user_id]/media-ef0346e9805aaaa0.js"],"/admin/[user_id]/media/[...folder]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/4750-16db76b374e35273.js","static/chunks/pages/admin/[user_id]/media/[...folder]-b99187fae5addc2e.js"],"/admin/[user_id]/schema":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1105-7897faceec5c28c2.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/304-44c7b2ac8964083c.js","static/chunks/1950-50556c64bfd6a337.js","static/chunks/pages/admin/[user_id]/schema-f60cf262b3635f37.js"],"/admin/[user_id]/settings":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/5160-e9f06aec35447872.js","static/chunks/8866-9b36026d12284c11.js","static/chunks/7538-4d24663ed2f4cf5c.js","static/chunks/9907-8d988ae445ccee04.js","static/chunks/820-56dea9360dca328f.js","static/chunks/4147-1eea8c52da913e77.js","static/chunks/pages/admin/[user_id]/settings-50a4a062813bf738.js"],"/admin/[user_id]/users":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/6946-fbee9d68cca6962a.js","static/chunks/pages/admin/[user_id]/users-f0479d26f1775a63.js"],"/admin/[user_id]/users/add-user":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/pages/admin/[user_id]/users/add-user-34fb11350f30238b.js"],"/admin/[user_id]/users/databases":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/6946-fbee9d68cca6962a.js","static/chunks/pages/admin/[user_id]/users/databases-0fb69664f52ac655.js"],"/admin/[user_id]/users/databases/[database]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/6946-fbee9d68cca6962a.js","static/chunks/pages/admin/[user_id]/users/databases/[database]-a73c4085df69b849.js"],"/admin/[user_id]/users/databases/[database]/[user]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9799-f2854771cb0bce5c.js","static/chunks/5580-b9a6e4d2e2b38b6e.js","static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-013219dc3d51c500.js"],"/blog":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/blog-1c6218c89ee93213.js"],"/contact":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/contact-cbdd66383d45e846.js"],"/create-account":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9907-8d988ae445ccee04.js","static/chunks/4147-1eea8c52da913e77.js","static/chunks/pages/create-account-7b359cd1beeea50d.js"],"/docs":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/docs-4aeb92deffd949be.js"],"/docs/[page]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/docs/[page]-37b36feefe045092.js"],"/docs/[page]/[sub-page]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/docs/[page]/[sub-page]-75f4e2d6a034367b.js"],"/docs/test":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/docs/test-8c05e3dd64c32fff.js"],"/email-verification":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/email-verification-ac88bebd78b54c3b.js"],"/login":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/9907-8d988ae445ccee04.js","static/chunks/pages/login-c85193f251d3e601.js"],"/logout":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/logout-6ece04ed45dbe82e.js"],"/privacy":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/privacy-b8ca421ac2b66641.js"],"/redirect":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/redirect-5a5c5e9981d5bf24.js"],"/reset-password":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/29107295-a5c0cca9b8761d61.js","static/chunks/pages/reset-password-aa61ba3768f9e7a8.js"],"/send-password-reset-link":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/send-password-reset-link-9afa85f55bcb85d8.js"],"/su":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su-953c49bfd46c3c67.js"],"/su/backups":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/backups-72459caf9e16f9e2.js"],"/su/console":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/ed150ef9-f63505ffd7e6bb38.js","static/chunks/2793-4754da072494369e.js","static/chunks/2016-4bbb027201c6a476.js","static/css/85fa6dafca566008.css","static/chunks/pages/su/console-0b061e9801d3c9fc.js"],"/su/docs":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/8135-acf650078aafbbbc.js","static/chunks/pages/su/docs-5762f53dd5fa7244.js"],"/su/docs/create-page":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/8521-4c189a61028357c2.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/3127-b32b189c8e4fbfb2.js","static/chunks/pages/su/docs/create-page-74f6d09fc2c1819c.js"],"/su/docs/edit-page":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/8521-4c189a61028357c2.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/3127-b32b189c8e4fbfb2.js","static/chunks/pages/su/docs/edit-page-2d4fe8c62f2d73c1.js"],"/su/docs/pages":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/8135-acf650078aafbbbc.js","static/chunks/pages/su/docs/pages-8262745ea3d391a3.js"],"/su/docs/pages/[id]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1522-ce4ccdc1c57d7ec8.js","static/chunks/8521-4c189a61028357c2.js","static/chunks/5414-7768ca31c29a305e.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/3127-b32b189c8e4fbfb2.js","static/chunks/pages/su/docs/pages/[id]-12cf238802cfc75a.js"],"/su/envar":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/envar-b17015aaf656ff9f.js"],"/su/error-logs":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/error-logs-6201f610e535041d.js"],"/su/load-balancing":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/load-balancing-ada5fc7dba043021.js"],"/su/login":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/su/login-a58f756481824c74.js"],"/su/servers":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/8717-b60634778115f32f.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/servers-6a4797f957e21c7e.js"],"/su/users":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/users-2b8c6d69a8e01bc4.js"],"/su/users/[single]":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/7623-2ea9f881dc00955d.js","static/chunks/1105-7897faceec5c28c2.js","static/chunks/8949-61dcde8a69a04065.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/users/[single]-1ee222aaae1ecc52.js"],"/su/users/new":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/2016-4bbb027201c6a476.js","static/chunks/pages/su/users/new-83a5e7c9d1345b34.js"],"/terms":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/terms-6ed8d3b12b9e850e.js"],"/unsubscribe":["static/chunks/webpack-e67b0ff03d96edf5.js","static/chunks/framework-c2373564c69ff406.js","static/chunks/main-02c55c0c38989d0c.js","static/chunks/pages/unsubscribe-647ad141423ff7eb.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"]; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/middleware-manifest.json b/dsql-app/.local_dist/server/middleware-manifest.json index 57712aa..33872a3 100644 --- a/dsql-app/.local_dist/server/middleware-manifest.json +++ b/dsql-app/.local_dist/server/middleware-manifest.json @@ -1,6 +1,6 @@ { - "sortedMiddleware": [], + "version": 3, "middleware": {}, "functions": {}, - "version": 2 + "sortedMiddleware": [] } \ No newline at end of file diff --git a/dsql-app/.local_dist/server/middleware-react-loadable-manifest.js b/dsql-app/.local_dist/server/middleware-react-loadable-manifest.js index bebba06..170749e 100644 --- a/dsql-app/.local_dist/server/middleware-react-loadable-manifest.js +++ b/dsql-app/.local_dist/server/middleware-react-loadable-manifest.js @@ -1 +1 @@ -self.__REACT_LOADABLE_MANIFEST={}; \ No newline at end of file +self.__REACT_LOADABLE_MANIFEST="{}"; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/next-font-manifest.js b/dsql-app/.local_dist/server/next-font-manifest.js new file mode 100644 index 0000000..8267a50 --- /dev/null +++ b/dsql-app/.local_dist/server/next-font-manifest.js @@ -0,0 +1 @@ +self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{},"appUsingSizeAdjust":false,"pagesUsingSizeAdjust":false}'; \ No newline at end of file diff --git a/dsql-app/.local_dist/server/next-font-manifest.json b/dsql-app/.local_dist/server/next-font-manifest.json new file mode 100644 index 0000000..25f78e7 --- /dev/null +++ b/dsql-app/.local_dist/server/next-font-manifest.json @@ -0,0 +1 @@ +{"pages":{},"app":{},"appUsingSizeAdjust":false,"pagesUsingSizeAdjust":false} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages-manifest.json b/dsql-app/.local_dist/server/pages-manifest.json index d0bc605..b0dad57 100644 --- a/dsql-app/.local_dist/server/pages-manifest.json +++ b/dsql-app/.local_dist/server/pages-manifest.json @@ -1,193 +1 @@ -{ - "/_app": "pages/_app.js", - "/_error": "pages/_error.js", - "/_document": "pages/_document.js", - "/404": "pages/404.html", - "/500": "pages/500.html", - "/api/acceptUserInvitation": "pages/api/acceptUserInvitation.js", - "/api/addAdminUserUser": "pages/api/addAdminUserUser.js", - "/api/addApiKey": "pages/api/addApiKey.js", - "/api/addDbUser": "pages/api/addDbUser.js", - "/api/addNewMediaFolder": "pages/api/addNewMediaFolder.js", - "/api/addSocialLogin": "pages/api/addSocialLogin.js", - "/api/addTableEntry": "pages/api/addTableEntry.js", - "/api/addUserTable": "pages/api/addUserTable.js", - "/api/addUserUser": "pages/api/addUserUser.js", - "/api/admin/addUserBackup": "pages/api/admin/addUserBackup.js", - "/api/addUsersTableToDatabase": "pages/api/addUsersTableToDatabase.js", - "/api/admin/clearErrorLogs": "pages/api/admin/clearErrorLogs.js", - "/api/admin/clientError": "pages/api/admin/clientError.js", - "/api/admin/getTablesForUserDatabase": "pages/api/admin/getTablesForUserDatabase.js", - "/api/admin/createNewBackup": "pages/api/admin/createNewBackup.js", - "/api/admin/docs/[action]": "pages/api/admin/docs/[action].js", - "/api/admin/getUserBackups": "pages/api/admin/getUserBackups.js", - "/api/admin/getUserData": "pages/api/admin/getUserData.js", - "/api/admin/grabBackups": "pages/api/admin/grabBackups.js", - "/api/admin/grabErrorLogs": "pages/api/admin/grabErrorLogs.js", - "/api/admin/grabFile": "pages/api/admin/grabFile.js", - "/api/admin/loginSuUser": "pages/api/admin/loginSuUser.js", - "/api/admin/runUserDbQuery": "pages/api/admin/runUserDbQuery.js", - "/api/admin/updateEnv": "pages/api/admin/updateEnv.js", - "/api/changeDbUserPassword": "pages/api/changeDbUserPassword.js", - "/api/checkDuplicateData": "pages/api/checkDuplicateData.js", - "/api/checkExistingFolder": "pages/api/checkExistingFolder.js", - "/api/clientSideAuth": "pages/api/clientSideAuth.js", - "/api/connect/disconnect": "pages/api/connect/disconnect.js", - "/api/connect/handshake": "pages/api/connect/handshake.js", - "/api/connect": "pages/api/connect.js", - "/api/connect/verify": "pages/api/connect/verify.js", - "/api/contact": "pages/api/contact.js", - "/api/createUserDatabase": "pages/api/createUserDatabase.js", - "/api/deleteApiKey": "pages/api/deleteApiKey.js", - "/api/deleteDbUser": "pages/api/deleteDbUser.js", - "/api/deleteMediaFolder": "pages/api/deleteMediaFolder.js", - "/api/deleteInvitation": "pages/api/deleteInvitation.js", - "/api/deleteTableEntry": "pages/api/deleteTableEntry.js", - "/api/deleteUser": "pages/api/deleteUser.js", - "/api/deleteUserDatabase": "pages/api/deleteUserDatabase.js", - "/api/deleteUserMedia": "pages/api/deleteUserMedia.js", - "/api/deleteUserTable": "pages/api/deleteUserTable.js", - "/api/deleteUserUser": "pages/api/deleteUserUser.js", - "/api/downloadDatabaseSchema": "pages/api/downloadDatabaseSchema.js", - "/api/exportDatabase": "pages/api/exportDatabase.js", - "/api/fetch-entries-basic": "pages/api/fetch-entries-basic.js", - "/api/get-authorized-databases": "pages/api/get-authorized-databases.js", - "/api/getDatabaseTables": "pages/api/getDatabaseTables.js", - "/api/getDelegatedDatabaseToken": "pages/api/getDelegatedDatabaseToken.js", - "/api/getDiskUsage": "pages/api/getDiskUsage.js", - "/api/getDelegatedDatabases": "pages/api/getDelegatedDatabases.js", - "/api/getUserDatabaseTables": "pages/api/getUserDatabaseTables.js", - "/api/getUserDatabases": "pages/api/getUserDatabases.js", - "/api/getUserMedia": "pages/api/getUserMedia.js", - "/api/getUserSchemaData": "pages/api/getUserSchemaData.js", - "/api/healthcheck": "pages/api/healthcheck.js", - "/api/importDatabase": "pages/api/importDatabase.js", - "/api/importDatabaseSchema": "pages/api/importDatabaseSchema.js", - "/api/infiniteScroll": "pages/api/infiniteScroll.js", - "/api/loginUser": "pages/api/loginUser.js", - "/api/logoutUser": "pages/api/logoutUser.js", - "/api/media/addPrivateMedia": "pages/api/media/addPrivateMedia.js", - "/api/media/getPrivateMedia": "pages/api/media/getPrivateMedia.js", - "/api/purgeDb": "pages/api/purgeDb.js", - "/api/query/[user_id]/get-schema": "pages/api/query/[user_id]/get-schema.js", - "/api/query/[user_id]/get": "pages/api/query/[user_id]/get.js", - "/api/query/[user_id]/update-schema-from-single-database": "pages/api/query/[user_id]/update-schema-from-single-database.js", - "/api/queryEntriesSearchTerm": "pages/api/queryEntriesSearchTerm.js", - "/api/reAuthenticateUser": "pages/api/reAuthenticateUser.js", - "/api/refreshEntry": "pages/api/refreshEntry.js", - "/api/registerUser": "pages/api/registerUser.js", - "/api/renameMedia": "pages/api/renameMedia.js", - "/api/resetDelegatedDatabaseToken": "pages/api/resetDelegatedDatabaseToken.js", - "/api/resetPassword": "pages/api/resetPassword.js", - "/api/runUserDbQuery": "pages/api/runUserDbQuery.js", - "/api/sendEmailVerificationLink": "pages/api/sendEmailVerificationLink.js", - "/api/sendPasswordResetLink": "pages/api/sendPasswordResetLink.js", - "/api/social-login/facebook-auth": "pages/api/social-login/facebook-auth.js", - "/api/social-login/github-auth": "pages/api/social-login/github-auth.js", - "/api/social-login/google-auth": "pages/api/social-login/google-auth.js", - "/api/social-login/utils/checkEmail": "pages/api/social-login/utils/checkEmail.js", - "/api/social-login/utils/checkSocialId": "pages/api/social-login/utils/checkSocialId.js", - "/api/social-login/utils/getEmailFromSocialId": "pages/api/social-login/utils/getEmailFromSocialId.js", - "/api/sql-users/delete": "pages/api/sql-users/delete.js", - "/api/sql-users/create": "pages/api/sql-users/create.js", - "/api/sql-users/update": "pages/api/sql-users/update.js", - "/api/stream/[path]": "pages/api/stream/[path].js", - "/api/sync-table-data": "pages/api/sync-table-data.js", - "/api/test/cors": "pages/api/test/cors.js", - "/api/unsubscribe": "pages/api/unsubscribe.js", - "/api/test/mail": "pages/api/test/mail.js", - "/api/updateAdminUserAccess": "pages/api/updateAdminUserAccess.js", - "/api/updateDbSchemaDataForUser": "pages/api/updateDbSchemaDataForUser.js", - "/api/updateClonedTableForeignKeys": "pages/api/updateClonedTableForeignKeys.js", - "/api/updateDbUser": "pages/api/updateDbUser.js", - "/api/updateTableEntry": "pages/api/updateTableEntry.js", - "/api/updateUser": "pages/api/updateUser.js", - "/api/updateUserDatabase": "pages/api/updateUserDatabase.js", - "/api/updateUserTable": "pages/api/updateUserTable.js", - "/api/updateUserUser": "pages/api/updateUserUser.js", - "/api/user-schema/replace-database-schema": "pages/api/user-schema/replace-database-schema.js", - "/api/user/[user_id]/add-user": "pages/api/user/[user_id]/add-user.js", - "/api/user/[user_id]/delete-user": "pages/api/user/[user_id]/delete-user.js", - "/api/user/[user_id]/get-user": "pages/api/user/[user_id]/get-user.js", - "/api/user/[user_id]/github-login": "pages/api/user/[user_id]/github-login.js", - "/api/user/[user_id]/google-login": "pages/api/user/[user_id]/google-login.js", - "/api/user/[user_id]/grab-google-user-from-token": "pages/api/user/[user_id]/grab-google-user-from-token.js", - "/api/user/[user_id]/login-user": "pages/api/user/[user_id]/login-user.js", - "/api/user/[user_id]/reauth-user": "pages/api/user/[user_id]/reauth-user.js", - "/api/user/[user_id]/send-email-code": "pages/api/user/[user_id]/send-email-code.js", - "/api/user/[user_id]/update-user": "pages/api/user/[user_id]/update-user.js", - "/api/webhooks/github-push": "pages/api/webhooks/github-push.js", - "/": "pages/index.html", - "/privacy": "pages/privacy.html", - "/redirect": "pages/redirect.html", - "/terms": "pages/terms.html", - "/about": "pages/about.html", - "/admin/[user_id]/api-keys": "pages/admin/[user_id]/api-keys.js", - "/admin/[user_id]/connect": "pages/admin/[user_id]/connect.js", - "/admin/[user_id]/databases/[single]/connect": "pages/admin/[user_id]/databases/[single]/connect.js", - "/admin/[user_id]/databases/[single]/edit-database": "pages/admin/[user_id]/databases/[single]/edit-database.js", - "/admin/[user_id]/databases/[single]": "pages/admin/[user_id]/databases/[single].js", - "/admin/[user_id]/databases/[single]/schema": "pages/admin/[user_id]/databases/[single]/schema.js", - "/admin/[user_id]/databases/[single]/shell": "pages/admin/[user_id]/databases/[single]/shell.js", - "/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js", - "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js", - "/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js", - "/admin/[user_id]/databases/[single]/tables/[single_table]/entries": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js", - "/admin/[user_id]/databases/[single]/tables/[single_table]/fields": "pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js", - "/admin/[user_id]/databases/[single]/tables/[single_table]": "pages/admin/[user_id]/databases/[single]/tables/[single_table].js", - "/admin/[user_id]/databases/[single]/tables/add-table": "pages/admin/[user_id]/databases/[single]/tables/add-table.js", - "/admin/[user_id]/databases/[single]/tables": "pages/admin/[user_id]/databases/[single]/tables.js", - "/admin/[user_id]/databases/[single]/users/[user]/change-password": "pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js", - "/admin/[user_id]/databases/[single]/users/[user]": "pages/admin/[user_id]/databases/[single]/users/[user].js", - "/admin/[user_id]/databases/[single]/users/add-social-logins": "pages/admin/[user_id]/databases/[single]/users/add-social-logins.js", - "/admin/[user_id]/databases/[single]/users/add-user": "pages/admin/[user_id]/databases/[single]/users/add-user.js", - "/admin/[user_id]/databases/[single]/users": "pages/admin/[user_id]/databases/[single]/users.js", - "/admin/[user_id]/databases/add-database": "pages/admin/[user_id]/databases/add-database.js", - "/admin/[user_id]/databases": "pages/admin/[user_id]/databases.js", - "/admin/[user_id]": "pages/admin/[user_id].js", - "/admin/[user_id]/media/[...folder]": "pages/admin/[user_id]/media/[...folder].js", - "/admin/[user_id]/media": "pages/admin/[user_id]/media.js", - "/admin/[user_id]/schema": "pages/admin/[user_id]/schema.js", - "/admin/[user_id]/settings": "pages/admin/[user_id]/settings.js", - "/admin/[user_id]/users/add-user": "pages/admin/[user_id]/users/add-user.js", - "/admin/[user_id]/users/databases/[database]/[user]": "pages/admin/[user_id]/users/databases/[database]/[user].js", - "/admin/[user_id]/users/databases/[database]": "pages/admin/[user_id]/users/databases/[database].js", - "/admin/[user_id]/users/databases": "pages/admin/[user_id]/users/databases.js", - "/admin/[user_id]/users": "pages/admin/[user_id]/users.js", - "/admin": "pages/admin.js", - "/api/addUserMedia": "pages/api/addUserMedia.js", - "/api/exportTableData": "pages/api/exportTableData.js", - "/api/fetch-media": "pages/api/fetch-media.js", - "/api/query/[user_id]/add-file": "pages/api/query/[user_id]/add-file.js", - "/api/query/[user_id]/add-image": "pages/api/query/[user_id]/add-image.js", - "/api/query/[user_id]/delete-file": "pages/api/query/[user_id]/delete-file.js", - "/api/query/[user_id]/get-private-file": "pages/api/query/[user_id]/get-private-file.js", - "/api/query/[user_id]/post": "pages/api/query/[user_id]/post.js", - "/blog": "pages/blog.html", - "/contact": "pages/contact.html", - "/create-account": "pages/create-account.js", - "/docs/[page]": "pages/docs/[page].js", - "/docs/[page]/[sub-page]": "pages/docs/[page]/[sub-page].js", - "/docs": "pages/docs.js", - "/email-verification": "pages/email-verification.js", - "/login": "pages/login.js", - "/logout": "pages/logout.js", - "/pricing": "pages/pricing.html", - "/send-password-reset-link": "pages/send-password-reset-link.js", - "/reset-password": "pages/reset-password.js", - "/su/backups": "pages/su/backups.js", - "/su/docs": "pages/su/docs.js", - "/su/docs/pages/[id]": "pages/su/docs/pages/[id].js", - "/su/docs/pages": "pages/su/docs/pages.js", - "/su/envar": "pages/su/envar.js", - "/su/error-logs": "pages/su/error-logs.js", - "/su": "pages/su.js", - "/su/login": "pages/su/login.js", - "/su/users/[single]": "pages/su/users/[single].js", - "/su/users": "pages/su/users.js", - "/su/users/new": "pages/su/users/new.js", - "/unsubscribe": "pages/unsubscribe.js", - "/su/console": "pages/su/console.js", - "/su/docs/create-page": "pages/su/docs/create-page.js", - "/su/docs/edit-page": "pages/su/docs/edit-page.js" -} \ No newline at end of file +{"/_error":"pages/_error.js","/_document":"pages/_document.js","/500":"pages/500.html","/404":"pages/404.html","/api/acceptUserInvitation":"pages/api/acceptUserInvitation.js","/api/addAdminUserUser":"pages/api/addAdminUserUser.js","/api/addApiKey":"pages/api/addApiKey.js","/api/addDbUser":"pages/api/addDbUser.js","/api/addTableEntry":"pages/api/addTableEntry.js","/api/addSocialLogin":"pages/api/addSocialLogin.js","/api/addUserTable":"pages/api/addUserTable.js","/api/addUserUser":"pages/api/addUserUser.js","/api/addUsersTableToDatabase":"pages/api/addUsersTableToDatabase.js","/api/admin/clearErrorLogs":"pages/api/admin/clearErrorLogs.js","/api/admin/addUserBackup":"pages/api/admin/addUserBackup.js","/api/admin/clientError":"pages/api/admin/clientError.js","/api/admin/createNewBackup":"pages/api/admin/createNewBackup.js","/api/admin/getTablesForUserDatabase":"pages/api/admin/getTablesForUserDatabase.js","/api/admin/docs/[action]":"pages/api/admin/docs/[action].js","/api/admin/getUserBackups":"pages/api/admin/getUserBackups.js","/api/admin/getUserData":"pages/api/admin/getUserData.js","/api/admin/grabBackups":"pages/api/admin/grabBackups.js","/api/admin/grabErrorLogs":"pages/api/admin/grabErrorLogs.js","/api/admin/grabFile":"pages/api/admin/grabFile.js","/api/admin/loginSuUser":"pages/api/admin/loginSuUser.js","/api/admin/runUserDbQuery":"pages/api/admin/runUserDbQuery.js","/api/admin/updateEnv":"pages/api/admin/updateEnv.js","/api/changeDbUserPassword":"pages/api/changeDbUserPassword.js","/api/checkDuplicateData":"pages/api/checkDuplicateData.js","/api/checkExistingFolder":"pages/api/checkExistingFolder.js","/api/clientSideAuth":"pages/api/clientSideAuth.js","/api/connect/disconnect":"pages/api/connect/disconnect.js","/api/connect/handshake":"pages/api/connect/handshake.js","/api/connect":"pages/api/connect.js","/api/connect/verify":"pages/api/connect/verify.js","/api/contact":"pages/api/contact.js","/api/createUserDatabase":"pages/api/createUserDatabase.js","/api/deleteApiKey":"pages/api/deleteApiKey.js","/api/deleteDbUser":"pages/api/deleteDbUser.js","/api/deleteInvitation":"pages/api/deleteInvitation.js","/api/deleteMediaFolder":"pages/api/deleteMediaFolder.js","/api/deleteTableEntry":"pages/api/deleteTableEntry.js","/api/deleteUser":"pages/api/deleteUser.js","/api/deleteUserDatabase":"pages/api/deleteUserDatabase.js","/api/deleteUserMedia":"pages/api/deleteUserMedia.js","/api/deleteUserTable":"pages/api/deleteUserTable.js","/api/deleteUserUser":"pages/api/deleteUserUser.js","/api/downloadDatabaseSchema":"pages/api/downloadDatabaseSchema.js","/api/exportDatabase":"pages/api/exportDatabase.js","/api/fetch-entries-basic":"pages/api/fetch-entries-basic.js","/api/get-authorized-databases":"pages/api/get-authorized-databases.js","/api/getDatabaseTables":"pages/api/getDatabaseTables.js","/api/getDelegatedDatabaseToken":"pages/api/getDelegatedDatabaseToken.js","/api/getDelegatedDatabases":"pages/api/getDelegatedDatabases.js","/api/getDiskUsage":"pages/api/getDiskUsage.js","/api/getUserDatabaseTables":"pages/api/getUserDatabaseTables.js","/api/getUserDatabases":"pages/api/getUserDatabases.js","/api/getUserMedia":"pages/api/getUserMedia.js","/api/getUserSchemaData":"pages/api/getUserSchemaData.js","/api/healthcheck":"pages/api/healthcheck.js","/api/importDatabase":"pages/api/importDatabase.js","/api/importDatabaseSchema":"pages/api/importDatabaseSchema.js","/api/infiniteScroll":"pages/api/infiniteScroll.js","/api/logoutUser":"pages/api/logoutUser.js","/api/loginUser":"pages/api/loginUser.js","/api/media/addPrivateMedia":"pages/api/media/addPrivateMedia.js","/api/media/getPrivateMedia":"pages/api/media/getPrivateMedia.js","/api/purgeDb":"pages/api/purgeDb.js","/api/addNewMediaFolder":"pages/api/addNewMediaFolder.js","/api/query/[user_id]/get-schema":"pages/api/query/[user_id]/get-schema.js","/api/query/[user_id]/get":"pages/api/query/[user_id]/get.js","/api/queryEntriesSearchTerm":"pages/api/queryEntriesSearchTerm.js","/api/reAuthenticateUser":"pages/api/reAuthenticateUser.js","/api/query/[user_id]/update-schema-from-single-database":"pages/api/query/[user_id]/update-schema-from-single-database.js","/api/renameMedia":"pages/api/renameMedia.js","/api/registerUser":"pages/api/registerUser.js","/api/resetDelegatedDatabaseToken":"pages/api/resetDelegatedDatabaseToken.js","/api/resetPassword":"pages/api/resetPassword.js","/api/refreshEntry":"pages/api/refreshEntry.js","/api/runUserDbQuery":"pages/api/runUserDbQuery.js","/api/sendEmailVerificationLink":"pages/api/sendEmailVerificationLink.js","/api/sendPasswordResetLink":"pages/api/sendPasswordResetLink.js","/api/social-login/github-auth":"pages/api/social-login/github-auth.js","/api/social-login/facebook-auth":"pages/api/social-login/facebook-auth.js","/api/social-login/google-auth":"pages/api/social-login/google-auth.js","/api/social-login/utils/checkEmail":"pages/api/social-login/utils/checkEmail.js","/api/social-login/utils/checkSocialId":"pages/api/social-login/utils/checkSocialId.js","/api/sql-users/delete":"pages/api/sql-users/delete.js","/api/sql-users/create":"pages/api/sql-users/create.js","/api/social-login/utils/getEmailFromSocialId":"pages/api/social-login/utils/getEmailFromSocialId.js","/api/sql-users/update":"pages/api/sql-users/update.js","/api/sync-table-data":"pages/api/sync-table-data.js","/api/stream/[path]":"pages/api/stream/[path].js","/api/test/cors":"pages/api/test/cors.js","/api/test/mail":"pages/api/test/mail.js","/api/unsubscribe":"pages/api/unsubscribe.js","/api/updateAdminUserAccess":"pages/api/updateAdminUserAccess.js","/api/updateDbSchemaDataForUser":"pages/api/updateDbSchemaDataForUser.js","/api/updateDbUser":"pages/api/updateDbUser.js","/api/updateClonedTableForeignKeys":"pages/api/updateClonedTableForeignKeys.js","/api/updateTableEntry":"pages/api/updateTableEntry.js","/api/updateUser":"pages/api/updateUser.js","/api/updateUserDatabase":"pages/api/updateUserDatabase.js","/api/updateUserUser":"pages/api/updateUserUser.js","/api/updateUserTable":"pages/api/updateUserTable.js","/api/user-schema/replace-database-schema":"pages/api/user-schema/replace-database-schema.js","/api/user/[user_id]/delete-user":"pages/api/user/[user_id]/delete-user.js","/api/user/[user_id]/add-user":"pages/api/user/[user_id]/add-user.js","/api/user/[user_id]/github-login":"pages/api/user/[user_id]/github-login.js","/api/user/[user_id]/get-user":"pages/api/user/[user_id]/get-user.js","/api/user/[user_id]/google-login":"pages/api/user/[user_id]/google-login.js","/api/user/[user_id]/grab-google-user-from-token":"pages/api/user/[user_id]/grab-google-user-from-token.js","/api/user/[user_id]/login-user":"pages/api/user/[user_id]/login-user.js","/api/user/[user_id]/send-email-code":"pages/api/user/[user_id]/send-email-code.js","/api/user/[user_id]/update-user":"pages/api/user/[user_id]/update-user.js","/api/user/[user_id]/reauth-user":"pages/api/user/[user_id]/reauth-user.js","/api/webhooks/github-push":"pages/api/webhooks/github-push.js","/docs/test":"pages/docs/test.html","/_app":"pages/_app.js","/admin/[user_id]/connect":"pages/admin/[user_id]/connect.js","/admin/[user_id]/databases/[single]/edit-database":"pages/admin/[user_id]/databases/[single]/edit-database.js","/about":"pages/about.html","/admin/[user_id]/api-keys":"pages/admin/[user_id]/api-keys.js","/admin/[user_id]/databases/[single]/connect":"pages/admin/[user_id]/databases/[single]/connect.js","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js","/admin/[user_id]/databases/[single]":"pages/admin/[user_id]/databases/[single].js","/admin/[user_id]/databases/[single]/shell":"pages/admin/[user_id]/databases/[single]/shell.js","/admin/[user_id]/databases/[single]/schema":"pages/admin/[user_id]/databases/[single]/schema.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js","/admin/[user_id]/databases/[single]/tables/[single_table]":"pages/admin/[user_id]/databases/[single]/tables/[single_table].js","/admin/[user_id]/databases/[single]/tables/[single_table]/fields":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js","/admin/[user_id]/databases/[single]/tables/[single_table]/entries":"pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js","/admin/[user_id]/databases/[single]/users/[user]/change-password":"pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js","/admin/[user_id]/databases/[single]/tables/add-table":"pages/admin/[user_id]/databases/[single]/tables/add-table.js","/admin/[user_id]/databases/[single]/tables":"pages/admin/[user_id]/databases/[single]/tables.js","/admin/[user_id]/databases/[single]/users/add-social-logins":"pages/admin/[user_id]/databases/[single]/users/add-social-logins.js","/admin/[user_id]/databases":"pages/admin/[user_id]/databases.js","/admin/[user_id]/databases/[single]/users/add-user":"pages/admin/[user_id]/databases/[single]/users/add-user.js","/admin/[user_id]/databases/[single]/users/[user]":"pages/admin/[user_id]/databases/[single]/users/[user].js","/admin/[user_id]/databases/add-database":"pages/admin/[user_id]/databases/add-database.js","/admin/[user_id]":"pages/admin/[user_id].js","/admin/[user_id]/databases/[single]/users":"pages/admin/[user_id]/databases/[single]/users.js","/admin/[user_id]/media/[...folder]":"pages/admin/[user_id]/media/[...folder].js","/admin/[user_id]/settings":"pages/admin/[user_id]/settings.js","/admin/[user_id]/media":"pages/admin/[user_id]/media.js","/admin/[user_id]/schema":"pages/admin/[user_id]/schema.js","/admin/[user_id]/users/add-user":"pages/admin/[user_id]/users/add-user.js","/admin/[user_id]/users/databases/[database]/[user]":"pages/admin/[user_id]/users/databases/[database]/[user].js","/admin/[user_id]/users/databases/[database]":"pages/admin/[user_id]/users/databases/[database].js","/admin/[user_id]/users/databases":"pages/admin/[user_id]/users/databases.js","/admin/[user_id]/users":"pages/admin/[user_id]/users.js","/admin":"pages/admin.js","/api/addUserMedia":"pages/api/addUserMedia.js","/api/exportTableData":"pages/api/exportTableData.js","/api/fetch-media":"pages/api/fetch-media.js","/api/query/[user_id]/get-private-file":"pages/api/query/[user_id]/get-private-file.js","/api/query/[user_id]/delete-file":"pages/api/query/[user_id]/delete-file.js","/api/query/[user_id]/add-file":"pages/api/query/[user_id]/add-file.js","/api/query/[user_id]/add-image":"pages/api/query/[user_id]/add-image.js","/api/query/[user_id]/post":"pages/api/query/[user_id]/post.js","/blog":"pages/blog.html","/contact":"pages/contact.html","/docs":"pages/docs.js","/docs/[page]":"pages/docs/[page].js","/create-account":"pages/create-account.js","/":"pages/index.html","/docs/[page]/[sub-page]":"pages/docs/[page]/[sub-page].js","/login":"pages/login.js","/privacy":"pages/privacy.html","/redirect":"pages/redirect.html","/email-verification":"pages/email-verification.js","/reset-password":"pages/reset-password.js","/logout":"pages/logout.js","/send-password-reset-link":"pages/send-password-reset-link.js","/su/backups":"pages/su/backups.js","/su/console":"pages/su/console.js","/su/docs/create-page":"pages/su/docs/create-page.js","/su/docs/pages/[id]":"pages/su/docs/pages/[id].js","/su/docs":"pages/su/docs.js","/su/docs/edit-page":"pages/su/docs/edit-page.js","/su/error-logs":"pages/su/error-logs.js","/su":"pages/su.js","/su/envar":"pages/su/envar.js","/su/load-balancing":"pages/su/load-balancing.js","/su/docs/pages":"pages/su/docs/pages.js","/su/login":"pages/su/login.js","/su/users/[single]":"pages/su/users/[single].js","/su/users":"pages/su/users.js","/terms":"pages/terms.html","/su/servers":"pages/su/servers.js","/su/users/new":"pages/su/users/new.js","/unsubscribe":"pages/unsubscribe.js"} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/404.html b/dsql-app/.local_dist/server/pages/404.html index a2de73d..5482632 100644 --- a/dsql-app/.local_dist/server/pages/404.html +++ b/dsql-app/.local_dist/server/pages/404.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/404-d04d8d42f75218d9.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/404-ea399aa435cfea80.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/404","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/404.js.nft.json b/dsql-app/.local_dist/server/pages/404.js.nft.json index e01f3ce..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/404.js.nft.json +++ b/dsql-app/.local_dist/server/pages/404.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/RailwayAlertTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/500.html b/dsql-app/.local_dist/server/pages/500.html index 97062b8..3aab5da 100644 --- a/dsql-app/.local_dist/server/pages/500.html +++ b/dsql-app/.local_dist/server/pages/500.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/500-7db225cc6b4dea2c.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/500-7ba9270f0440a8d8.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/500","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/500.js.nft.json b/dsql-app/.local_dist/server/pages/500.js.nft.json index 1d5d478..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/500.js.nft.json +++ b/dsql-app/.local_dist/server/pages/500.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_app.js b/dsql-app/.local_dist/server/pages/_app.js index 69f1919..1a36133 100644 --- a/dsql-app/.local_dist/server/pages/_app.js +++ b/dsql-app/.local_dist/server/pages/_app.js @@ -1,300 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2888; -exports.ids = [2888]; -exports.modules = { - -/***/ 7218: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ DataSquirel) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./node_modules/next/script.js -var script = __webpack_require__(4298); -var script_default = /*#__PURE__*/__webpack_require__.n(script); -// EXTERNAL MODULE: external "next/head" -var head_ = __webpack_require__(968); -var head_default = /*#__PURE__*/__webpack_require__.n(head_); -// EXTERNAL MODULE: external "@mui/material/styles" -var styles_ = __webpack_require__(8442); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./layouts/GeneralLayout.jsx + 1 modules -var GeneralLayout = __webpack_require__(6217); -// EXTERNAL MODULE: ./components/general/PageHeadTags.jsx -var PageHeadTags = __webpack_require__(4097); -;// CONCATENATED MODULE: ./components/ErrorBoundary.jsx -// @ts-check - - - - - -class ErrorBoundary extends (external_react_default()).Component { - constructor(/** @type {any} */ props){ - super(props); - // Define a state variable to track whether is an error or not - this.state = { - hasError: false - }; - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Error | Datasquirel"; - const pageDescription = "Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms."; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx(PageHeadTags/* default */.Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - // @ts-ignore - this.state.head = head; - } - static getDerivedStateFromError() { - return { - hasError: true - }; - } - componentDidCatch(/** @type {any} */ error, /** @type {any} */ errorInfo) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "ErrorBoundary-class-component", - message: error.message + " ==== Error Info => " + errorInfo, - user: {} - } - }); - } - render() { - // Check if the error is thrown - if (this.state.hasError) { - // You can render any custom fallback UI - return /*#__PURE__*/ jsx_runtime_.jsx(GeneralLayout/* default */.Z, { - // @ts-ignore - head: this.state.head, - user: null, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper items-center px-20", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-base text-slate-400 m-0", - children: "Application Error!" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-2xl m-0 mb-4", - children: "Please try again!" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/", - className: "button outlined", - children: "Home" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - window.history.back(); - }, - children: "Go Back" - }) - ] - }) - ] - }) - }); - } - // Return children components in case of no error - return this.props.children; - } -} -/* harmony default export */ const components_ErrorBoundary = (ErrorBoundary); - -;// CONCATENATED MODULE: ./functions/theme.js -// @ts-check - -const theme = (0,styles_.createTheme)({ - typography: { - fontFamily: "inherit", - fontSize: 14 - }, - palette: { - primary: { - main: "#00948a" - }, - secondary: { - main: "#107ab8" - }, - light: { - main: "#c48ff0" - }, - white: { - main: "#ffffff" - }, - grey: { - // @ts-ignore - main: "#64748b" - }, - gray: { - main: "#64748b" - }, - dark: { - main: "#1e293b" - } - } -}); -/* harmony default export */ const functions_theme = (theme); - -;// CONCATENATED MODULE: ./pages/_app.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -// import "../styles/main.css"; - - - - -// require()(); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * App Component - * ============================================================================== - * @param {import("next/app").AppProps} props - */ function DataSquirel({ Component , pageProps }) { - /** - * React Hooks - * - * @description { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((head_default()), { - children: /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "viewport", - content: "width=device-width, initial-scale=1" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(components_ErrorBoundary, { - children: /*#__PURE__*/ jsx_runtime_.jsx(styles_.ThemeProvider, { - theme: functions_theme, - children: /*#__PURE__*/ jsx_runtime_.jsx(Component, { - ...pageProps - }) - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx((script_default()), { - src: "/scripts/main.js", - strategy: "afterInteractive" - }) - ] - }); -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8442: -/***/ ((module) => { - -module.exports = require("@mui/material/styles"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 2796: -/***/ ((module) => { - -module.exports = require("next/dist/shared/lib/head-manager-context.js"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4298,4017,8313,5264,6729,5449,913,9360,6217,4097], () => (__webpack_exec__(7218))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=636,e.ids=[636],e.modules={66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")}};var r=require("../webpack-runtime.js");r.C(e);var i=e=>r(r.s=e),s=r.X(0,[9764,8268],()=>i(68268));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_app.js.nft.json b/dsql-app/.local_dist/server/pages/_app.js.nft.json index 201ac83..96507f0 100644 --- a/dsql-app/.local_dist/server/pages/_app.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_app.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4298.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/@mui/material/styles/package.json","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/material/node/styles/index.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../node_modules/@mui/material/node/styles/createStyles.js","../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useTheme.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../node_modules/@mui/material/node/styles/withStyles.js","../../../node_modules/@mui/material/node/styles/withTheme.js","../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../package.json","../../../pages/_app.js","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_document.js b/dsql-app/.local_dist/server/pages/_document.js index e9bf052..46c70d7 100644 --- a/dsql-app/.local_dist/server/pages/_document.js +++ b/dsql-app/.local_dist/server/pages/_document.js @@ -1,229 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 660; -exports.ids = [660]; -exports.modules = { - -/***/ 4065: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Document) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_document__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6859); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function Document(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(next_document__WEBPACK_IMPORTED_MODULE_2__.Html, { - lang: "en", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(next_document__WEBPACK_IMPORTED_MODULE_2__.Head, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "author", - content: "Datasquirel" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "Copyright", - content: `Copyright (c) ${new Date().getFullYear()} Datasquirel` - }), - "dev_dev"?.match(/dev/) && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "robots", - content: "noindex,nofollow" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "preconnect", - href: "https://fonts.googleapis.com/", - crossOrigin: "anonymous" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "preconnect", - href: "https://fonts.gstatic.com", - crossOrigin: "anonymous" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "stylesheet", - href: "https://fonts.googleapis.com/css?family=Poppins" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "stylesheet", - href: "https://fonts.googleapis.com/css?family=Inter" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "stylesheet", - href: "https://fonts.googleapis.com/css?family=IBM+Plex+Mono" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "/scripts/themeSelector.js" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - httpEquiv: "Content-Type", - content: "text/html; charset=UTF-8" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:site_name", - content: "DATASQUIREL" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:type", - content: "website" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "twitter:card", - content: "summary" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - property: "og:image", - content: "https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - itemProp: "image", - content: "https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "twitter:image", - content: "https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("link", { - rel: "stylesheet", - href: "/styles/prism.css" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "/scripts/prism.js", - async: true - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - dangerouslySetInnerHTML: { - __html: "var DSQL = {}" - } - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("body", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(next_document__WEBPACK_IMPORTED_MODULE_2__.Main, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(next_document__WEBPACK_IMPORTED_MODULE_2__.NextScript, {}) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4140: -/***/ ((module) => { - -module.exports = require("next/dist/server/get-page-files.js"); - -/***/ }), - -/***/ 9716: -/***/ ((module) => { - -module.exports = require("next/dist/server/htmlescape.js"); - -/***/ }), - -/***/ 6368: -/***/ ((module) => { - -module.exports = require("next/dist/server/utils.js"); - -/***/ }), - -/***/ 6724: -/***/ ((module) => { - -module.exports = require("next/dist/shared/lib/constants.js"); - -/***/ }), - -/***/ 8743: -/***/ ((module) => { - -module.exports = require("next/dist/shared/lib/html-context.js"); - -/***/ }), - -/***/ 8524: -/***/ ((module) => { - -module.exports = require("next/dist/shared/lib/is-plain-object.js"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [6859], () => (__webpack_exec__(4065))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3220,e.ids=[3220],e.modules={49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var n=s(20883);function a(e){return(0,r.jsxs)(n.Html,{lang:"en",children:[(0,r.jsxs)(n.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(n.Main,{}),(0,r.jsx)(n.NextScript,{})]})]})}},63865:(e,t,s)=>{e.exports=s(40361)},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},82015:e=>{e.exports=require("react")},8732:e=>{e.exports=require("react/jsx-runtime")},33873:e=>{e.exports=require("path")},99929:(e,t)=>{t._=function(e){return e&&e.__esModule?e:{default:e}}}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[883],()=>s(49407));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_document.js.nft.json b/dsql-app/.local_dist/server/pages/_document.js.nft.json index 645b563..b71234d 100644 --- a/dsql-app/.local_dist/server/pages/_document.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_document.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/6859.js","../../package.json","../../../node_modules/next/dist/server/get-page-files.js","../../../node_modules/next/dist/server/htmlescape.js","../../../node_modules/next/dist/server/utils.js","../../../node_modules/next/dist/shared/lib/constants.js","../../../node_modules/next/dist/shared/lib/html-context.js","../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-page-path.js","../../../node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/next/dist/shared/lib/router/utils/index.js","../../../node_modules/next/dist/shared/lib/router/utils/sorted-routes.js","../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../package.json","../../../pages/_document.js","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_error.js b/dsql-app/.local_dist/server/pages/_error.js index bd0b3fe..b80bb75 100644 --- a/dsql-app/.local_dist/server/pages/_error.js +++ b/dsql-app/.local_dist/server/pages/_error.js @@ -1,148 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4820; -exports.ids = [4820]; -exports.modules = { - -/***/ 2648: -/***/ ((__unused_webpack_module, exports) => { - -var __webpack_unused_export__; - -__webpack_unused_export__ = ({ - value: true -}); -exports.Z = _interopRequireDefault; -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - default: obj - }; -} - - -/***/ }), - -/***/ 9185: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - - -Object.defineProperty(exports, "__esModule", ({ - value: true -})); -exports["default"] = void 0; -var _interop_require_default = (__webpack_require__(2648)/* ["default"] */ .Z); -var _react = _interop_require_default(__webpack_require__(6689)); -var _head = _interop_require_default(__webpack_require__(4957)); -const statusCodes = { - 400: "Bad Request", - 404: "This page could not be found", - 405: "Method Not Allowed", - 500: "Internal Server Error" -}; -function _getInitialProps({ res , err }) { - const statusCode = res && res.statusCode ? res.statusCode : err ? err.statusCode : 404; - return { - statusCode - }; -} -const styles = { - error: { - fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif', - height: "100vh", - textAlign: "center", - display: "flex", - flexDirection: "column", - alignItems: "center", - justifyContent: "center" - }, - desc: { - display: "inline-block", - textAlign: "left", - lineHeight: "49px", - height: "49px", - verticalAlign: "middle" - }, - h1: { - display: "inline-block", - margin: 0, - marginRight: "20px", - padding: "0 23px 0 0", - fontSize: "24px", - fontWeight: 500, - verticalAlign: "top", - lineHeight: "49px" - }, - h2: { - fontSize: "14px", - fontWeight: "normal", - lineHeight: "49px", - margin: 0, - padding: 0 - } -}; -var _Component; -class Error extends (_Component = _react.default.Component) { - render() { - const { statusCode , withDarkMode =true } = this.props; - const title = this.props.title || statusCodes[statusCode] || "An unexpected error has occurred"; - return /*#__PURE__*/ _react.default.createElement("div", { - style: styles.error - }, /*#__PURE__*/ _react.default.createElement(_head.default, null, /*#__PURE__*/ _react.default.createElement("title", null, statusCode ? `${statusCode}: ${title}` : "Application error: a client-side exception has occurred")), /*#__PURE__*/ _react.default.createElement("div", null, /*#__PURE__*/ _react.default.createElement("style", { - dangerouslySetInnerHTML: { - __html: ` - body { margin: 0; color: #000; background: #fff; } - .next-error-h1 { - border-right: 1px solid rgba(0, 0, 0, .3); - } - - ${withDarkMode ? `@media (prefers-color-scheme: dark) { - body { color: #fff; background: #000; } - .next-error-h1 { - border-right: 1px solid rgba(255, 255, 255, .3); - } - }` : ""}` - } - }), statusCode ? /*#__PURE__*/ _react.default.createElement("h1", { - className: "next-error-h1", - style: styles.h1 - }, statusCode) : null, /*#__PURE__*/ _react.default.createElement("div", { - style: styles.desc - }, /*#__PURE__*/ _react.default.createElement("h2", { - style: styles.h2 - }, this.props.title || statusCode ? title : /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, null, "Application error: a client-side exception has occurred (see the browser console for more information)"), ".")))); - } -} -Error.displayName = "ErrorPage"; -Error.getInitialProps = _getInitialProps; -Error.origGetInitialProps = _getInitialProps; -exports["default"] = Error; //# sourceMappingURL=_error.js.map - - -/***/ }), - -/***/ 4957: -/***/ ((module) => { - -module.exports = require("next/dist/shared/lib/head.js"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(9185)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2731,e.ids=[636,2731],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},54129:(e,t,r)=>{r.r(t),r.d(t,{config:()=>m,default:()=>l,getServerSideProps:()=>c,getStaticPaths:()=>d,getStaticProps:()=>p,reportWebVitals:()=>f,routeModule:()=>j,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>h});var s=r(63865),n=r(9455),i=r(30671),o=r(49407),a=r(68268),u=r(33532);let l=(0,i.M)(u,"default"),p=(0,i.M)(u,"getStaticProps"),d=(0,i.M)(u,"getStaticPaths"),c=(0,i.M)(u,"getServerSideProps"),m=(0,i.M)(u,"config"),f=(0,i.M)(u,"reportWebVitals"),h=(0,i.M)(u,"unstable_getStaticProps"),x=(0,i.M)(u,"unstable_getStaticPaths"),g=(0,i.M)(u,"unstable_getStaticParams"),y=(0,i.M)(u,"unstable_getServerProps"),b=(0,i.M)(u,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/_error",pathname:"/_error",bundlePath:"",filename:""},components:{App:a.default,Document:o.default},userland:u})},33532:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let s=r(99929),n=r(8732),i=s._(r(82015)),o=s._(r(44426)),a={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function u(e){let{res:t,err:r}=e;return{statusCode:t&&t.statusCode?t.statusCode:r?r.statusCode:404}}let l={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},desc:{lineHeight:"48px"},h1:{display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},h2:{fontSize:14,fontWeight:400,lineHeight:"28px"},wrap:{display:"inline-block"}};class p extends i.default.Component{render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||a[e]||"An unexpected error has occurred";return(0,n.jsxs)("div",{style:l.error,children:[(0,n.jsx)(o.default,{children:(0,n.jsx)("title",{children:e?e+": "+r:"Application error: a client-side exception has occurred"})}),(0,n.jsxs)("div",{style:l.desc,children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}"+(t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":"")}}),e?(0,n.jsx)("h1",{className:"next-error-h1",style:l.h1,children:e}):null,(0,n.jsx)("div",{style:l.wrap,children:(0,n.jsxs)("h2",{style:l.h2,children:[this.props.title||e?r:(0,n.jsx)(n.Fragment,{children:"Application error: a client-side exception has occurred (see the browser console for more information)"}),"."]})})]})]})}}p.displayName="ErrorPage",p.getInitialProps=u,p.origGetInitialProps=u,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8498:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:s=!1}=void 0===e?{}:e;return t||r&&s}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},44426:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return d}});let s=r(99929),n=r(24588),i=r(8732),o=n._(r(82015)),a=s._(r(13309)),u=r(39811),l=r(19241),p=r(8498);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(99794);let m=["name","httpEquiv","charSet","itemProp"];function f(e,t){let{inAmpMode:r}=t;return e.reduce(c,[]).reverse().concat(d(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,s={};return n=>{let i=!0,o=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){o=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?i=!1:t.add(n.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){let t=m[e];if(n.props.hasOwnProperty(t)){if("charSet"===t)r.has(t)?i=!1:r.add(t);else{let e=n.props[t],r=s[t]||new Set;("name"!==t||!o)&&r.has(e)?i=!1:(r.add(e),s[t]=r)}}}}return i}}()).reverse().map((e,t)=>{let s=e.key||t;if(process.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:s})})}let h=function(e){let{children:t}=e,r=(0,o.useContext)(u.AmpStateContext),s=(0,o.useContext)(l.HeadManagerContext);return(0,i.jsx)(a.default,{reduceComponentsToState:f,headManager:s,inAmpMode:(0,p.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13309:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let s=r(82015),n=()=>{},i=()=>{};function o(e){var t;let{headManager:r,reduceComponentsToState:o}=e;function a(){if(r&&r.mountedInstances){let t=s.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(o(t,e))}}return null==r||null==(t=r.mountedInstances)||t.add(e.children),a(),n(()=>{var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),()=>{var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}}),n(()=>(r&&(r._pendingUpdate=a),()=>{r&&(r._pendingUpdate=a)})),i(()=>(r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),()=>{r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)})),null}},99794:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return r}});let r=e=>{}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(8732);r(82015);var n=r(20883);function i(e){return(0,s.jsxs)(n.Html,{lang:"en",children:[(0,s.jsxs)(n.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(n.Main,{}),(0,s.jsx)(n.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},39811:(e,t,r)=>{e.exports=r(63865).vendored.contexts.AmpContext},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268],()=>r(54129));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/_error.js.nft.json b/dsql-app/.local_dist/server/pages/_error.js.nft.json index 7c16db6..79fe18e 100644 --- a/dsql-app/.local_dist/server/pages/_error.js.nft.json +++ b/dsql-app/.local_dist/server/pages/_error.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../../package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/about.html b/dsql-app/.local_dist/server/pages/about.html index 7cc256b..8ad177b 100644 --- a/dsql-app/.local_dist/server/pages/about.html +++ b/dsql-app/.local_dist/server/pages/about.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/3935-eea593fa60dfd620.js" defer=""></script><script src="/_next/static/chunks/pages/about-76deaa37497c062c.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/9654-126cc84864d517d8.js" defer=""></script><script src="/_next/static/chunks/pages/about-4d0a17a30a0500d1.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/about","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/about.js.nft.json b/dsql-app/.local_dist/server/pages/about.js.nft.json index ec0109a..1d1c3f1 100644 --- a/dsql-app/.local_dist/server/pages/about.js.nft.json +++ b/dsql-app/.local_dist/server/pages/about.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/8095.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/ArticleTwoTone.js","../../../node_modules/@mui/icons-material/CloudDoneTwoTone.js","../../../node_modules/@mui/icons-material/ThumbUpAltTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../chunks/5212.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin.js b/dsql-app/.local_dist/server/pages/admin.js index 9543c84..c101692 100644 --- a/dsql-app/.local_dist/server/pages/admin.js +++ b/dsql-app/.local_dist/server/pages/admin.js @@ -1,339 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6964; -exports.ids = [6964,133,4135]; -exports.modules = { - -/***/ 1174: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "DashboardContext": () => (/* binding */ DashboardContext), -/* harmony export */ "default": () => (/* binding */ Dashboard), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4858); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _components_admin_dashboard_DashboardContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8124); -/* harmony import */ var _components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5012); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DashboardContextType} */ let DashboardContextObject = {}; -const DashboardContext = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(DashboardContextObject); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - Server props - * @param {import("@/package-shared/types").MetricsType} props.metrics - Server props - */ function Dashboard({ user , databases , metrics }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {*} */ const targetDbState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type { [ targetDatabase: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type | undefined, setTargetDatabase: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_MYSQL_user_databases_Type>> ] } */ const [targetDatabase, setTargetDatabase] = targetDbState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_AdminLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(DashboardContext.Provider, { - value: { - user, - databases, - targetDatabase, - setTargetDatabase, - metrics - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_dashboard_DashboardContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_admin_databases_DeleteDatabaseConfirmationPopup__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - targetDatabase: targetDatabase - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - return { - redirect: { - destination: `/admin/${user.id}`, - permanent: false - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,1500,75,9282,7926], () => (__webpack_exec__(1174))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6309,e.ids=[636,6309],e.modules={34313:(e,r,t)=>{t.r(r),t.d(r,{config:()=>M,default:()=>h,getServerSideProps:()=>v,getStaticPaths:()=>y,getStaticProps:()=>f,reportWebVitals:()=>_,routeModule:()=>E,unstable_getServerProps:()=>w,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>j});var s={};t.r(s),t.d(s,{DashboardContext:()=>S,default:()=>P,getServerSideProps:()=>b});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732),n=t(82015),m=t.n(n),x=t(95222),d=t(20048),c=t.n(d),q=t(43001),g=t(34033);let S=m().createContext({});function P({user:e,databases:r,metrics:t}){let s=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,u]=m().useState(null);return(0,l.jsx)(x.A,{head:s,user:e,children:(0,l.jsxs)(S.Provider,{value:{user:e,databases:r,targetDatabase:i,setTargetDatabase:u,metrics:t},children:[(0,l.jsx)(q.A,{}),(0,l.jsx)(g.A,{targetDatabase:i})]})})}async function b({req:e,res:r,query:t}){let s=await c()(e,r);return s?.logged_in_status?{redirect:{destination:`/admin/${s.id}`,permanent:!1}}:{redirect:{destination:"/login",permanent:!1}}}let h=(0,o.M)(s,"default"),f=(0,o.M)(s,"getStaticProps"),y=(0,o.M)(s,"getStaticPaths"),v=(0,o.M)(s,"getServerSideProps"),M=(0,o.M)(s,"config"),_=(0,o.M)(s,"reportWebVitals"),j=(0,o.M)(s,"unstable_getStaticProps"),C=(0,o.M)(s,"unstable_getStaticPaths"),D=(0,o.M)(s,"unstable_getStaticParams"),w=(0,o.M)(s,"unstable_getServerProps"),A=(0,o.M)(s,"unstable_getServerSideProps"),E=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/admin",pathname:"/admin",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,7070,1223,3247],()=>t(34313));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin.js.nft.json b/dsql-app/.local_dist/server/pages/admin.js.nft.json index d9ccea6..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/admin.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/424.js","../chunks/4858.js","../chunks/5472.js","../chunks/7946.js","../chunks/1500.js","../chunks/75.js","../chunks/9282.js","../chunks/7926.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id].js b/dsql-app/.local_dist/server/pages/admin/[user_id].js index 442aea0..3a6a84d 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js @@ -1,200 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4135; -exports.ids = [4135,133]; -exports.modules = { - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,1500,75,9282,7926], () => (__webpack_exec__(1457))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=531,e.ids=[531,636],e.modules={25824:(e,r,t)=>{t.r(r),t.d(r,{config:()=>q,default:()=>l,getServerSideProps:()=>x,getStaticPaths:()=>n,getStaticProps:()=>m,reportWebVitals:()=>c,routeModule:()=>f,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>d});var s=t(63865),i=t(9455),u=t(30671),o=t(49407),p=t(68268),a=t(26295);let l=(0,u.M)(a,"default"),m=(0,u.M)(a,"getStaticProps"),n=(0,u.M)(a,"getStaticPaths"),x=(0,u.M)(a,"getServerSideProps"),q=(0,u.M)(a,"config"),c=(0,u.M)(a,"reportWebVitals"),d=(0,u.M)(a,"unstable_getStaticProps"),g=(0,u.M)(a,"unstable_getStaticPaths"),P=(0,u.M)(a,"unstable_getStaticParams"),S=(0,u.M)(a,"unstable_getServerProps"),b=(0,u.M)(a,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]",pathname:"/admin/[user_id]",bundlePath:"",filename:""},components:{App:p.default,Document:o.default},userland:a})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,7070,1223,3247],()=>t(25824));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json index cdaa57b..79cb907 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/5449.js","../../chunks/913.js","../../chunks/4480.js","../../chunks/370.js","../../chunks/424.js","../../chunks/4858.js","../../chunks/5472.js","../../chunks/7946.js","../../chunks/1500.js","../../chunks/75.js","../../chunks/9282.js","../../chunks/7926.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/mysql/index.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js index f8e134e..9fe2619 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js @@ -1,1020 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6057; -exports.ids = [6057]; -exports.modules = { - -/***/ 3406: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "ApiKeysContext": () => (/* binding */ ApiKeysContext), - "default": () => (/* binding */ Dashboard), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/VerificationBanner.jsx -var VerificationBanner = __webpack_require__(7946); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -;// CONCATENATED MODULE: ./components/admin/api-keys/ApiKeyListCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").ApiKeyDef} props.apiKeyObject - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").ApiKeyDef>>} props.setTargetApiKey - */ function ApiKeyListCard({ apiKeyObject , setTargetApiKey }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover justify-between items-center" + (apiKeyObject.scope.match(/fullAccess/) ? " green" : ""), - onClick: (e)=>{ - // @ts-ignore - if (e.target?.closest("button")) return; - setTargetApiKey(apiKeyObject); - (0,GeneralPopup/* openPopup */.Mw)("target-media-popup"); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "text-sm flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: apiKeyObject.scope.match(/readOnly/) ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "notification" - }) : apiKeyObject.scope.match(/fullAccess/) ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "notification success" - }) : "No Scope" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "title text-xl", - style: { - fontSize: "16px" - }, - children: apiKeyObject.name - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-slate-400 ", - children: [ - "Created: ", - apiKeyObject.date_created.substring(0, 24) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined light-gray small-text", - onClick: (e)=>{ - alert(apiKeyObject.apiKeyPayload); - }, - children: "Reveal Api Key" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined light-gray small-text", - onClick: (e)=>{ - // document.execCommand("copy", false, apiKeyObject.apiKeyPayload); - navigator.clipboard.writeText(apiKeyObject.apiKeyPayload).then(()=>{ - alert("Api Key Copied To Clipboard"); - }); - }, - children: "Copy Api Key" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined light-gray small-text" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - setLoading(true); - if (window.confirm(`Delete this Api Key?`)) { - (0,fetchApi/* default */.Z)("/api/deleteApiKey", { - method: "post", - body: apiKeyObject - }, true).then((res)=>{}).finally(()=>{ - window.location.reload(); - }); - } else { - setLoading(false); - } - }, - children: "Delete Api Key" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: external "@mui/icons-material/HttpsTwoTone" -const HttpsTwoTone_namespaceObject = require("@mui/icons-material/HttpsTwoTone"); -var HttpsTwoTone_default = /*#__PURE__*/__webpack_require__.n(HttpsTwoTone_namespaceObject); -;// CONCATENATED MODULE: ./components/admin/api-keys/ApiKeysList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {import("@/package-shared/types").ApiKeyDef[]} props.apiKeys - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").ApiKeyDef>>} props.setTargetApiKey - */ function ApiKeysList({ user , apiKeys , setTargetApiKey }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "p-0 items-start gap-4 overflow-visible bg-transparent border-transparent", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex-col items-stretch gap-4", - children: apiKeys && apiKeys[0] && apiKeys.map((apiKeyObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(ApiKeyListCard, { - apiKeyObject: apiKeyObject, - setTargetApiKey: setTargetApiKey - }, index); - }) - }), - !apiKeys || !apiKeys[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray dashed w-full p-10 flex-col", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("add-new-api-key-popup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "No Api Keys Added." - }), - /*#__PURE__*/ jsx_runtime_.jsx((HttpsTwoTone_default()), { - color: "action", - sx: { - fontSize: 80 - }, - className: "opacity-40" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Add Api Key" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/api-keys/ApiKeysContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function ApiKeysContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , apiKeys , setApiKeys , setTargetApiKey } = external_react_default().useContext(ApiKeysContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Api Keys" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex items-center gap-2", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("add-new-api-key-popup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Api Key" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ jsx_runtime_.jsx(ApiKeysList, { - apiKeys: apiKeys, - setTargetApiKey: setTargetApiKey, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(VerificationBanner/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/api-keys/TargetApiKeyPreviewPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").ApiKeyDef} props.targetApiKey - */ function TargetApiKeyPreviewPopup({ targetApiKey }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(GeneralPopup/* default */.ZP, { - title: "target-api-key-preview-popup", - noContainer: true, - fullPage: true, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - targetApiKey && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Target Api Key" - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/checkUniqueField.js -var checkUniqueField = __webpack_require__(4105); -;// CONCATENATED MODULE: ./components/admin/api-keys/AddNewApiKeyPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ var timeout; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {*} [props.targetApiKey] - */ function AddNewApiKeyPopup({ targetApiKey }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ async function checkDuplicateSlug(/** @type {string} */ value) { - const duplicate = await (0,checkUniqueField/* default */.Z)({ - tableName: "api_keys", - columnName: "slug", - value: value - }); - return duplicate; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [alert, setAlert] = external_react_default().useState(/** @type {string | null} */ null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(GeneralPopup/* default */.ZP, { - title: "add-new-api-key-popup", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h4", { - className: "m-0", - children: "Add New Api Key" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-stretch gap-2", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement | *} */ const formElement = e.target; - const api_key_name = formElement["api_key_name"].value; - const api_key_slug = formElement["api_key_slug"].value; - const api_key_scope = formElement["api_key_scope"].value; - /** @type {import("@/package-shared/types").AddApiKeyRequestBody} */ const formBody = { - api_key_name, - api_key_slug, - api_key_scope, - target_database: formElement["target_database"]?.value || undefined, - target_table: formElement["target_table"]?.value || undefined - }; - (0,fetchApi/* default */.Z)("/api/addApiKey", { - method: "post", - body: formBody - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - setTimeout(()=>{ - setLoading(false); - }, 2000); - } - }); - }, - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: alert - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "api_key_name", - children: "Api Key Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "api_key_name", - id: "api_key_name", - placeholder: "Api Key Name", - onInput: (e)=>{ - /** @type {HTMLInputElement | *} */ const inputarget = e.target; - if (inputarget) { - inputarget.closest("form")["api_key_slug"].value = inputarget.value.toLowerCase().replace(/ /g, "_").replace(/[^a-zA-Z0-9-_]/g, ""); - } - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "api_key_slug", - children: "Api Key Slug" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "api_key_slug", - id: "api_key_slug", - placeholder: "Api Key Slug", - onInput: (e)=>{ - /** @type {HTMLInputElement & *} */ const inputarget = e.target; - if (inputarget?.value.match(/./)) { - inputarget?.classList.remove("warning"); - setAlert(null); - } else { - inputarget?.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - checkDuplicateSlug(inputarget.value).then((res)=>{ - if (res.result) { - inputarget?.classList.add("warning"); - // @ts-ignore - setAlert("Duplicate Table Name"); - } else { - inputarget?.classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "api_key_scope", - children: "Api Scope" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper reversed", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 py-1 bg-slate-100 rounded-full text-xs font-semibold", - children: "Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown always left-aligned -ml-10 -mb-2", - style: { - minWidth: "300px" - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-2 text-sm leading-snug", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Scope is the range of access the API Key can have" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("ul", { - className: "ml-0 pl-4 flex flex-col gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("li", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "Read Only:" - }), - " Can only read from databases" - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("li", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "Full Access:" - }), - " Can read and Write to databases" - ] - }) - }) - ] - }) - ] - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "api_key_scope", - id: "api_key_scope", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "readOnly", - children: "Read Only" - }), - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "fullAccess", - children: "Full Access" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "target_database", - children: "Target Databases" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "target_database", - id: "target_database", - placeholder: "Target Databases (optional). Comma Separated" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "target_table", - children: "Target Tables" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "target_table", - id: "target_table", - placeholder: "Target Tables (optional). Comma Separated" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: loading ? " pointer-events-none opacity-40" : "", - children: "Create New Api Key" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./package-shared/functions/backend/decrypt.js -var decrypt = __webpack_require__(5304); -var decrypt_default = /*#__PURE__*/__webpack_require__.n(decrypt); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/api-keys/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").ApiKeysContextType} */ // @ts-ignore -const init = {}; -const ApiKeysContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any[]} props.fetchedApiKeys - */ function Dashboard({ user , fetchedApiKeys }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Api Keys | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [apiKeys, setApiKeys] = external_react_default().useState(fetchedApiKeys); - const [newApiKey, setNewApiKey] = external_react_default().useState(null); - const [targetApiKey, setTargetApiKey] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ApiKeysContext.Provider, { - value: { - user, - apiKeys, - setApiKeys, - targetApiKey, - setTargetApiKey, - newApiKey, - setNewApiKey - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(ApiKeysContent, {}), - targetApiKey && /*#__PURE__*/ jsx_runtime_.jsx(TargetApiKeyPreviewPopup, { - targetApiKey: targetApiKey - }), - /*#__PURE__*/ jsx_runtime_.jsx(AddNewApiKeyPopup, {}) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const apiKeys = await DB_HANDLER_default()(`SELECT * FROM api_keys WHERE user_id='${user.id}'`); - let apiKeysWithPayloads = []; - if (apiKeys && apiKeys[0]) { - for(let i = 0; i < apiKeys.length; i++){ - const apiKey = apiKeys[i]; - const apiKeyPayload = decrypt_default()(apiKey.key); - apiKeysWithPayloads.push({ - ...apiKey, - apiKeyPayload - }); - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - fetchedApiKeys: apiKeysWithPayloads - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,4105], () => (__webpack_exec__(3406))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9419,e.ids=[636,9419],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},30284:(e,t,a)=>{a.r(t),a.d(t,{config:()=>O,default:()=>z,getServerSideProps:()=>I,getStaticPaths:()=>D,getStaticProps:()=>H,reportWebVitals:()=>V,routeModule:()=>B,unstable_getServerProps:()=>$,unstable_getServerSideProps:()=>W,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>G,unstable_getStaticProps:()=>R});var s,r={};a.r(r),a.d(r,{ApiKeysContext:()=>T,default:()=>E,getServerSideProps:()=>F});var l=a(63865),i=a(9455),n=a(30671),c=a(49407),o=a(68268),p=a(8732),u=a(82015),d=a.n(u),m=a(95222),x=a(20048),h=a.n(x),y=a(58548),f=a(55158),g=a(24671),j=a(63715),v=a(32415),A=a(62506);function b({apiKeyObject:e,setTargetApiKey:t}){let[a,s]=d().useState(!1);return(0,p.jsxs)("div",{className:"card no-hover justify-between items-center"+(e.scope.match(/fullAccess/)?" green":""),onClick:a=>{a.target?.closest("button")||(t(e),(0,f.PB)("target-media-popup"))},children:[a&&(0,p.jsx)(v.A,{width:"20px"}),(0,p.jsxs)("div",{className:"text-sm flex-wrap",children:[(0,p.jsx)("div",{children:e.scope.match(/readOnly/)?(0,p.jsx)("span",{className:"notification"}):e.scope.match(/fullAccess/)?(0,p.jsx)("span",{className:"notification success"}):"No Scope"}),(0,p.jsx)("span",{className:"title text-xl",style:{fontSize:"16px"},children:e.name}),(0,p.jsxs)("span",{className:"text-slate-400 ",children:["Created: ",e.date_created.substring(0,24)]})]}),(0,p.jsxs)(A.A,{children:[(0,p.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{alert(e.apiKeyPayload)},children:"Reveal Api Key"}),(0,p.jsx)("button",{className:"outlined light-gray small-text",onClick:t=>{navigator.clipboard.writeText(e.apiKeyPayload).then(()=>{alert("Api Key Copied To Clipboard")})},children:"Copy Api Key"}),(0,p.jsx)("button",{className:"outlined light-gray small-text"+(a?" pointer-events-none opacity-40":""),onClick:t=>{s(!0),window.confirm("Delete this Api Key?")?(0,j.A)("/api/deleteApiKey",{method:"post",body:e},!0).then(e=>{}).finally(()=>{window.location.reload()}):s(!1)},children:"Delete Api Key"})]})]})}var k=a(68733);function _({user:e,apiKeys:t,setTargetApiKey:a}){return(0,p.jsx)(d().Fragment,{children:(0,p.jsxs)("section",{className:"p-0 items-start gap-4 overflow-visible bg-transparent border-transparent",children:[(0,p.jsx)("div",{className:"w-full flex-col items-stretch gap-4",children:t&&t[0]&&t.map((e,t)=>(0,p.jsx)(b,{apiKeyObject:e,setTargetApiKey:a},t))}),!t||!t[0]&&(0,p.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,p.jsx)("span",{className:"text-slate-400",children:"No Api Keys Added."}),(0,p.jsx)(k.A,{color:"action",sx:{fontSize:80},className:"opacity-40"}),(0,p.jsx)("span",{className:"",children:"Add Api Key"})]})]})})}function w(e){let{user:t,apiKeys:a,setApiKeys:s,setTargetApiKey:r}=d().useContext(T);return(0,p.jsxs)(d().Fragment,{children:[(0,p.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,p.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,p.jsx)("h1",{className:"text-3xl m-0",children:"Api Keys"}),(0,p.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,f.PB)("add-new-api-key-popup")},children:[(0,p.jsx)("span",{className:"symbol",children:"+"}),(0,p.jsx)("span",{children:"Add New Api Key"})]})]}),(0,p.jsx)(y.A,{user:t})]}),t?.verification_status?.toString().match(/1/)?(0,p.jsx)(_,{apiKeys:a,setTargetApiKey:r,user:t}):(0,p.jsx)(g.A,{})]})}function N({targetApiKey:e}){let[t,a]=d().useState(!1);return(0,p.jsxs)(f.Ay,{title:"target-api-key-preview-popup",noContainer:!0,fullPage:!0,children:[t&&(0,p.jsx)(v.A,{}),e&&(0,p.jsx)(d().Fragment,{children:(0,p.jsx)("span",{children:"Target Api Key"})})]})}var q=a(27462);function S({targetApiKey:e}){async function t(e){return await (0,q.A)({tableName:"api_keys",columnName:"slug",value:e})}let[a,r]=d().useState(!1),[l,i]=d().useState(null);return(0,p.jsxs)(f.Ay,{title:"add-new-api-key-popup",children:[a&&(0,p.jsx)(v.A,{}),(0,p.jsx)("h4",{className:"m-0",children:"Add New Api Key"}),(0,p.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-2",onSubmit:e=>{e.preventDefault(),r(!0);let t=e.target,a={api_key_name:t.api_key_name.value,api_key_slug:t.api_key_slug.value,api_key_scope:t.api_key_scope.value,target_database:t.target_database?.value||void 0,target_table:t.target_table?.value||void 0};(0,j.A)("/api/addApiKey",{method:"post",body:a},!0).then(e=>{e.success?window.location.reload():setTimeout(()=>{r(!1)},2e3)})},children:[l&&(0,p.jsx)("div",{children:(0,p.jsx)("span",{children:l})}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"api_key_name",children:"Api Key Name"}),(0,p.jsx)("input",{type:"text",name:"api_key_name",id:"api_key_name",placeholder:"Api Key Name",onInput:e=>{let t=e.target;t&&(t.closest("form").api_key_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,""))},required:!0})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"api_key_slug",children:"Api Key Slug"}),(0,p.jsx)("input",{type:"text",name:"api_key_slug",id:"api_key_slug",placeholder:"Api Key Slug",onInput:e=>{let a=e.target;a?.value.match(/./)?(a?.classList.remove("warning"),i(null)):a?.classList.add("warning"),window.clearTimeout(s),s=setTimeout(()=>{t(a.value).then(e=>{e.result?(a?.classList.add("warning"),i("Duplicate Table Name")):(a?.classList.remove("warning"),i(null))})},300)},required:!0})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsxs)("div",{className:"",children:[(0,p.jsx)("label",{htmlFor:"api_key_scope",children:"Api Scope"}),(0,p.jsxs)("div",{className:"dropdown-wrapper reversed",children:[(0,p.jsx)("span",{className:"px-2 py-1 bg-slate-100 rounded-full text-xs font-semibold",children:"Info"}),(0,p.jsx)("div",{className:"dropdown always left-aligned -ml-10 -mb-2",style:{minWidth:"300px"},children:(0,p.jsxs)("div",{className:"flex-col items-start gap-2 text-sm leading-snug",children:[(0,p.jsx)("span",{children:"Scope is the range of access the API Key can have"}),(0,p.jsxs)("ul",{className:"ml-0 pl-4 flex flex-col gap-2",children:[(0,p.jsx)("li",{children:(0,p.jsxs)("span",{children:[(0,p.jsx)("b",{children:"Read Only:"})," Can only read from databases"]})}),(0,p.jsx)("li",{children:(0,p.jsxs)("span",{children:[(0,p.jsx)("b",{children:"Full Access:"})," Can read and Write to databases"]})})]})]})})]})]}),(0,p.jsxs)("select",{name:"api_key_scope",id:"api_key_scope",children:[(0,p.jsx)("option",{value:"readOnly",children:"Read Only"}),(0,p.jsx)("option",{value:"fullAccess",children:"Full Access"})]})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"target_database",children:"Target Databases"}),(0,p.jsx)("input",{type:"text",name:"target_database",id:"target_database",placeholder:"Target Databases (optional). Comma Separated"})]}),(0,p.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,p.jsx)("label",{htmlFor:"target_table",children:"Target Tables"}),(0,p.jsx)("input",{type:"text",name:"target_table",id:"target_table",placeholder:"Target Tables (optional). Comma Separated"})]}),(0,p.jsx)("button",{type:"submit",className:a?" pointer-events-none opacity-40":"",children:"Create New Api Key"})]})]})}var P=a(67216),M=a.n(P),C=a(83007),K=a.n(C);let T=d().createContext({});function E({user:e,fetchedApiKeys:t}){let a=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"Api Keys | Datasquirel"}),(0,p.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[s,r]=d().useState(t),[l,i]=d().useState(null),[n,c]=d().useState(null);return(0,p.jsx)(m.A,{head:a,user:e,children:(0,p.jsxs)(T.Provider,{value:{user:e,apiKeys:s,setApiKeys:r,targetApiKey:n,setTargetApiKey:c,newApiKey:l,setNewApiKey:i},children:[(0,p.jsx)(w,{}),n&&(0,p.jsx)(N,{targetApiKey:n}),(0,p.jsx)(S,{})]})})}async function F({req:e,res:t,query:a}){let s=await h()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await M()(`SELECT * FROM api_keys WHERE user_id='${s.id}'`),l=[];if(r&&r[0])for(let e=0;e<r.length;e++){let t=r[e],a=K()(t.key);l.push({...t,apiKeyPayload:a})}return{props:{user:s,fetchedApiKeys:l}}}let z=(0,n.M)(r,"default"),H=(0,n.M)(r,"getStaticProps"),D=(0,n.M)(r,"getStaticPaths"),I=(0,n.M)(r,"getServerSideProps"),O=(0,n.M)(r,"config"),V=(0,n.M)(r,"reportWebVitals"),R=(0,n.M)(r,"unstable_getStaticProps"),G=(0,n.M)(r,"unstable_getStaticPaths"),L=(0,n.M)(r,"unstable_getStaticParams"),$=(0,n.M)(r,"unstable_getServerProps"),W=(0,n.M)(r,"unstable_getServerSideProps"),B=new l.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/api-keys",pathname:"/admin/[user_id]/api-keys",bundlePath:"",filename:""},components:{App:o.default,Document:c.default},userland:r})},55158:(e,t,a)=>{a.d(t,{Ay:()=>n,PB:()=>c,fs:()=>o});var s=a(8732),r=a(58150),l=a(82015),i=a.n(l);function n({children:e,title:t,data:a,fullPage:l,wrapperClasses:n,closePopupDispatch:c,wrapperStyle:p,noContainer:u}){return l?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:p,children:[u?(0,s.jsx)(i().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),c&&c()},children:(0,s.jsx)(r.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[u?(0,s.jsx)(i().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),c&&c()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),c&&c()}})]})}function c(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t&&t(a))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},24671:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(82015)},27462:(e,t,a)=>{a.d(t,{A:()=>r}),a(22326);var s=a(63715);async function r({tableName:e,columnName:t,value:a,dbFullName:r,dispatch:l,userId:i,dbId:n}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${r?"&dbFullName="+r:""}${i?"&userId="+i:""}${n?"&dbId="+n:""}`)}},26406:(e,t,a)=>{var s=a(24994);t.A=void 0;var r=s(a(30887)),l=a(8732);t.A=(0,r.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},68733:(e,t,a)=>{var s=a(24994);t.A=void 0;var r=s(a(30887)),l=a(8732);t.A=(0,r.default)([(0,l.jsx)("path",{d:"M6 20h12V10H6zm6-7c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"},"1")],"HttpsTwoTone")},92441:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{var a;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(a||(a={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[9764,883,8268,7070],()=>a(30284));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json index 242baf1..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/api-keys.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../chunks/7946.js","../../../chunks/4105.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/HttpsTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js index 61e180d..9f08c80 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js @@ -1,1552 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3095; -exports.ids = [3095]; -exports.modules = { - -/***/ 5782: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "ConnectContext": () => (/* binding */ ConnectContext), - "default": () => (/* binding */ DatabaseSchema), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -;// CONCATENATED MODULE: external "@mui/icons-material/ContentCopyOutlined" -const ContentCopyOutlined_namespaceObject = require("@mui/icons-material/ContentCopyOutlined"); -var ContentCopyOutlined_default = /*#__PURE__*/__webpack_require__.n(ContentCopyOutlined_namespaceObject); -;// CONCATENATED MODULE: external "@mui/icons-material/SystemUpdateAltOutlined" -const SystemUpdateAltOutlined_namespaceObject = require("@mui/icons-material/SystemUpdateAltOutlined"); -var SystemUpdateAltOutlined_default = /*#__PURE__*/__webpack_require__.n(SystemUpdateAltOutlined_namespaceObject); -;// CONCATENATED MODULE: ./components/admin/connect/ConnectionInfo.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function ConnectionInfo(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , query , mariadbUserCred } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("ul", { - className: "m-0", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Server:", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "172.72.0.32" || 0 - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Username: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: mariadbUserCred.mariadb_user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Host: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: mariadbUserCred.mariadb_host - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Password: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "*****************" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ghost inline-block -my-4", - onClick: (e)=>{ - navigator.clipboard.writeText(mariadbUserCred.mariadb_pass || "").then(()=>{ - window.alert("Copied Password!"); - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((ContentCopyOutlined_default()), {}) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("li", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex", - children: [ - "SSL Certificate:", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "flex items-center gap-2", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: "https://datasquirel.com/documents/ssl/ca-cert.pem", - className: "flex items-center gap-2 border-none hover:opacity-60", - target: "_blank", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((SystemUpdateAltOutlined_default()), { - className: "-mt-[3px]" - }), - "Download" - ] - }) - }) - }) - ] - }) - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: external "@mui/icons-material/EditNoteOutlined" -const EditNoteOutlined_namespaceObject = require("@mui/icons-material/EditNoteOutlined"); -var EditNoteOutlined_default = /*#__PURE__*/__webpack_require__.n(EditNoteOutlined_namespaceObject); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/DeleteOutlineOutlined" -var DeleteOutlineOutlined_ = __webpack_require__(8757); -var DeleteOutlineOutlined_default = /*#__PURE__*/__webpack_require__.n(DeleteOutlineOutlined_); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/admin/connect/MariaDBUserCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").MYSQL_mariadb_users_table_def} props.mariadbUser - */ function MariaDBUserCard({ mariadbUser }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { setTargetMariadbUser } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isPrimary = String(mariadbUser.primary)?.match(/1/) ? true : false; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card w-full col" + (isPrimary ? " green" : ""), - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "25px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between h-auto md:h-8 flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "title", - children: [ - mariadbUser.username, - "@", - mariadbUser.host - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - isPrimary && /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "info small w-auto", - children: "Primary User" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ghost", - title: "Edit User", - onClick: (e)=>{ - setTargetMariadbUser(mariadbUser); - (0,GeneralPopup/* openPopup */.Mw)("edit-mariadb-user-popup"); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((EditNoteOutlined_default()), {}) - }), - !isPrimary && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ghost -ml-6", - title: "Edit User", - onClick: (e)=>{ - if (window.confirm("Are you sure you want to delete this User?")) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/sql-users/delete", { - method: "POST", - body: { - id: mariadbUser.id - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else if (res.msg) { - window.alert(res.msg); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((DeleteOutlineOutlined_default()), {}) - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("ul", { - className: "m-0", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Username: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: mariadbUser.username - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Host: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: mariadbUser.host - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "info gray font-normal", - children: "% is a wildcard. Example: 192.168.1.%" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("li", { - children: [ - "Password: ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "*****************" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ghost inline-block -my-4", - onClick: (e)=>{ - navigator.clipboard.writeText(mariadbUser.password || "").then(()=>{ - window.alert("Copied Password!"); - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx((ContentCopyOutlined_default()), { - className: "text-[15px] -ml-2" - }) - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/MariaDBUsers.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function MariaDBUsers(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { mariadbUsers } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "SQL Users" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("new-mariadb-user-popup"); - }, - children: "Add SQL User" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "grid w-full grid-cols-1 xl:grid-cols-2 gap-6", - children: mariadbUsers.map((mdbUser, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(MariaDBUserCard, { - mariadbUser: mdbUser - }, index + 1); - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/ConnectContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function ConnectContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , query , mariadbUserCred } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "", - children: /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Connect" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(ConnectionInfo, {}), - /*#__PURE__*/ jsx_runtime_.jsx(MariaDBUsers, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/MariDBUserFormGrantsSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {Object} APIDatabase - * @property {string | number} id - * @property {string} db_full_name - * @property {string} db_name - * @property {string} db_slug - */ /** - * @typedef {Object} APITable - * @property {string | number} id - * @property {string} table_name - * @property {string} table_slug - */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/shell/mariadb-users/handleGrants").GrantType[]} props.grants - * @param {React.Dispatch<React.SetStateAction<import("@/shell/mariadb-users/handleGrants").GrantType[]>> } props.setGrants - * @param {boolean} [props.edit] - */ function MariDBUserFormGrantsSection({ grants , setGrants , edit , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , targetMariadbUser } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ /** @type {import("@/shell/mariadb-users/handleGrants").GrantType[]} */ const grantsArray = []; - /** @type {string[]} */ const permissionsArray = [ - "ALL PRIVILEGES", - "ALTER", - "ALTER ROUTINE", - "CREATE", - "CREATE ROUTINE", - "CREATE TEMPORARY TABLES", - "CREATE VIEW", - "DELETE", - "DROP", - "EVENT", - "EXECUTE", - "FILE", - "INDEX", - "INSERT", - "LOCK TABLES", - "PROCESS", - "REFERENCES", - "RELOAD", - "REPLICATION CLIENT", - "REPLICATION SLAVE", - "SELECT", - "SHOW VIEW", - "SUPER", - "TRIGGER", - "UPDATE", - "USAGE", - ]; - const isPrimary = Boolean(String(targetMariadbUser?.primary).match(/1/)) && edit; - const isAllDatabasesGranted = Boolean(grants.find((grant)=>grant.database == "*")); - const isAllTablesGranted = Boolean(grants.find((grant)=>grant.table == "*")); - const isPrivilegesGranted = Boolean(grants.find((grant)=>grant.privileges.includes("ALL PRIVILEGES"))); - const isAllGranted = isAllDatabasesGranted && isAllTablesGranted && isPrivilegesGranted; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ state: APIDatabase[], dispatch: React.Dispatch<React.SetStateAction<APIDatabase[]>> ]} */ // @ts-ignore - const [databases, setDatabases] = external_react_default().useState([]); - /** @type {[ state: APIDatabase, dispatch: React.Dispatch<React.SetStateAction<APIDatabase>> ]} */ // @ts-ignore - const [targetDatabase, setTargetDatabase] = external_react_default().useState({}); - /** @type {[ state: APITable[], dispatch: React.Dispatch<React.SetStateAction<APITable[]>> ]} */ // @ts-ignore - const [tables, setTables] = external_react_default().useState([]); - /** @type {[ state: APITable, dispatch: React.Dispatch<React.SetStateAction<APITable>> ]} */ // @ts-ignore - const [targetTable, setTargetTable] = external_react_default().useState({}); - const [permissions, setPermissions] = external_react_default().useState([ - "ALL PRIVILEGES" - ]); - /** @type {[ state: string, dispatch: React.Dispatch<React.SetStateAction<string>> ]} */ // @ts-ignore - const [targetPermission, setTargetPermission] = external_react_default().useState("ALL PRIVILEGES"); - const [newGrant, setNewGrant] = external_react_default().useState(false); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/getUserDatabases").then((res)=>{ - if (res.databases) { - setDatabases(res.databases); - } - }); - }, []); - external_react_default().useEffect(()=>{ - if (!targetDatabase?.id) return; - (0,fetchApi/* default */.Z)(`/api/getUserDatabaseTables?dbId=${targetDatabase.id}`).then((res)=>{ - if (res.tables) { - setTables(res.tables); - } - }); - }, [ - targetDatabase - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - id: "grant-select-block", - className: "flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h4", { - className: "m-0 text-lg", - children: "Grants" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "This section determines fine grained access of this user to databases and tables" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-wrap", - children: grants?.[0] ? grants.map((grant, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: grant.privileges - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "=" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - " ", - grant.database.replace(/datasquirel_user_\d+_/, "") - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "." - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: grant.table - }), - !isPrimary && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button white absolute top-1.5 right-1.5 p-2 w-6 h-6", - onClick: (e)=>{ - const newGrants = [ - ...grants - ]; - newGrants.splice(index, 1); - setGrants(newGrants); - }, - children: "x" - }) - ] - }); - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center", - children: "No Grants" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - isAllGranted ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-slate-500", - children: 'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges' - }) : newGrant ? /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, { - children: isPrimary ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Primary users have full control over all databases." - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "grants-database", - children: "Database" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "grants-database", - id: "grants-database", - className: "text-sm", - onChange: (e)=>{ - const selectedDatabase = e.target.value; - if (selectedDatabase == "NULL") { - return; - } - const selectedDatabaseObject = databases.find((db)=>db.db_full_name == selectedDatabase); - if (selectedDatabaseObject) { - setTargetDatabase(selectedDatabaseObject); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "*", - children: "--ALL-DATABASES--" - }), - databases.map((database, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: database.db_full_name, - children: database.db_name - }, index + 1); - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "grants-table", - children: "Table" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "grants-table", - id: "grants-table", - className: "text-sm", - onChange: (e)=>{ - const selectedTable = e.target.value; - if (selectedTable == "NULL") { - return; - } - const selectedTableObject = tables.find((table)=>table.table_slug == selectedTable); - if (selectedTableObject) { - setTargetTable(selectedTableObject); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "*", - children: "--ALL-TABLES--" - }), - tables?.[0] && tables.map((table, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: table.table_slug, - children: table.table_name - }, index + 1); - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "grants-databases", - children: "Permissions" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-wrap gap-y-2 mb-1", - children: permissions?.[0] ? permissions.map((permission, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-xs px-2 py-1 border border-solid border-slate-200 rounded", - children: [ - permission, - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "cursor-pointer p-2 hover:opacity-50", - onClick: (e)=>{ - const newPermissions = [ - ...permissions, - ]; - newPermissions.splice(index, 1); - setPermissions(newPermissions); - }, - children: "x" - }) - ] - }); - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs px-3 py-1 bg-slate-100 text-slate-400", - children: "No Permissions Selected" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full items-stretch", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "grants-databases", - id: "grants-databases", - className: "text-sm", - onChange: (e)=>{ - const selectedPermission = e.target.value; - setTargetPermission(selectedPermission); - }, - children: permissionsArray.map((permission, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: permission, - children: permission - }, index); - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray text-2xl", - onClick: (e)=>{ - if (permissions.includes(targetPermission)) return; - if (permissions.includes("ALL PRIVILEGES")) { - alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others"); - return; - } - setPermissions([ - ...permissions, - targetPermission, - ]); - }, - children: "+" - }) - ] - }) - ] - }), - !isPrimary && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined secondary", - onClick: (e)=>{ - if (!permissions?.[0]) { - alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list"); - return; - } - /** - * @type {import("@/shell/mariadb-users/handleGrants").GrantType} - */ const newGrant = { - database: targetDatabase.db_full_name || "*", - privileges: permissions, - table: targetTable.table_slug || "*" - }; - const newGrants = [ - ...grants, - newGrant - ]; - setGrants(newGrants); - setNewGrant(false); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-2xl h-6 flex items-center justify-center", - children: "+" - }), - "\xa0Add Grant" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray", - onClick: ()=>{ - setNewGrant(false); - }, - children: "Cancel" - }) - ] - }) - }) : isPrimary ? /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Primary users have full control over all databases." - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray", - onClick: (e)=>{ - setNewGrant(true); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-2xl h-6 flex items-center justify-center", - children: "+" - }), - "\xa0Add Grant" - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/MariDBUserForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").MYSQL_mariadb_users_table_def} [props.mariaDBUser] - * @param {boolean} [props.edit] - * @param {string} [props.username] - */ function MariDBUserForm({ mariaDBUser , edit , username }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const formFields = mariaDBUser ? Object.keys(mariaDBUser) : [ - "username", - "host", - "password" - ]; - const KEYS_REGEXP = /username|host|password/; - const UNEDITABLE_REGEXP = edit ? /username/ : /username/; - const REQUIRED_REGEXP = /host/; - const existingGrants = (()=>{ - try { - if (edit && mariaDBUser?.grants) return JSON.parse(mariaDBUser.grants); - return null; - } catch (error) { - return null; - } - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ state: import("@/shell/mariadb-users/handleGrants").GrantType[], dispatch: React.Dispatch<React.SetStateAction<import("@/shell/mariadb-users/handleGrants").GrantType[]>> ]} */ // @ts-ignore - const [grants, setGrants] = external_react_default().useState(existingGrants ? existingGrants : [ - { - database: "*", - table: "*", - privileges: [ - "ALL PRIVILEGES" - ] - }, - ]); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - console.log("form clicked"); - /** - * @type {HTMLFormElement} - */ // @ts-ignore - const formEl = e.target; - const formFields = Array.from(formEl); - /** - * @type any - */ const formData = {}; - formFields.forEach((el)=>{ - if (el.nodeName != "INPUT") return; - /** - * @type {HTMLInputElement} - */ // @ts-ignore - const inputEl = el; - formData[inputEl.name] = inputEl.value; - }); - if (edit) { - delete formData.username; - } - if (!grants?.[0]) { - alert("Please add at least one grant"); - return; - } - setLoading(true); - const fetchUrl = edit ? "/api/sql-users/update" : "/api/sql-users/create"; - (0,fetchApi/* default */.Z)(fetchUrl, { - method: "POST", - body: { - data: formData, - edit: Boolean(edit), - prev: mariaDBUser, - grants - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else if (res.msg) { - window.alert(res.msg); - setLoading(false); - } - }); - }, - className: "w-full gap-4 flex flex-col", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "25px" - }), - formFields.map((key, index)=>{ - /** @type {string | null} */ const existingValue = mariaDBUser ? mariaDBUser[key] : key == "username" ? `dsql_user_${user.id}` : null; - const isReadOnly = UNEDITABLE_REGEXP.test(key); - const isRequired = REQUIRED_REGEXP.test(key); - if (!key.match(KEYS_REGEXP)) return null; - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: key, - children: key - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: key.match("password") ? "password" : "text", - name: key, - id: key, - defaultValue: existingValue || undefined, - readOnly: isReadOnly, - className: "" + (isReadOnly ? "bg-slate-100 opacity-50 pointer-events-none" : ""), - placeholder: key, - required: isRequired - }) - ] - }, index + 1); - }), - /*#__PURE__*/ jsx_runtime_.jsx(MariDBUserFormGrantsSection, { - grants: grants, - setGrants: setGrants, - edit: edit - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - children: edit ? "Update User" : "Create SQL User" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/EditMariadbUserPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditMariadbUserPopup(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { targetMariadbUser } = external_react_default().useContext(ConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [ready, setReady] = external_react_default().useState(false); - external_react_default().useEffect(()=>{ - setReady(false); - setTimeout(()=>{ - setReady(true); - }, 200); - }, [ - targetMariadbUser - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(GeneralPopup/* default */.ZP, { - title: "edit-mariadb-user-popup", - children: ready && targetMariadbUser ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Edit" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "info inline w-auto text-xl green", - children: [ - targetMariadbUser.username, - "@", - targetMariadbUser.host - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx(MariDBUserForm, { - mariaDBUser: targetMariadbUser, - edit: true - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "p-20", - children: /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "25px" - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/connect/NewMariadbUserPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function NewMariadbUserPopup(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(GeneralPopup/* default */.ZP, { - title: "new-mariadb-user-popup", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - children: "New MariaDB User" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx(MariDBUserForm, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/functions/backend/decrypt.js -var decrypt = __webpack_require__(5304); -var decrypt_default = /*#__PURE__*/__webpack_require__.n(decrypt); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/connect/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").ConnectContextType} */ // @ts-ignore -const init = {}; -const ConnectContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.query - * @param {import("@/package-shared/types").MariaDBUserCredType} props.mariadbUserCred - * @param {import("@/package-shared/types").MYSQL_mariadb_users_table_def[]} props.mariadbUsers - */ function DatabaseSchema({ user , query , mariadbUserCred , mariadbUsers , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "SQL Connect | Datasquirel"; - const pageDescription = "Connect to your database remotely"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ state: import("@/package-shared/types").MYSQL_mariadb_users_table_def | null, dispatch: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_mariadb_users_table_def | null>> ]} */ // @ts-ignore - const [targetMariadbUser, setTargetMariadbUser] = external_react_default().useState(null); - /** @type {[ state: number, dispatch: React.Dispatch<React.SetStateAction<number>> ]} */ // @ts-ignore - const [refresh, setRefresh] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - aceEditor: true, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ConnectContext.Provider, { - value: { - user, - query, - mariadbUserCred, - mariadbUsers, - targetMariadbUser, - setTargetMariadbUser, - refresh, - setRefresh - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(ConnectContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(EditMariadbUserPopup, {}), - /*#__PURE__*/ jsx_runtime_.jsx(NewMariadbUserPopup, {}) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const mariadbUserCredArray = await DB_HANDLER_default()(`SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?`, [ - user.id - ]); - const mariadbUserCred = mariadbUserCredArray?.[0] || {}; - if (mariadbUserCred?.mariadb_pass) { - mariadbUserCred.mariadb_pass = decrypt_default()(mariadbUserCred.mariadb_pass); - } - //////////////////////////////////////// - const mariadbUsers = await DB_HANDLER_default()(`SELECT * FROM mariadb_users WHERE user_id = ?`, [ - user.id - ]); - if (mariadbUsers?.[0]) { - for(let i = 0; i < mariadbUsers.length; i++){ - const mariaDBUser = mariadbUsers[i]; - mariaDBUser.password = decrypt_default()(mariaDBUser.password); - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - query, - mariadbUserCred, - mariadbUsers - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8757: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteOutlineOutlined"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472], () => (__webpack_exec__(5782))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2504,e.ids=[636,2504],e.modules={30671:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,t){return t in s?s[t]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,t)):"function"==typeof s&&"default"===t?s:void 0}}})},88297:(e,s,t)=>{t.r(s),t.d(s,{config:()=>z,default:()=>H,getServerSideProps:()=>G,getStaticPaths:()=>O,getStaticProps:()=>U,reportWebVitals:()=>F,routeModule:()=>Y,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>X,unstable_getStaticParams:()=>W,unstable_getStaticPaths:()=>B,unstable_getStaticProps:()=>D});var r={};t.r(r),t.d(r,{ConnectContext:()=>I,default:()=>T,getServerSideProps:()=>V});var a=t(63865),l=t(9455),i=t(30671),n=t(49407),d=t(68268),c=t(8732),o=t(82015),u=t.n(o),p=t(95222),x=t(20048),m=t.n(x),h=t(67216),j=t.n(h),f=t(58548),y=t(72412),b=t(54827);function v(e){let{user:s,query:t,mariadbUserCred:r}=u().useContext(I);return(0,c.jsx)("section",{className:"paper",children:(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can connect to your database remotely using any MySQL/Mariadb client. Use these credentials to connect:"}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Server:"," ",(0,c.jsx)("b",{children:"172.72.0.24"})]}),(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:r.mariadb_user})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:r.mariadb_host})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:e=>{navigator.clipboard.writeText(r.mariadb_pass||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(y.A,{})})]}),(0,c.jsx)("li",{children:(0,c.jsxs)("div",{className:"flex",children:["SSL Certificate:"," ",(0,c.jsx)("b",{children:(0,c.jsx)("span",{className:"flex items-center gap-2",children:(0,c.jsxs)("a",{href:"https://datasquirel.com/documents/ssl/ca-cert.pem",className:"flex items-center gap-2 border-none hover:opacity-60",target:"_blank",children:[(0,c.jsx)(b.A,{className:"-mt-[3px]"}),"Download"]})})})]})})]})]})})}var g=t(56062),A=t(55158),E=t(32415),S=t(77627),N=t(63715);function w({mariadbUser:e}){let{setTargetMariadbUser:s}=u().useContext(I),t=!!String(e.primary)?.match(/1/),[r,a]=u().useState(!1);return(0,c.jsxs)("div",{className:"card w-full col"+(t?" green":""),children:[r&&(0,c.jsx)(E.A,{width:"25px"}),(0,c.jsxs)("div",{className:"w-full justify-between h-auto md:h-8 flex-wrap",children:[(0,c.jsxs)("span",{className:"title",children:[e.username,"@",e.host]}),(0,c.jsxs)("div",{children:[t&&(0,c.jsx)("span",{className:"info small w-auto",children:"Primary User"}),(0,c.jsx)("button",{className:"ghost",title:"Edit User",onClick:t=>{s(e),(0,A.PB)("edit-mariadb-user-popup")},children:(0,c.jsx)(g.A,{})}),!t&&(0,c.jsx)("button",{className:"ghost -ml-6",title:"Edit User",onClick:s=>{window.confirm("Are you sure you want to delete this User?")&&(a(!0),(0,N.A)("/api/sql-users/delete",{method:"POST",body:{id:e.id}},!0).then(e=>{e.success?window.location.reload():e.msg&&window.alert(e.msg)}).finally(()=>{setTimeout(()=>{a(!1)},1e3)}))},children:(0,c.jsx)(S.A,{})})]})]}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ul",{className:"m-0",children:[(0,c.jsxs)("li",{children:["Username: ",(0,c.jsx)("b",{children:e.username})]}),(0,c.jsxs)("li",{children:["Host: ",(0,c.jsx)("b",{children:e.host}),(0,c.jsx)("span",{className:"info gray font-normal",children:"% is a wildcard. Example: 192.168.1.%"})]}),(0,c.jsxs)("li",{children:["Password: ",(0,c.jsx)("b",{children:"*****************"}),(0,c.jsx)("button",{className:"ghost inline-block -my-4",onClick:s=>{navigator.clipboard.writeText(e.password||"").then(()=>{window.alert("Copied Password!")})},children:(0,c.jsx)(y.A,{className:"text-[15px] -ml-2"})})]})]})]})}function P(e){let{mariadbUsers:s}=u().useContext(I);return(0,c.jsxs)("section",{className:"paper",children:[(0,c.jsxs)("div",{className:"w-full justify-between",children:[(0,c.jsx)("h2",{className:"text-xl m-0",children:"SQL Users"}),(0,c.jsx)("div",{children:(0,c.jsx)("button",{onClick:e=>{(0,A.PB)("new-mariadb-user-popup")},children:"Add SQL User"})})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,c.jsx)("span",{children:"You can customize your SQL users and permissions here. You can add up to 10 hosts/IP addresses (including your primary host)"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"grid w-full grid-cols-1 xl:grid-cols-2 gap-6",children:s.map((e,s)=>(0,c.jsx)(w,{mariadbUser:e},s+1))})]})]})}function C(e){let{user:s,query:t,mariadbUserCred:r}=u().useContext(I);return(0,c.jsxs)(u().Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,c.jsx)("div",{className:"",children:(0,c.jsx)("h1",{className:"text-3xl m-0",children:"Connect"})}),(0,c.jsx)(f.A,{user:s})]}),(0,c.jsx)(v,{}),(0,c.jsx)(P,{})]})}function k({grants:e,setGrants:s,edit:t}){let{user:r,targetMariadbUser:a}=u().useContext(I),l=!!String(a?.primary).match(/1/)&&t,i=!!e.find(e=>"*"==e.database),n=!!e.find(e=>"*"==e.table),d=!!e.find(e=>e.privileges.includes("ALL PRIVILEGES")),[o,p]=u().useState([]),[x,m]=u().useState({}),[h,j]=u().useState([]),[f,y]=u().useState({}),[b,v]=u().useState(["ALL PRIVILEGES"]),[g,A]=u().useState("ALL PRIVILEGES"),[E,S]=u().useState(!1);return(0,c.jsxs)("div",{id:"grant-select-block",className:"flex flex-col items-stretch w-full p-6 border border-slate-200 border-solid rounded",children:[(0,c.jsx)("h4",{className:"m-0 text-lg",children:"Grants"}),(0,c.jsx)("span",{children:"This section determines fine grained access of this user to databases and tables"}),(0,c.jsx)("hr",{}),(0,c.jsx)("div",{className:"flex-wrap",children:e?.[0]?e.map((t,r)=>(0,c.jsxs)("div",{className:"text-sm pr-10 bg-secondary text-white px-3 py-2 rounded flex-wrap relative",children:[(0,c.jsx)("span",{children:t.privileges}),(0,c.jsx)("span",{children:"="}),(0,c.jsxs)("span",{children:[" ",t.database.replace(/datasquirel_user_\d+_/,"")]}),(0,c.jsx)("span",{children:"."}),(0,c.jsx)("span",{children:t.table}),!l&&(0,c.jsx)("div",{className:"button white absolute top-1.5 right-1.5 p-2 w-6 h-6",onClick:t=>{let a=[...e];a.splice(r,1),s(a)},children:"x"})]})):(0,c.jsx)("span",{className:"text-slate-400 px-4 py-2 bg-slate-100 w-full flex items-center justify-center",children:"No Grants"})}),(0,c.jsx)("hr",{}),i&&n&&d?(0,c.jsx)("span",{className:"text-sm text-slate-500",children:'All Privileges have been granted! Delete "ALL PRIVILEGES on *.*" to add fine-grained privileges'}):E?(0,c.jsx)(c.Fragment,{children:l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-database",children:"Database"}),(0,c.jsxs)("select",{name:"grants-database",id:"grants-database",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=o.find(e=>e.db_full_name==s);t&&m(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-DATABASES--"}),o.map((e,s)=>(0,c.jsx)("option",{value:e.db_full_name,children:e.db_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-table",children:"Table"}),(0,c.jsxs)("select",{name:"grants-table",id:"grants-table",className:"text-sm",onChange:e=>{let s=e.target.value;if("NULL"==s)return;let t=h.find(e=>e.table_slug==s);t&&y(t)},children:[(0,c.jsx)("option",{value:"*",children:"--ALL-TABLES--"}),h?.[0]&&h.map((e,s)=>(0,c.jsx)("option",{value:e.table_slug,children:e.table_name},s+1))]})]}),(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:"grants-databases",children:"Permissions"}),(0,c.jsx)("div",{className:"flex-wrap gap-y-2 mb-1",children:b?.[0]?b.map((e,s)=>(0,c.jsxs)("span",{className:"text-xs px-2 py-1 border border-solid border-slate-200 rounded",children:[e,(0,c.jsx)("span",{className:"cursor-pointer p-2 hover:opacity-50",onClick:e=>{let t=[...b];t.splice(s,1),v(t)},children:"x"})]})):(0,c.jsx)("span",{className:"text-xs px-3 py-1 bg-slate-100 text-slate-400",children:"No Permissions Selected"})}),(0,c.jsxs)("div",{className:"w-full items-stretch",children:[(0,c.jsx)("select",{name:"grants-databases",id:"grants-databases",className:"text-sm",onChange:e=>{A(e.target.value)},children:["ALL PRIVILEGES","ALTER","ALTER ROUTINE","CREATE","CREATE ROUTINE","CREATE TEMPORARY TABLES","CREATE VIEW","DELETE","DROP","EVENT","EXECUTE","FILE","INDEX","INSERT","LOCK TABLES","PROCESS","REFERENCES","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","SELECT","SHOW VIEW","SUPER","TRIGGER","UPDATE","USAGE"].map((e,s)=>(0,c.jsx)("option",{value:e,children:e},s))}),(0,c.jsx)("div",{className:"button outlined gray text-2xl",onClick:e=>{if(!b.includes(g)){if(b.includes("ALL PRIVILEGES")){alert("ALL PRIVILEGES already covers for the rest. Remove ALL PRIVILEGES permission to add others");return}v([...b,g])}},children:"+"})]})]}),!l&&(0,c.jsxs)("div",{className:"button outlined secondary",onClick:t=>{if(!b?.[0]){alert("Please select atleast 1 permission. *REMEMBER to click the + button to add the permission to the list");return}s([...e,{database:x.db_full_name||"*",privileges:b,table:f.table_slug||"*"}]),S(!1)},children:[(0,c.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]}),(0,c.jsx)("div",{className:"button outlined gray",onClick:()=>{S(!1)},children:"Cancel"})]})}):l?(0,c.jsx)("span",{className:"text-slate-400",children:"Primary users have full control over all databases."}):(0,c.jsxs)("div",{className:"button outlined gray",onClick:e=>{S(!0)},children:[(0,c.jsx)("span",{className:"text-2xl h-6 flex items-center justify-center",children:"+"}),"\xa0Add Grant"]})]})}function q({mariaDBUser:e,edit:s,username:t}){let{user:r}=u().useContext(I),a=e?Object.keys(e):["username","host","password"],l=/username|host|password/,i=/username/,n=/host/,d=(()=>{try{if(s&&e?.grants)return JSON.parse(e.grants);return null}catch(e){return null}})(),[o,p]=u().useState(d||[{database:"*",table:"*",privileges:["ALL PRIVILEGES"]}]),[x,m]=u().useState(!1);return(0,c.jsxs)("form",{onSubmit:t=>{t.preventDefault(),console.log("form clicked");let r=Array.from(t.target),a={};if(r.forEach(e=>{"INPUT"==e.nodeName&&(a[e.name]=e.value)}),s&&delete a.username,!o?.[0]){alert("Please add at least one grant");return}m(!0),(0,N.A)(s?"/api/sql-users/update":"/api/sql-users/create",{method:"POST",body:{data:a,edit:!!s,prev:e,grants:o}},!0).then(e=>{e.success?window.location.reload():e.msg&&(window.alert(e.msg),m(!1))})},className:"w-full gap-4 flex flex-col",children:[x&&(0,c.jsx)(E.A,{width:"25px"}),a.map((s,t)=>{let a=e?e[s]:"username"==s?`dsql_user_${r.id}`:null,d=i.test(s),o=n.test(s);return s.match(l)?(0,c.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,c.jsx)("label",{htmlFor:s,children:s}),(0,c.jsx)("input",{type:s.match("password")?"password":"text",name:s,id:s,defaultValue:a||void 0,readOnly:d,className:d?"bg-slate-100 opacity-50 pointer-events-none":"",placeholder:s,required:o})]},t+1):null}),(0,c.jsx)(k,{grants:o,setGrants:p,edit:s}),(0,c.jsx)("button",{type:"submit",children:s?"Update User":"Create SQL User"})]})}function L(e){let{targetMariadbUser:s}=u().useContext(I),[t,r]=u().useState(!1);return(0,c.jsx)(A.Ay,{title:"edit-mariadb-user-popup",children:t&&s?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("h3",{children:(0,c.jsxs)("div",{className:"flex",children:[(0,c.jsx)("span",{children:"Edit"}),(0,c.jsxs)("span",{className:"info inline w-auto text-xl green",children:[s.username,"@",s.host]})]})}),(0,c.jsx)("hr",{}),(0,c.jsx)(q,{mariaDBUser:s,edit:!0})]}):(0,c.jsx)("div",{className:"p-20",children:(0,c.jsx)(E.A,{width:"25px"})})})}function M(e){return(0,c.jsxs)(A.Ay,{title:"new-mariadb-user-popup",children:[(0,c.jsx)("h3",{children:"New MariaDB User"}),(0,c.jsx)("hr",{}),(0,c.jsx)(q,{})]})}var _=t(83007),R=t.n(_);let I=u().createContext({});function T({user:e,query:s,mariadbUserCred:t,mariadbUsers:r}){let a=(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("title",{children:"SQL Connect | Datasquirel"}),(0,c.jsx)("meta",{name:"description",content:"Connect to your database remotely"})]}),[l,i]=u().useState(null),[n,d]=u().useState(null);return(0,c.jsx)(p.A,{head:a,user:e,aceEditor:!0,children:(0,c.jsxs)(I.Provider,{value:{user:e,query:s,mariadbUserCred:t,mariadbUsers:r,targetMariadbUser:l,setTargetMariadbUser:i,refresh:n,setRefresh:d},children:[(0,c.jsx)(C,{}),(0,c.jsx)(L,{}),(0,c.jsx)(M,{})]})})}async function V({req:e,res:s,query:t}){let r=await m()(e,s);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await j()("SELECT mariadb_user, mariadb_host, mariadb_pass FROM users WHERE id = ?",[r.id]),l=a?.[0]||{};l?.mariadb_pass&&(l.mariadb_pass=R()(l.mariadb_pass));let i=await j()("SELECT * FROM mariadb_users WHERE user_id = ?",[r.id]);if(i?.[0])for(let e=0;e<i.length;e++){let s=i[e];s.password=R()(s.password)}return{props:{user:r,query:t,mariadbUserCred:l,mariadbUsers:i}}}let H=(0,i.M)(r,"default"),U=(0,i.M)(r,"getStaticProps"),O=(0,i.M)(r,"getStaticPaths"),G=(0,i.M)(r,"getServerSideProps"),z=(0,i.M)(r,"config"),F=(0,i.M)(r,"reportWebVitals"),D=(0,i.M)(r,"unstable_getStaticProps"),B=(0,i.M)(r,"unstable_getStaticPaths"),W=(0,i.M)(r,"unstable_getStaticParams"),Q=(0,i.M)(r,"unstable_getServerProps"),X=(0,i.M)(r,"unstable_getServerSideProps"),Y=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/connect",pathname:"/admin/[user_id]/connect",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:r})},55158:(e,s,t)=>{t.d(s,{Ay:()=>n,PB:()=>d,fs:()=>c});var r=t(8732),a=t(58150),l=t(82015),i=t.n(l);function n({children:e,title:s,data:t,fullPage:l,wrapperClasses:n,closePopupDispatch:d,wrapperStyle:o,noContainer:u}){return l?(0,r.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":s||null,style:o,children:[u?(0,r.jsx)(i().Fragment,{children:e}):(0,r.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,r.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,r.jsx)(a.A,{color:"white",size:20})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,r.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[u?(0,r.jsx)(i().Fragment,{children:e}):(0,r.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,r.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})})]}),u&&(0,r.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s&&s(t))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},26406:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},72412:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopyOutlined")},77627:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},56062:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"}),"EditNoteOutlined")},54827:(e,s,t)=>{var r=t(24994);s.A=void 0;var a=r(t(30887)),l=t(8732);s.A=(0,a.default)((0,l.jsx)("path",{d:"m12 16 4-4h-3V3h-2v9H8zm9-13h-6v1.99h6v14.03H3V4.99h6V3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-9 13 4-4h-3V3h-2v9H8zm9-13h-6v1.99h6v14.03H3V4.99h6V3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"SystemUpdateAltOutlined")},92441:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>r});let r=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,s)=>{var t;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[9764,883,8268,7070],()=>t(88297));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json index 51af24d..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteOutlineOutlined.js","../../../../../node_modules/@mui/icons-material/ContentCopyOutlined.js","../../../../../node_modules/@mui/icons-material/SystemUpdateAltOutlined.js","../../../../../node_modules/@mui/icons-material/EditNoteOutlined.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js index ea4dd78..8d133a6 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js @@ -1,200 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 133; -exports.ids = [133,4135]; -exports.modules = { - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7946,1500,75,9282], () => (__webpack_exec__(2109))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2564,e.ids=[636,2564],e.modules={86482:(e,r,t)=>{t.r(r),t.d(r,{config:()=>q,default:()=>l,getServerSideProps:()=>x,getStaticPaths:()=>n,getStaticProps:()=>m,reportWebVitals:()=>d,routeModule:()=>f,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>P,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>c});var s=t(63865),i=t(9455),u=t(30671),o=t(49407),p=t(68268),a=t(86176);let l=(0,u.M)(a,"default"),m=(0,u.M)(a,"getStaticProps"),n=(0,u.M)(a,"getStaticPaths"),x=(0,u.M)(a,"getServerSideProps"),q=(0,u.M)(a,"config"),d=(0,u.M)(a,"reportWebVitals"),c=(0,u.M)(a,"unstable_getStaticProps"),g=(0,u.M)(a,"unstable_getStaticPaths"),P=(0,u.M)(a,"unstable_getStaticParams"),S=(0,u.M)(a,"unstable_getServerProps"),b=(0,u.M)(a,"unstable_getServerSideProps"),f=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases",pathname:"/admin/[user_id]/databases",bundlePath:"",filename:""},components:{App:p.default,Document:o.default},userland:a})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,7070,1223],()=>t(86482));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json index c65089a..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../chunks/7946.js","../../../chunks/1500.js","../../../chunks/75.js","../../../chunks/9282.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js index 2627fa7..ef8cd47 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js @@ -1,757 +1,8 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6930; -exports.ids = [6930,133,4135]; -exports.modules = { - -/***/ 366: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleDatabaseContext": () => (/* binding */ SingleDatabaseContext), - "default": () => (/* binding */ SingleDatabase), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/databases/DeleteDatabaseConfirmationPopup.jsx -var DeleteDatabaseConfirmationPopup = __webpack_require__(5012); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/DatabaseSlugCopy.jsx -var DatabaseSlugCopy = __webpack_require__(4739); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/SendToMobileTwoTone" -var SendToMobileTwoTone_ = __webpack_require__(6500); -var SendToMobileTwoTone_default = /*#__PURE__*/__webpack_require__.n(SendToMobileTwoTone_); -// EXTERNAL MODULE: ./functions/frontend/downloadApiStream.js -var downloadApiStream = __webpack_require__(7851); -;// CONCATENATED MODULE: ./components/admin/databases/SingleDatabasesContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleDatabasesContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , tables , setTargetTable , confirmedDelegetedUser , query , user , } = external_react_default().useContext(SingleDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full relative z-50", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap gap-y-0", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - database.db_name.replace(/ database$/i, ""), - " ", - "Database" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabaseSlugCopy/* default */.Z, { - slugText: database.db_slug, - outlined: true - }), - !isDelegated && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "button small-text outlined gray", - onClick: (e)=>{ - (0,downloadApiStream/* default */.Z)({ - url: `/api/exportDatabase?dbName=${database.db_full_name}`, - fileName: `${database.db_full_name}.sql`, - setLoading: setLoading - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((SendToMobileTwoTone_default()), { - fontSize: "small", - color: "action", - className: "opacity-50", - sx: { - fontSize: 14 - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Export" - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - !isDelegated && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/add-table`, - className: "button flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Table" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables`, - className: "button secondary", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "All Tables" - }) - }), - !isDelegated && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users`, - className: "button dark", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Users" - }) - }), - !isDelegated && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper my-4 xl:my-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "hidden xl:flex button outlined gray", - children: "More" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - column: true, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/edit-database`, - className: "button outlined gray more-padding", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Edit Database" - }) - }), - !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray more-padding", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("delete-database-confirmation"); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Delete Database" - }) - }), - !isDelegated && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray more-padding", - onClick: (e)=>{ - (0,downloadApiStream/* default */.Z)({ - url: `/api/exportDatabase?dbName=${database.db_full_name}`, - fileName: `${database.db_full_name}.sql`, - setLoading: setLoading - }); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Export Database" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/add-user?db=${database.db_slug}`, - className: "button outlined secondary more-padding", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add User" - }) - ] - }) - ] - }) - }) - ] - }) - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query.delegated, - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* default */.Z, { - database: database, - tables: tables, - setTargetTable: setTargetTable, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - user: user - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper green", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Triggers" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Coming Soon ..." - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper primary", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Stored Proceedures" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-slate-400", - children: "Coming Soon ..." - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/DeleteTableConfirmationPopup.jsx -var DeleteTableConfirmationPopup = __webpack_require__(1674); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").SingleDatabaseContextType} */ // @ts-ignore -const init = {}; -const SingleDatabaseContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def[]} props.tables - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function SingleDatabase({ user , database , tables , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${database.db_name} Database | Datasquirel`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ targetTable: import("@/package-shared/types").MYSQL_user_database_tables_table_def | null, setTargetTable: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def | null>> ]} */ // @ts-ignore - const [targetTable, setTargetTable] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(SingleDatabaseContext.Provider, { - value: { - user, - database, - tables, - targetTable, - setTargetTable, - query, - confirmedDelegetedUser - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SingleDatabasesContent, {}), - !confirmedDelegetedUser?.delegated && /*#__PURE__*/ jsx_runtime_.jsx(DeleteDatabaseConfirmationPopup/* default */.Z, { - targetDatabase: database - }), - (!confirmedDelegetedUser?.delegated || confirmedDelegetedUser?.delegated && confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i)) && /*#__PURE__*/ jsx_runtime_.jsx(DeleteTableConfirmationPopup/* default */.Z, { - targetTable: targetTable, - database: database - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Check delegated user token - * - * @description Check delegated user token - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - // @ts-ignore - databaseSlug: query.single, - query - }); - const dbuserDataObj = dbUserData; - if (!dbuserDataObj) return { - redirect: { - destination: "/admin", - permanent: false - } - }; - const { dbUserId , rootUserId } = dbuserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - // const databaseTablesInfo = await noDatabaseDbHandler(`SELECT * FROM information_schema.tables WHERE TABLE_SCHEMA = '${database[0].db_full_name}'`); - const tables = rootUserId ? await DB_HANDLER_default()(` - SELECT - delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* - FROM - delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug - WHERE - delegated_user_tables.delegated_user_id='${user.id}' AND delegated_user_tables.root_user_id='${rootUserId}' AND delegated_user_tables.database='${database[0].db_slug}' - `) : await DB_HANDLER_default()(`SELECT * FROM user_database_tables WHERE user_id='${user.id}' AND db_id='${database[0].id}'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0] ? database[0] : null, - tables: tables, - query, - confirmedDelegetedUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,75,1674], () => (__webpack_exec__(366))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4123,e.ids=[636,4123],e.modules={87560:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{config:()=>b,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>g});var r=t(63865),i=t(9455),l=t(30671),d=t(49407),n=t(68268),o=t(97311),u=e([o]);o=(u.then?(await u)():u)[0];let c=(0,l.M)(o,"default"),m=(0,l.M)(o,"getStaticProps"),p=(0,l.M)(o,"getStaticPaths"),x=(0,l.M)(o,"getServerSideProps"),b=(0,l.M)(o,"config"),h=(0,l.M)(o,"reportWebVitals"),g=(0,l.M)(o,"unstable_getStaticProps"),_=(0,l.M)(o,"unstable_getStaticPaths"),j=(0,l.M)(o,"unstable_getStaticParams"),f=(0,l.M)(o,"unstable_getServerProps"),y=(0,l.M)(o,"unstable_getServerSideProps"),S=new r.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]",pathname:"/admin/[user_id]/databases/[single]",bundlePath:"",filename:""},components:{App:n.default,Document:d.default},userland:o});a()}catch(e){a(e)}})},34033:(e,s,t)=>{t.d(s,{A:()=>o});var a=t(8732),r=t(82015),i=t.n(r),l=t(63715),d=t(55158),n=t(32415);function o({targetDatabase:e}){let[s,t]=i().useState(!1);return(0,a.jsxs)(d.Ay,{title:"delete-database-confirmation",children:[s&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"outlined"+(s?" pointer-events-none opacity-40":""),onClick:s=>{if(!e){alert("No Target Database Selected!");return}t(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,l.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):t(!1)},children:(0,a.jsx)("span",{children:"Yes"})}),(0,a.jsx)("button",{onClick:e=>{(0,d.fs)()},children:(0,a.jsx)("span",{children:"Cancel"})})]})]})}},73972:(e,s,t)=>{t.d(s,{A:()=>o});var a=t(8732),r=t(82015),i=t.n(r),l=t(63715);t(58548);var d=t(55158),n=t(32415);function o({targetTable:e,database:s}){let[t,r]=i().useState(!1);return(0,a.jsxs)(d.Ay,{title:"delete-table-confirmation",children:[t&&(0,a.jsx)(n.A,{width:"20px"}),(0,a.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:t=>{r(!0),(0,l.A)("/api/deleteUserTable",{method:"post",body:{database:s,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,a.jsx)("span",{children:"Yes"})}),(0,a.jsx)("button",{onClick:e=>{(0,d.fs)()},children:(0,a.jsx)("span",{children:"Cancel"})})]})]})}},26647:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.d(s,{A:()=>_});var r=t(8732),i=t(82015),l=t.n(i),d=t(58548),n=t(97311),o=t(55158),u=t(59621),c=t(46437),m=t(86173),p=t(62506),x=t(32415),b=t(48987),h=t(22603),g=e([n,u]);function _(e){let{database:s,tables:t,setTargetTable:a,confirmedDelegetedUser:i,query:g,user:_}=l().useContext(n.SingleDatabaseContext),j=i?.delegated;i?.priviledges?.match(/Edit Tables/i),i?.priviledges?.match(/Delete Tables/i);let{active_clone:f,active_clone_parent_db:y,remote_connected:S}=s,[q,N]=l().useState(!1);return(0,r.jsxs)(l().Fragment,{children:[q&&(0,r.jsx)(x.A,{}),(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,r.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,r.jsxs)("div",{className:"flex-wrap",children:[(0,r.jsx)(c.A,{}),(0,r.jsxs)("div",{className:"flex-wrap gap-y-0",children:[(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[s.db_name.replace(/ database$/i,"")," ","Database"]}),(0,r.jsx)(m.A,{slugText:s.db_slug,outlined:!0}),!j&&(0,r.jsxs)("button",{className:"button small-text outlined gray",onClick:e=>{(0,h.A)({url:`/api/exportDatabase?dbName=${s.db_full_name}`,fileName:`${s.db_full_name}.sql`,setLoading:N})},children:[(0,r.jsx)(b.A,{fontSize:"small",color:"action",className:"opacity-50",sx:{fontSize:14}}),(0,r.jsx)("span",{children:"Export"})]})]})]}),(0,r.jsx)("div",{className:"flex-wrap flex-col md:flex-row items-stretch md:items-center w-full md:w-auto",children:(0,r.jsxs)(p.A,{children:[!j&&!y&&!S&&(0,r.jsxs)("a",{href:`/admin/${_?.id}/databases/${s.db_slug}/tables/add-table`,className:"button flex items-center gap-2",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add Table"})]}),(0,r.jsx)("a",{href:`/admin/${_?.id}/databases/${s.db_slug}/tables`,className:"button secondary",children:(0,r.jsx)("span",{children:"All Tables"})}),!j&&(0,r.jsx)("a",{href:`/admin/${_?.id}/databases/${s.db_slug}/users`,className:"button dark",children:(0,r.jsx)("span",{children:"Users"})}),!j&&(0,r.jsxs)("div",{className:"dropdown-wrapper my-4 xl:my-0",children:[(0,r.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,r.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2 items-stretch",children:(0,r.jsxs)(p.A,{column:!0,children:[(0,r.jsx)("a",{href:`/admin/${_?.id}/databases/${s.db_slug}/edit-database`,className:"button outlined gray more-padding",children:(0,r.jsx)("span",{children:"Edit Database"})}),!y&&!S&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,o.PB)("delete-database-confirmation")},children:(0,r.jsx)("span",{children:"Delete Database"})}),!j&&(0,r.jsx)("button",{className:"outlined gray more-padding",onClick:e=>{(0,h.A)({url:`/api/exportDatabase?dbName=${s.db_full_name}`,fileName:`${s.db_full_name}.sql`,setLoading:N})},children:(0,r.jsx)("span",{children:"Export Database"})}),(0,r.jsxs)("a",{href:`/admin/${_?.id}/users/add-user?db=${s.db_slug}`,className:"button outlined secondary more-padding",children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add User"})]})]})})]})]})})]}),(0,r.jsx)(d.A,{confirmedDelegetedUser:g.delegated,user:_})]}),(0,r.jsx)(u.A,{database:s,tables:t,setTargetTable:a,confirmedDelegetedUser:i,query:g,user:_}),(0,r.jsxs)("section",{className:"paper green",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Triggers"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]}),(0,r.jsxs)("section",{className:"paper primary",children:[(0,r.jsx)("h2",{className:"text-xl m-0",children:"Stored Proceedures"}),(0,r.jsx)("hr",{}),(0,r.jsx)("span",{className:"text-slate-400",children:"Coming Soon ..."})]})]})}[n,u]=g.then?(await g)():g,a()}catch(e){a(e)}})},86173:(e,s,t)=>{t.d(s,{A:()=>i});var a=t(8732);t(82015);var r=t(69290);function i({slugText:e,smaller:s,outlined:t,full:i}){return(0,a.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(t?" outlined gray":"light-gray")+(s?" small-text":""),onClick:s=>{navigator.clipboard.writeText(e).then(()=>{alert(`${i?"Database Full name":"Database Slug"} "${e}" Copied to Clipboard. Use this as the database name when querying data`)})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,a.jsx)(r.A,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,a.jsx)("span",{children:e})]})}},31651:(e,s,t)=>{t(81630);let a=t(83007);e.exports=async function({request:e,databaseSlug:s,user:t,query:r}){try{let i=t.id,l=null;if(!r?.delegated)return{dbUserId:i};let d=r.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${d}_${s}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[o])throw Error("Cookie not present");let t=a(e.cookies[o]);if(!t)throw Error("Invalid Token");if((l=JSON.parse(t)).databaseSlug===s)return{dbUserId:i=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:i}}catch(e){return null}}},97311:(e,s,t)=>{t.a(e,async(e,a)=>{try{t.r(s),t.d(s,{SingleDatabaseContext:()=>y,default:()=>j,getServerSideProps:()=>f});var r=t(8732),i=t(82015),l=t.n(i),d=t(95222),n=t(20048),o=t.n(n),u=t(34033),c=t(26647),m=t(73972),p=t(64098),x=t(31651),b=t.n(x),h=t(67216),g=t.n(h),_=e([c,p]);[c,p]=_.then?(await _)():_;let y=l().createContext({});function j({user:e,database:s,tables:t,query:a,confirmedDelegetedUser:i}){let n=`${s.db_name} Database | Datasquirel`,o=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:n}),(0,r.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,b]=l().useState(null);return(0,r.jsx)(d.A,{head:o,user:e,extraHeaderContent:(0,r.jsx)(p.A,{database:s,query:a,confirmedDelegetedUser:i,user:e}),children:(0,r.jsxs)(y.Provider,{value:{user:e,database:s,tables:t,targetTable:x,setTargetTable:b,query:a,confirmedDelegetedUser:i},children:[(0,r.jsx)(c.A,{}),!i?.delegated&&(0,r.jsx)(u.A,{targetDatabase:s}),(!i?.delegated||i?.delegated&&i?.priviledges?.match(/Delete Tables/i))&&(0,r.jsx)(m.A,{targetTable:x,database:s})]})})}async function f({req:e,res:s,query:t}){let a=await o()(e,s);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await b()({request:e,user:a,databaseSlug:t.single,query:t});if(!r)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:i,rootUserId:l}=r,d=await g()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${t.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let n=l?await g()(` + SELECT + delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* + FROM + delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug + WHERE + delegated_user_tables.delegated_user_id='${a.id}' AND delegated_user_tables.root_user_id='${l}' AND delegated_user_tables.database='${d[0].db_slug}' + `):await g()(`SELECT * FROM user_database_tables WHERE user_id='${a.id}' AND db_id='${d[0].id}'`);return{props:{user:a,database:d[0]?d[0]:null,tables:n,query:t,confirmedDelegetedUser:r}}}a()}catch(e){a(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[9764,883,7734,8268,7070,5134,9621],()=>t(87560));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json index 5867fa6..4a04045 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/913.js","../../../../chunks/4480.js","../../../../chunks/370.js","../../../../chunks/424.js","../../../../chunks/4858.js","../../../../chunks/5472.js","../../../../chunks/1781.js","../../../../chunks/4941.js","../../../../chunks/5116.js","../../../../chunks/8345.js","../../../../chunks/4986.js","../../../../chunks/8264.js","../../../../chunks/1500.js","../../../../chunks/75.js","../../../../chunks/1674.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../node_modules/tailwind-merge/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js index ffc98e8..a8ff8cc 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js @@ -1,863 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3952; -exports.ids = [3952,8105]; -exports.modules = { +"use strict";(()=>{var e={};e.id=7552,e.ids=[636,7552],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},78725:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>u,getServerSideProps:()=>h,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>y,routeModule:()=>A,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var s=r(63865),l=r(9455),i=r(30671),n=r(49407),o=r(68268),c=r(16905),d=e([c]);c=(d.then?(await d)():d)[0];let u=(0,i.M)(c,"default"),m=(0,i.M)(c,"getStaticProps"),p=(0,i.M)(c,"getStaticPaths"),h=(0,i.M)(c,"getServerSideProps"),x=(0,i.M)(c,"config"),y=(0,i.M)(c,"reportWebVitals"),f=(0,i.M)(c,"unstable_getStaticProps"),g=(0,i.M)(c,"unstable_getStaticPaths"),b=(0,i.M)(c,"unstable_getStaticParams"),v=(0,i.M)(c,"unstable_getServerProps"),S=(0,i.M)(c,"unstable_getServerSideProps"),A=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/connect",pathname:"/admin/[user_id]/databases/[single]/connect",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:c});a()}catch(e){a(e)}})},85019:(e,t,r)=>{r.d(t,{A:()=>u});var a=r(8732),s=r(82015),l=r.n(s),i=r(13737),n=r(32415),o=r(43656),c=r(63715),d=r(51548);function u({database:e,targetDbSchema:t,user:r}){let[s,d]=l().useState(!1),[u,p]=l().useState(!1),[h,x]=l().useState("pull"),[y,f]=l().useState(null);return s&&y?(0,a.jsx)(m,{payload:y,setConnectPayload:f,setIsValid:d,user:r}):(0,a.jsxs)("form",{onSubmit:r=>{(function({e,setLoading:t,database:r,type:a,targetDbSchema:s,setIsValid:l,setConnectPayload:i}){e.preventDefault();let n=e.target;t(!0);let o={url:n["remote-address"].value,key:n["remote-key"].value,database:r,dbSchema:s,type:a};(0,c.A)("/api/connect/verify",{method:"POST",body:o},!0).then(e=>{e.success?(l(!0),i({...o,remoteDbs:e.payload})):(console.log(e),setTimeout(()=>{t(!1)},2e3))}).finally(()=>{setTimeout(()=>{t(!1)},2e3)})})({e:r,setLoading:p,database:e,type:h,targetDbSchema:t,setIsValid:d,setConnectPayload:f})},className:"w-full flex flex-col items-start justify-start gap-4 static",children:[u&&(0,a.jsx)(n.A,{}),h?.match(/pull/)?(0,a.jsx)("div",{className:"info warning",children:"NOTE: This will override your current Database Schema"}):(0,a.jsx)("div",{className:"info green",children:"NOTE: The remote database will be updated with this Database Info"}),(0,a.jsx)("span",{children:"This Feature links this current database to a remote database schema"}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded",children:[(0,a.jsx)("span",{className:"font-bold",children:"Select the connection type"}),(0,a.jsx)(o.A,{radioValues:[{title:"Pull",payload:"pull",default:!0},{title:"Push",payload:"push",default:!1}],flexRow:!0,onChangeHandler:e=>{x(e.target.value)},name:"type-radio"}),(0,a.jsxs)("div",{children:[h.match(/pull/i)&&(0,a.jsx)("span",{children:"A pull connection imposes the remote database on your current database"}),h.match(/push/i)&&(0,a.jsx)("span",{children:"A push connection imposes your current database to the remote"})]})]}),(0,a.jsx)(i.A,{placeholder:"Eg. https://domain.com",title:"Remote Origin Address",name:"remote-address",required:!0}),(0,a.jsx)(i.A,{placeholder:"Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC",title:"Remote API key (Full Access)",name:"remote-key",required:!0}),(0,a.jsx)("button",{className:"w-full",children:"Verify Remote"})]})}function m({payload:e,setConnectPayload:t,setIsValid:r,user:s}){let[i,o]=l().useState(!1);if(!e?.remoteDbs?.[0])return(0,a.jsx)("span",{children:"No Databases Available on this Remote server."});let u=e.remoteDbs;if(!u?.[0])return(0,a.jsx)("span",{children:"The only Database Available here is this current Database"});let[m,p]=l().useState(u[0]);return(0,a.jsxs)("form",{onSubmit:t=>{t.preventDefault(),window.confirm("Connect these Databases?")&&(o(!0),(0,c.A)("/api/connect/handshake",{method:"POST",body:{...e,targetDb:m}},!0).then(t=>{t.success?window.location.pathname=`/admin/${s?.id}/databases/${e.database.db_slug}`:(console.log(t),alert(t?.msg||"Something Went Wrong"))}).finally(()=>{setTimeout(()=>{o(!1)},1e3)}))},className:"w-full gap-4 flex flex-col items-start justify-start",children:[i&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("h2",{className:"text-xl font-normal",children:["Select Database from"," ",(0,a.jsx)("b",{className:"text-black dark:text-white",children:e.url})," ","Remote Server"]}),(0,a.jsx)(d.A,{selectOptions:u.map(e=>({payload:e.dbFullName,title:e.dbName})),onChangeHandler:e=>{let t=e.target.value;if(t){let e=u.find(e=>e.dbFullName==t);e?p(e):alert("Failed to Select Target Database. Please reload the page and try again.")}}}),(0,a.jsxs)("span",{children:["Connection type:"," ",(0,a.jsx)("b",{className:"info inline small "+(e.type?.match(/pull/i)?"warning":"green"),children:e.type})]}),(0,a.jsx)("button",{className:"w-full",children:"Connect Database"}),(0,a.jsx)("div",{className:"button outlined gray w-full",onClick:e=>{r(!1),t(null)},children:"Reset"})]})}},52497:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>m});var s=r(8732),l=r(82015),i=r.n(l),n=r(46437),o=r(58548);r(63715);var c=r(16905),d=r(85019),u=e([c]);function m(e){let{database:t,user:r,targetDbSchema:a,query:l}=i().useContext(c.DatabaseConnectContext);if(!r)return null;try{return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[t?.db_name," Database Connect"]})})]}),(0,s.jsx)(o.A,{user:r})]}),(0,s.jsx)("div",{className:"paper w-full",children:(0,s.jsxs)("div",{className:"flex max-w-5xl w-full flex-col items-start gap-4",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Connect External Database Schema"}),(0,s.jsx)(d.A,{database:t,targetDbSchema:a,user:r})]})})]})}catch(e){return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Connect"})]})]}),(0,s.jsx)(o.A,{user:r})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Db connect unavailable at this time."})})]})}}c=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},43656:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({radioValues:e,name:t,onChangeHandler:r,setAlert:s,flexRow:l,labelColor:i,baseText:n,smallText:o,className:c}){try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(l?"":" flex-col ")+(c||""),children:e.map((e,l)=>{let{payload:c,title:d,jsx:u}=e,m=!1===c?c:c||d||null;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{className:"m-0"+(n?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+m,onChange:t=>{s&&s(null),e.onChangeHandler?e.onChangeHandler(t):r&&r(t)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:t+"_"+m,className:"text-lg m-0 "+(i||"text-slate-800")+(n?" text-base":o?" text-sm":" text-lg"),children:d})]},l+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}r(82015)},51548:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(8732),s=r(58526);function l({selectOptions:e,name:t,onChangeHandler:r,required:l,setAlert:i,title:n,defaultValue:o,info:c,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),r=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!r.classList.contains("hidden")){r.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&r.classList.contains("hidden"))){if(!t){r.classList.add("hidden");return}if(r.classList.contains("hidden")){r.classList.remove("hidden");return}r.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[n&&(0,a.jsxs)("label",{htmlFor:t,children:[n,l?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:l,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:r,title:s}=e;return(0,a.jsx)("option",{value:r,selected:!!e.default,children:s},t+1)})}),(0,a.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:c})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}r(82015)},43479:(e,t,r)=>{r.d(t,{A:()=>i});let a=r(68942),s=r(29021),l=r(33873);function i({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return a({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},68942:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],r=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${i.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/***/ 2279: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "DatabaseConnectContext": () => (/* binding */ DatabaseConnectContext), - "default": () => (/* binding */ DatabaseConnectPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/form/FormInput.jsx + 2 modules -var FormInput = __webpack_require__(7901); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/form/FormRadios.jsx -var FormRadios = __webpack_require__(2348); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -;// CONCATENATED MODULE: ./components/admin/databases/connect/ConnectForm.jsx -// @ts-check +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},42178:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)((0,l.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},48987:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,l.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,l.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,l.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,l.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},92441:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,r)=>{let a=r(83007),s=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l<e.length;l++){let i=e[l],n=Object.keys(i);for(let e=0;e<n.length;e++){let r=n[e],l=t?.fields[e];if(r?.match(s))continue;let o=i[r];("number"==typeof o||o)&&l?.encrypted&&o?.match(/./)&&(i[r]=a(o))}r.push(i)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},22373:(e,t,r)=>{let a=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:s}){let l=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let i=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",l),a.appendFileSync("./.tmp/error.log",` - - - -/** - * @param {object} props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType} props.targetDbSchema - * @param {import("@/package-shared/types").UserType} props.user - * @returns - */ function ConnectForm({ database , targetDbSchema , user }) { - const [isValid, setIsValid] = external_react_default().useState(false); - const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ state: "pull" | "push", dispatch: React.Dispatch<React.SetStateAction<"pull" | "push">> ]} */ // @ts-ignore - const [type, setType] = external_react_default().useState("pull"); - /** @type {[ state: import("@/package-shared/types").DbConnectType | null, dispatch: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DbConnectType | null>> ]} */ // @ts-ignore - const [connectPayload, setConnectPayload] = external_react_default().useState(null); - if (isValid && connectPayload) { - return /*#__PURE__*/ jsx_runtime_.jsx(SelectRemoteDbAndFinalizeForm, { - payload: connectPayload, - setConnectPayload: setConnectPayload, - setIsValid: setIsValid, - user: user - }); - } - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - verifyFormSubmitHandler({ - e, - setLoading, - database, - type, - targetDbSchema, - setIsValid, - setConnectPayload - }); - }, - className: "w-full flex flex-col items-start justify-start gap-4 static", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - type?.match(/pull/) ? /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "info warning", - children: "NOTE: This will override your current Database Schema" - }) : /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "info green", - children: "NOTE: The remote database will be updated with this Database Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "This Feature links this current database to a remote database schema" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-2 justify-start p-6 bg-slate-100 w-full rounded", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold", - children: "Select the connection type" - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormRadios/* default */.Z, { - radioValues: [ - { - title: "Pull", - payload: "pull", - default: true - }, - { - title: "Push", - payload: "push", - default: false - }, - ], - flexRow: true, - onChangeHandler: (e)=>{ - setType(e.target.value); - }, - name: "type-radio" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - type.match(/pull/i) && /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "A pull connection imposes the remote database on your current database" - }), - type.match(/push/i) && /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "A push connection imposes your current database to the remote" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - placeholder: "Eg. https://domain.com", - title: "Remote Origin Address", - name: "remote-address", - required: true - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormInput/* default */.Z, { - placeholder: "Eg. ab81XFogyWe4yc51Agjve52cUQ5XW75m2hLFVzGeoDZT2ob6hC", - title: "Remote API key (Full Access)", - name: "remote-key", - required: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full", - children: "Verify Remote" - }) - ] - }); -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ### VErify Form Submit Handler Function - * @param {object} params - * @param {React.FormEvent<HTMLFormElement>} params.e - * @param {React.Dispatch<React.SetStateAction<boolean>>} params.setLoading - * @param {"pull" | "push"} params.type - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType} params.targetDbSchema - * @param {React.Dispatch<React.SetStateAction<boolean>>} params.setIsValid - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DbConnectType | null>>} params.setConnectPayload - */ function verifyFormSubmitHandler({ e , setLoading , database , type , targetDbSchema , setIsValid , setConnectPayload , }) { - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - setLoading(true); - /** @type {import("@/package-shared/types").DbConnectType} */ const postBody = { - url: formEl["remote-address"].value, - key: formEl["remote-key"].value, - database, - dbSchema: targetDbSchema, - type - }; - (0,fetchApi/* default */.Z)("/api/connect/verify", { - method: "POST", - body: postBody - }, true).then((res)=>{ - if (res.success) { - setIsValid(true); - setConnectPayload({ - ...postBody, - remoteDbs: res.payload - }); - } else { - console.log(res); - setTimeout(()=>{ - setLoading(false); - }, 2000); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 2000); - }); -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ## Final Submit Form - * @param {object} props - * @param {import("@/package-shared/types").DbConnectType | null} props.payload - * @param {React.Dispatch<React.SetStateAction<boolean>>} props.setIsValid - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DbConnectType | null>>} props.setConnectPayload - * @param {import("@/package-shared/types").UserType} props.user - * @returns - */ function SelectRemoteDbAndFinalizeForm({ payload , setConnectPayload , setIsValid , user , }) { - const [loading, setLoading] = external_react_default().useState(false); - if (!payload?.remoteDbs?.[0]) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Databases Available on this Remote server." - }); - } - const remoteDatabases = payload.remoteDbs; - if (!remoteDatabases?.[0]) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "The only Database Available here is this current Database" - }); - } - const [targetDb, setTargetDb] = external_react_default().useState(remoteDatabases[0]); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - if (!window.confirm("Connect these Databases?")) return; - setLoading(true); - (0,fetchApi/* default */.Z)(`/api/connect/handshake`, { - method: "POST", - body: { - ...payload, - targetDb - } - }, true).then((res)=>{ - if (res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${payload.database.db_slug}`; - } else { - console.log(res); - alert(res?.msg || "Something Went Wrong"); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - }, - className: "w-full gap-4 flex flex-col items-start justify-start", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h2", { - className: "text-xl font-normal", - children: [ - "Select Database from", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - className: "text-black dark:text-white", - children: payload.url - }), - " ", - "Remote Server" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: remoteDatabases.map((db)=>{ - return { - payload: db.dbFullName, - title: db.dbName - }; - }), - onChangeHandler: (e)=>{ - /** @type {string | null} */ const targetDbName = e.target.value; - if (targetDbName) { - const targetDbObject = remoteDatabases.find((db)=>db.dbFullName == targetDbName); - if (targetDbObject) { - setTargetDb(targetDbObject); - } else { - alert("Failed to Select Target Database. Please reload the page and try again."); - } - } - } - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - "Connection type:", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - className: "info inline small " + (payload.type?.match(/pull/i) ? "warning" : "green"), - children: payload.type - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full", - children: "Connect Database" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray w-full", - onClick: (e)=>{ - setIsValid(false); - setConnectPayload(null); - }, - children: "Reset" - }) - ] - }); -} - -;// CONCATENATED MODULE: ./components/admin/databases/connect/DatabaseConnectContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabaseConnectContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , user , targetDbSchema , query } = external_react_default().useContext(DatabaseConnectContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!user) { - return null; - } - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - database?.db_name, - " Database Connect" - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "paper w-full", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex max-w-5xl w-full flex-col items-start gap-4", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Connect External Database Schema" - }), - /*#__PURE__*/ jsx_runtime_.jsx(ConnectForm, { - database, - targetDbSchema, - user - }) - ] - }) - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseShellContent/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name - }), - "\xa0", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Connect" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Db connect unavailable at this time." - }) - }) - ] - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(3314); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/connect.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DbConnectContextType} */ // @ts-ignore -const databaseShellInit = {}; -const DatabaseConnectContext = /*#__PURE__*/ external_react_default().createContext(databaseShellInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType} props.targetDbSchema - */ function DatabaseConnectPage({ user , database , query , targetDbSchema , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Database Shell | Datasquirel"; - const pageDescription = "Database Shell"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx("link", { - rel: "stylesheet", - href: "/styles/shell-page.css" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - aceEditor: true, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseConnectContext.Provider, { - value: { - user, - database, - targetDbSchema, - query - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseConnectContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database?.[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - if (Number(database[0].remote_connected) == 1) { - return { - redirect: { - destination: `/admin/${user?.id}/databases/${query.single}`, - permanent: false - } - }; - } - const tables = await varDatabaseDbHandler_default()({ - queryString: `SHOW TABLES`, - database: database[0].db_full_name - }); - const dbSchemaData = (0,grabUserSchemaData/* default */.Z)({ - userId: user.id - }); - if (!dbSchemaData?.[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const targetDbSchema = dbSchemaData.find((db)=>db.dbFullName == database[0].db_full_name); - if (!targetDbSchema) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - query, - targetDbSchema - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,7023,7901,4114,8682,2317,1206,3314,2348], () => (__webpack_exec__(2279))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},90378:(e,t,r)=>{r(29021);let a=r(89545),s=r(22373),l=r(67216),i=r(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:n}){let o;let c=!!r?.match(/^datasquirel$/),d=c?l:i;try{o=e&&t&&Array.isArray(t)&&t[0]?c?await d(e,t):await d({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):c?await d(e):await d({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&n)try{let e=o;return await a({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),l=r(31976),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:n}){try{return new Promise((o,c)=>{let d=!!e?.match(/full.access|^fa$/i);try{function u(e){i.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){i.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:n,sql:e.sql})}i=d?s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),n&&Array.isArray(n)&&n[0]?i.query(r,n).then(u).catch(m):i.query(r).then(u).catch(m)}catch(e){a.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},16905:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseConnectContext:()=>v,default:()=>g,getServerSideProps:()=>b});var s=r(8732),l=r(82015),i=r.n(l),n=r(95222),o=r(20048),c=r.n(o),d=r(64098),u=r(52497),m=r(43479),p=r(67216),h=r.n(p),x=r(90378),y=r.n(x),f=e([d,u]);[d,u]=f.then?(await f)():f;let v=i().createContext({});function g({user:e,database:t,query:r,targetDbSchema:a}){let l=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Database Shell"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]});return(0,s.jsx)(n.A,{head:l,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(v.Provider,{value:{user:e,database:t,targetDbSchema:a,query:r},children:(0,s.jsx)(u.A,{})})})}async function b({req:e,res:t,query:r}){let a=await c()(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await h()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);if(!s?.[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};if(1==Number(s[0].remote_connected))return{redirect:{destination:`/admin/${a?.id}/databases/${r.single}`,permanent:!1}};await y()({queryString:"SHOW TABLES",database:s[0].db_full_name});let l=(0,m.A)({userId:a.id});if(!l?.[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let i=l.find(e=>e.dbFullName==s[0].db_full_name);return i?{props:{user:a,database:s[0],query:r,targetDbSchema:i}}:{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}}}a()}catch(e){a(e)}})},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,8268,7070,5134,3737],()=>r(78725));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json index 2f043a8..5ca919c 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/7023.js","../../../../../chunks/7901.js","../../../../../chunks/4114.js","../../../../../chunks/8682.js","../../../../../chunks/2317.js","../../../../../chunks/1206.js","../../../../../chunks/3314.js","../../../../../chunks/2348.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../package.json","../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js index 893f6e3..7af4a82 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js @@ -1,629 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2657; -exports.ids = [2657,3316]; -exports.modules = { - -/***/ 4417: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ EditDatabaseForm) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _pages_admin_user_id_databases_single_edit_database__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8538); -/* harmony import */ var _DatabaseForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3121); -/* harmony import */ var _DatabaseImage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1933); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditDatabaseForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , dbImage , setDbImage , database } = react__WEBPACK_IMPORTED_MODULE_1___default().useContext(_pages_admin_user_id_databases_single_edit_database__WEBPACK_IMPORTED_MODULE_3__.EditDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const imagePreviewRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - // React.useEffect(() => { - // if (!dbImage?.imageBase64Full) { - // const presetImage = document.createElement("img"); - // presetImage.src = "/images/database-placeholder.png"; - // imageNodeToBase64SpecificWidth({ imageNode: presetImage, maxWidth: 400, mimeType: "image/png" }).then((res) => { - // setDbImage({ ...res, imageName: "Preset-db-image" }) - // }) - // } - // }, []) - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("section", { - className: "paper", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start w-full xl:w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "Update Database Information" - }), - user && dbImage ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseForm__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage, - database: database, - setLoading: setLoading - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "No User and Database Image present" - }) - ] - }), - user && dbImage && setDbImage ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseImage__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage, - database: database - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Database Image could not be rendered" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8538: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "EditDatabaseContext": () => (/* binding */ EditDatabaseContext), - "default": () => (/* binding */ EditDatabase), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/databases/UserMediaPopup.jsx -var UserMediaPopup = __webpack_require__(9310); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/databases/AddDatabaseForm.jsx -var AddDatabaseForm = __webpack_require__(3726); -// EXTERNAL MODULE: ./components/admin/databases/EditDatabaseForm.jsx -var EditDatabaseForm = __webpack_require__(4417); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -;// CONCATENATED MODULE: ./components/admin/databases/EditDatabaseContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditDatabaseContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , user } = external_react_default().useContext(EditDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Edit", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - database?.active_clone && user ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(EditDatabaseForm/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/edit-database.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").EditDbContextType} */ const editDbInit = {}; -const EditDatabaseContext = /*#__PURE__*/ external_react_default().createContext(editDbInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - */ function EditDatabase({ user , database , query }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Add Database | Datasquirel"; - const pageDescription = "Add a database"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const dbImageState = external_react_default().useState(database.db_image); - /** @type {[ dbImage: string | import("@/package-shared/types").ImageObjectType | null, setDbImage: React.Dispatch<React.SetStateAction<string | import("@/package-shared/types").ImageObjectType | null>> ]} */ const [dbImage, setDbImage] = dbImageState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(EditDatabaseContext.Provider, { - value: { - user, - database, - dbImage, - setDbImage - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(EditDatabaseContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UserMediaPopup/* default */.Z, { - setDbImage: setDbImage - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - query - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,4986,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(8538))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4076,e.ids=[636,4076],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},52973:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>m,default:()=>o,getServerSideProps:()=>h,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>j,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>g,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>v});var s=r(63865),i=r(9455),l=r(30671),n=r(49407),d=r(68268),c=r(74157),u=e([c]);c=(u.then?(await u)():u)[0];let o=(0,l.M)(c,"default"),p=(0,l.M)(c,"getStaticProps"),x=(0,l.M)(c,"getStaticPaths"),h=(0,l.M)(c,"getServerSideProps"),m=(0,l.M)(c,"config"),y=(0,l.M)(c,"reportWebVitals"),v=(0,l.M)(c,"unstable_getStaticProps"),b=(0,l.M)(c,"unstable_getStaticPaths"),f=(0,l.M)(c,"unstable_getStaticParams"),A=(0,l.M)(c,"unstable_getServerProps"),g=(0,l.M)(c,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/edit-database",pathname:"/admin/[user_id]/databases/[single]/edit-database",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:c});a()}catch(e){a(e)}})},22622:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>x});var s=r(8732),i=r(82015),l=r.n(i),n=r(74157),d=r(46437),c=r(58548);r(55312);var u=r(14591),o=r(86571),p=e([n,u]);function x(e){let{database:t,user:r}=l().useContext(n.EditDatabaseContext);return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(d.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name})]})]}),(0,s.jsx)(c.A,{user:r})]}),t?.active_clone&&r?(0,s.jsx)(o.A,{database:t,user:r}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(u.A,{})]})}[n,u]=p.then?(await p)():p,a()}catch(e){a(e)}})},14591:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>p});var s=r(8732),i=r(82015),l=r.n(i),n=r(32415),d=r(74157),c=r(56987),u=r(12042),o=e([d]);function p(e){let{user:t,dbImage:r,setDbImage:a,database:i}=l().useContext(d.EditDatabaseContext),[o,p]=l().useState(!1);return l().useRef(),(0,s.jsx)("section",{className:"paper",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[o&&(0,s.jsx)(n.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),t&&r?(0,s.jsx)(c.A,{user:t,dbImage:r,setDbImage:a,database:i,setLoading:p}):(0,s.jsx)("span",{children:"No User and Database Image present"})]}),t&&r&&a?(0,s.jsx)(u.A,{user:t,dbImage:r,setDbImage:a,database:i}):(0,s.jsx)("span",{children:"Database Image could not be rendered"})]})})}d=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},86571:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({database:e,user:t}){let r=e.active_clone_parent_db?.replace(/datasquirel_user_\d+_/,""),s=`/admin/${t?.id}/databases/${r}`;return(0,a.jsx)("div",{className:"info green",children:(0,a.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,a.jsx)("b",{children:(0,a.jsx)("a",{href:s,target:"_blank",className:"query-url",children:r})})]})})}r(82015)},55158:(e,t,r)=>{r.d(t,{Ay:()=>n,PB:()=>d,fs:()=>c});var a=r(8732),s=r(58150),i=r(82015),l=r.n(i);function n({children:e,title:t,data:r,fullPage:i,wrapperClasses:n,closePopupDispatch:d,wrapperStyle:u,noContainer:o}){return i?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:u,children:[o?(0,a.jsx)(l().Fragment,{children:e}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:e}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),d&&d()},children:(0,a.jsx)(s.A,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[o?(0,a.jsx)(l().Fragment,{children:e}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[e,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})})]}),o&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),d&&d()},children:(0,a.jsx)("span",{className:"font-normal",children:"✖"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),d&&d()}})]})}function d(e,t){let r=document.querySelector(`[data-popupid='${e}']`);r&&(r.style.display="flex",t&&t(r))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},42178:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),i=r(8732);t.A=(0,s.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),i=r(8732);t.A=(0,s.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},48987:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),i=r(8732);t.A=(0,s.default)([(0,i.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),i=r(8732);t.A=(0,s.default)([(0,i.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,i.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,i.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,i.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,i.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),i=r(8732);t.A=(0,s.default)([(0,i.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},92441:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},74157:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{EditDatabaseContext:()=>b,default:()=>y,getServerSideProps:()=>v});var s=r(8732),i=r(82015),l=r.n(i),n=r(95222),d=r(20048),c=r.n(d),u=r(42105),o=r(22622),p=r(64098),x=r(67216),h=r.n(x),m=e([o,p]);[o,p]=m.then?(await m)():m;let b=l().createContext({});function y({user:e,database:t,query:r}){let a=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Add Database | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[i,d]=l().useState(t.db_image);return(0,s.jsx)(n.A,{head:a,user:e,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:r,user:e}),children:(0,s.jsxs)(b.Provider,{value:{user:e,database:t,dbImage:i,setDbImage:d},children:[(0,s.jsx)(o.A,{}),(0,s.jsx)(u.A,{setDbImage:d})]})})}async function v({req:e,res:t,query:r}){let a=await c()(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await h()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);return s&&s[0]?{props:{user:a,database:s[0],query:r}}:{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}}}a()}catch(e){a(e)}})},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,8268,7070,5134,3737,4417,2996],()=>r(52973));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json index c82c396..2fc1229 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/edit-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/5472.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/7023.js","../../../../../chunks/7901.js","../../../../../chunks/4986.js","../../../../../chunks/6718.js","../../../../../chunks/9594.js","../../../../../chunks/9471.js","../../../../../chunks/9486.js","../../../../../chunks/7037.js","../../../../../chunks/9967.js","../../../../../chunks/4105.js","../../../../../chunks/3974.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react-dom/client.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/client.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js index 0bce37b..8bb415a 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js @@ -1,1795 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3293; -exports.ids = [3293,2657,8105,3316,133,4135,4105,3314,2434]; -exports.modules = { +"use strict";(()=>{var e={};e.id=8295,e.ids=[636,8295],e.modules={91489:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{config:()=>h,default:()=>u,getServerSideProps:()=>p,getStaticPaths:()=>x,getStaticProps:()=>m,reportWebVitals:()=>b,routeModule:()=>v,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>g});var a=s(63865),l=s(9455),i=s(30671),n=s(49407),d=s(68268),c=s(14454),o=e([c]);c=(o.then?(await o)():o)[0];let u=(0,i.M)(c,"default"),m=(0,i.M)(c,"getStaticProps"),x=(0,i.M)(c,"getStaticPaths"),p=(0,i.M)(c,"getServerSideProps"),h=(0,i.M)(c,"config"),b=(0,i.M)(c,"reportWebVitals"),g=(0,i.M)(c,"unstable_getStaticProps"),f=(0,i.M)(c,"unstable_getStaticPaths"),j=(0,i.M)(c,"unstable_getStaticParams"),y=(0,i.M)(c,"unstable_getServerProps"),S=(0,i.M)(c,"unstable_getServerSideProps"),v=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/schema",pathname:"/admin/[user_id]/databases/[single]/schema",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:c});r()}catch(e){r(e)}})},28545:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>f});var a=s(8732),l=s(82015),i=s.n(l),n=s(46437),d=s(58548),c=s(14591),o=s(14454);s(58403);var u=s(51548),m=s(61430),x=s(220);s(63715),s(89788);var p=s(86571),h=s(34844),b=s(59621),g=e([c,o,m,x,b]);function f(e){let{database:t,dbSchemaData:s,tables:r,user:l}=i().useContext(o.DatabaseSchemaContext);try{if(!s)return(0,a.jsx)("span",{children:"No Database Schema Found!"});let e=s.filter(e=>e.dbFullName===t?.db_full_name)[0],[r,c]=i().useState(e.tables),[o,g]=i().useState(null),[f,j]=i().useState(e);if(!t)return(0,a.jsx)("span",{children:"No Database Record Found"});return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[(0,a.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t.db_name}),"\xa0",(0,a.jsx)("span",{children:"Database Schema"})]})]}),(0,a.jsx)(d.A,{user:l})]}),t.active_clone?(0,a.jsx)(p.A,{database:t,user:l}):(0,a.jsx)(a.Fragment,{}),t.remote_connected?(0,a.jsx)(b.p,{database:t}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,a.jsx)("div",{children:r&&r[0]&&(0,a.jsx)(u.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...r.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?g(null):g(e.target.value)}})}),(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 items-stretch w-full",children:[(0,a.jsx)("div",{className:"relative w-full block",children:(0,a.jsx)(h.A,{content:JSON.stringify(f,null,4),language:"javascript"})}),(0,a.jsx)(x.A,{})]})]})}),(0,a.jsx)(m.A,{})]})}catch(e){return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[(0,a.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name||null}),"\xa0",(0,a.jsx)("span",{children:"Database Schema"})]})]}),(0,a.jsx)(d.A,{user:l})]}),(0,a.jsx)("section",{children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Preview"})})]})}}[c,o,m,x,b]=g.then?(await g)():g,r()}catch(e){r(e)}})},220:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>c});var a=s(8732),l=s(82015),i=s.n(l),n=s(14454);s(63715);var d=e([n]);function c(e){let{database:t,dbSchemaData:s,tables:r,user:l}=i().useContext(n.DatabaseSchemaContext);try{let e=s?.filter(e=>e.dbFullName===t?.db_full_name)[0];if(!e)return(0,a.jsx)("span",{children:"No Database Schema Found"});return(0,a.jsxs)("div",{className:"paper",children:[(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[e.dbName," Database Tables"]}),(0,a.jsx)("hr",{className:"my-0"}),e.tables.map((e,t)=>(0,a.jsxs)("div",{className:"flex-col items-start gap-4 left-border pl-6 w-full",children:[(0,a.jsx)("span",{className:"w-full xl:w-auto font-bold text-lg sticky top-0 px-3 py-1 bg-slate-800 text-white -ml-6",children:e.tableFullName}),(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"Fields"}),(0,a.jsx)("div",{className:"flex-col items-start left-border pl-6 w-full",children:e.fields.map((e,t)=>(0,a.jsxs)("div",{className:"card w-full",children:[(0,a.jsx)("span",{className:"font-bold",children:e.fieldName}),(0,a.jsx)("span",{className:"text-xs",children:e.dataType})]},t+1))})]}),e.indexes&&e.indexes[0]&&(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"Indexes"}),(0,a.jsx)("div",{className:"flex-col items-start left-border pl-6 w-full",children:e.indexes.map((e,t)=>(0,a.jsxs)("div",{className:"card w-full",children:[(0,a.jsx)("span",{className:"font-bold text-secondary",children:e.indexName}),(0,a.jsx)("span",{className:"text-xs",children:e.indexType})]},t+1))})]})]},t+1))]})}catch(e){return(0,a.jsx)("div",{children:"Nothing to See here"})}}n=(d.then?(await d)():d)[0],r()}catch(e){r(e)}})},61430:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>m});var a=s(8732),l=s(82015),i=s.n(l),n=s(46437),d=s(58548),c=s(14591),o=s(14454);s(58403),s(51548),s(63715);var u=e([c,o]);function m(e){let{database:t,dbSchemaData:s,tables:r,user:l}=i().useContext(o.DatabaseSchemaContext);try{return(0,a.jsx)("section",{className:"card",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Database Tables"}),r&&r[0]&&r.map((e,t)=>(0,a.jsx)("div",{className:"card light-gray w-full",children:(0,a.jsx)("span",{children:e.tableSlug})},t+1))]})})}catch(e){return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[(0,a.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name}),"\xa0",(0,a.jsx)("span",{children:"Database Schema"})]})]}),(0,a.jsx)(d.A,{user:l})]}),(0,a.jsx)("section",{className:"card",children:(0,a.jsx)("h2",{className:"text-xl m-0",children:"Error in generating Tables Table"})})]})}}[c,o]=u.then?(await u)():u,r()}catch(e){r(e)}})},22622:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>x});var a=s(8732),l=s(82015),i=s.n(l),n=s(74157),d=s(46437),c=s(58548);s(55312);var o=s(14591),u=s(86571),m=e([n,o]);function x(e){let{database:t,user:s}=i().useContext(n.EditDatabaseContext);return(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)(d.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Edit"," ",(0,a.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name})]})]}),(0,a.jsx)(c.A,{user:s})]}),t?.active_clone&&s?(0,a.jsx)(u.A,{database:t,user:s}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(o.A,{})]})}[n,o]=m.then?(await m)():m,r()}catch(e){r(e)}})},14591:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>m});var a=s(8732),l=s(82015),i=s.n(l),n=s(32415),d=s(74157),c=s(56987),o=s(12042),u=e([d]);function m(e){let{user:t,dbImage:s,setDbImage:r,database:l}=i().useContext(d.EditDatabaseContext),[u,m]=i().useState(!1);return i().useRef(),(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[u&&(0,a.jsx)(n.A,{}),(0,a.jsxs)("div",{className:"flex-col items-start w-full xl:w-auto",children:[(0,a.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Database Information"}),t&&s?(0,a.jsx)(c.A,{user:t,dbImage:s,setDbImage:r,database:l,setLoading:m}):(0,a.jsx)("span",{children:"No User and Database Image present"})]}),t&&s&&r?(0,a.jsx)(o.A,{user:t,dbImage:s,setDbImage:r,database:l}):(0,a.jsx)("span",{children:"Database Image could not be rendered"})]})})}d=(u.then?(await u)():u)[0],r()}catch(e){r(e)}})},51548:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(58526);function l({selectOptions:e,name:t,onChangeHandler:s,required:l,setAlert:i,title:n,defaultValue:d,info:c,id:o}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[n&&(0,r.jsxs)("label",{htmlFor:t,children:[n,l?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:l,onChange:e=>{i&&i(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:d||void 0,children:e.map((e,t)=>{let{payload:s,title:a}=e;return(0,r.jsx)("option",{value:s,selected:!!e.default,children:a},t+1)})}),(0,r.jsx)(a.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:c})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}s(82015)},89788:(e,t,s)=>{s(8732),s(82015)},34844:(e,t,s)=>{s.d(t,{A:()=>c});var r=s(8732),a=s(82015),l=s.n(a),i=s(11790),n=s.n(i),d=s(96089);function c({content:e,language:t,style:s,showCopy:a}){let[i,c]=l().useState(!1),o=()=>{c(!0)},u=(e,t)=>{"clickaway"!==t&&c(!1)},m=(0,r.jsx)(l().Fragment,{children:(0,r.jsx)("button",{className:"outlined gray",style:{border:"none",padding:"2px",width:"20px",height:"20px",color:"white"},onClick:u,children:"✖"})}),x={};return(0,r.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:s?{...s,...x}:x,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,r.jsx)("button",{className:"outlined copy-code "+(a?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{o()})},children:(0,r.jsx)(d.A,{className:"text-white",size:20})}),(0,r.jsx)(n(),{open:i,autoHideDuration:2e3,onClose:u,children:(0,r.jsxs)("div",{className:"h-full text-white px-4 py-2 justify-between rounded",style:{maxWidth:"250px",width:"250px",backgroundColor:"#0b8862"},children:[(0,r.jsx)("span",{children:"Code Copied!"}),m]})})]})}},43479:(e,t,s)=>{s.d(t,{A:()=>i});let r=s(68942),a=s(29021),l=s(33873);function i({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(a.readFileSync(t,"utf-8"))}catch(e){return r({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},68942:(e,t,s)=>{let r=s(29021),{IncomingMessage:a}=s(81630);e.exports=async function({user:e,message:t,component:s,noMail:a,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],s=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||r||t||l.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(a+=` +URL: ${l.url}`),l?.body&&(a+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(a+=` +IP: ${n}`),a+=` +Date: ${i.toDateString()} +========================================`,r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let d=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",a),r.appendFileSync("./.tmp/error.log",` -/***/ 4417: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ EditDatabaseForm) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _pages_admin_user_id_databases_single_edit_database__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8538); -/* harmony import */ var _DatabaseForm__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3121); -/* harmony import */ var _DatabaseImage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1933); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditDatabaseForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , dbImage , setDbImage , database } = react__WEBPACK_IMPORTED_MODULE_1___default().useContext(_pages_admin_user_id_databases_single_edit_database__WEBPACK_IMPORTED_MODULE_3__.EditDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const imagePreviewRef = react__WEBPACK_IMPORTED_MODULE_1___default().useRef(); - // React.useEffect(() => { - // if (!dbImage?.imageBase64Full) { - // const presetImage = document.createElement("img"); - // presetImage.src = "/images/database-placeholder.png"; - // imageNodeToBase64SpecificWidth({ imageNode: presetImage, maxWidth: 400, mimeType: "image/png" }).then((res) => { - // setDbImage({ ...res, imageName: "Preset-db-image" }) - // }) - // } - // }, []) - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("section", { - className: "paper", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col items-start w-full xl:w-auto", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "Update Database Information" - }), - user && dbImage ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseForm__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage, - database: database, - setLoading: setLoading - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "No User and Database Image present" - }) - ] - }), - user && dbImage && setDbImage ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_DatabaseImage__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - user: user, - dbImage: dbImage, - setDbImage: setDbImage, - database: database - }) : /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Database Image could not be rendered" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 7947: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* unused harmony export default */ -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * editorRef: { current: any }, - * readOnly: boolean, - * executeFunction: (editor: AceAjax.Editor) => void, - * content: string, - * placeholder?: string, - * mode?: string, - * fontSize?: string, - * }} props - React component props including { children } - */ function AceEditor({ editorRef , readOnly , executeFunction , content , placeholder , mode , fontSize , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.LegacyRef<HTMLDivElement | undefined>} */ const editorElementRef = React.useRef(); - /** @type {React.MutableRefObject<AceAjax.Editor | undefined>} */ const editorRefInstance = React.useRef(); - const [loading, setLoading] = React.useState(false); - const [refresh, setRefresh] = React.useState(0); - React.useEffect(()=>{ - if (!ace?.edit || !editorElementRef.current) { - setTimeout(()=>{ - setRefresh((prev)=>prev + 1); - }, 1000); - return; - } - const editor = ace.edit(editorElementRef.current); - editor.setOptions({ - mode: `ace/mode/${mode ? mode : "javascript"}`, - theme: "ace/theme/nord_dark", - // theme: "ace/theme/twilight", - value: content, - placeholder: placeholder ? placeholder : "", - enableBasicAutocompletion: true, - enableLiveAutocompletion: true, - readOnly: readOnly ? true : false, - fontSize: fontSize ? fontSize : null - }); - editor.commands.addCommand({ - name: "myCommand", - bindKey: { - win: "Ctrl-Enter", - mac: "Command-Enter" - }, - exec: function(editor) { - if (executeFunction) executeFunction(editor); - }, - readOnly: true - }); - editorRefInstance.current = editor; - if (editorRef) editorRef.current = editor; - }, [ - refresh - ]); - React.useEffect(()=>{ - if (!editorRefInstance.current) return; - editorRefInstance.current.setValue(content, -1); - }, [ - content - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ _jsx(React.Fragment, { - children: /*#__PURE__*/ _jsx("div", { - className: "p-4 w-full h-full block rounded-md", - style: { - backgroundColor: "#2e3440" - }, - children: /*#__PURE__*/ _jsx("div", { - // @ts-ignore - ref: editorElementRef, - className: "ace-editor-wrapper w-full h-full minimal-scrollbars all-children" - }) - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - React.useEffect(()=>{ - fetchApi("/api/admin/clientError", { - method: "post", - body: { - component: "AceEditor/main-catch-error", - message: error.message, - user: {} - } - }); - }, []); - return /*#__PURE__*/ _jsx(React.Fragment, { - children: /*#__PURE__*/ _jsx("h2", { - className: "text-xl m-0", - children: "Editor Error" - }) - }); - } -} - - -/***/ }), - -/***/ 1095: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ CodeBlock) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6843); -/* harmony import */ var _mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9174); -/* harmony import */ var _mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * content: string, - * language: string, - * style?: React.CSSProperties, - * }} props - React component props including { children } - */ function CodeBlock({ content , language , style }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const [open, setOpen] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const handleClick = ()=>{ - setOpen(true); - }; - /** - * ## Handle Close - * @param {*} event - * @param {*} reason - * @returns - */ const handleClose = (event, reason)=>{ - if (reason === "clickaway") { - return; - } - setOpen(false); - }; - const action = /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined gray", - style: { - border: "none", - padding: "2px", - width: "20px", - height: "20px", - color: "white" - }, - // @ts-ignore - onClick: handleClose, - children: "✖" - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("pre", { - className: `language-${language ? language : "javascript"} w-full overflow-hidden code-block relative max-w-4xl`, - style: style ? style : {}, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("code", { - className: `w-full`, - style: { - wordBreak: "break-all" - }, - children: content - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined absolute top-2 right-2 z-20 copy-code hover:opacity-50", - style: { - padding: "2px", - border: "none" - }, - onClick: (/** @type {any} */ e)=>{ - navigator.clipboard.writeText(content).then(()=>{ - handleClick(); - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_icons_material_ContentCopy__WEBPACK_IMPORTED_MODULE_2___default()), { - fontSize: "small", - color: "action" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((_mui_material_Snackbar__WEBPACK_IMPORTED_MODULE_3___default()), { - open: open, - autoHideDuration: 2000, - onClose: handleClose, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "h-full text-white px-4 py-2 justify-between rounded", - style: { - maxWidth: "250px", - width: "250px", - backgroundColor: "#0b8862" - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Code Copied!" - }), - action - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 3314: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ grabUserSchemaData) -/* harmony export */ }); -// @ts-check -const serverError = __webpack_require__(2317); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null} - */ function grabUserSchemaData({ userId }) { - try { - const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`); - const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8")); - return userSchemaData; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/grabUserSchemaData", - message: error.message - }); - return null; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4105: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ checkUniqueField) -/* harmony export */ }); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6405); -/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -let timeout; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} params - * @param {string} params.tableName - * @param {string} params.columnName - * @param {string} params.value - * @param {string} [params.dbFullName] - * @param {any} [params.dispatch] - * @param {number} [params.userId] - * @param {number} [params.dbId] - */ async function checkUniqueField({ tableName , columnName , value , dbFullName , dispatch , userId , dbId , }) { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const duplicate = await (0,_fetchApi__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(`/api/checkDuplicateData?tableName=${tableName}&type=${columnName}&value=${value}${dbFullName ? "&dbFullName=" + dbFullName : ""}${userId ? "&userId=" + userId : ""}${dbId ? "&dbId=" + dbId : ""}`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return duplicate; -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8538: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "EditDatabaseContext": () => (/* binding */ EditDatabaseContext), - "default": () => (/* binding */ EditDatabase), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/databases/UserMediaPopup.jsx -var UserMediaPopup = __webpack_require__(9310); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/databases/AddDatabaseForm.jsx -var AddDatabaseForm = __webpack_require__(3726); -// EXTERNAL MODULE: ./components/admin/databases/EditDatabaseForm.jsx -var EditDatabaseForm = __webpack_require__(4417); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -;// CONCATENATED MODULE: ./components/admin/databases/EditDatabaseContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditDatabaseContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , user } = external_react_default().useContext(EditDatabaseContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Edit", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - database?.active_clone && user ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(EditDatabaseForm/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/edit-database.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").EditDbContextType} */ const editDbInit = {}; -const EditDatabaseContext = /*#__PURE__*/ external_react_default().createContext(editDbInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - */ function EditDatabase({ user , database , query }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Add Database | Datasquirel"; - const pageDescription = "Add a database"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const dbImageState = external_react_default().useState(database.db_image); - /** @type {[ dbImage: string | import("@/package-shared/types").ImageObjectType | null, setDbImage: React.Dispatch<React.SetStateAction<string | import("@/package-shared/types").ImageObjectType | null>> ]} */ const [dbImage, setDbImage] = dbImageState; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(EditDatabaseContext.Provider, { - value: { - user, - database, - dbImage, - setDbImage - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(EditDatabaseContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UserMediaPopup/* default */.Z, { - setDbImage: setDbImage - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - query - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 3104: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "DatabaseSchemaContext": () => (/* binding */ DatabaseSchemaContext), - "default": () => (/* binding */ DatabaseSchema), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/databases/EditDatabaseForm.jsx -var EditDatabaseForm = __webpack_require__(4417); -// EXTERNAL MODULE: ./components/form/FormCheckboxes.jsx -var FormCheckboxes = __webpack_require__(9486); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseTablesTablePreview.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabaseTablesTablePreview(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , dbSchemaData , tables , user } = external_react_default().useContext(DatabaseSchemaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Database Tables" - }), - tables && tables[0] && tables.map((table, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "card light-gray w-full", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: table.tableSlug - }) - }, index + 1); - }) - ] - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseTablesPreview/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name - }), - "\xa0", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Schema" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Error in generating Tables Table" - }) - }) - ] - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseSchemaVisualizer.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabaseSchemaVisualizer(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , dbSchemaData , tables , user } = external_react_default().useContext(DatabaseSchemaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const targetDb = dbSchemaData?.filter((db)=>db.dbFullName === database?.db_full_name)[0]; - if (!targetDb) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Database Schema Found" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h3", { - className: "m-0 text-xl", - children: [ - targetDb.dbName, - " Database Tables" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "my-0" - }), - targetDb.tables.map((table, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-4 left-border pl-6 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "w-full xl:w-auto font-bold text-lg sticky top-0 px-3 py-1 bg-slate-800 text-white -ml-6", - children: table.tableFullName - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Fields" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start left-border pl-6 w-full", - children: table.fields.map((field, _index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold", - children: field.fieldName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs", - children: field.dataType - }) - ] - }, _index + 1); - }) - }) - ] - }), - table.indexes && table.indexes[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Indexes" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start left-border pl-6 w-full", - children: table.indexes.map((index, _index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold text-secondary", - children: index.indexName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs", - children: index.indexType - }) - ] - }, _index + 1); - }) - }) - ] - }) - ] - }, index + 1); - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseSchemaVisualizer/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: "Nothing to See here" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/AceEditor.jsx -var AceEditor = __webpack_require__(7947); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/CodeBlock.jsx -var CodeBlock = __webpack_require__(1095); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseSchemaContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabaseSchemaContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , dbSchemaData , tables , user } = external_react_default().useContext(DatabaseSchemaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!dbSchemaData) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Database Schema Found!" - }); - } - const targetDb = dbSchemaData.filter((db)=>db.dbFullName === database?.db_full_name)[0]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [dbTables, setDbTables] = external_react_default().useState(targetDb.tables); - const [targetTable, setTargetTable] = external_react_default().useState(null); - /** @type {any} */ const [previewObject, setPreviewObject] = external_react_default().useState(targetDb); - external_react_default().useEffect(()=>{ - if (targetTable) { - try { - const targetTableObject = dbTables.filter((table)=>table.tableName === targetTable)[0]; - setPreviewObject(targetTableObject); - } catch (/** @type {any} */ error) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseSchemaContent/main-return", - message: error.message, - user: user - } - }); - } - } else { - setDbTables(targetDb.tables); - setPreviewObject(targetDb); - } - }, [ - targetTable - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!database) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Database Record Found" - }); - } - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database.db_name - }), - "\xa0", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Schema" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Database SCHEMA JSON" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: dbTables && dbTables[0] && /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - required: true, - selectOptions: [ - { - title: "All Tables", - payload: "none" - }, - ...dbTables.map((table, index)=>{ - return { - title: table.tableFullName, - payload: table.tableName, - name: table.tableName - }; - }), - ], - name: "database_tables", - onChangeHandler: (e)=>{ - if (e.target.value?.match(/^none$/)) { - setTargetTable(null); - } else { - setTargetTable(e.target.value); - } - } - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "grid grid-cols-1 xl:grid-cols-2 items-stretch w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "relative w-full block", - children: /*#__PURE__*/ jsx_runtime_.jsx(CodeBlock/* default */.Z, { - content: JSON.stringify(previewObject, null, 4), - language: "javascript" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabaseSchemaVisualizer, {}) - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabaseTablesTablePreview, {}) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseSchemaContent/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name || null - }), - "\xa0", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Schema" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Error in generating Preview" - }) - }) - ] - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(3314); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/schema.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DbSchemaContextType} */ // @ts-ignore -const dbSchemaContextInit = {}; -const DatabaseSchemaContext = /*#__PURE__*/ external_react_default().createContext(dbSchemaContextInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any[]} props.tables - */ function DatabaseSchema({ user , database , query , dbSchemaData , tables , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Add Database | Datasquirel"; - const pageDescription = "Add a database"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [dbImage, setDbImage] = external_react_default().useState(database.db_image); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - aceEditor: true, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseSchemaContext.Provider, { - value: { - user, - database, - dbImage, - setDbImage, - dbSchemaData, - tables - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseSchemaContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - /** @type {any} */ const tables = await varDatabaseDbHandler_default()({ - queryString: `SHOW TABLES`, - database: database[0].db_full_name - }); - const dbSchemaData = (0,grabUserSchemaData/* default */.Z)({ - userId: user.id - }); - if (!dbSchemaData) throw new Error("User schema data not found!"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - query, - dbSchemaData: dbSchemaData ? dbSchemaData : [], - tables: tables && tables[0] ? tables.map((/** @type {any} */ table)=>{ - const title = Object.keys(table)[0]; - return { - tableSlug: table[title] - }; - }) : [] - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log(error); - return { - redirect: { - destination: "/", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 6843: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ContentCopy"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 9174: -/***/ ((module) => { - -module.exports = require("@mui/material/Snackbar"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,4114,8682,2317,1206,8345,4986,6718,9594,8264,9471,9486,7037,9967,3974], () => (__webpack_exec__(3104))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,s)=>{let r=s(83007),a=s(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let s=[];try{for(let l=0;l<e.length;l++){let i=e[l],n=Object.keys(i);for(let e=0;e<n.length;e++){let s=n[e],l=t?.fields[e];if(s?.match(a))continue;let d=i[s];("number"==typeof d||d)&&l?.encrypted&&d?.match(/./)&&(i[s]=r(d))}s.push(i)}return s}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},90378:(e,t,s)=>{s(29021);let r=s(89545),a=s(22373),l=s(67216),i=s(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:s,tableSchema:n}){let d;let c=!!s?.match(/^datasquirel$/),o=c?l:i;try{d=e&&t&&Array.isArray(t)&&t[0]?c?await o(e,t):await o({paradigm:"Full Access",database:s,queryString:e,queryValues:t}):c?await o(e):await o({paradigm:"Full Access",database:s,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(d&&n)try{let e=d;return await r({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",s,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(d)return d;else return null}},1231:(e,t,s)=>{let r=s(29021);s(33873);let a=s(9973),l=s(31976),i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:s,queryValues:n}){try{return new Promise((d,c)=>{let o=!!e?.match(/full.access|^fa$/i);try{function u(e){i.end(),d(JSON.parse(JSON.stringify(e)))}function m(e){i.end(),d({error:e.message,queryStringGenerated:s,queryValuesGenerated:n,sql:e.sql})}i=o?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),n&&Array.isArray(n)&&n[0]?i.query(s,n).then(u).catch(m):i.query(s).then(u).catch(m)}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),d({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},74157:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{EditDatabaseContext:()=>f,default:()=>b,getServerSideProps:()=>g});var a=s(8732),l=s(82015),i=s.n(l),n=s(95222),d=s(20048),c=s.n(d),o=s(42105),u=s(22622),m=s(64098),x=s(67216),p=s.n(x),h=e([u,m]);[u,m]=h.then?(await h)():h;let f=i().createContext({});function b({user:e,database:t,query:s}){let r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Add Database | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Add a database"})]}),[l,d]=i().useState(t.db_image);return(0,a.jsx)(n.A,{head:r,user:e,extraHeaderContent:(0,a.jsx)(m.A,{database:t,query:s,user:e}),children:(0,a.jsxs)(f.Provider,{value:{user:e,database:t,dbImage:l,setDbImage:d},children:[(0,a.jsx)(u.A,{}),(0,a.jsx)(o.A,{setDbImage:d})]})})}async function g({req:e,res:t,query:s}){let r=await c()(e,t);if(!r?.logged_in_status||!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await p()(`SELECT * FROM user_databases WHERE user_id='${r.id}' AND db_slug='${s.single}'`);return a&&a[0]?{props:{user:r,database:a[0],query:s}}:{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}}}r()}catch(e){r(e)}})},14454:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{DatabaseSchemaContext:()=>y,default:()=>f,getServerSideProps:()=>j});var a=s(8732),l=s(82015),i=s.n(l),n=s(95222),d=s(20048),c=s.n(d),o=s(64098),u=s(28545),m=s(90378),x=s.n(m),p=s(67216),h=s.n(p),b=s(43479),g=e([o,u]);[o,u]=g.then?(await g)():g;let y=i().createContext({});function f({user:e,database:t,query:s,dbSchemaData:r,tables:l}){let d=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Add Database | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Add a database"})]}),[c,m]=i().useState(t.db_image);return(0,a.jsx)(n.A,{head:d,user:e,extraHeaderContent:(0,a.jsx)(o.A,{database:t,query:s,user:e}),aceEditor:!0,children:(0,a.jsx)(y.Provider,{value:{user:e,database:t,dbImage:c,setDbImage:m,dbSchemaData:r,tables:l},children:(0,a.jsx)(u.A,{})})})}async function j({req:e,res:t,query:s}){try{let r=await c()(e,t);if(!r?.logged_in_status||!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await h()(`SELECT * FROM user_databases WHERE user_id='${r.id}' AND db_slug='${s.single}'`);if(!a||!a[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let l=await x()({queryString:"SHOW TABLES",database:a[0].db_full_name}),i=(0,b.A)({userId:r.id});if(!i)throw Error("User schema data not found!");return{props:{user:r,database:a[0],query:s,dbSchemaData:i||[],tables:l&&l[0]?l.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}r()}catch(e){r(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},710:e=>{e.exports=require("@mui/utils/useTimeout")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,7734,1790,8268,7070,5134,3737,9621,4417,2996],()=>s(91489));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json index 4d49d04..db1fbbf 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/5472.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/7023.js","../../../../../chunks/7901.js","../../../../../chunks/4114.js","../../../../../chunks/8682.js","../../../../../chunks/2317.js","../../../../../chunks/1206.js","../../../../../chunks/8345.js","../../../../../chunks/4986.js","../../../../../chunks/6718.js","../../../../../chunks/9594.js","../../../../../chunks/8264.js","../../../../../chunks/9471.js","../../../../../chunks/9486.js","../../../../../chunks/7037.js","../../../../../chunks/9967.js","../../../../../chunks/3974.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/@mui/material/Snackbar/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ContentCopy.js","../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react-dom/client.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/base/node/index.js","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-transition-group/package.json","../../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../../../node_modules/@popperjs/core/package.json","../../../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../../../node_modules/dom-helpers/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@floating-ui/dom/package.json","../../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/@floating-ui/core/package.json","../../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../package.json","../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../../node_modules/dom-helpers/package.json","../../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/lodash/lodash.js","../../../../../../../node_modules/lodash/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/client.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../../node_modules/react-transition-group/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js index 09224ab..f007313 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js @@ -1,882 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7403; -exports.ids = [7403,8105]; -exports.modules = { +"use strict";(()=>{var e={};e.id=204,e.ids=[204,636],e.modules={12009:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>f,default:()=>d,getServerSideProps:()=>h,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>v,routeModule:()=>_,unstable_getServerProps:()=>b,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>y});var s=r(63865),l=r(9455),i=r(30671),n=r(49407),o=r(68268),u=r(92557),c=e([u]);u=(c.then?(await c)():c)[0];let d=(0,i.M)(u,"default"),p=(0,i.M)(u,"getStaticProps"),m=(0,i.M)(u,"getStaticPaths"),h=(0,i.M)(u,"getServerSideProps"),f=(0,i.M)(u,"config"),v=(0,i.M)(u,"reportWebVitals"),y=(0,i.M)(u,"unstable_getStaticProps"),x=(0,i.M)(u,"unstable_getStaticPaths"),g=(0,i.M)(u,"unstable_getStaticParams"),b=(0,i.M)(u,"unstable_getServerProps"),S=(0,i.M)(u,"unstable_getServerSideProps"),_=new s.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/shell",pathname:"/admin/[user_id]/databases/[single]/shell",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:u});a()}catch(e){a(e)}})},64648:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>h});var s=r(8732),l=r(82015),i=r.n(l),n=r(46437),o=r(58548),u=r(92557),c=r(32415),d=r(63715),p=r(60324),m=e([u]);function h(e){let{database:t,dbSchemaData:r,tables:a,user:l}=i().useContext(u.DatabaseShellContext);if(!l)return null;try{let e=i().useRef(),r=i().useRef(),[u,m]=i().useState(!1),[h,f]=i().useState(!1),[v,y]=i().useState(0);return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[t?.db_name," Database Shell"]})})]}),(0,s.jsx)(o.A,{user:l})]}),(0,s.jsxs)("div",{className:"w-full flex-col relative",children:[(0,s.jsx)("div",{ref:e,id:"ace-editor-wrapper"}),(0,s.jsxs)("button",{className:"absolute right-4 bottom-4"+(u?" pointer-events-none opacity-70":""),onClick:e=>{!function(){m(!0);let e=r.current?r.current.getValue():null;if(!e?.match(/./))return;let s=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,d.A)("/api/runUserDbQuery",{method:"post",body:{database:t?.db_slug,query:s,tables:a?.map(e=>e.tableSlug)}},!0).then(e=>{e.success?f(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{m(!1)},500)})}()},children:[u&&(0,s.jsx)(c.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),u?"Running Query ...":"Run Query"]})]}),h&&!u&&(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"w-full flex-col items-start overflow-x-scroll",children:[(0,s.jsx)("h2",{className:"text-xl",children:"Query Results"}),(0,s.jsx)(p.A,{data:h,user:l})]})})]})}catch(e){return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{className:"px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1",children:t?.db_name}),"\xa0",(0,s.jsx)("span",{children:"Database Shell"})]})]}),(0,s.jsx)(o.A,{user:l})]}),(0,s.jsx)("section",{className:"card",children:(0,s.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})]})}}u=(m.then?(await m)():m)[0],a()}catch(e){a(e)}})},60324:(e,t,r)=>{r.d(t,{A:()=>_});var a=r(8732),s=r(82015),l=r.n(s),i=r(90627),n=r(34043),o=r.n(n),u=r(7299),c=r.n(u),d=r(61919),p=r.n(d),m=r(34350),h=r.n(m),f=r(71757),v=r.n(f),y=r(79005),x=r.n(y),g=r(45561),b=r.n(g);r(63715);let S=(0,i.styled)(p())(({theme:e})=>({[`&.${d.tableCellClasses.head}`]:{backgroundColor:"var(--slate-800)",color:"white"},[`&.${d.tableCellClasses.body}`]:{}}));function _({data:e,user:t}){try{let t=Object.keys(e[0]);return(0,a.jsx)(l().Fragment,{children:(0,a.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden",children:(0,a.jsx)(h(),{component:b(),sx:{width:"100%"},children:(0,a.jsxs)(o(),{sx:{minWidth:650},"aria-label":"simple table",children:[(0,a.jsx)(v(),{children:(0,a.jsx)(x(),{children:t&&t[0]&&t.map((e,t)=>(0,a.jsx)(S,{align:"left",children:e},t+1))})}),(0,a.jsx)(c(),{children:e&&e[0]&&e.map((e,r)=>(0,a.jsx)(x(),{sx:{"&:last-child td, &:last-child th":{border:0}},children:t.map((t,r)=>(0,a.jsx)(S,{align:"left",children:e[t]},r+1))},r+1))})]})})})})}catch(e){return(0,a.jsx)(l().Fragment,{children:(0,a.jsx)("span",{children:"No results"})})}}},43479:(e,t,r)=>{r.d(t,{A:()=>i});let a=r(68942),s=r(29021),l=r(33873);function i({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return a({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},68942:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:l}){let i=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],r=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${i.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/***/ 2495: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "DatabaseShellContext": () => (/* binding */ DatabaseShellContext), - "default": () => (/* binding */ DatabaseShellPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: external "@mui/material/styles" -var styles_ = __webpack_require__(8442); -// EXTERNAL MODULE: external "@mui/material/Table" -var Table_ = __webpack_require__(9181); -var Table_default = /*#__PURE__*/__webpack_require__.n(Table_); -// EXTERNAL MODULE: external "@mui/material/TableBody" -var TableBody_ = __webpack_require__(8823); -var TableBody_default = /*#__PURE__*/__webpack_require__.n(TableBody_); -// EXTERNAL MODULE: external "@mui/material/TableCell" -var TableCell_ = __webpack_require__(5612); -var TableCell_default = /*#__PURE__*/__webpack_require__.n(TableCell_); -// EXTERNAL MODULE: external "@mui/material/TableContainer" -var TableContainer_ = __webpack_require__(443); -var TableContainer_default = /*#__PURE__*/__webpack_require__.n(TableContainer_); -// EXTERNAL MODULE: external "@mui/material/TableHead" -var TableHead_ = __webpack_require__(5953); -var TableHead_default = /*#__PURE__*/__webpack_require__.n(TableHead_); -// EXTERNAL MODULE: external "@mui/material/TableRow" -var TableRow_ = __webpack_require__(4848); -var TableRow_default = /*#__PURE__*/__webpack_require__.n(TableRow_); -// EXTERNAL MODULE: external "@mui/material/Paper" -var Paper_ = __webpack_require__(1168); -var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_); -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseShellQueryResult.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},26406:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},48987:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,l.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,l.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,l.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,l.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,t,r)=>{var a=r(24994);t.A=void 0;var s=a(r(30887)),l=r(8732);t.A=(0,s.default)([(0,l.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},75075:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=a(r(54893)),l=a(r(94634)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=s?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(82015));a(r(29825));var n=a(r(74956));a(r(71291)),a(r(54341));var o=a(r(14036)),u=r(84781),c=a(r(88456)),d=a(r(3167)),p=r(57001);a(r(90403));var m=r(87479),h=r(8732);let f=["className","component","elevation","square","variant"];function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}let y=e=>{let{square:t,elevation:r,variant:a,classes:s}=e,l={root:["root",a,!t&&"rounded","elevation"===a&&`elevation${r}`]};return(0,o.default)(l,m.getPaperUtilityClass,s)},x=(0,c.default)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return(0,l.default)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,l.default)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,u.alpha)("#fff",(0,d.default)(t.elevation))}, ${(0,u.alpha)("#fff",(0,d.default)(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}),g=i.forwardRef(function(e,t){let r=(0,p.useDefaultProps)({props:e,name:"MuiPaper"}),{className:a,component:i="div",elevation:o=1,square:u=!1,variant:c="elevation"}=r,d=(0,s.default)(r,f),m=(0,l.default)({},r,{component:i,elevation:o,square:u,variant:c}),v=y(m);return(0,h.jsx)(x,(0,l.default)({as:i,ownerState:m,className:(0,n.default)(v.root,a),ref:t},d))});t.default=g},45561:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0});var s={paperClasses:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"paperClasses",{enumerable:!0,get:function(){return i.default}});var l=a(r(75075)),i=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(void 0);if(r&&r.has(e))return r.get(e);var a={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=s?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(a,l,i):a[l]=e[l]}return a.default=e,r&&r.set(e,a),a}(r(87479));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(s,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},87479:(e,t,r)=>{var a=r(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getPaperUtilityClass=function(e){return(0,l.default)("MuiPaper",e)};var s=a(r(81699)),l=a(r(61119));let i=(0,s.default)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);t.default=i},92441:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,r)=>{let a=r(83007),s=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l<e.length;l++){let i=e[l],n=Object.keys(i);for(let e=0;e<n.length;e++){let r=n[e],l=t?.fields[e];if(r?.match(s))continue;let o=i[r];("number"==typeof o||o)&&l?.encrypted&&o?.match(/./)&&(i[r]=a(o))}r.push(i)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},22373:(e,t,r)=>{let a=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:s}){let l=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let i=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",l),a.appendFileSync("./.tmp/error.log",` - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ const StyledTableCell = (0,styles_.styled)((TableCell_default()))(({ theme })=>({ - [`&.${TableCell_.tableCellClasses.head}`]: { - backgroundColor: "var(--slate-800)", - color: "white" - }, - [`&.${TableCell_.tableCellClasses.body}`]: { - } - })); -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - * @param {import("@/package-shared/types").UserType} props.user - */ function DatabaseShellQueryResult({ data , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const headers = Object.keys(data[0]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "p-4 bg-slate-200 rounded-md overflow-hidden", - children: /*#__PURE__*/ jsx_runtime_.jsx((TableContainer_default()), { - component: (Paper_default()), - sx: { - width: "100%" - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)((Table_default()), { - sx: { - minWidth: 650 - }, - "aria-label": "simple table", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((TableHead_default()), { - children: /*#__PURE__*/ jsx_runtime_.jsx((TableRow_default()), { - children: headers && headers[0] && headers.map((header, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(StyledTableCell, { - align: "left", - children: header - }, index + 1); - }) - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx((TableBody_default()), { - children: data && data[0] && data.map((/** @type {any} */ dataObject, /** @type {number} */ index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx((TableRow_default()), { - sx: { - "&:last-child td, &:last-child th": { - border: 0 - } - }, - children: headers.map((header, _index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(StyledTableCell, { - align: "left", - children: dataObject[header] - }, _index + 1); - }) - }, index + 1); - }) - }) - ] - }) - }) - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseShellQueryResult/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No results" - }) - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/DatabaseShellContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DatabaseShellContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , dbSchemaData , tables , user } = external_react_default().useContext(DatabaseShellContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!user) { - return null; - } - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const sqlEditorRef = external_react_default().useRef(); - /** @type {React.MutableRefObject<AceAjax.Editor | undefined>} */ const editorRef = external_react_default().useRef(); - const [loading, setLoading] = external_react_default().useState(false); - const [data, setData] = external_react_default().useState(false); - const [refresh, setRefresh] = external_react_default().useState(0); - function runQuery() { - setLoading(true); - /** @type {string|null} */ const query = editorRef.current ? editorRef.current.getValue() : null; - if (!query?.match(/./)) return; - const formattedQuery = query.replace(/^--.*/gm, "").replace(/\n|\r|\n\r/gm, "").replace(/ {2,}/g, " "); - (0,fetchApi/* default */.Z)("/api/runUserDbQuery", { - method: "post", - body: { - database: database?.db_slug, - query: formattedQuery, - tables: tables?.map((tbl)=>tbl.tableSlug) - } - }, true).then((res)=>{ - if (res.success) { - setData(res.result); - } else if (res.msg) { - window.alert(res.msg); - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - } - external_react_default().useEffect(()=>{ - if (!ace?.edit) { - setTimeout(()=>{ - setRefresh((prev)=>prev + 1); - }, 1000); - return; - } - /** @type {AceAjax.Editor} */ const editor = ace.edit("ace-editor-wrapper"); - editor.setOptions({ - mode: "ace/mode/mysql", - theme: "ace/theme/twilight", - value: `SELECT * FROM ${tables?.[0] ? tables[0].tableSlug : "no_tables_yet"}`, - placeholder: "Type an SQL query", - enableBasicAutocompletion: true, - enableLiveAutocompletion: true - }); - editor.commands.addCommand({ - name: "myCommand", - bindKey: { - win: "Ctrl-Enter", - mac: "Command-Enter" - }, - exec: function(editor) { - runQuery(); - }, - readOnly: true - }); - editorRef.current = editor; - }, [ - refresh - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - database?.db_name, - " Database Shell" - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - // @ts-ignore - ref: sqlEditorRef, - id: "ace-editor-wrapper" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "absolute right-4 bottom-4" + (loading ? " pointer-events-none opacity-70" : ""), - onClick: (e)=>{ - runQuery(); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative", - width: "15px", - borderWidth: "3px", - style: { - backgroundColor: "transparent" - } - }), - loading ? "Running Query ..." : "Run Query" - ] - }) - ] - }), - data && !loading && /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col items-start overflow-x-scroll", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl", - children: "Query Results" - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabaseShellQueryResult, { - data: data, - user: user - }) - ] - }) - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "DatabaseShellContent/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-100 dark:bg-white/10 border border-solid border-slate-300 dark:border-slate-300/20 rounded py-1", - children: database?.db_name - }), - "\xa0", - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Shell" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Shell not available at this time" - }) - }) - ] - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(3314); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/shell.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DbShellContextType} */ const databaseShellInit = {}; -const DatabaseShellContext = /*#__PURE__*/ external_react_default().createContext(databaseShellInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any[]} props.tables - */ function DatabaseShellPage({ user , database , query , dbSchemaData , tables , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Database Shell | Datasquirel"; - const pageDescription = "Database Shell"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx("link", { - rel: "stylesheet", - href: "/styles/shell-page.css" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [dbImage, setDbImage] = external_react_default().useState(database.db_image); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - aceEditor: true, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseShellContext.Provider, { - value: { - user, - database, - dbImage, - setDbImage, - dbSchemaData, - tables - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(DatabaseShellContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const tables = await varDatabaseDbHandler_default()({ - queryString: `SHOW TABLES`, - database: database[0].db_full_name - }); - const dbSchemaData = (0,grabUserSchemaData/* default */.Z)({ - userId: user.id - }); - if (!dbSchemaData) throw new Error("User schema data not found!"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - query, - dbSchemaData: dbSchemaData ? dbSchemaData : [], - tables: tables && tables[0] ? tables.map((/** @type {any} */ table)=>{ - const title = Object.keys(table)[0]; - return { - tableSlug: table[title] - }; - }) : [] - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log(error); - return { - redirect: { - destination: "/", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 1168: -/***/ ((module) => { - -module.exports = require("@mui/material/Paper"); - -/***/ }), - -/***/ 9181: -/***/ ((module) => { - -module.exports = require("@mui/material/Table"); - -/***/ }), - -/***/ 8823: -/***/ ((module) => { - -module.exports = require("@mui/material/TableBody"); - -/***/ }), - -/***/ 5612: -/***/ ((module) => { - -module.exports = require("@mui/material/TableCell"); - -/***/ }), - -/***/ 443: -/***/ ((module) => { - -module.exports = require("@mui/material/TableContainer"); - -/***/ }), - -/***/ 5953: -/***/ ((module) => { - -module.exports = require("@mui/material/TableHead"); - -/***/ }), - -/***/ 4848: -/***/ ((module) => { - -module.exports = require("@mui/material/TableRow"); - -/***/ }), - -/***/ 8442: -/***/ ((module) => { - -module.exports = require("@mui/material/styles"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,7023,8682,2317,1206,3314], () => (__webpack_exec__(2495))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},90378:(e,t,r)=>{r(29021);let a=r(89545),s=r(22373),l=r(67216),i=r(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:n}){let o;let u=!!r?.match(/^datasquirel$/),c=u?l:i;try{o=e&&t&&Array.isArray(t)&&t[0]?u?await c(e,t):await c({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await c(e):await c({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&n)try{let e=o;return await a({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,r)=>{let a=r(29021);r(33873);let s=r(9973),l=r(31976),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:n}){try{return new Promise((o,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){i.end(),o(JSON.parse(JSON.stringify(e)))}function p(e){i.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:n,sql:e.sql})}i=c?s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),n&&Array.isArray(n)&&n[0]?i.query(r,n).then(d).catch(p):i.query(r).then(d).catch(p)}catch(e){a.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},92557:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{DatabaseShellContext:()=>b,default:()=>x,getServerSideProps:()=>g});var s=r(8732),l=r(82015),i=r.n(l),n=r(95222),o=r(20048),u=r.n(o),c=r(64098),d=r(90378),p=r.n(d),m=r(64648),h=r(67216),f=r.n(h),v=r(43479),y=e([c,m]);[c,m]=y.then?(await y)():y;let b=i().createContext({});function x({user:e,database:t,query:r,dbSchemaData:a,tables:l}){let o=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Database Shell | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Database Shell"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/shell-page.css"})]}),[u,d]=i().useState(t.db_image);return(0,s.jsx)(n.A,{head:o,user:e,extraHeaderContent:(0,s.jsx)(c.A,{database:t,query:r,user:e}),aceEditor:!0,children:(0,s.jsx)(b.Provider,{value:{user:e,database:t,dbImage:u,setDbImage:d,dbSchemaData:a,tables:l},children:(0,s.jsx)(m.A,{})})})}async function g({req:e,res:t,query:r}){try{let a=await u()(e,t);if(!a?.logged_in_status||!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await f()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let l=await p()({queryString:"SHOW TABLES",database:s[0].db_full_name}),i=(0,v.A)({userId:a.id});if(!i)throw Error("User schema data not found!");return{props:{user:a,database:s[0],query:r,dbSchemaData:i||[],tables:l&&l[0]?l.map(e=>{let t=Object.keys(e)[0];return{tableSlug:e[t]}}):[]}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}a()}catch(e){a(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,6154,8268,7070,5134],()=>r(12009));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json index 372a16c..5ca919c 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/shell.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/7023.js","../../../../../chunks/8682.js","../../../../../chunks/2317.js","../../../../../chunks/1206.js","../../../../../chunks/3314.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/@mui/material/styles/package.json","../../../../../../../node_modules/@mui/material/Paper/package.json","../../../../../../../node_modules/@mui/material/Table/package.json","../../../../../../../node_modules/@mui/material/TableBody/package.json","../../../../../../../node_modules/@mui/material/TableCell/package.json","../../../../../../../node_modules/@mui/material/TableContainer/package.json","../../../../../../../node_modules/@mui/material/TableHead/package.json","../../../../../../../node_modules/@mui/material/TableRow/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../package.json","../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js index fe9f3f5..06f58c5 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js @@ -1,668 +1,8 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6618; -exports.ids = [6618,133,4135]; -exports.modules = { - -/***/ 6522: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "TablesContext": () => (/* binding */ TablesContext), - "default": () => (/* binding */ Tables), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/admin/databases/DeleteDatabaseConfirmationPopup.jsx -var DeleteDatabaseConfirmationPopup = __webpack_require__(5012); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -// EXTERNAL MODULE: ./components/admin/databases/TablesList.jsx + 3 modules -var TablesList = __webpack_require__(6734); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -;// CONCATENATED MODULE: ./components/admin/databases/TablesContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function TablesContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { tables , setTargetTable , database , query , confirmedDelegetedUser , user , } = external_react_default().useContext(TablesContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-2 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap gap-6", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0 flex flex-wrap gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "inline", - children: "All Tables in" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "inline relative", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}`, - className: "p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline", - onClick: (e)=>{ - /** @type {HTMLAnchorElement} */ // @ts-ignore - const linkEl = e.target; - if (linkEl.closest(".copy-slug-span")) { - e.preventDefault(); - } - }, - style: { - wordBreak: "break-all" - }, - children: [ - database.db_name, - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-4 -right-4", - children: /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: database.db_slug, - justIcon: true - }) - }) - ] - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full md:w-auto", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - (!isDelegated || isDelegated && isTableCreatable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/add-table`, - className: "button flex items-center gap-2 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Table" - }) - ] - }), - !isDelegated && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users`, - className: "button dark", - children: "Users" - }) - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TablesList/* default */.Z, { - database: database, - tables: tables, - setTargetTable: setTargetTable, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - user: user - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/DeleteTableConfirmationPopup.jsx -var DeleteTableConfirmationPopup = __webpack_require__(1674); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").TablesContextType} */ // @ts-ignore -const init = {}; -const TablesContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def[]} props.tables - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function Tables({ user , database , tables , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `Tables For ${database.db_name} Database | Datasquirel`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ targetTable: import("@/package-shared/types").MYSQL_user_database_tables_table_def | null, setTargetTable: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def | null>> ]} */ // @ts-ignore - const [targetTable, setTargetTable] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(TablesContext.Provider, { - value: { - user, - database, - tables, - targetTable, - setTargetTable, - query, - confirmedDelegetedUser - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(TablesContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DeleteDatabaseConfirmationPopup/* default */.Z, { - targetDatabase: database - }), - /*#__PURE__*/ jsx_runtime_.jsx(DeleteTableConfirmationPopup/* default */.Z, { - database: database, - targetTable: targetTable - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Check delegated user token - * - * @description Check delegated user token - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - databaseSlug: query.single?.toString() || "", - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const { dbUserId , rootUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const tables = rootUserId ? await DB_HANDLER_default()(` - SELECT - delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* - FROM - delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug - WHERE - delegated_user_tables.delegated_user_id='${user.id}' AND delegated_user_tables.root_user_id='${rootUserId}' AND delegated_user_tables.database='${database[0].db_slug}' - `) : await DB_HANDLER_default()(`SELECT * FROM user_database_tables WHERE user_id='${user.id}' AND db_id='${database[0].id}'`); - if (!tables || !tables[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases/${database[0].db_slug}`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - tables: tables, - query, - confirmedDelegetedUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,5116,8345,4986,8264,1500,1674], () => (__webpack_exec__(6522))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5405,e.ids=[636,5405],e.modules={15560:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{config:()=>x,default:()=>c,getServerSideProps:()=>m,getStaticPaths:()=>b,getStaticProps:()=>p,reportWebVitals:()=>g,routeModule:()=>S,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>_});var a=s(63865),i=s(9455),l=s(30671),d=s(49407),n=s(68268),u=s(65445),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,l.M)(u,"default"),p=(0,l.M)(u,"getStaticProps"),b=(0,l.M)(u,"getStaticPaths"),m=(0,l.M)(u,"getServerSideProps"),x=(0,l.M)(u,"config"),g=(0,l.M)(u,"reportWebVitals"),_=(0,l.M)(u,"unstable_getStaticProps"),h=(0,l.M)(u,"unstable_getStaticPaths"),f=(0,l.M)(u,"unstable_getStaticParams"),j=(0,l.M)(u,"unstable_getServerProps"),q=(0,l.M)(u,"unstable_getServerSideProps"),S=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables",pathname:"/admin/[user_id]/databases/[single]/tables",bundlePath:"",filename:""},components:{App:n.default,Document:d.default},userland:u});r()}catch(e){r(e)}})},34033:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(8732),a=s(82015),i=s.n(a),l=s(63715),d=s(55158),n=s(32415);function u({targetDatabase:e}){let[t,s]=i().useState(!1);return(0,r.jsxs)(d.Ay,{title:"delete-database-confirmation",children:[t&&(0,r.jsx)(n.A,{width:"20px"}),(0,r.jsxs)("h4",{className:"m-0",children:["Delete '",e?.db_name?e.db_name:"This Database","' database?"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:t=>{if(!e){alert("No Target Database Selected!");return}s(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,l.A)("/api/deleteUserDatabase",{method:"post",body:e},!0).then(e=>{e.success&&window.location.reload()}):s(!1)},children:(0,r.jsx)("span",{children:"Yes"})}),(0,r.jsx)("button",{onClick:e=>{(0,d.fs)()},children:(0,r.jsx)("span",{children:"Cancel"})})]})]})}},73972:(e,t,s)=>{s.d(t,{A:()=>u});var r=s(8732),a=s(82015),i=s.n(a),l=s(63715);s(58548);var d=s(55158),n=s(32415);function u({targetTable:e,database:t}){let[s,a]=i().useState(!1);return(0,r.jsxs)(d.Ay,{title:"delete-table-confirmation",children:[s&&(0,r.jsx)(n.A,{width:"20px"}),(0,r.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{className:"outlined"+(s?" pointer-events-none opacity-40":""),onClick:s=>{a(!0),(0,l.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,r.jsx)("span",{children:"Yes"})}),(0,r.jsx)("button",{onClick:e=>{(0,d.fs)()},children:(0,r.jsx)("span",{children:"Cancel"})})]})]})}},80558:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.d(t,{A:()=>g});var a=s(8732),i=s(82015),l=s.n(i),d=s(65445),n=s(46437),u=s(58548),o=s(94010),c=s(59621),p=s(48241),b=s(62506),m=s(86571),x=e([d,o,c,p]);function g(e){let{tables:t,setTargetTable:s,database:r,query:i,confirmedDelegetedUser:x,user:g}=l().useContext(d.TablesContext),_=x?.delegated;x?.priviledges?.match(/Edit Tables/i),x?.priviledges?.match(/Delete Tables/i);let h=x?.priviledges?.match(/Create Tables/i),{active_clone:f,active_clone_parent_db:j,remote_connected:q}=r;return(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-2 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap gap-6",children:[(0,a.jsxs)("div",{className:"flex-wrap",children:[(0,a.jsx)(n.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0 flex flex-wrap gap-2",children:[(0,a.jsx)("span",{className:"inline",children:"All Tables in"}),(0,a.jsx)("span",{className:"inline relative",children:(0,a.jsxs)("a",{href:`/admin/${g?.id}/databases/${r.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 text-primary hover:text-primary_dark relative inline",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},style:{wordBreak:"break-all"},children:[r.db_name,(0,a.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,a.jsx)(o.A,{slugText:r.db_slug,justIcon:!0})})]})})]})]}),(0,a.jsx)("div",{className:"w-full md:w-auto",children:(0,a.jsxs)(b.A,{children:[(!_||_&&h)&&!j&&!q&&(0,a.jsxs)("a",{href:`/admin/${g?.id}/databases/${r.db_slug}/tables/add-table`,className:"button flex items-center gap-2 w-full",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add Table"})]}),!_&&(0,a.jsx)("a",{href:`/admin/${g?.id}/databases/${r.db_slug}/users`,className:"button dark",children:"Users"})]})})]}),(0,a.jsx)(u.A,{confirmedDelegetedUser:i?.delegated,user:g})]}),r.active_clone?(0,a.jsx)(m.A,{database:r,user:g}):(0,a.jsx)(a.Fragment,{}),r.remote_connected?(0,a.jsx)(c.p,{database:r}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(p.A,{database:r,tables:t,setTargetTable:s,confirmedDelegetedUser:x,query:i,user:g})]})}[d,o,c,p]=x.then?(await x)():x,r()}catch(e){r(e)}})},31651:(e,t,s)=>{s(81630);let r=s(83007);e.exports=async function({request:e,databaseSlug:t,user:s,query:a}){try{let i=s.id,l=null;if(!a?.delegated)return{dbUserId:i};let d=a.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${d}_${t}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let s=r(e.cookies[u]);if(!s)throw Error("Invalid Token");if((l=JSON.parse(s)).databaseSlug===t)return{dbUserId:i=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:i}}catch(e){return null}}},65445:(e,t,s)=>{s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{TablesContext:()=>q,default:()=>f,getServerSideProps:()=>j});var a=s(8732),i=s(82015),l=s.n(i),d=s(20048),n=s.n(d),u=s(95222),o=s(34033),c=s(80558),p=s(73972),b=s(64098),m=s(31651),x=s.n(m),g=s(67216),_=s.n(g),h=e([c,b]);[c,b]=h.then?(await h)():h;let q=l().createContext({});function f({user:e,database:t,tables:s,query:r,confirmedDelegetedUser:i}){let d=`Tables For ${t.db_name} Database | Datasquirel`,n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:d}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,x]=l().useState(null);return(0,a.jsx)(u.A,{head:n,user:e,extraHeaderContent:(0,a.jsx)(b.A,{database:t,query:r,confirmedDelegetedUser:i,user:e}),children:(0,a.jsxs)(q.Provider,{value:{user:e,database:t,tables:s,targetTable:m,setTargetTable:x,query:r,confirmedDelegetedUser:i},children:[(0,a.jsx)(c.A,{}),(0,a.jsx)(o.A,{targetDatabase:t}),(0,a.jsx)(p.A,{database:t,targetTable:m})]})})}async function j({req:e,res:t,query:s}){let r=await n()(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=await x()({request:e,user:r,databaseSlug:s.single?.toString()||"",query:s});if(!a)return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let{dbUserId:i,rootUserId:l}=a,d=await _()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${s.single}'`);if(!d||!d[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let u=l?await _()(` + SELECT + delegated_user_tables.database,delegated_user_tables.table,user_database_tables.* + FROM + delegated_user_tables INNER JOIN user_database_tables ON delegated_user_tables.root_user_id=user_database_tables.user_id AND delegated_user_tables.table=user_database_tables.table_slug AND delegated_user_tables.database=user_database_tables.db_slug + WHERE + delegated_user_tables.delegated_user_id='${r.id}' AND delegated_user_tables.root_user_id='${l}' AND delegated_user_tables.database='${d[0].db_slug}' + `):await _()(`SELECT * FROM user_database_tables WHERE user_id='${r.id}' AND db_id='${d[0].id}'`);return u&&u[0]?{props:{user:r,database:d[0],tables:u,query:s,confirmedDelegetedUser:a}}:{redirect:{destination:`/admin/${r?.id}/databases/${d[0].db_slug}`,permanent:!1}}}r()}catch(e){r(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,7734,8268,7070,5134,9621],()=>s(15560));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json index d8f05e0..53da37d 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/5472.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/5116.js","../../../../../chunks/8345.js","../../../../../chunks/4986.js","../../../../../chunks/8264.js","../../../../../chunks/1500.js","../../../../../chunks/1674.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js index 8a6b513..2ef74f8 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js @@ -1,2415 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8848; -exports.ids = [8848,372,8105,133,4135,8515,3314,1674]; -exports.modules = { - -/***/ 1674: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DeleteTableConfirmationPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_Breadcrumbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(424); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5472); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def | null} [props.targetTable] - */ function DeleteTableConfirmationPopup({ targetTable , database , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, { - title: "delete-table-confirmation", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0", - children: [ - "Delete '", - targetTable?.table_name ? targetTable.table_name : "This Database", - "' Table?" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/deleteUserTable", { - method: "post", - body: { - database: database, - table: targetTable - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Yes" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Cancel" - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8515: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ ActiveCloneTableBanner) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5557); -/* harmony import */ var _mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_mui_icons_material_MenuBookTwoTone__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {number} [props.activeDbClone] - * @param {import("@/package-shared/types").UserType} props.user - */ function ActiveCloneTableBanner({ table , database , user , activeDbClone , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const cloneParentDb = table?.childTableDbFullName ? table.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/), "") : null; - const isCurrentDb = table.childTableDbFullName === database.db_full_name; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ if (!cloneParentDb) return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}); - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - className: "info small green gap-1" + (database?.active_clone ? " -mt-6" : ""), - style: { - fontWeight: "500" - }, - children: [ - "This Table is an active clone of", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${cloneParentDb}/tables/${table.childTableName}`, - target: "_blank", - className: "button gray outlined small-text", - style: { - display: "inline-block", - fontSize: "12px", - padding: "3px 7px" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: table.childTableName - }) - }), - " ", - "in", - " ", - isCurrentDb ? /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - children: [ - "this current database(", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: database.db_name - }), - ")." - ] - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: `/admin/${user?.id}/databases/${cloneParentDb}`, - target: "_blank", - className: "button gray outlined small-text", - style: { - display: "inline-block", - fontSize: "12px", - padding: "3px 7px" - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: cloneParentDb - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "database." - }) - ] - }), - " ", - database?.active_clone ? "" : "Only Foreign keys and Entries can be updated." - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 7809: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ grabTableSchemaData) -/* harmony export */ }); -/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3685); -/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2317); -/* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5116); -/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3314); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1206); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} grabTableSchemaDataReturn - * @property {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} [database] - * @property {import("@/package-shared/types").DSQL_TableSchemaType} [table] - * @property {import("@/package-shared/types").MYSQL_user_database_tables_table_def} [props.tableRecord] - * @property {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} [props.dbSchemaData] - * @property {any[]} [props.entries] - * @property {any} [props.query] - * @property {any} [props.confirmedDelegetedUser] - * @property {number} [props.entriesCount] - */ /** - * @param {object} params - * @param {http.IncomingMessage & { cookies: import("next/dist/server/api-utils").NextApiRequestCookies }} params.req - Database name slug - * @param {{ id: number, first_name: string, last_name: string }} params.user - user object - * @param {any} params.query - query params - * - * @returns {Promise<grabTableSchemaDataReturn | null>} new user auth object payload - */ async function grabTableSchemaData({ req , user , query }) { - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ const dbUserData = await _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default()({ - request: req, - user: user, - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - return null; - } - const { dbUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database?.[0]) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ let dbSchemaData = (0,_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({ - userId: dbUserId - }); - if (!dbSchemaData) { - throw new Error("DB Schema not found!"); - } - /** @type {import("@/package-shared/types").DSQL_TableSchemaType[]| undefined} */ const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables?.filter((table)=>table.tableName === query.single_table)[0]; - const targetTableRecord = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT * FROM user_database_tables WHERE user_id='${dbUserId}' AND db_id='${database[0].id}' AND table_slug='${query.single_table}'`); - const tableEntries = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM ${targetTable?.tableName} ORDER BY id DESC LIMIT 10`, - tableSchema: targetTable - }); - const tableEntriesCount = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - database: database[0].db_full_name, - queryString: `SELECT COUNT(id) AS count FROM ${targetTable?.tableName}`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (confirmedDelegetedUser.rootUserId) { - const filteredDbSchema = dbSchemaData.filter((db)=>db.dbFullName == database[0].db_full_name); - let targetFilteredDb = filteredDbSchema[0]; - const filteredTables = targetFilteredDb.tables.filter(// @ts-ignore - (tbl)=>tbl.tableName === targetTable?.tableName); - targetFilteredDb.tables = filteredTables; - dbSchemaData = [ - targetFilteredDb - ]; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - confirmedDelegetedUser: confirmedDelegetedUser || null, - database: database[0] || null, - dbSchemaData: dbSchemaData || null, - entries: tableEntries || null, - entriesCount: tableEntriesCount?.[0]?.count || 0, - query, - table: targetTable, - tableRecord: targetTableRecord[0] || {} - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "[single_table]/index-page-component/getServerSideProps/catch-error]", - message: error.message, - user: user - }); - return {}; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 3314: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ grabUserSchemaData) -/* harmony export */ }); -// @ts-check -const serverError = __webpack_require__(2317); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * @param {Object} params - * @param {string | number} params.userId - * @returns {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null} - */ function grabUserSchemaData({ userId }) { - try { - const userSchemaFilePath = path.resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`); - const userSchemaData = JSON.parse(fs.readFileSync(userSchemaFilePath, "utf-8")); - return userSchemaData; - } catch (/** @type {any} */ error) { - serverError({ - component: "/functions/backend/grabUserSchemaData", - message: error.message - }); - return null; - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 8382: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ updateTableAfterFieldsUpdateFunctionExt) -/* harmony export */ }); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - Single object parameters - * @param {{delegated: boolean}} [params.query] - Query object - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - Target table object - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - Target MYSQL database record object - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchemaData - DSQL db schema - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [params.tableFields] - Table Fields - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} [params.tableIndexes] - Table INdexes - * @param {React.Dispatch<React.SetStateAction<boolean>>} [params.setLoading] - */ function updateTableAfterFieldsUpdateFunctionExt({ query , table , database , dbSchemaData , tableFields , tableIndexes , setLoading , }) { - /** - * @description Initialize - */ let newDbSchemaData = [ - ...dbSchemaData - ]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - const dbIndex = newDbSchemaData.findIndex((db)=>db.dbFullName === database.db_full_name); - const targetDb = newDbSchemaData[dbIndex]; - const targetTableIndex = targetDb.tables.findIndex((_table)=>_table.tableName === table.tableName); - newDbSchemaData[dbIndex].tables[targetTableIndex].fields = tableFields ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableFields) : []; - newDbSchemaData[dbIndex].tables[targetTableIndex].indexes = tableIndexes ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableIndexes) : []; - const tempField = newDbSchemaData[dbIndex].tables[targetTableIndex].fields.find((fld)=>fld.newTempField); - if (tempField) { - window.alert("Please resolve all open fields before you save"); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } - (0,_fetchApi__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)("/api/updateDbSchemaDataForUser", { - method: "post", - body: { - schema: newDbSchemaData, - database: database.db_slug, - table: table, - delegated: query?.delegated - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert(res.msg || "Operation Failed. Please check permissions."); - } - }).finally(()=>{ - if (setLoading) { - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - } catch (/** @type {any} */ error) { - window.alert(error.message); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 4769: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleTableContext": () => (/* binding */ SingleTableContext), - "default": () => (/* binding */ SingleTable), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/admin/databases/DeleteTableConfirmationPopup.jsx -var DeleteTableConfirmationPopup = __webpack_require__(1674); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/databases/TableEntriesList.jsx + 1 modules -var TableEntriesList = __webpack_require__(6122); -// EXTERNAL MODULE: ./components/admin/databases/TableFields.jsx + 7 modules -var TableFields = __webpack_require__(4893); -;// CONCATENATED MODULE: ./functions/frontend/addNewTemplateIndex.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} params.tableIndexes - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} params.setTableIndexes - * @param {React.Dispatch<React.SetStateAction<number>>} [params.setRefresh] - * @param {React.Dispatch<React.SetStateAction<number>>} [params.setPageRefresh] - * - * @requires search-field name attribute - */ function addNewTemplateIndex({ tableIndexes , setTableIndexes , setRefresh , setPageRefresh , }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ let newArray = tableIndexes && tableIndexes[0] ? tableIndexes : []; - newArray.push({ - newTempIndex: true - }); - setTableIndexes(newArray); - // setRefresh && setRefresh((prev) => prev + 1); - // setPageRefresh && setPageRefresh((prev) => prev + 1); - if (setRefresh) setRefresh((prev)=>prev + 1); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./functions/frontend/addNewIndex.js -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 1 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [NewIndexFieldTemp.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\NewIndexFieldTemp.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {number} params.fieldIndex - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} params.setTableIndexes - * @param {React.Dispatch<React.SetStateAction<number>>} params.setRefresh - * @param {import("@/package-shared/types").DSQL_IndexSchemaType} params.payload - * @requires search-field name attribute - */ function addNewIndex({ fieldIndex , setTableIndexes , setRefresh , payload , }) { - /** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ setTableIndexes((prev)=>{ - let newArray = prev; - newArray.splice(fieldIndex, 1, payload); - return newArray; - }); - // setRefresh && setRefresh((prev) => prev + 1); - // setPageRefresh && setPageRefresh((prev) => prev + 1); - if (setRefresh) setRefresh((prev)=>prev + 1); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -;// CONCATENATED MODULE: ./components/admin/databases/NewIndexFieldTemp.jsx -// @ts-check -/** # MODULE TRACE -====================================================================== - * Detected 1 files that call this module. The files are listed below: -====================================================================== - * `import` Statement Found in [TableIndexes.jsx] => file:///d:\GitHub\datasquirel\components\admin\databases\TableIndexes.jsx -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_IndexSchemaType} [props.tableIndex] - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} [props.tableIndexes] - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} props.setTableIndexes - * @param {React.Dispatch<React.SetStateAction<number>>} props.setRefresh - * @param {import("@/package-shared/types").UserType} props.user - * @param {string|number} props.tableUniqueId - */ function NewIndexFieldTemp({ tableIndex , fieldIndex , currentTable , tableFields , tableIndexes , setTableIndexes , setRefresh , user , tableUniqueId , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const columnDesc = "Select Columns to be indexed. NB the order matters"; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [indexType, setIndexType] = external_react_default().useState("regular"); - /** @type {any} */ const indexTableFieldsState = external_react_default().useState(0); - /** @type {[ indexTableFields: import("@/package-shared/types").DSQL_IndexTableFieldType[], setIndexTableFields: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexTableFieldType[]>> ]} */ const [indexTableFields, setIndexTableFields] = indexTableFieldsState; - /** @type {React.LegacyRef<HTMLElement | undefined>} */ const newFieldRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - newFieldRef.current?.scrollIntoView({ - block: "center", - behavior: "smooth" - }); - newFieldRef.current?.querySelector("input")?.focus(); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full mt-1 xl:flex-nowrap flex-wrap", - // @ts-ignore - ref: newFieldRef, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-700/40 relative flex-wrap xl:flex-nowrap shadow-xl", - onSubmit: (e)=>{ - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - let new_index_name = formEl["new_index_name"].value.replace(/_index/, "").replace(/_{1,}$/, "") + "_index"; - if (!indexTableFields || !indexTableFields[0]) { - alert("Please Select at least 1 table column name"); - return; - } - /** @type {import("@/package-shared/types").DSQL_IndexSchemaType} */ let newIndexObject = { - indexType: indexType, - indexName: new_index_name, - indexTableFields, - alias: tableUniqueId + "_" + new_index_name - }; - addNewIndex({ - fieldIndex, - setTableIndexes, - payload: newIndexObject, - setRefresh - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "absolute -top-2 text-sm bg-fuchsia-600 text-white px-2 rounded-full", - children: "New Index" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_required", - children: "Type" - }), - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "new_field_required", - id: "new_field_required", - className: "px-2", - onChange: (e)=>{ - setIndexType(e.target.value); - }, - children: indexType?.match(/regular/i) ? /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "regular", - children: "Default" - }) : /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "fullText", - children: "Full Text" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_index_name", - children: "Index Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "new_index_name", - id: "new_index_name", - placeholder: "Eg. title_index", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - inputEl.value = inputEl.value.toLowerCase().replace(/ /g, "_"); - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-4 xl:gap-0.5", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_data_type", - children: "Table Column(s)" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper reversed text-sm items-start gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex", - children: "Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mt-0 xl:-mt-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: columnDesc - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-auto flex flex-row items-stretch gap-4", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "new_field_data_type", - id: "new_field_data_type", - className: "w-full xl:w-auto", - onChange: (e)=>{ - if (e.target.value.match(/--/)) return; - const targetOption = Array.from(e.target.options).filter((option)=>option.value === e.target.value); - const dataType = targetOption[0].dataset.type; - if (dataType?.match(/text/i)) { - setIndexType("fullText"); - setIndexTableFields([ - { - value: e.target.value, - dataType: dataType - }, - ]); - } else { - try { - const existingTextDataType = indexTableFields.filter((obj)=>obj.dataType.match(/text/i)); - if (existingTextDataType[0]) throw new Error("TEXT type exists"); - let existingFieldsArray = indexTableFields; - if (existingFieldsArray.findIndex((obj)=>obj.value === e.target.value) >= 0 || e.target.value.match(/^--$/)) { - return; - } - if (dataType) { - existingFieldsArray.push({ - value: e.target.value, - dataType - }); - setIndexTableFields([ - ...existingFieldsArray, - ]); - } else { - window.alert("Datatype not provided. Please recheck fields."); - } - } catch (/** @type {any} */ error) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "NewIndexFieldTemp/lines-177-190", - message: error.message, - user: user - } - }); - if (dataType) { - setIndexTableFields([ - { - value: e.target.value, - dataType: dataType - }, - ]); - } else { - window.alert("Couldn't set Index Fields"); - } - } - setIndexType("regular"); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "--", - children: "--" - }), - tableFields.filter((field)=>!field?.fieldName?.match(/^id$|^date_/) && !field.foreignKey).map((field, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: field.fieldName, - "data-type": field.dataType, - children: field.fieldName - }, index + 1); - }) - ] - }), - indexTableFields && indexTableFields[0] && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "px-3 py-1 bg-slate-100 dark:bg-slate-500/10 rounded", - children: indexTableFields.map((field, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: field.value - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 dark:bg-slate-600 text-xs hover:bg-slate-400", - onClick: (e)=>{ - let updatedArray = indexTableFields.filter((_field)=>!_field.value.match(new RegExp(`^${external_lodash_default().escapeRegExp(field.value)}$`))); - setIndexTableFields([ - ...updatedArray, - ]); - }, - children: "✖" - }) - ] - }, index + 1); - }) - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "secondary mt-auto py-3 w-full sm:w-auto justify-center grow", - children: "Add Index" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray mt-auto py-2.5 w-full sm:w-auto justify-center grow", - onClick: (e)=>{ - setTableIndexes((prev)=>prev.filter((field, index)=>index != fieldIndex)); - }, - children: "Cancel" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/defaultFieldsRegexp.js -var defaultFieldsRegexp = __webpack_require__(3907); -;// CONCATENATED MODULE: ./components/admin/databases/indexes/indexSelectChange.js -// @ts-check - -/** - * - * @param {object} param0 - * @param {any} param0.e - * @param {import("@/package-shared/types").DSQL_IndexTableFieldType[]} param0.indexTableFields - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexTableFieldType[]>>} param0.setIndexTableFields - * @param {React.Dispatch<React.SetStateAction<string>>} param0.setIndexType - * @param {import("@/package-shared/types").UserType} param0.user - * @returns - */ function indexSelectChange({ e , indexTableFields , setIndexTableFields , setIndexType , user , }) { - if (e.target.value.match(/--/)) return; - const targetOption = Array.from(e.target.options).filter((option)=>option.value === e.target.value); - const dataType = targetOption[0].dataset.type; - if (dataType.match(/text/i)) { - setIndexType("fullText"); - setIndexTableFields([ - { - value: e.target.value, - dataType: dataType - }, - ]); - } else { - try { - const existingTextDataType = indexTableFields.filter((obj)=>obj.dataType.match(/text/i)); - if (existingTextDataType[0]) throw new Error("TEXT type exists"); - let existingFieldsArray = indexTableFields; - if (existingFieldsArray.findIndex((obj)=>obj.value === e.target.value) >= 0 || e.target.value.match(/^--$/)) { - return; - } - existingFieldsArray.push({ - value: e.target.value, - dataType - }); - setIndexTableFields([ - ...existingFieldsArray - ]); - } catch (/** @type {any} */ error) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "ExistingIndexEdit/lines-184-197", - message: error.message, - user: user - } - }); - setIndexTableFields([ - { - value: e.target.value, - dataType: dataType - }, - ]); - } - setIndexType("regular"); - } -} - -;// CONCATENATED MODULE: ./components/admin/databases/ExistingIndexEdit.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_IndexSchemaType} props.targetIndexObject - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.MutableRefObject<React.Dispatch<React.SetStateAction<number>>>} [props.refreshFieldsListRef] - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} props.setTableIndexes - * @param {React.Dispatch<React.SetStateAction<number>>} props.setRefresh - * @param {React.Dispatch<React.SetStateAction<boolean>>} props.setActiveEdit - * @param {import("@/package-shared/types").UserType} props.user - * @param {string|number} props.tableUniqueId - */ function ExistingIndexEdit({ targetIndexObject , fieldIndex , tableFields , refreshFieldsListRef , setTableIndexes , setRefresh , setActiveEdit , user , tableUniqueId , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const columnDesc = "Select Columns to be indexed. NB the order matters"; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [indexData, setIndexData] = external_react_default().useState(targetIndexObject); - const [indexType, setIndexType] = external_react_default().useState(indexData.indexType || "regular"); - const [indexTableFields, setIndexTableFields] = external_react_default().useState(indexData.indexTableFields ? [ - ...indexData.indexTableFields - ] : []); - /** @type {React.MutableRefObject<HTMLElement | undefined>} */ const newFieldRef = external_react_default().useRef(); - external_react_default().useEffect(()=>{ - newFieldRef.current?.scrollIntoView({ - block: "center", - behavior: "smooth" - }); - newFieldRef.current?.querySelector("input")?.focus(); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full -mt-3 flex-wrap", - // @ts-ignore - ref: newFieldRef, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-col xl:flex-row items-start gap-4 w-full justify-between p-4 relative xl:flex-nowrap flex-wrap border border-t-0 border-slate-200 dark:border-slate-600 border-solid rounded-b", - onSubmit: (e)=>{ - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - let new_index_name = formEl["new_index_name"].value.replace(/_index/, "").replace(/_{1,}$/, "") + "_index"; - let newDataObject = indexData; - newDataObject.indexName = new_index_name; - newDataObject.alias = tableUniqueId + "_" + new_index_name, newDataObject.indexTableFields = indexTableFields; - setTableIndexes((prev)=>{ - let newArray = prev; - newArray[fieldIndex] = newDataObject; - return newArray; - }); - setActiveEdit(false); - setRefresh((prev)=>prev + 1); - }, - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-4 xl:flex-nowrap flex-wrap flex-col xl:flex-row items-stretch w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - style: { - minWidth: "70px" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_required", - children: "Type" - }), - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "new_field_required", - id: "new_field_required", - className: "px-2", - onChange: (e)=>{ - setIndexType(e.target.value); - setIndexData((prev)=>{ - let existingIndexData = prev; - existingIndexData.indexType = e.target.value; - return existingIndexData; - }); - }, - defaultValue: indexType, - children: indexType?.match(/regular/i) ? /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "regular", - children: "Default" - }) : /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "fullText", - children: "Full Text" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_index_name", - children: "Index Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "new_index_name", - id: "new_index_name", - placeholder: "Eg. title_index", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - inputEl.value = inputEl.value.toLowerCase().replace(/ /g, "_"); - }, - required: true, - defaultValue: indexData.indexName - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-4 xl:gap-0.5", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "new_field_data_type", - children: "Table Column(s)" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper reversed text-sm items-start gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex", - children: "Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mt-0 xl:-mt-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: columnDesc - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-auto flex flex-row items-stretch gap-4", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("select", { - name: "new_field_data_type", - id: "new_field_data_type", - className: "w-full xl:w-auto", - onChange: (e)=>{ - indexSelectChange({ - e, - indexTableFields, - setIndexTableFields, - setIndexType, - user - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "--", - children: "--" - }), - tableFields.filter((field)=>!field?.fieldName?.match(/^id$|^date_/) && !field.foreignKey).map((field, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: field.fieldName, - "data-type": field.dataType, - children: field.fieldName - }, index + 1); - }) - ] - }), - indexTableFields && indexTableFields[0] && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "card no-hover px-3 py-1 items-center", - children: indexTableFields.map((field, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: field.value - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 text-xs hover:bg-slate-400", - onClick: (e)=>{ - let updatedArray = indexTableFields.filter((_field)=>!_field.value.match(new RegExp(`^${external_lodash_default().escapeRegExp(field.value)}$`))); - setIndexTableFields([ - ...updatedArray, - ]); - }, - children: "✖" - }) - ] - }, index + 1); - }) - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "secondary mt-auto xl:flex-nowrap flex-wrap w-full xl:w-auto", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "secondary mt-auto py-3 w-full md:w-auto grow", - children: "Save Updates" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow", - onClick: (e)=>{ - // const originIndexFields = targetIndexObject.indexTableFields - // setIndexTableFields([...originIndexFields]) - // setIndexData(targetIndexObject) - setActiveEdit(false); - }, - children: "Cancel" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -;// CONCATENATED MODULE: ./components/admin/databases/SingleTableIndexCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let SingleTableIndexCard_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").DSQL_IndexSchemaType} props.tableIndex - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} [props.tableIndexes] - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} props.setTableIndexes - * @param {React.MutableRefObject<React.Dispatch<React.SetStateAction<number>>>} [props.refreshFieldsListRef] - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} [props.currentTable] - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch<React.SetStateAction<number>>} props.setRefresh - * @param {any} props.confirmedDelegetedUser - * @param {import("@/package-shared/types").UserType} props.user - * @param {string|number} props.tableUniqueId - */ function SingleTableIndexCard({ tableIndex , fieldIndex , tableIndexes , setTableIndexes , refreshFieldsListRef , database , currentTable , tableFields , setRefresh , confirmedDelegetedUser , user , tableUniqueId , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [indexData, setindexData] = external_react_default().useState(tableIndex); - const [activeEdit, setActiveEdit] = external_react_default().useState(false); - const [refreshComp, setRefreshComp] = external_react_default().useState(0); - // React.useEffect(() => { - // setindexData(tableIndex) - // setRefreshComp(prev => prev + 1); - // }, [activeEdit]) - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full" + (activeEdit ? " shadow-xl shadow-slate-300/40 dark:shadow-black/30 relative z-50" : ""), - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover items-center w-full py-4" + (activeEdit ? " rounded-t" : " rounded") + (indexData.indexName?.match(defaultFieldsRegexp/* default */.Z) ? " text-slate-400 pointer-events-none border-slate-200 border" : ""), - onClick: (e)=>{ - // setTargetField(field); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold dark:text-white", - children: indexData.indexName - }), - !indexData.indexName?.match(defaultFieldsRegexp/* default */.Z) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "ml-0 md:ml-auto flex-wrap", - children: (!isDelegated || isDelegated && isTableEditable) && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(ButtonGroup/* default */.Z, { - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined gray smallest", - onClick: (e)=>{ - if (window.confirm(`Delete "${tableIndex.indexName}"?`)) { - setTableIndexes((prev)=>prev.filter((field, index)=>index != fieldIndex)); - } - }, - style: { - color: "var(--slate-500)" - }, - children: "Delete" - }) - }) - }) - }) - ] - }), - activeEdit && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full", - children: /*#__PURE__*/ jsx_runtime_.jsx(ExistingIndexEdit, { - fieldIndex: fieldIndex, - // tableIndexes={tableIndexes} - setTableIndexes: setTableIndexes, - refreshFieldsListRef: refreshFieldsListRef, - // targetField={tableIndex} - setActiveEdit: setActiveEdit, - // database={database} - // currentTable={currentTable} - tableFields: tableFields, - targetIndexObject: indexData, - setRefresh: setRefresh, - user: user, - tableUniqueId: tableUniqueId - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/TableIndexes.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let reactKey = 1; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {string|number} props.tableUniqueId - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} props.tableIndexes - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>>} props.setTableIndexes - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {(setLoading?: React.Dispatch<React.SetStateAction<boolean>>) => void} props.updateTableAfterFieldsUpdateFunction - * @param {any} props.confirmedDelegetedUser - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - */ function TableIndexes({ user , table , tableUniqueId , tableIndexes , setTableIndexes , tableFields , updateTableAfterFieldsUpdateFunction , confirmedDelegetedUser , database , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const indexes = table.indexes; - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [refresh, setRefresh] = external_react_default().useState(0); - const [loading, setLoading] = external_react_default().useState(false); - const [collapse, setCollapse] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (isDelegated && !isTableEditable) { - return /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}); - } - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper blue", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - table.childTable ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left title", - children: "Indexes" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Table indexes are inherited from parent table" - }), - tableIndexes && tableIndexes[0] && tableIndexes.map((tableIndex, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card w-full light-gray py-4 no-hover items-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: tableIndex.indexName - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "info small gray grow-0 ml-auto w-auto", - children: [ - tableIndex.indexType, - " index" - ] - }) - ] - }, index); - }) - ] - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left title", - children: "Indexes" - }), - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button secondary outlined flex items-center gap-2", - onClick: (e)=>{ - if (collapse) setCollapse(false); - addNewTemplateIndex({ - tableIndexes, - setTableIndexes, - setRefresh - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Index" - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full", - style: collapse ? { - maxHeight: "200px" - } : {}, - children: [ - tableIndexes && tableIndexes[0] && tableIndexes.map((tableIndex, index)=>{ - reactKey++; - if (tableIndex.newTempIndex) { - return /*#__PURE__*/ jsx_runtime_.jsx(NewIndexFieldTemp, { - fieldIndex: index, - tableIndex: tableIndex, - currentTable: table, - tableIndexes: tableIndexes, - setTableIndexes: setTableIndexes, - tableFields: tableFields, - setRefresh: setRefresh, - user: user, - tableUniqueId: tableUniqueId - }, reactKey); - } else { - return /*#__PURE__*/ jsx_runtime_.jsx(SingleTableIndexCard, { - fieldIndex: index, - tableIndex: tableIndex, - database: database, - currentTable: table, - tableIndexes: tableIndexes, - setTableIndexes: setTableIndexes, - tableFields: tableFields, - setRefresh: setRefresh, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user, - tableUniqueId: tableUniqueId - }, reactKey); - } - }), - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "button outlined gray w-full justify-center more-padding", - style: { - borderStyle: "dashed" - }, - onClick: (e)=>{ - addNewTemplateIndex({ - tableIndexes, - setTableIndexes, - setRefresh - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Index" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button w-full blue", - onClick: (e)=>{ - setLoading(true); - updateTableAfterFieldsUpdateFunction && updateTableAfterFieldsUpdateFunction(setLoading); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Update Table Indexes" - }) - }) - ] - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/ActiveCloneTableBanner.jsx -var ActiveCloneTableBanner = __webpack_require__(8515); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/databases/SingleTableContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleTableContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , tableRecord , dbSchemaData , targetField , setTargetField , refreshFieldsListRef , setTableFields , tableFields , tableIndexes , setTableIndexes , updateTableAfterFieldsUpdateFunction , entries , targetEntry , setTargetEntry , richTextEditors , jsonTextEditors , query , confirmedDelegetedUser , entriesCount , } = external_react_default().useContext(SingleTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!database || !user || !tableRecord || !table) return; - const dataTypes = __webpack_require__(9594); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const { active_clone , active_clone_parent_db , remote_connected } = database; - const tableUniqueId = `dsql${user.id}${database.id}${tableRecord.id}`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-4 xl:gap-0 w-full relative z-50", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - table.tableFullName.replace(/ table/i, ""), - " ", - "Table" - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.tableName, - outlined: true - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-wrap flex-col md:flex-row w-full md:w-auto items-stretch md:items-center", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - className: "button flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Table Entry" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries`, - className: "button secondary flex items-center gap-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Entries" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/fields`, - className: "button outlined secondary flex items-center gap-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "All Fields" - }) - }), - (!isDelegated || isDelegated && (isTableEditable || isTableDeletable)) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "dropdown-wrapper mt-4 xl:mt-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "hidden xl:flex button outlined gray", - children: "More" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - column: true, - className: "w-full", - children: [ - (!isDelegated || isDelegated && isTableEditable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("a", { - className: "button outlined-gray more-padding w-full", - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/edit-table`, - children: "Edit Table" - }), - (!isDelegated || isDelegated && isTableDeletable) && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined-gray more-padding w-full", - onClick: (e)=>{ - if (window.confirm(`Delete "${table.tableFullName}" table?`)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/deleteUserTable", { - method: "post", - body: { - database: database, - table: { - table_slug: table.tableName - } - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }); - } - }, - children: "Delete Table" - }) - ] - }) - }) - ] - }) - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneTableBanner/* default */.Z, { - table: table, - database: database, - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx(TableFields/* default */.Z, { - user: user, - tableFields: tableFields, - setTableFields: setTableFields, - setTargetField: setTargetField, - refreshFieldsListRef: refreshFieldsListRef, - updateTable: true, - updateTableAfterFieldsUpdateFunction: updateTableAfterFieldsUpdateFunction, - collapsed: true, - database: database, - table: table, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query - }), - /*#__PURE__*/ jsx_runtime_.jsx(TableIndexes, { - user: user, - table: table, - tableUniqueId: tableUniqueId, - // dbSchemaData={dbSchemaData} - tableIndexes: tableIndexes, - setTableIndexes: setTableIndexes, - database: database, - tableFields: tableFields, - updateTableAfterFieldsUpdateFunction: updateTableAfterFieldsUpdateFunction, - confirmedDelegetedUser: confirmedDelegetedUser - }), - entries && dbSchemaData && richTextEditors && jsonTextEditors && /*#__PURE__*/ jsx_runtime_.jsx(TableEntriesList/* default */.Z, { - user: user, - entries: entries, - database: database, - table: table, - setTargetEntry: setTargetEntry, - dbSchemaData: dbSchemaData, - richTextEditors: richTextEditors, - dataTypes: dataTypes, - title: "Entries", - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors, - entriesCount: entriesCount - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js -var updateTableAfterFieldsUpdateFunctionExt = __webpack_require__(8382); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2317); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./functions/backend/grabTableSchemaData.js -var grabTableSchemaData = __webpack_require__(7809); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/ScrollToTopButton.jsx -var ScrollToTopButton = __webpack_require__(9360); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").SingleTableContextType} */ // @ts-ignore -const init = {}; -const SingleTableContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def} props.tableRecord - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any[]} props.entries - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - * @param {number} props.entriesCount - */ function SingleTable({ user , database , table , tableRecord , dbSchemaData , entries , query , confirmedDelegetedUser , entriesCount , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${table.tableFullName} Table | Datasquirel`; - const pageDescription = "Single Table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [tableFields, setTableFields] = external_react_default().useState(table.fields); - /** @type {any} */ const tableIndexesState = external_react_default().useState(table.indexes); - /** @type {[ targetField: import("@/package-shared/types").DSQL_IndexSchemaType[], setTargetField: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_IndexSchemaType[]>> ]} */ const [tableIndexes, setTableIndexes] = tableIndexesState; - /** @type {any} */ const targetFieldState = external_react_default().useState(null); - /** @type {[ targetField: import("@/package-shared/types").DSQL_FieldSchemaType | null, setTargetField: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType | null>> ]} */ const [targetField, setTargetField] = targetFieldState; - const [targetEntry, setTargetEntry] = external_react_default().useState(null); - /** @type {React.MutableRefObject<React.Dispatch<React.SetStateAction<number>>>} */ // @ts-ignore - const refreshFieldsListRef = external_react_default().useRef(null); - // const targetFieldIndex = targetField ? tableFields.findIndex((field) => field.fieldName === targetField.fieldName) : 1; - const richTextEditors = external_react_default().useRef([]); - const jsonTextEditors = external_react_default().useRef([]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * - * @param {React.Dispatch<React.SetStateAction<boolean>>} [setLoading] - */ function updateTableAfterFieldsUpdateFunction(setLoading) { - (0,updateTableAfterFieldsUpdateFunctionExt/* default */.Z)({ - query, - table, - database, - dbSchemaData, - tableFields, - tableIndexes, - setLoading - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(SingleTableContext.Provider, { - value: { - user, - database, - table, - tableRecord, - dbSchemaData, - targetField, - setTargetField, - refreshFieldsListRef, - tableFields, - setTableFields, - tableIndexes, - setTableIndexes, - updateTableAfterFieldsUpdateFunction, - entries, - targetEntry, - setTargetEntry, - richTextEditors, - jsonTextEditors, - query, - confirmedDelegetedUser, - entriesCount - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SingleTableContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DeleteTableConfirmationPopup/* default */.Z, { - database: database, - targetTable: tableRecord - }), - /*#__PURE__*/ jsx_runtime_.jsx(ScrollToTopButton/* default */.Z, { - snug: true - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ const data = await (0,grabTableSchemaData/* default */.Z)({ - req, - query, - user - }); - if (!data) { - throw new Error("Data Fetching Error!"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - ...data - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError_default()({ - component: "[single_table]/index-page-component/getServerSideProps/catch-error]", - message: error.message, - user: user - }); - return { - redirect: { - destination: req.url ? req.url.replace(/\/[^\/]+$/, "") + (query?.delegated ? "?delegated=true" : "") : "/", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 2587: -/***/ ((module) => { - -module.exports = require("@monaco-editor/react"); - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 9438: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LibraryAddTwoTone"); - -/***/ }), - -/***/ 399: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 5453: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MoreHoriz"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 4287: -/***/ ((module) => { - -module.exports = require("gsap"); - -/***/ }), - -/***/ 2700: -/***/ ((module) => { - -module.exports = require("gsap/Flip"); - -/***/ }), - -/***/ 2329: -/***/ ((module) => { - -module.exports = require("html-prettify"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 7076: -/***/ ((module) => { - -module.exports = require("react-tiny-popover"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,464,4893,4559,9035], () => (__webpack_exec__(4769))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5271,e.ids=[636,5271],e.modules={91312:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>f,default:()=>c,getServerSideProps:()=>p,getStaticPaths:()=>m,getStaticProps:()=>x,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>v,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>b});var s=a(63865),r=a(9455),i=a(30671),n=a(49407),d=a(68268),u=a(13699),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,i.M)(u,"default"),x=(0,i.M)(u,"getStaticProps"),m=(0,i.M)(u,"getStaticPaths"),p=(0,i.M)(u,"getServerSideProps"),f=(0,i.M)(u,"config"),h=(0,i.M)(u,"reportWebVitals"),b=(0,i.M)(u,"unstable_getStaticProps"),g=(0,i.M)(u,"unstable_getStaticPaths"),w=(0,i.M)(u,"unstable_getStaticParams"),j=(0,i.M)(u,"unstable_getServerProps"),v=(0,i.M)(u,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:u});l()}catch(e){l(e)}})},73972:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(8732),s=a(82015),r=a.n(s),i=a(63715);a(58548);var n=a(55158),d=a(32415);function u({targetTable:e,database:t}){let[a,s]=r().useState(!1);return(0,l.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[a&&(0,l.jsx)(d.A,{width:"20px"}),(0,l.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("button",{className:"outlined"+(a?" pointer-events-none opacity-40":""),onClick:a=>{s(!0),(0,i.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,l.jsx)("span",{children:"Yes"})}),(0,l.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,l.jsx)("span",{children:"Cancel"})})]})]})}},68153:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>v});var s=a(8732),r=a(82015),i=a.n(r),n=a(63715),d=a(13699),u=a(46437),o=a(58548),c=a(94010),x=a(32415),m=a(34486),p=a(77802),f=a(59550),h=a(62506),b=a(86571),g=a(65241),w=a(59621),j=e([d,c,m,w]);function v(e){let{user:t,database:l,table:r,tableRecord:j,dbSchemaData:v,targetField:y,setTargetField:N,refreshFieldsListRef:_,setTableFields:T,tableFields:q,tableIndexes:S,setTableIndexes:F,updateTableAfterFieldsUpdateFunction:A,entries:C,targetEntry:E,setTargetEntry:I,richTextEditors:D,jsonTextEditors:$,query:P,confirmedDelegetedUser:k,entriesCount:R}=i().useContext(d.SingleTableContext);if(!l||!t||!j||!r)return;let M=a(43431),U=k?.delegated,L=k?.priviledges?.match(/Edit Tables/i),O=k?.priviledges?.match(/Delete Tables/i);k?.priviledges?.match(/Create Tables/i);let{active_clone:W,active_clone_parent_db:V,remote_connected:B}=l,H=`dsql${t.id}${l.id}${j.id}`,[z,X]=i().useState(!1);return(0,s.jsxs)(i().Fragment,{children:[z&&(0,s.jsx)(x.A,{}),(0,s.jsxs)("div",{className:"flex-col items-start gap-4 xl:gap-0 w-full relative z-50",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(u.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{children:[r.tableFullName.replace(/ table/i,"")," ","Table"]})}),(0,s.jsx)(c.A,{slugText:r.tableName,outlined:!0})]}),(0,s.jsx)("div",{className:"flex-wrap flex-col md:flex-row w-full md:w-auto items-stretch md:items-center",children:(0,s.jsxs)(h.A,{children:[(0,s.jsxs)("a",{href:`/admin/${t?.id}/databases/${l.db_slug}/tables/${r.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Table Entry"})]}),(0,s.jsx)("a",{href:`/admin/${t?.id}/databases/${l.db_slug}/tables/${r.tableName}/entries`,className:"button secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"Entries"})}),(0,s.jsx)("a",{href:`/admin/${t?.id}/databases/${l.db_slug}/tables/${r.tableName}/fields`,className:"button outlined secondary flex items-center gap-2",children:(0,s.jsx)("span",{children:"All Fields"})}),(!U||U&&(L||O))&&!V&&!B&&(0,s.jsxs)("div",{className:"dropdown-wrapper mt-4 xl:mt-0",children:[(0,s.jsx)("span",{className:"hidden xl:flex button outlined gray",children:"More"}),(0,s.jsx)("div",{className:"dropdown mobile-transform right-aligned mt-0 xl:-mt-2 gap-2",children:(0,s.jsxs)(h.A,{column:!0,className:"w-full",children:[(!U||U&&L)&&!V&&!B&&(0,s.jsx)("a",{className:"button outlined-gray more-padding w-full",href:`/admin/${t?.id}/databases/${l.db_slug}/tables/${r.tableName}/edit-table`,children:"Edit Table"}),(!U||U&&O)&&!V&&!B&&(0,s.jsx)("button",{className:"outlined-gray more-padding w-full",onClick:e=>{window.confirm(`Delete "${r.tableFullName}" table?`)&&(X(!0),(0,n.A)("/api/deleteUserTable",{method:"post",body:{database:l,table:{table_slug:r.tableName}}},!0).then(e=>{e.success&&window.location.reload()}))},children:"Delete Table"})]})})]})]})})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:P?.delegated,user:t})]}),l.active_clone?(0,s.jsx)(b.A,{database:l,user:t}):(0,s.jsx)(s.Fragment,{}),l.remote_connected?(0,s.jsx)(w.p,{database:l}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(g.A,{table:r,database:l,user:t}),(0,s.jsx)(p.A,{user:t,tableFields:q,setTableFields:T,setTargetField:N,refreshFieldsListRef:_,updateTable:!0,updateTableAfterFieldsUpdateFunction:A,collapsed:!0,database:l,table:r,confirmedDelegetedUser:k,query:P}),(0,s.jsx)(f.A,{user:t,table:r,tableUniqueId:H,tableIndexes:S,setTableIndexes:F,database:l,tableFields:q,updateTableAfterFieldsUpdateFunction:A,confirmedDelegetedUser:k}),C&&v&&D&&$&&(0,s.jsx)(m.A,{user:t,entries:C,database:l,table:r,setTargetEntry:I,dbSchemaData:v,richTextEditors:D,dataTypes:M,title:"Entries",query:P,confirmedDelegetedUser:k,jsonTextEditors:$,entriesCount:R})]})}[d,c,m,w]=j.then?(await j)():j,l()}catch(e){l(e)}})},59550:(e,t,a)=>{a.d(t,{A:()=>b});var l=a(8732),s=a(82015),r=a.n(s);function i({tableIndexes:e,setTableIndexes:t,setRefresh:a,setPageRefresh:l}){let s=e&&e[0]?e:[];s.push({newTempIndex:!0}),t(s),a&&a(e=>e+1)}var n=a(32415),d=a(63715),u=a(27825),o=a.n(u);function c({tableIndex:e,fieldIndex:t,currentTable:a,tableFields:s,tableIndexes:i,setTableIndexes:n,setRefresh:u,user:c,tableUniqueId:x}){let[m,p]=r().useState("regular"),[f,h]=r().useState(0),b=r().useRef();return(0,l.jsx)("div",{className:"w-full mt-1 xl:flex-nowrap flex-wrap",ref:b,children:(0,l.jsxs)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-700/40 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{e.preventDefault();let a=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";if(!f||!f[0]){alert("Please Select at least 1 table column name");return}!function({fieldIndex:e,setTableIndexes:t,setRefresh:a,payload:l}){t(t=>(t.splice(e,1,l),t)),a&&a(e=>e+1)}({fieldIndex:t,setTableIndexes:n,payload:{indexType:m,indexName:a,indexTableFields:f,alias:x+"_"+a},setRefresh:u})},children:[(0,l.jsx)("span",{className:"absolute -top-2 text-sm bg-fuchsia-600 text-white px-2 rounded-full",children:"New Index"}),(0,l.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{p(e.target.value)},children:m?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let t=e.target;t.value=t.value.toLowerCase().replace(/ /g,"_")},required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{if(e.target.value.match(/--/))return;let t=Array.from(e.target.options).filter(t=>t.value===e.target.value)[0].dataset.type;if(t?.match(/text/i))p("fullText"),h([{value:e.target.value,dataType:t}]);else{try{if(f.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(f.findIndex(t=>t.value===e.target.value)>=0||e.target.value.match(/^--$/))return;t?(f.push({value:e.target.value,dataType:t}),h([...f])):window.alert("Datatype not provided. Please recheck fields.")}catch(a){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"NewIndexFieldTemp/lines-177-190",message:a.message,user:c}}),t?h([{value:e.target.value,dataType:t}]):window.alert("Couldn't set Index Fields")}p("regular")}},children:[(0,l.jsx)("option",{value:"--",children:"--"}),s.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,t)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},t+1))]}),f&&f[0]&&(0,l.jsx)("div",{className:"px-3 py-1 bg-slate-100 dark:bg-slate-500/10 rounded",children:f.map((e,t)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 dark:bg-slate-600 text-xs hover:bg-slate-400",onClick:t=>{h([...f.filter(t=>!t.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},t+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Index"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{n(e=>e.filter((e,a)=>a!=t))},children:"Cancel"})]})]})})}var x=a(64030);function m({targetIndexObject:e,fieldIndex:t,tableFields:a,refreshFieldsListRef:s,setTableIndexes:i,setRefresh:n,setActiveEdit:u,user:c,tableUniqueId:x}){let[m,p]=r().useState(e),[f,h]=r().useState(m.indexType||"regular"),[b,g]=r().useState(m.indexTableFields?[...m.indexTableFields]:[]),w=r().useRef();return(0,l.jsx)("div",{className:"w-full -mt-3 flex-wrap",ref:w,children:(0,l.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between p-4 relative xl:flex-nowrap flex-wrap border border-t-0 border-slate-200 dark:border-slate-600 border-solid rounded-b",onSubmit:e=>{e.preventDefault();let a=e.target.new_index_name.value.replace(/_index/,"").replace(/_{1,}$/,"")+"_index";m.indexName=a,m.alias=x+"_"+a,m.indexTableFields=b,i(e=>(e[t]=m,e)),u(!1),n(e=>e+1)},children:[(0,l.jsxs)("div",{className:"gap-4 xl:flex-nowrap flex-wrap flex-col xl:flex-row items-stretch w-full",children:[(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,l.jsx)("label",{htmlFor:"new_field_required",children:"Type"}),(0,l.jsx)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",onChange:e=>{h(e.target.value),p(t=>(t.indexType=e.target.value,t))},defaultValue:f,children:f?.match(/regular/i)?(0,l.jsx)("option",{value:"regular",children:"Default"}):(0,l.jsx)("option",{value:"fullText",children:"Full Text"})})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,l.jsx)("label",{htmlFor:"new_index_name",children:"Index Name"}),(0,l.jsx)("input",{type:"text",name:"new_index_name",id:"new_index_name",placeholder:"Eg. title_index",onInput:async e=>{let t=e.target;t.value=t.value.toLowerCase().replace(/ /g,"_")},required:!0,defaultValue:m.indexName})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,l.jsxs)("div",{className:"items-start",children:[(0,l.jsx)("label",{htmlFor:"new_field_data_type",children:"Table Column(s)"}),(0,l.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start gap-2",children:[(0,l.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,l.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,l.jsx)("span",{children:"Select Columns to be indexed. NB the order matters"})})]})]}),(0,l.jsxs)("div",{className:"w-auto flex flex-row items-stretch gap-4",children:[(0,l.jsxs)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{!function({e,indexTableFields:t,setIndexTableFields:a,setIndexType:l,user:s}){if(e.target.value.match(/--/))return;let r=Array.from(e.target.options).filter(t=>t.value===e.target.value)[0].dataset.type;if(r.match(/text/i))l("fullText"),a([{value:e.target.value,dataType:r}]);else{try{if(t.filter(e=>e.dataType.match(/text/i))[0])throw Error("TEXT type exists");if(t.findIndex(t=>t.value===e.target.value)>=0||e.target.value.match(/^--$/))return;t.push({value:e.target.value,dataType:r}),a([...t])}catch(t){(0,d.A)("/api/admin/clientError",{method:"post",body:{component:"ExistingIndexEdit/lines-184-197",message:t.message,user:s}}),a([{value:e.target.value,dataType:r}])}l("regular")}}({e,indexTableFields:b,setIndexTableFields:g,setIndexType:h,user:c})},children:[(0,l.jsx)("option",{value:"--",children:"--"}),a.filter(e=>!e?.fieldName?.match(/^id$|^date_/)&&!e.foreignKey).map((e,t)=>(0,l.jsx)("option",{value:e.fieldName,"data-type":e.dataType,children:e.fieldName},t+1))]}),b&&b[0]&&(0,l.jsx)("div",{className:"card no-hover px-3 py-1 items-center",children:b.map((e,t)=>(0,l.jsxs)("span",{className:"text-sm px-3 py-1 bg-white dark:bg-slate-700 rounded-full shadow-lg font-bold flex items-center justify-center gap-1",children:[(0,l.jsx)("span",{children:e.value}),(0,l.jsx)("span",{className:"font-normal w-5 h-5 rounded-full flex items-center justify-center cursor-pointer bg-slate-200 text-xs hover:bg-slate-400",onClick:t=>{g([...b.filter(t=>!t.value.match(RegExp(`^${o().escapeRegExp(e.value)}$`)))])},children:"✖"})]},t+1))})]})]})]}),(0,l.jsxs)("div",{className:"secondary mt-auto xl:flex-nowrap flex-wrap w-full xl:w-auto",children:[(0,l.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,l.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{u(!1)},children:"Cancel"})]})]})})}var p=a(62506);function f({tableIndex:e,fieldIndex:t,tableIndexes:a,setTableIndexes:s,refreshFieldsListRef:i,database:n,currentTable:d,tableFields:u,setRefresh:o,confirmedDelegetedUser:c,user:f,tableUniqueId:h}){let b=c?.delegated,g=c?.priviledges?.match(/Edit Tables/i);c?.priviledges?.match(/Delete Tables/i),c?.priviledges?.match(/Create Tables/i);let{active_clone:w,active_clone_parent_db:j,remote_connected:v}=n,[y,N]=r().useState(e),[_,T]=r().useState(!1),[q,S]=r().useState(0);return(0,l.jsxs)("div",{className:"flex-col w-full"+(_?" shadow-xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,l.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(_?" rounded-t":" rounded")+(y.indexName?.match(x.A)?" text-slate-400 pointer-events-none border-slate-200 border":""),onClick:e=>{},children:[(0,l.jsx)("span",{className:"font-bold dark:text-white",children:y.indexName}),!y.indexName?.match(x.A)&&!j&&!v&&(0,l.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!b||b&&g)&&(0,l.jsx)(r().Fragment,{children:(0,l.jsx)(p.A,{children:(0,l.jsx)("div",{className:"button outlined gray smallest",onClick:a=>{window.confirm(`Delete "${e.indexName}"?`)&&s(e=>e.filter((e,a)=>a!=t))},style:{color:"var(--slate-500)"},children:"Delete"})})})})]}),_&&(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(m,{fieldIndex:t,setTableIndexes:s,refreshFieldsListRef:i,setActiveEdit:T,tableFields:u,targetIndexObject:y,setRefresh:o,user:f,tableUniqueId:h})})]})}let h=1;function b({user:e,table:t,tableUniqueId:a,tableIndexes:s,setTableIndexes:d,tableFields:u,updateTableAfterFieldsUpdateFunction:o,confirmedDelegetedUser:x,database:m}){t.indexes;let p=x?.delegated,b=x?.priviledges?.match(/Edit Tables/i);x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i);let{active_clone:g,active_clone_parent_db:w,remote_connected:j}=m,[v,y]=r().useState(0),[N,_]=r().useState(!1),[T,q]=r().useState(!1);return p&&!b?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("section",{className:"paper blue",children:[N&&(0,l.jsx)(n.A,{}),t.childTable?(0,l.jsxs)(r().Fragment,{children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(0,l.jsx)("span",{children:"Table indexes are inherited from parent table"}),s&&s[0]&&s.map((e,t)=>(0,l.jsxs)("div",{className:"card w-full light-gray py-4 no-hover items-center",children:[(0,l.jsx)("b",{children:e.indexName}),(0,l.jsxs)("span",{className:"info small gray grow-0 ml-auto w-auto",children:[e.indexType," index"]})]},t))]}):(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Indexes"}),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)("div",{className:"button secondary outlined flex items-center gap-2",onClick:e=>{T&&q(!1),i({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add Index"})]})]}),(0,l.jsxs)("div",{className:"flex-col w-full",style:T?{maxHeight:"200px"}:{},children:[s&&s[0]&&s.map((r,i)=>(h++,r.newTempIndex)?(0,l.jsx)(c,{fieldIndex:i,tableIndex:r,currentTable:t,tableIndexes:s,setTableIndexes:d,tableFields:u,setRefresh:y,user:e,tableUniqueId:a},h):(0,l.jsx)(f,{fieldIndex:i,tableIndex:r,database:m,currentTable:t,tableIndexes:s,setTableIndexes:d,tableFields:u,setRefresh:y,confirmedDelegetedUser:x,user:e,tableUniqueId:a},h)),(!p||p&&b)&&!w&&!j&&(0,l.jsxs)(r().Fragment,{children:[(0,l.jsxs)("div",{className:"button outlined gray w-full justify-center more-padding",style:{borderStyle:"dashed"},onClick:e=>{i({tableIndexes:s,setTableIndexes:d,setRefresh:y})},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Index"})]}),(0,l.jsx)("div",{className:"button w-full blue",onClick:e=>{_(!0),o&&o(_)},children:(0,l.jsx)("span",{children:"Update Table Indexes"})})]})]})]})]})}},92728:(e,t,a)=>{a.d(t,{A:()=>x}),a(81630);var l=a(68942),s=a.n(l),r=a(67216),i=a.n(r),n=a(31651),d=a.n(n),u=a(43479),o=a(90378),c=a.n(o);async function x({req:e,user:t,query:a}){try{let l=await d()({request:e,user:t,databaseSlug:a.single,query:a});if(!l)return null;let{dbUserId:s}=l,r=await i()(`SELECT * FROM user_databases WHERE user_id='${s}' AND db_slug='${a.single}'`);if(!r?.[0])return null;let n=(0,u.A)({userId:s});if(!n)throw Error("DB Schema not found!");let o=n.filter(e=>e.dbFullName===r[0].db_full_name)[0]?.tables,x=o?.filter(e=>e.tableName===a.single_table)[0],m=await i()(`SELECT * FROM user_database_tables WHERE user_id='${s}' AND db_id='${r[0].id}' AND table_slug='${a.single_table}'`),p=await c()({database:r[0].db_full_name,queryString:`SELECT * FROM ${x?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:x}),f=await c()({database:r[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${x?.tableName}`,tableSchema:x});if(l.rootUserId){let e=n.filter(e=>e.dbFullName==r[0].db_full_name)[0],t=e.tables.filter(e=>e.tableName===x?.tableName);e.tables=t,n=[e]}return{confirmedDelegetedUser:l||null,database:r[0]||null,dbSchemaData:n||null,entries:p||null,entriesCount:f?.[0]?.count||0,query:a,table:x,tableRecord:m[0]||{}}}catch(e){return s()({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:t}),{}}}},94933:(e,t,a)=>{a.d(t,{A:()=>r});var l=a(27825),s=a(63715);function r({query:e,table:t,database:a,dbSchemaData:r,tableFields:i,tableIndexes:n,setLoading:d}){let u=[...r];try{let r=u.findIndex(e=>e.dbFullName===a.db_full_name),o=u[r].tables.findIndex(e=>e.tableName===t.tableName);if(u[r].tables[o].fields=i?l.cloneDeep(i):[],u[r].tables[o].indexes=n?l.cloneDeep(n):[],u[r].tables[o].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,s.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:u,database:a.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e.success?window.location.reload():window.alert(e.msg||"Operation Failed. Please check permissions.")}).finally(()=>{d&&setTimeout(()=>{d(!1)},1e3)})}catch(e){window.alert(e.message),setTimeout(()=>{d?.(!1)},1e3);return}}},13699:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{SingleTableContext:()=>v,default:()=>w,getServerSideProps:()=>j});var s=a(8732),r=a(82015),i=a.n(r),n=a(20048),d=a.n(n),u=a(95222),o=a(73972),c=a(68153),x=a(64098),m=a(94933),p=a(68942),f=a.n(p),h=a(92728),b=a(11169),g=e([c,x]);[c,x]=g.then?(await g)():g;let v=i().createContext({});function w({user:e,database:t,table:a,tableRecord:l,dbSchemaData:r,entries:n,query:d,confirmedDelegetedUser:p,entriesCount:f}){let h=`${a.tableFullName} Table | Datasquirel`,g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:h}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[w,j]=i().useState(a.fields),[y,N]=i().useState(a.indexes),[_,T]=i().useState(null),[q,S]=i().useState(null),F=i().useRef(null),A=i().useRef([]),C=i().useRef([]);return(0,s.jsx)(u.A,{head:g,user:e,extraHeaderContent:(0,s.jsx)(x.A,{database:t,query:d,confirmedDelegetedUser:p,user:e}),children:(0,s.jsxs)(v.Provider,{value:{user:e,database:t,table:a,tableRecord:l,dbSchemaData:r,targetField:_,setTargetField:T,refreshFieldsListRef:F,tableFields:w,setTableFields:j,tableIndexes:y,setTableIndexes:N,updateTableAfterFieldsUpdateFunction:function(e){(0,m.A)({query:d,table:a,database:t,dbSchemaData:r,tableFields:w,tableIndexes:y,setLoading:e})},entries:n,targetEntry:q,setTargetEntry:S,richTextEditors:A,jsonTextEditors:C,query:d,confirmedDelegetedUser:p,entriesCount:f},children:[(0,s.jsx)(c.A,{}),(0,s.jsx)(o.A,{database:t,targetTable:l}),(0,s.jsx)(b.A,{snug:!0})]})})}async function j({req:e,res:t,query:a}){let l=await d()(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=await (0,h.A)({req:e,query:a,user:l});if(!t)throw Error("Data Fetching Error!");return{props:{user:l,...t}}}catch(t){return f()({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:t.message,user:l}),{redirect:{destination:e.url?e.url.replace(/\/[^\/]+$/,"")+(a?.delegated?"?delegated=true":""):"/",permanent:!1}}}}l()}catch(e){l(e)}})},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,4417,7318,9216,8842],()=>a(91312));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json index 36f16af..bd66017 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/9360.js","../../../../../../chunks/4941.js","../../../../../../chunks/7023.js","../../../../../../chunks/7901.js","../../../../../../chunks/4114.js","../../../../../../chunks/8682.js","../../../../../../chunks/2317.js","../../../../../../chunks/1206.js","../../../../../../chunks/5116.js","../../../../../../chunks/8345.js","../../../../../../chunks/4986.js","../../../../../../chunks/9594.js","../../../../../../chunks/8264.js","../../../../../../chunks/9471.js","../../../../../../chunks/9967.js","../../../../../../chunks/464.js","../../../../../../chunks/4893.js","../../../../../../chunks/4559.js","../../../../../../chunks/9035.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/@mui/material/node/index.js","../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/@mui/icons-material/LibraryAddTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LockOutlined.js","../../../../../../../../node_modules/@mui/icons-material/MoreHoriz.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../../../../node_modules/@mui/material/node/List/index.js","../../../../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/base/node/index.js","../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../../../../node_modules/@mui/material/node/List/List.js","../../../../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../../../../node_modules/@mui/base/Portal/package.json","../../../../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/material/node/className/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/base/utils/package.json","../../../../../../../../node_modules/@mui/base/Popper/package.json","../../../../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../node_modules/react-transition-group/package.json","../../../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../../../../node_modules/state-local/package.json","../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../../../../node_modules/@popperjs/core/package.json","../../../../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../../../../node_modules/dom-helpers/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@floating-ui/dom/package.json","../../../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/@floating-ui/core/package.json","../../../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../package.json","../../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../node_modules/state-local/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js index bc377ed..2d28210 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js @@ -1,1016 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4504; -exports.ids = [4504,8105,3316,133,4135]; -exports.modules = { - -/***/ 8382: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ updateTableAfterFieldsUpdateFunctionExt) -/* harmony export */ }); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - Single object parameters - * @param {{delegated: boolean}} [params.query] - Query object - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - Target table object - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - Target MYSQL database record object - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchemaData - DSQL db schema - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [params.tableFields] - Table Fields - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} [params.tableIndexes] - Table INdexes - * @param {React.Dispatch<React.SetStateAction<boolean>>} [params.setLoading] - */ function updateTableAfterFieldsUpdateFunctionExt({ query , table , database , dbSchemaData , tableFields , tableIndexes , setLoading , }) { - /** - * @description Initialize - */ let newDbSchemaData = [ - ...dbSchemaData - ]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - const dbIndex = newDbSchemaData.findIndex((db)=>db.dbFullName === database.db_full_name); - const targetDb = newDbSchemaData[dbIndex]; - const targetTableIndex = targetDb.tables.findIndex((_table)=>_table.tableName === table.tableName); - newDbSchemaData[dbIndex].tables[targetTableIndex].fields = tableFields ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableFields) : []; - newDbSchemaData[dbIndex].tables[targetTableIndex].indexes = tableIndexes ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableIndexes) : []; - const tempField = newDbSchemaData[dbIndex].tables[targetTableIndex].fields.find((fld)=>fld.newTempField); - if (tempField) { - window.alert("Please resolve all open fields before you save"); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } - (0,_fetchApi__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)("/api/updateDbSchemaDataForUser", { - method: "post", - body: { - schema: newDbSchemaData, - database: database.db_slug, - table: table, - delegated: query?.delegated - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert(res.msg || "Operation Failed. Please check permissions."); - } - }).finally(()=>{ - if (setLoading) { - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - } catch (/** @type {any} */ error) { - window.alert(error.message); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 8239: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "EditTableContext": () => (/* binding */ EditTableContext), - "default": () => (/* binding */ EditTable), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/checkUniqueField.js -var checkUniqueField = __webpack_require__(4105); -// EXTERNAL MODULE: ./components/admin/databases/TableFields.jsx + 7 modules -var TableFields = __webpack_require__(4893); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/FormAlertBlock.jsx -var FormAlertBlock = __webpack_require__(7037); -;// CONCATENATED MODULE: ./components/admin/databases/EditTableForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditTableForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , table , tableFields , database , query , confirmedDelegetedUser , } = external_react_default().useContext(EditTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * ## Check Duplicate Slug Function - * @param {string} value - */ async function checkDuplicateSlug(value) { - const duplicate = await (0,checkUniqueField/* default */.Z)({ - tableName: "user_database_tables", - columnName: "table_slug", - value: value, - userId: user.id - }); - return duplicate; - } - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const alertState = external_react_default().useState(null); - /** @type {[ alert: string | null, setAlert: React.Dispatch<React.SetStateAction<string | null>> ]} */ const [alert, setAlert] = alertState; - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: (!isDelegated || isDelegated && isTableEditable) && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "Update Table Information" - }), - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-start gap-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - const table_name_full = formEl["table_name"].value; - const table_name = formEl["table_slug"].value; - const table_description = formEl["table_description"].value; - const tableObject = { - tableName: table_name, - tableFullName: table_name_full, - tableDescription: table_description - }; - // submitNewDatabaseForm({ e, setLoading }) - (0,fetchApi/* default */.Z)("/api/updateUserTable", { - method: "post", - body: { - dbFullName: database.db_full_name, - dbSlug: database.db_slug, - dbId: database.id, - tableNameOld: table.tableName, - payload: tableObject, - delegated: query?.delegated - } - }, true).then((res)=>{ - if (res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/tables` + window.location.search; - } else { - window.alert("Failed to update Table! Please Try again."); - window.location.reload(); - } - }); - }, - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx(FormAlertBlock/* default */.Z, { - message: alert - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_name", - children: "Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "table_name", - id: "table_name", - placeholder: "Table Name", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - /** @type {HTMLFormElement} */ // @ts-ignore - const form = inputEl.closest("form"); - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - form["table_slug"].value = inputEl.value.toLowerCase().replace(/ /g, "_").replace(/[^a-zA-Z0-9-_]/g, ""); - let slugValue = form["table_slug"].value; - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - checkDuplicateSlug(slugValue).then((res)=>{ - if (res.result && slugValue !== table.tableName) { - form["table_slug"].classList.add("warning"); - setAlert("Duplicate Table Name"); - } else { - form["table_slug"].classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - }, - required: true, - defaultValue: table.tableFullName - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_slug", - children: "Slug" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "table_slug", - id: "table_slug", - placeholder: "Table Slug", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - /** @type {HTMLFormElement} */ // @ts-ignore - const form = inputEl.closest("form"); - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - checkDuplicateSlug(inputEl.value).then((res)=>{ - if (res.result) { - inputEl.classList.add("warning"); - setAlert("Duplicate Table Slug"); - } else { - inputEl.classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - }, - required: true, - defaultValue: table.tableName - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_description", - children: "Description (optional)" - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: "table_description", - id: "table_description", - placeholder: "Short Description of Table", - defaultValue: table.tableDescription - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "w-full" + (loading ? " pointer-events-none opacity-40" : ""), - id: "create-new-table-form-submit-button", - children: "Update Table Info" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js -var updateTableAfterFieldsUpdateFunctionExt = __webpack_require__(8382); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/ActiveCloneTableBanner.jsx -var ActiveCloneTableBanner = __webpack_require__(8515); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/databases/EditTableContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function EditTableContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , tableFields , setTableFields , setTargetField , refreshFieldsListRef , dbSchemaData , query , confirmedDelegetedUser , } = external_react_default().useContext(EditTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ function updateTableAfterFieldsUpdateFunction() { - (0,updateTableAfterFieldsUpdateFunctionExt/* default */.Z)({ - query, - table, - database, - dbSchemaData, - tableFields, - tableIndexes: table.indexes - }); - } - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Edit" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}`, - className: "p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark", - children: table.tableFullName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "ml-2", - children: "Table" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneTableBanner/* default */.Z, { - table: table, - database: database, - user: user - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(EditTableForm, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TableFields/* default */.Z, { - user: user, - tableFields: tableFields, - setTableFields: setTableFields, - setTargetField: setTargetField, - refreshFieldsListRef: refreshFieldsListRef, - updateTable: true, - database: database, - updateTableAfterFieldsUpdateFunction: updateTableAfterFieldsUpdateFunction, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - table: table - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(3314); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").EditTableContextType} */ // @ts-ignore -const init = {}; -const EditTableContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function EditTable({ user , database , table , dbSchemaData , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `Edit Table | Datasquirel`; - const pageDescription = "Edit Table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [tableFields, setTableFields] = external_react_default().useState(table.fields); - /** @type {[ targetField: import("@/package-shared/types").DSQL_FieldSchemaType | null, setTargetField: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType | null>> ]} */ // @ts-ignore - const [targetField, setTargetField] = external_react_default().useState(null); - const [pageRefresh, setPageRefresh] = external_react_default().useState(0); - const refreshFieldsListRef = external_react_default().useRef(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(EditTableContext.Provider, { - value: { - user, - database, - table, - tableFields, - setTableFields, - targetField, - setTargetField, - pageRefresh, - setPageRefresh, - refreshFieldsListRef, - dbSchemaData, - query, - confirmedDelegetedUser - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(EditTableContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Check delegated user token - * - * @description Check delegated user token - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - // @ts-ignore - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - throw new Error("No Db Object Found!"); - } - const { dbUserId , rootUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - const dbSchemaData = (0,grabUserSchemaData/* default */.Z)({ - userId: dbUserId - }); - if (!dbSchemaData) throw new Error("User schema data not found!"); - /** @type {import("@/package-shared/types").DSQL_TableSchemaType[] | undefined} */ const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)?.[0]?.tables; - const targetTable = tables?.filter((table)=>table.tableName === query.single_table)[0]; - if (!tables || !targetTable) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - dbSchemaData: dbSchemaData, - table: targetTable, - query, - confirmedDelegetedUser - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - return { - redirect: { - destination: "/", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 4287: -/***/ ((module) => { - -module.exports = require("gsap"); - -/***/ }), - -/***/ 2700: -/***/ ((module) => { - -module.exports = require("gsap/Flip"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,2317,5116,8345,4986,9594,8264,9471,7037,9967,464,8515,4105,3314,4893], () => (__webpack_exec__(8239))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7181,e.ids=[636,7181],e.modules={96829:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{config:()=>x,default:()=>c,getServerSideProps:()=>b,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>g,routeModule:()=>y,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var r=a(63865),l=a(9455),i=a(30671),n=a(49407),d=a(68268),u=a(32448),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,i.M)(u,"default"),m=(0,i.M)(u,"getStaticProps"),p=(0,i.M)(u,"getStaticPaths"),b=(0,i.M)(u,"getServerSideProps"),x=(0,i.M)(u,"config"),g=(0,i.M)(u,"reportWebVitals"),h=(0,i.M)(u,"unstable_getStaticProps"),f=(0,i.M)(u,"unstable_getStaticPaths"),_=(0,i.M)(u,"unstable_getStaticParams"),v=(0,i.M)(u,"unstable_getServerProps"),w=(0,i.M)(u,"unstable_getServerSideProps"),y=new r.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table",bundlePath:"",filename:""},components:{App:d.default,Document:n.default},userland:u});s()}catch(e){s(e)}})},29641:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.d(t,{A:()=>h});var r=a(8732),l=a(82015),i=a.n(l),n=a(32448),d=a(46437),u=a(58548),o=a(33702),c=a(77802),m=a(94933),p=a(86571),b=a(65241),x=a(59621),g=e([n,o,x]);function h(e){let{user:t,database:a,table:s,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:f,dbSchemaData:_,query:v,confirmedDelegetedUser:w}=i().useContext(n.EditTableContext);return w?.delegated,w?.priviledges?.match(/Edit Tables/i),w?.priviledges?.match(/Delete Tables/i),w?.priviledges?.match(/Create Tables/i),(0,r.jsxs)(i().Fragment,{children:[(0,r.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(d.A,{}),(0,r.jsxs)("h1",{className:"text-3xl m-0",children:[(0,r.jsx)("span",{children:"Edit"}),(0,r.jsx)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${s.tableName}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark",children:s.tableFullName}),(0,r.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,r.jsx)(u.A,{confirmedDelegetedUser:v?.delegated,user:t})]}),a.active_clone?(0,r.jsx)(p.A,{database:a,user:t}):(0,r.jsx)(r.Fragment,{}),a.remote_connected?(0,r.jsx)(x.p,{database:a}):(0,r.jsx)(r.Fragment,{}),(0,r.jsx)(b.A,{table:s,database:a,user:t}),(0,r.jsxs)("div",{className:"w-full flex-col",children:[(0,r.jsx)(o.A,{}),(0,r.jsx)(c.A,{user:t,tableFields:l,setTableFields:g,setTargetField:h,refreshFieldsListRef:f,updateTable:!0,database:a,updateTableAfterFieldsUpdateFunction:function(){(0,m.A)({query:v,table:s,database:a,dbSchemaData:_,tableFields:l,tableIndexes:s.indexes})},confirmedDelegetedUser:w,query:v,table:s})]})]})}[n,o,x]=g.then?(await g)():g,s()}catch(e){s(e)}})},33702:(e,t,a)=>{a.a(e,async(e,s)=>{try{let b;a.d(t,{A:()=>p});var r=a(8732),l=a(82015),i=a.n(l),n=a(32415),d=a(27462);a(77802);var u=a(63715),o=a(32448),c=a(64535),m=e([o]);function p(e){let{user:t,table:a,tableFields:s,database:l,query:m,confirmedDelegetedUser:p}=i().useContext(o.EditTableContext);async function x(e){return await (0,d.A)({tableName:"user_database_tables",columnName:"table_slug",value:e,userId:t.id})}let g=p?.delegated,h=p?.priviledges?.match(/Edit Tables/i);p?.priviledges?.match(/Delete Tables/i),p?.priviledges?.match(/Create Tables/i);let[f,_]=i().useState(null),[v,w]=i().useState(!1);return(0,r.jsx)(i().Fragment,{children:(!g||g&&h)&&(0,r.jsxs)("section",{className:"paper",children:[(0,r.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Update Table Information"}),v&&(0,r.jsx)(n.A,{}),(0,r.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),w(!0);let s=e.target,r=s.table_name.value,i=s.table_slug.value,n=s.table_description.value;(0,u.A)("/api/updateUserTable",{method:"post",body:{dbFullName:l.db_full_name,dbSlug:l.db_slug,dbId:l.id,tableNameOld:a.tableName,payload:{tableName:i,tableFullName:r,tableDescription:n},delegated:m?.delegated}},!0).then(e=>{e.success?window.location.pathname=`/admin/${t?.id}/databases/${l.db_slug}/tables`+window.location.search:(window.alert("Failed to update Table! Please Try again."),window.location.reload())})},children:[f&&(0,r.jsx)(c.A,{message:f}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,r.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,r.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async e=>{let t=e.target,s=t.closest("form");t.value.match(/./)?(t.classList.remove("warning"),_(null)):t.classList.add("warning"),s.table_slug.value=t.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let r=s.table_slug.value;window.clearTimeout(b),b=setTimeout(()=>{x(r).then(e=>{e.result&&r!==a.tableName?(s.table_slug.classList.add("warning"),_("Duplicate Table Name")):(s.table_slug.classList.remove("warning"),_(null))})},300)},required:!0,defaultValue:a.tableFullName})]}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,r.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,r.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:e=>{let t=e.target;t.closest("form"),t.value.match(/./)?(t.classList.remove("warning"),_(null)):t.classList.add("warning"),window.clearTimeout(b),b=setTimeout(()=>{x(t.value).then(e=>{e.result?(t.classList.add("warning"),_("Duplicate Table Slug")):(t.classList.remove("warning"),_(null))})},300)},required:!0,defaultValue:a.tableName})]}),(0,r.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,r.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,r.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table",defaultValue:a.tableDescription})]}),(0,r.jsx)("button",{type:"submit",className:"w-full"+(v?" pointer-events-none opacity-40":""),id:"create-new-table-form-submit-button",children:"Update Table Info"})]})]})})}o=(m.then?(await m)():m)[0],s()}catch(e){s(e)}})},65241:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(8732),r=a(82015),l=a.n(r);function i({table:e,database:t,user:a,activeDbClone:r}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return i?(0,s.jsxs)("span",{className:"info small green gap-1"+(t?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${i}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,s.jsxs)("span",{children:["this current database(",(0,s.jsx)("b",{children:t.db_name}),")."]}):(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:i})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(l().Fragment,{})}},64535:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(8732);function r({message:e}){return(0,s.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}a(82015)},31651:(e,t,a)=>{a(81630);let s=a(83007);e.exports=async function({request:e,databaseSlug:t,user:a,query:r}){try{let l=a.id,i=null;if(!r?.delegated)return{dbUserId:l};let n=r.dbUserId,d=`${process.env.DSQL_USER_DB_PREFIX}${n}_${t}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${d}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let a=s(e.cookies[u]);if(!a)throw Error("Invalid Token");if((i=JSON.parse(a)).databaseSlug===t)return{dbUserId:l=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},27462:(e,t,a)=>{a.d(t,{A:()=>r}),a(22326);var s=a(63715);async function r({tableName:e,columnName:t,value:a,dbFullName:r,dispatch:l,userId:i,dbId:n}){return await (0,s.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${r?"&dbFullName="+r:""}${i?"&userId="+i:""}${n?"&dbId="+n:""}`)}},94933:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(27825),r=a(63715);function l({query:e,table:t,database:a,dbSchemaData:l,tableFields:i,tableIndexes:n,setLoading:d}){let u=[...l];try{let l=u.findIndex(e=>e.dbFullName===a.db_full_name),o=u[l].tables.findIndex(e=>e.tableName===t.tableName);if(u[l].tables[o].fields=i?s.cloneDeep(i):[],u[l].tables[o].indexes=n?s.cloneDeep(n):[],u[l].tables[o].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{d?.(!1)},1e3);return}(0,r.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:u,database:a.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e.success?window.location.reload():window.alert(e.msg||"Operation Failed. Please check permissions.")}).finally(()=>{d&&setTimeout(()=>{d(!1)},1e3)})}catch(e){window.alert(e.message),setTimeout(()=>{d?.(!1)},1e3);return}}},32448:(e,t,a)=>{a.a(e,async(e,s)=>{try{a.r(t),a.d(t,{EditTableContext:()=>v,default:()=>f,getServerSideProps:()=>_});var r=a(8732),l=a(82015),i=a.n(l),n=a(95222),d=a(20048),u=a.n(d),o=a(64098),c=a(29641),m=a(31651),p=a.n(m),b=a(67216),x=a.n(b),g=a(43479),h=e([o,c]);[o,c]=h.then?(await h)():h;let v=i().createContext({});function f({user:e,database:t,table:a,dbSchemaData:s,query:l,confirmedDelegetedUser:d}){let u=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("title",{children:"Edit Table | Datasquirel"}),(0,r.jsx)("meta",{name:"description",content:"Edit Table"})]}),[m,p]=i().useState(a.fields),[b,x]=i().useState(null),[g,h]=i().useState(0),f=i().useRef();return(0,r.jsx)(n.A,{head:u,user:e,extraHeaderContent:(0,r.jsx)(o.A,{database:t,query:l,confirmedDelegetedUser:d,user:e}),children:(0,r.jsx)(v.Provider,{value:{user:e,database:t,table:a,tableFields:m,setTableFields:p,targetField:b,setTargetField:x,pageRefresh:g,setPageRefresh:h,refreshFieldsListRef:f,dbSchemaData:s,query:l,confirmedDelegetedUser:d},children:(0,r.jsx)(c.A,{})})})}async function _({req:e,res:t,query:a}){try{let s=await u()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let r=await p()({request:e,user:s,databaseSlug:a.single,query:a});if(!r)throw Error("No Db Object Found!");let{dbUserId:l,rootUserId:i}=r,n=await x()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${a.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let d=(0,g.A)({userId:l});if(!d)throw Error("User schema data not found!");let o=d.filter(e=>e.dbFullName===n[0].db_full_name)?.[0]?.tables,c=o?.filter(e=>e.tableName===a.single_table)[0];if(!o||!c)return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};return{props:{user:s,database:n[0],dbSchemaData:d,table:c,query:a,confirmedDelegetedUser:r}}}catch(e){return{redirect:{destination:"/",permanent:!1}}}}s()}catch(e){s(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),s=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,4417,7318],()=>a(96829));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json index 267b957..6ed20f2 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../webpack-runtime.js","../../../../../../../chunks/4017.js","../../../../../../../chunks/8313.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/6729.js","../../../../../../../chunks/5449.js","../../../../../../../chunks/913.js","../../../../../../../chunks/4480.js","../../../../../../../chunks/370.js","../../../../../../../chunks/424.js","../../../../../../../chunks/4858.js","../../../../../../../chunks/5472.js","../../../../../../../chunks/1781.js","../../../../../../../chunks/4941.js","../../../../../../../chunks/7901.js","../../../../../../../chunks/2317.js","../../../../../../../chunks/5116.js","../../../../../../../chunks/8345.js","../../../../../../../chunks/4986.js","../../../../../../../chunks/9594.js","../../../../../../../chunks/8264.js","../../../../../../../chunks/9471.js","../../../../../../../chunks/7037.js","../../../../../../../chunks/9967.js","../../../../../../../chunks/464.js","../../../../../../../chunks/8515.js","../../../../../../../chunks/4105.js","../../../../../../../chunks/3314.js","../../../../../../../chunks/4893.js","../../../../../../../../package.json","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1137.js","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4237.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4417.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/6946.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7318.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9216.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9764.js","../../../../../../../chunks/9810.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js index 485131c..7604346 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js @@ -1,326 +1,17 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 372; -exports.ids = [372,8105,133,4135]; -exports.modules = { +"use strict";(()=>{var e={};e.id=6930,e.ids=[636,6930],e.modules={26364:(e,t,r)=>{r.a(e,async(e,i)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>d,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>I,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>T,unstable_getStaticProps:()=>q});var s=r(63865),a=r(9455),u=r(30671),o=r(49407),l=r(68268),n=r(98842),p=e([n]);n=(p.then?(await p)():p)[0];let m=(0,u.M)(n,"default"),d=(0,u.M)(n,"getStaticProps"),c=(0,u.M)(n,"getStaticPaths"),x=(0,u.M)(n,"getServerSideProps"),g=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),T=(0,u.M)(n,"unstable_getStaticPaths"),y=(0,u.M)(n,"unstable_getStaticParams"),I=(0,u.M)(n,"unstable_getServerProps"),f=(0,u.M)(n,"unstable_getServerSideProps"),S=new s.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:n});i()}catch(e){i(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let a="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),o=t.fields;function u(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let l=[],n=[];l.push(`type ${s} = {`),n.push(`/** + * @typedef {object} ${s}`),o.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(i.A)?"?":"";l.push(` ${e.fieldName}${t}: ${u(e.dataType||"")};`),n.push(` * @property {${u(e.dataType||"")}${t}} ${e.fieldName}`)}),l.push("}"),n.push(" */"),e?.match(/javascript/i)&&(a=n.join("\n")),e?.match(/typescript/i)&&(a=l.join("\n"))}catch(e){console.log(e.message),a=null}return a}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({collapse:e,setCollapse:t}){return(0,i.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,i.jsx)("span",{children:e?"Expand":"Collapse"}),(0,i.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,i.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var i=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:a}){return(0,i.jsx)(i.Fragment,{})}r(82015),r(1976),r(58150)},68942:(e,t,r)=>{let i=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:a}){let u=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||i||t||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` +Date: ${u.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let l=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",s),i.appendFileSync("./.tmp/error.log",` -/***/ 2587: -/***/ ((module) => { -module.exports = require("@monaco-editor/react"); -/***/ }), -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 9438: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LibraryAddTwoTone"); - -/***/ }), - -/***/ 399: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 5453: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MoreHoriz"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2329: -/***/ ((module) => { - -module.exports = require("html-prettify"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 7076: -/***/ ((module) => { - -module.exports = require("react-tiny-popover"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,8515,4559,9035], () => (__webpack_exec__(7722))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},64030:(e,t,r)=>{r.d(t,{A:()=>i});let i=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},43431:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,9216,8842],()=>r(26364));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json index 994c854..d43b9cd 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../webpack-runtime.js","../../../../../../../chunks/4017.js","../../../../../../../chunks/8313.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/6729.js","../../../../../../../chunks/5449.js","../../../../../../../chunks/913.js","../../../../../../../chunks/4480.js","../../../../../../../chunks/370.js","../../../../../../../chunks/424.js","../../../../../../../chunks/4858.js","../../../../../../../chunks/5472.js","../../../../../../../chunks/1781.js","../../../../../../../chunks/9360.js","../../../../../../../chunks/4941.js","../../../../../../../chunks/7023.js","../../../../../../../chunks/7901.js","../../../../../../../chunks/4114.js","../../../../../../../chunks/8682.js","../../../../../../../chunks/2317.js","../../../../../../../chunks/1206.js","../../../../../../../chunks/5116.js","../../../../../../../chunks/8345.js","../../../../../../../chunks/4986.js","../../../../../../../chunks/9594.js","../../../../../../../chunks/8264.js","../../../../../../../chunks/9471.js","../../../../../../../chunks/464.js","../../../../../../../chunks/8515.js","../../../../../../../chunks/4559.js","../../../../../../../chunks/9035.js","../../../../../../../../package.json","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../node_modules/@mui/material/node/index.js","../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LibraryAddTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LockOutlined.js","../../../../../../../../../node_modules/@mui/icons-material/MoreHoriz.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../../../../../node_modules/@mui/material/node/List/index.js","../../../../../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../node_modules/@mui/base/node/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../../../../../node_modules/@mui/material/node/List/List.js","../../../../../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../../../../../node_modules/@mui/base/Portal/package.json","../../../../../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/@mui/material/node/className/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/@mui/base/utils/package.json","../../../../../../../../../node_modules/@mui/base/Popper/package.json","../../../../../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../node_modules/react-transition-group/package.json","../../../../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../../../../../node_modules/@popperjs/core/package.json","../../../../../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../../../../../node_modules/dom-helpers/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@floating-ui/dom/package.json","../../../../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/@floating-ui/core/package.json","../../../../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1137.js","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4237.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4417.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/6946.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7318.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9216.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9764.js","../../../../../../../chunks/9810.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js index 13f82f4..7404142 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js @@ -1,938 +1,17 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6306; -exports.ids = [6306,372,8105,133,4135]; -exports.modules = { +"use strict";(()=>{var e={};e.id=794,e.ids=[636,794],e.modules={76387:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>p,getStaticProps:()=>c,reportWebVitals:()=>b,routeModule:()=>T,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>h});var s=r(63865),i=r(9455),l=r(30671),n=r(49407),u=r(68268),o=r(2359),d=e([o]);o=(d.then?(await d)():d)[0];let m=(0,l.M)(o,"default"),c=(0,l.M)(o,"getStaticProps"),p=(0,l.M)(o,"getStaticPaths"),x=(0,l.M)(o,"getServerSideProps"),g=(0,l.M)(o,"config"),b=(0,l.M)(o,"reportWebVitals"),h=(0,l.M)(o,"unstable_getStaticProps"),y=(0,l.M)(o,"unstable_getStaticPaths"),f=(0,l.M)(o,"unstable_getStaticParams"),S=(0,l.M)(o,"unstable_getServerProps"),E=(0,l.M)(o,"unstable_getServerSideProps"),T=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:o});a()}catch(e){a(e)}})},52092:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>d});var s=r(8732),i=r(82015),l=r.n(i),n=r(2359);r(63715);var u=r(51548),o=e([n]);function d(e){let{entry:t,targetEntry:r,database:a,table:i,user:o}=l().useContext(n.SingleEntryContext),[d,m]=l().useState([]),c=(()=>{let e=Object.keys(t);return e[1].match(/uuid/i)?e[2]:e[1]})();return d?.[0]?(0,s.jsx)("div",{className:"row gap-3 flex-wrap min-w-[80px]",children:(0,s.jsx)(u.A,{selectOptions:d.map(e=>({title:e.title||e.slug||e.full_name||e[c]||e.id,payload:e.id,default:t.id==e.id})),onChangeHandler:e=>{let t=`/admin/${o?.id}/databases/${a.db_slug}/tables/${i.tableName}/entries/${e.target.value}`;window.location.href=`${t}${window.location.search}`}})}):null}n=(o.then?(await o)():o)[0],a()}catch(e){a(e)}})},13605:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>h});var s=r(8732),i=r(82015),l=r.n(i),n=r(2359),u=r(46437),o=r(58548),d=r(94010),m=r(34486),c=r(89579),p=r(86571),x=r(82972),g=r(52092),b=e([n,d,m,x,g]);function h(e){let{user:t,database:a,table:i,dbSchemaData:m,entry:b,setTargetEntry:h,richTextEditors:y,jsonTextEditors:f,query:S,confirmedDelegetedUser:E}=l().useContext(n.SingleEntryContext),T=r(43431);return E?.delegated,E?.priviledges?.match(/Edit Tables/i),E?.priviledges?.match(/Delete Tables/i),E?.priviledges?.match(/Create Tables/i),E?.priviledges?.match(/Edit Entries/i),E?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(u.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsxs)("span",{className:"inline-block",children:[(0,s.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[i?.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:i?.tableName&&(0,s.jsx)(d.A,{slugText:i.tableName,justIcon:!0})})]})," ","Table Entry #"]}),(0,s.jsx)("span",{children:b.id})]})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[a&&i?(0,s.jsxs)("a",{href:`/admin/${t?.id}/databases/${a.db_slug}/tables/${i.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}):(0,s.jsx)("span",{children:"No Db and Table"}),(0,s.jsx)(x.A,{}),(0,s.jsx)(g.A,{})]})]}),(0,s.jsx)(o.A,{confirmedDelegetedUser:S?.delegated,user:t})]}),a?.active_clone?(0,s.jsx)(p.A,{database:a,user:t}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(c.A,{user:t,database:a,table:i,dbSchemaData:m,richTextEditors:y,dataTypes:T,entry:b,entryPage:!0,query:S,confirmedDelegetedUser:E,jsonTextEditors:f})]})}[n,d,m,x,g]=b.then?(await b)():b,a()}catch(e){a(e)}})},82972:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>o});var s=r(8732),i=r(82015),l=r.n(i),n=r(2359),u=e([n]);function o(e){let{prevEntry:t,nextEntry:r,database:a,table:i,user:u}=l().useContext(n.SingleEntryContext);return(0,s.jsxs)("div",{className:"row gap-3 flex-wrap",children:[t&&(0,s.jsx)("a",{href:`/admin/${u?.id}/databases/${a.db_slug}/tables/${i.tableName}/entries/${t.id}`,className:"button outlined gray",children:"Prev"}),r&&(0,s.jsx)("a",{href:`/admin/${u?.id}/databases/${a.db_slug}/tables/${i.tableName}/entries/${r.id}`,className:"button outlined gray",children:"Next"})]})}n=(u.then?(await u)():u)[0],a()}catch(e){a(e)}})},63014:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(64030);function s({paradigm:e,table:t,query:r,user:s}){let i="";try{let s=`DSQL_${r.single}_${r.single_table}`.toUpperCase(),n=t.fields;function l(e){return e?.match(/int/i)?"number":(e?.match(/text|varchar|timestamp/i),"string")}let u=[],o=[];u.push(`type ${s} = {`),o.push(`/** + * @typedef {object} ${s}`),n.forEach(e=>{let t=e.nullValue?"?":e.fieldName?.match(a.A)?"?":"";u.push(` ${e.fieldName}${t}: ${l(e.dataType||"")};`),o.push(` * @property {${l(e.dataType||"")}${t}} ${e.fieldName}`)}),u.push("}"),o.push(" */"),e?.match(/javascript/i)&&(i=o.join("\n")),e?.match(/typescript/i)&&(i=u.join("\n"))}catch(e){console.log(e.message),i=null}return i}},39897:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({collapse:e,setCollapse:t}){return(0,a.jsxs)("div",{className:"collapse-block"+(e?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:r=>{e?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:e?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(e?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(e?"":"rotate-180")})]})}r(82015)},2817:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({children:e,open:t,setOpen:r,onClose:s,maxWidth:i}){return(0,a.jsx)(a.Fragment,{})}r(82015),r(1976),r(58150)},68942:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(s+=` +URL: ${i.url}`),i?.body&&(s+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let u=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/***/ 3285: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleEntryContext": () => (/* binding */ SingleEntryContext), - "default": () => (/* binding */ SingleEntry), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/admin/databases/TableEntriesList.jsx + 1 modules -var TableEntriesList = __webpack_require__(6122); -// EXTERNAL MODULE: ./components/admin/databases/UpdateEntryForm.jsx + 1 modules -var UpdateEntryForm = __webpack_require__(1985); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -;// CONCATENATED MODULE: ./components/admin/databases/SingleEntryPrevNext.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleEntryPrevNext(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { prevEntry , nextEntry , database , table , user } = external_react_default().useContext(SingleEntryContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "row gap-3 flex-wrap", - children: [ - prevEntry && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${prevEntry.id}`, - className: "button outlined gray", - children: "Prev" - }), - nextEntry && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${nextEntry.id}`, - className: "button outlined gray", - children: "Next" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -;// CONCATENATED MODULE: ./components/admin/databases/SelectNewEntry.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SelectNewEntry(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { entry , targetEntry , database , table , user } = external_react_default().useContext(SingleEntryContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [entries, setEntries] = external_react_default().useState([]); - const defaultField = (()=>{ - const fields = Object.keys(entry); - if (fields[1].match(/uuid/i)) return fields[2]; - return fields[1]; - })(); - external_react_default().useEffect(()=>{ - /** @type {import("@/pages/api/fetch-entries-basic").FetchEntriesBasicBody} */ const fetchBody = { - dbId: database.id, - dbSlug: database.db_slug, - tableName: table.tableName, - isTitle: Boolean(entry.title), - isSlug: Boolean(entry.slug), - isFullName: Boolean(entry.first_name) && Boolean(entry.last_name), - defaultField: defaultField - }; - (0,fetchApi/* default */.Z)("/api/fetch-entries-basic", { - method: "POST", - body: fetchBody - }, true).then((res)=>{ - if (res.entries?.[0]) setEntries(res.entries); - }).catch((err)=>console.log(err)); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!entries?.[0]) return null; - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "row gap-3 flex-wrap min-w-[80px]", - children: /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: entries.map((/** @type {any} */ basicEntry)=>({ - title: basicEntry.title || basicEntry.slug || basicEntry.full_name || basicEntry[defaultField] || basicEntry.id, - payload: basicEntry.id, - default: entry.id == basicEntry.id - })), - onChangeHandler: (e)=>{ - const newUrl = `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${e.target.value}`; - window.location.href = `${newUrl}${window.location.search}`; - } - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/SingleEntryContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleEntryContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , dbSchemaData , entry , setTargetEntry , richTextEditors , jsonTextEditors , query , confirmedDelegetedUser , } = external_react_default().useContext(SingleEntryContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const dataTypes = __webpack_require__(9594); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full relative z-50", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "inline-block", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative", - children: [ - table?.tableFullName, - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-5 -right-4", - children: table?.tableName && /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.tableName, - justIcon: true - }) - }) - ] - }), - " ", - "Table Entry #" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: entry.id - }) - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - database && table ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - className: "button flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Entry" - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Db and Table" - }), - /*#__PURE__*/ jsx_runtime_.jsx(SingleEntryPrevNext, {}), - /*#__PURE__*/ jsx_runtime_.jsx(SelectNewEntry, {}) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database?.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UpdateEntryForm/* default */.Z, { - user: user, - database: database, - table: table, - dbSchemaData: dbSchemaData, - richTextEditors: richTextEditors, - dataTypes: dataTypes, - entry: entry, - entryPage: true, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2317); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./layouts/components/GeneralLayout/ScrollToTopButton.jsx -var ScrollToTopButton = __webpack_require__(9360); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").SingleEntryContextType} */ // @ts-ignore -const init = {}; -const SingleEntryContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.entry - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - * @param {any} props.prevEntry - * @param {any} props.nextEntry - */ function SingleEntry({ user , database , table , dbSchemaData , entry , query , confirmedDelegetedUser , prevEntry , nextEntry , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${table.tableFullName} Table | Datasquirel`; - const pageDescription = "Single Table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [targetEntry, setTargetEntry] = external_react_default().useState(entry); - const richTextEditors = external_react_default().useRef([]); - const jsonTextEditors = external_react_default().useRef([]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - aceEditor: true, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(SingleEntryContext.Provider, { - value: { - user, - database, - table, - dbSchemaData, - entry, - richTextEditors, - jsonTextEditors, - targetEntry, - setTargetEntry, - query, - confirmedDelegetedUser, - prevEntry, - nextEntry - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SingleEntryContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ScrollToTopButton/* default */.Z, { - snug: true - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ /** @type {string} */ // @ts-ignore - const dbSlug = query.single; - const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - databaseSlug: dbSlug, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - throw new Error("No Db Object Found!"); - } - const { dbUserId , rootUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === query.single_table)[0]; - //////////////////////////////////////// - const targetEntryQuery = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM ${targetTable.tableName} WHERE id='${query.single_entry}'`, - tableSchema: targetTable - }); - if (!targetEntryQuery?.[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases/${database[0].db_slug}/tables/${targetTable.tableName}/entries`, - permanent: false - } - }; - } - const targetEntry = targetEntryQuery[0]; - const nextEntry = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT id FROM ${targetTable.tableName} WHERE id > '${query.single_entry}' LIMIT 1`, - tableSchema: targetTable - }); - const prevEntry = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT id FROM ${targetTable.tableName} WHERE id < '${query.single_entry}' ORDER BY id DESC LIMIT 1`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - table: targetTable, - dbSchemaData: dbSchemaData, - entry: targetEntry, - query, - confirmedDelegetedUser, - nextEntry: nextEntry?.[0] || null, - prevEntry: prevEntry?.[0] || null - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError_default()({ - component: "[single_entry]-page-component/getServerSideProps/catch-error", - message: error.message, - user: user - }); - return { - // redirect: { - // destination: "/login", - // permanent: false - // }, - props: { - user: user, - database: null, - table: null, - entry: null - } - }; - } -} - - -/***/ }), - -/***/ 2587: -/***/ ((module) => { - -module.exports = require("@monaco-editor/react"); - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 9438: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LibraryAddTwoTone"); - -/***/ }), - -/***/ 399: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 5453: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MoreHoriz"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2329: -/***/ ((module) => { - -module.exports = require("html-prettify"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 7076: -/***/ ((module) => { - -module.exports = require("react-tiny-popover"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,9360,4941,7023,7901,4114,8682,2317,1206,5116,8345,4986,9594,8264,9471,464,8515,4559,9035], () => (__webpack_exec__(3285))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},64030:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},2359:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{SingleEntryContext:()=>_,default:()=>T,getServerSideProps:()=>N});var s=r(8732),i=r(82015),l=r.n(i),n=r(20048),u=r.n(n),o=r(95222),d=r(64098),m=r(90378),c=r.n(m),p=r(13605),x=r(31651),g=r.n(x),b=r(68942),h=r.n(b),y=r(67216),f=r.n(y),S=r(11169),E=e([d,p]);[d,p]=E.then?(await E)():E;let v=r(29021),_=l().createContext({});function T({user:e,database:t,table:r,dbSchemaData:a,entry:i,query:n,confirmedDelegetedUser:u,prevEntry:m,nextEntry:c}){let x=`${r.tableFullName} Table | Datasquirel`,g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:x}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),[b,h]=l().useState(i),y=l().useRef([]),f=l().useRef([]);return(0,s.jsx)(o.A,{head:g,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:n,confirmedDelegetedUser:u,user:e}),aceEditor:!0,children:(0,s.jsxs)(_.Provider,{value:{user:e,database:t,table:r,dbSchemaData:a,entry:i,richTextEditors:y,jsonTextEditors:f,targetEntry:b,setTargetEntry:h,query:n,confirmedDelegetedUser:u,prevEntry:m,nextEntry:c},children:[(0,s.jsx)(p.A,{}),(0,s.jsx)(S.A,{snug:!0})]})})}async function N({req:e,res:t,query:r}){let a=await u()(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=r.single,s=await g()({request:e,user:a,databaseSlug:t,query:r});if(!s)throw Error("No Db Object Found!");let{dbUserId:i,rootUserId:l}=s,n=await f()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${r.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let u=JSON.parse(v.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),o=(u.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===r.single_table)[0],d=await c()({database:n[0].db_full_name,queryString:`SELECT * FROM ${o.tableName} WHERE id='${r.single_entry}'`,tableSchema:o});if(!d?.[0])return{redirect:{destination:`/admin/${a?.id}/databases/${n[0].db_slug}/tables/${o.tableName}/entries`,permanent:!1}};let m=d[0],p=await c()({database:n[0].db_full_name,queryString:`SELECT id FROM ${o.tableName} WHERE id > '${r.single_entry}' LIMIT 1`,tableSchema:o}),x=await c()({database:n[0].db_full_name,queryString:`SELECT id FROM ${o.tableName} WHERE id < '${r.single_entry}' ORDER BY id DESC LIMIT 1`,tableSchema:o});return{props:{user:a,database:n[0],table:o,dbSchemaData:u,entry:m,query:r,confirmedDelegetedUser:s,nextEntry:p?.[0]||null,prevEntry:x?.[0]||null}}}catch(e){return h()({component:"[single_entry]-page-component/getServerSideProps/catch-error",message:e.message,user:a}),{props:{user:a,database:null,table:null,entry:null}}}}a()}catch(e){a(e)}})},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},90317:e=>{e.exports=require("html-prettify")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},41836:e=>{e.exports=require("react-tiny-popover")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},43431:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,9216,8842],()=>r(76387));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json index c77884d..6c74aeb 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../webpack-runtime.js","../../../../../../../../chunks/4017.js","../../../../../../../../chunks/8313.js","../../../../../../../../chunks/5264.js","../../../../../../../../chunks/6729.js","../../../../../../../../chunks/5449.js","../../../../../../../../chunks/913.js","../../../../../../../../chunks/4480.js","../../../../../../../../chunks/370.js","../../../../../../../../chunks/424.js","../../../../../../../../chunks/4858.js","../../../../../../../../chunks/5472.js","../../../../../../../../chunks/1781.js","../../../../../../../../chunks/9360.js","../../../../../../../../chunks/4941.js","../../../../../../../../chunks/7023.js","../../../../../../../../chunks/7901.js","../../../../../../../../chunks/4114.js","../../../../../../../../chunks/8682.js","../../../../../../../../chunks/2317.js","../../../../../../../../chunks/1206.js","../../../../../../../../chunks/5116.js","../../../../../../../../chunks/8345.js","../../../../../../../../chunks/4986.js","../../../../../../../../chunks/9594.js","../../../../../../../../chunks/8264.js","../../../../../../../../chunks/9471.js","../../../../../../../../chunks/464.js","../../../../../../../../chunks/8515.js","../../../../../../../../chunks/4559.js","../../../../../../../../chunks/9035.js","../../../../../../../../../package.json","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../../node_modules/@mui/material/node/index.js","../../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/LibraryAddTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/LockOutlined.js","../../../../../../../../../../node_modules/@mui/icons-material/MoreHoriz.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../../../../../../node_modules/@mui/material/node/List/index.js","../../../../../../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../../node_modules/@mui/base/node/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../../../../../../node_modules/@mui/material/node/List/List.js","../../../../../../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../../../../../../node_modules/@mui/base/Portal/package.json","../../../../../../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/@mui/material/node/className/index.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../../node_modules/@mui/base/utils/package.json","../../../../../../../../../../node_modules/@mui/base/Popper/package.json","../../../../../../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../../node_modules/react-transition-group/package.json","../../../../../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../../../../../../node_modules/@popperjs/core/package.json","../../../../../../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../../../../../../node_modules/dom-helpers/package.json","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../../node_modules/@floating-ui/dom/package.json","../../../../../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../../node_modules/@floating-ui/core/package.json","../../../../../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react-tiny-popover/dist/ArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/Popover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/PopoverPortal.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useArrowContainer.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useElementRef.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useHandlePrevValues.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/useMemoizedArray.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/usePopover.js","../../../../../../../../../../node_modules/react-tiny-popover/dist/util.js","../../../../../../../../../../node_modules/react-tiny-popover/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1137.js","../../../../../../../../chunks/1223.js","../../../../../../../../chunks/1790.js","../../../../../../../../chunks/2332.js","../../../../../../../../chunks/2414.js","../../../../../../../../chunks/2996.js","../../../../../../../../chunks/3247.js","../../../../../../../../chunks/3468.js","../../../../../../../../chunks/3737.js","../../../../../../../../chunks/4050.js","../../../../../../../../chunks/4237.js","../../../../../../../../chunks/4312.js","../../../../../../../../chunks/4417.js","../../../../../../../../chunks/5134.js","../../../../../../../../chunks/5212.js","../../../../../../../../chunks/5674.js","../../../../../../../../chunks/615.js","../../../../../../../../chunks/6154.js","../../../../../../../../chunks/6806.js","../../../../../../../../chunks/6946.js","../../../../../../../../chunks/7070.js","../../../../../../../../chunks/7318.js","../../../../../../../../chunks/7488.js","../../../../../../../../chunks/7665.js","../../../../../../../../chunks/7734.js","../../../../../../../../chunks/8153.js","../../../../../../../../chunks/8268.js","../../../../../../../../chunks/8370.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/8842.js","../../../../../../../../chunks/9205.js","../../../../../../../../chunks/9216.js","../../../../../../../../chunks/9621.js","../../../../../../../../chunks/9764.js","../../../../../../../../chunks/9810.js","../../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js index 96f35c2..f1d8fdf 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js @@ -1,932 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4565; -exports.ids = [4565,8105,133,4135]; -exports.modules = { +"use strict";(()=>{var e={};e.id=2405,e.ids=[636,2405],e.modules={23821:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>m,getServerSideProps:()=>x,getStaticPaths:()=>p,getStaticProps:()=>c,reportWebVitals:()=>b,routeModule:()=>N,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>y,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>f});var s=r(63865),i=r(9455),l=r(30671),n=r(49407),u=r(68268),d=r(90488),o=e([d]);d=(o.then?(await o)():o)[0];let m=(0,l.M)(d,"default"),c=(0,l.M)(d,"getStaticProps"),p=(0,l.M)(d,"getStaticPaths"),x=(0,l.M)(d,"getServerSideProps"),g=(0,l.M)(d,"config"),b=(0,l.M)(d,"reportWebVitals"),f=(0,l.M)(d,"unstable_getStaticProps"),h=(0,l.M)(d,"unstable_getStaticPaths"),y=(0,l.M)(d,"unstable_getStaticParams"),T=(0,l.M)(d,"unstable_getServerProps"),E=(0,l.M)(d,"unstable_getServerSideProps"),N=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:d});a()}catch(e){a(e)}})},84374:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>b});var s=r(8732),i=r(82015),l=r.n(i),n=r(90488),u=r(46437),d=r(58548),o=r(94010),m=r(58992),c=r(86571),p=r(65241),x=r(59621),g=e([n,o,m,x]);function b(e){let{user:t,database:r,table:a,dbSchemaData:i,query:g,confirmedDelegetedUser:b}=l().useContext(n.AddTableEntryContext);return b?.delegated,b?.priviledges?.match(/Edit Tables/i),b?.priviledges?.match(/Delete Tables/i),b?.priviledges?.match(/Create Tables/i),b?.priviledges?.match(/Edit Entries/i),b?.priviledges?.match(/Delete Entries/i),(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(u.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{className:"flex gap-y-2 flex-wrap gap-x-2 items-center",children:["Add New Entry To"," ",(0,s.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[a.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(o.A,{slugText:a.tableName,justIcon:!0})})]})," ","Table"]})})]})}),(0,s.jsx)(d.A,{confirmedDelegetedUser:g?.delegated,user:t})]}),r.active_clone?(0,s.jsx)(c.A,{database:r,user:t}):(0,s.jsx)(s.Fragment,{}),r.remote_connected?(0,s.jsx)(x.p,{database:r}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.A,{table:a,database:r,user:t}),(0,s.jsx)(m.A,{})]})}[n,o,m,x]=g.then?(await g)():g,a()}catch(e){a(e)}})},58992:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>p});var s=r(8732),i=r(82015),l=r.n(i),n=r(64030),u=r(90488),d=r(32415),o=r(22621),m=r(43965),c=e([u]);function p({}){let{user:e,database:t,table:a,dbSchemaData:i,richTextEditors:c,query:p,confirmedDelegetedUser:x,jsonTextEditors:g,duplicateEntry:b}=l().useContext(u.AddTableEntryContext),f=a.fields.filter(e=>!e.fieldName?.match(n.A)),h=r(43431);x?.delegated,x?.priviledges?.match(/Edit Tables/i),x?.priviledges?.match(/Delete Tables/i),x?.priviledges?.match(/Create Tables/i),x?.priviledges?.match(/Edit Entries/i),x?.priviledges?.match(/Delete Entries/i);let[y,T]=l().useState(!1),E=l().useRef([]),[N,S]=l().useState(b||null);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0 mb-4",children:"Form Fields"}),p?.duplicate&&b&&(0,s.jsxs)("span",{className:"info gray",children:["This post is a duplicate of"," ",(0,s.jsx)("a",{href:`/admin/${e?.id}/databases/${t.db_slug}/tables/${a.tableName}/entries/${b.id}`,target:"_blank",children:b.title||`Entry #${b.id}`})]}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8",onSubmit:e=>{(0,m.A)({e,currentRichTextEditorForms:E,database:t,filteredFields:f,jsonTextEditors:g,query:p,setLoading:T,table:a})},onKeyUp:e=>{e.ctrlKey&&"Enter"==e.key&&window.confirm("Add this Entry?")&&document.getElementById("add-entry-button")?.click()},children:[y&&(0,s.jsx)(d.A,{}),f.map((e,t)=>{let r=h.filter(t=>t.name===e.dataType?.replace(/\d|\(|\)/g,""));return(N&&e.fieldName&&(e.defaultValue=N[e.fieldName],e.defaultValueLiteral=N[e.fieldName]),e.defaultValueLiteral&&!N)?(0,s.jsx)(l().Fragment,{},t+1):(0,s.jsx)(o.A,{fieldObject:e,dataTypeSchema:r[0],richTextEditors:c,currentRichTextEditorForms:E,query:p,confirmedDelegetedUser:x,jsonTextEditors:g},t+1)}),(0,s.jsx)("button",{type:"submit",className:y?" pointer-events-none opacity-40":"",id:"add-entry-button",children:"Add Entry"})]})]})}u=(c.then?(await c)():c)[0],a()}catch(e){a(e)}})},68942:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(s+=` +URL: ${i.url}`),i?.body&&(s+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let u=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/***/ 3907: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (__WEBPACK_DEFAULT_EXPORT__) -/* harmony export */ }); -// @ts-check -/** - * Check for user in local storage - * - * @description Preventdefault, declare variables - */ const defaultFieldsRegexp = /^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaultFieldsRegexp); -/***/ }), - -/***/ 7535: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddTableEntryContext": () => (/* binding */ AddTableEntryContext), - "default": () => (/* binding */ AddTableEntry), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./functions/frontend/defaultFieldsRegexp.js -var defaultFieldsRegexp = __webpack_require__(3907); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/databases/TableEntryField.jsx + 11 modules -var TableEntryField = __webpack_require__(4559); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./functions/frontend/updateDiskUsage.js -var updateDiskUsage = __webpack_require__(1069); -;// CONCATENATED MODULE: ./functions/frontend/newEntryHandler.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - * @param {React.FormEvent<HTMLFormElement>} params.e - * @param {React.Dispatch<React.SetStateAction<boolean>>} params.setLoading - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} params.filteredFields - * @param {React.MutableRefObject<import("@/package-shared/types").RichTextEditorsRefArray[]>} params.currentRichTextEditorForms - * @param {React.MutableRefObject<import("@/package-shared/types").JSONTextEditorsRefArray[]>} params.jsonTextEditors - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - * @param {any} params.query - * - * @requires search-field name attribute - */ function newEntryHandler({ e , setLoading , filteredFields , currentRichTextEditorForms , jsonTextEditors , database , table , query , }) { - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - /** @type {any} */ let payload = {}; - filteredFields.forEach((field)=>{ - if (!field?.fieldName) return; - if (!formEl[field.fieldName]?.value) return; - payload[field.fieldName] = formEl[field.fieldName].value; - }); - if (currentRichTextEditorForms.current[0]) { - currentRichTextEditorForms.current.forEach((richTextObject)=>{ - if (!richTextObject?.fieldName || !richTextObject?.ref?.current) return; - payload[richTextObject.fieldName] = richTextObject.ref.current.getContent(); - }); - } - if (jsonTextEditors.current[0]) { - jsonTextEditors.current.forEach((jsonEditor)=>{ - if (!jsonEditor?.fieldName || !jsonEditor?.ref?.current) return; - payload[jsonEditor.fieldName] = jsonEditor.ref.current.getValue(); - }); - } - /** @type {import("@/pages/api/addTableEntry").AddTableEntryRequestBody} */ const fetchBody = { - dbSlug: database.db_slug, - dbId: database.id, - tableName: table.tableName, - payload: payload, - tableSchema: table, - delegated: query?.delegated - }; - (0,fetchApi/* default */.Z)("/api/addTableEntry", { - method: "post", - body: fetchBody - }, true).then((res)=>{ - if (res.success) { - (0,updateDiskUsage/* default */.Z)().then(()=>{ - window.location.pathname = window.location.pathname.replace(/\/add-entry.*?/, ""); - }); - } else { - window.alert(res.msg + "\n" + (res.err || "")); - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/admin/databases/TableEntryForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function TableEntryForm({}) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , dbSchemaData , richTextEditors , query , confirmedDelegetedUser , jsonTextEditors , duplicateEntry , } = external_react_default().useContext(AddTableEntryContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const filteredFields = table.fields.filter((field)=>!field.fieldName?.match(defaultFieldsRegexp/* default */.Z)); - const dataTypes = __webpack_require__(9594); - const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {React.MutableRefObject<import("@/package-shared/types").RichTextEditorsRefArray[]>} */ const currentRichTextEditorForms = external_react_default().useRef([]); - /** @type {[ state: any, dispatch: React.Dispatch<React.SetStateAction<any>> ]} */ const [existingEntry, setExistingEntry] = external_react_default().useState(duplicateEntry || null); - external_react_default().useEffect(()=>{ - if (query.duplicate) { - try { - const localExistingEntry = localStorage.getItem("duplicate_entry"); - const existingEntry = JSON.parse(localExistingEntry || "{}"); - setExistingEntry(existingEntry); - } catch (error) {} - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 mb-4", - children: "Form Fields" - }), - query?.duplicate && duplicateEntry && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "info gray", - children: [ - "This post is a duplicate of", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/${duplicateEntry.id}`, - target: "_blank", - children: duplicateEntry.title || `Entry #${duplicateEntry.id}` - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-stretch gap-8", - onSubmit: (e)=>{ - newEntryHandler({ - e, - currentRichTextEditorForms, - database, - filteredFields, - jsonTextEditors, - query, - setLoading, - table - }); - }, - onKeyUp: (e)=>{ - if (e.ctrlKey && e.key == "Enter") { - const confirm = window.confirm("Add this Entry?"); - if (!confirm) return; - document.getElementById("add-entry-button")?.click(); - } - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - filteredFields.map((field, index)=>{ - let dataTypeSchema = dataTypes.filter((type)=>type.name === field.dataType?.replace(/\d|\(|\)/g, "")); - if (existingEntry && field.fieldName) { - field.defaultValue = existingEntry[field.fieldName]; - field.defaultValueLiteral = existingEntry[field.fieldName]; - } - if (field.defaultValueLiteral && !existingEntry) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}, index + 1); - } - return /*#__PURE__*/ jsx_runtime_.jsx(TableEntryField/* default */.Z, { - fieldObject: field, - dataTypeSchema: dataTypeSchema[0], - richTextEditors: richTextEditors, - currentRichTextEditorForms: currentRichTextEditorForms, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - jsonTextEditors: jsonTextEditors - }, index + 1); - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "" + (loading ? " pointer-events-none opacity-40" : ""), - id: "add-entry-button", - children: "Add Entry" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/ActiveCloneTableBanner.jsx -var ActiveCloneTableBanner = __webpack_require__(8515); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/databases/AddTableEntryContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddTableEntryContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , dbSchemaData , query , confirmedDelegetedUser , } = external_react_default().useContext(AddTableEntryContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const areEntriesEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Entries/i); - const areEntriesDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Entries/i); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full relative z-50", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "flex gap-y-2 flex-wrap gap-x-2 items-center", - children: [ - "Add New Entry To", - " ", - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative", - children: [ - table.tableFullName, - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-5 -right-4", - children: /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.tableName, - justIcon: true - }) - }) - ] - }), - " ", - "Table" - ] - }) - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneTableBanner/* default */.Z, { - table: table, - database: database, - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx(TableEntryForm, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2317); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AddEntryContextType} */ // @ts-ignore -const init = {}; -const AddTableEntryContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - * @param {any} props.duplicateEntry - * @param {any} props.confirmedDelegetedUser - */ function AddTableEntry({ user , database , table , dbSchemaData , query , confirmedDelegetedUser , duplicateEntry , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${table.tableFullName} Table New Entry | Datasquirel`; - const pageDescription = "Single Table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const richTextEditors = external_react_default().useRef([]); - const jsonTextEditors = external_react_default().useRef([]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(AddTableEntryContext.Provider, { - value: { - user, - database, - table, - dbSchemaData, - richTextEditors, - jsonTextEditors, - query, - confirmedDelegetedUser, - duplicateEntry - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(AddTableEntryContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ /** @type {string} */ // @ts-ignore - const slug = query.single; - const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - databaseSlug: slug, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - throw new Error("No Db Object Found!"); - } - const { dbUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === query.single_table)[0]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let duplicateEntry; - if (query.duplicate && query.id) { - const dbName = database[0].db_full_name; - const tableName = targetTable.tableName; - const targetDuplicateEntry = await varDatabaseDbHandler_default()({ - database: dbName, - queryString: `SELECT * FROM ${tableName} WHERE id='${query.id}'`, - tableSchema: targetTable - }); - duplicateEntry = targetDuplicateEntry?.[0]; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - table: targetTable, - dbSchemaData: dbSchemaData, - query, - confirmedDelegetedUser, - duplicateEntry: duplicateEntry || null - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError_default()({ - component: "add-entry-page-component/getServerSideProps/catch-error", - message: error.message, - user: user - }); - return { - props: { - user: user, - database: null, - table: null - } - }; - } -} - - -/***/ }), - -/***/ 2587: -/***/ ((module) => { - -module.exports = require("@monaco-editor/react"); - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 399: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2329: -/***/ ((module) => { - -module.exports = require("html-prettify"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,2317,1206,5116,8345,4986,9594,8264,8515,4559], () => (__webpack_exec__(7535))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},64030:(e,t,r)=>{r.d(t,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},43965:(e,t,r)=>{r.d(t,{A:()=>i});var a=r(63715),s=r(86152);function i({e,setLoading:t,filteredFields:r,currentRichTextEditorForms:i,jsonTextEditors:l,database:n,table:u,query:d}){e.preventDefault(),t(!0);let o=e.target,m={};r.forEach(e=>{e?.fieldName&&o[e.fieldName]?.value&&(m[e.fieldName]=o[e.fieldName].value)}),i.current[0]&&i.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(m[e.fieldName]=e.ref.current.getContent())}),l.current[0]&&l.current.forEach(e=>{e?.fieldName&&e?.ref?.current&&(m[e.fieldName]=e.ref.current.getValue())});let c={dbSlug:n.db_slug,dbId:n.id,tableName:u.tableName,payload:m,tableSchema:u,delegated:d?.delegated};(0,a.A)("/api/addTableEntry",{method:"post",body:c},!0).then(e=>{e.success?(0,s.A)().then(()=>{window.location.pathname=window.location.pathname.replace(/\/add-entry.*?/,"")}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{t(!1)},500))})}},90488:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{AddTableEntryContext:()=>q,default:()=>E,getServerSideProps:()=>N});var s=r(8732),i=r(82015),l=r.n(i),n=r(20048),u=r.n(n),d=r(95222),o=r(84374),m=r(64098),c=r(31651),p=r.n(c),x=r(68942),g=r.n(x),b=r(67216),f=r.n(b),h=r(90378),y=r.n(h),T=e([o,m]);[o,m]=T.then?(await T)():T;let S=r(29021),q=l().createContext({});function E({user:e,database:t,table:r,dbSchemaData:a,query:i,confirmedDelegetedUser:n,duplicateEntry:u}){let c=`${r.tableFullName} Table New Entry | Datasquirel`,p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:c}),(0,s.jsx)("meta",{name:"description",content:"Single Table"})]}),x=l().useRef([]),g=l().useRef([]);return(0,s.jsx)(d.A,{head:p,user:e,extraHeaderContent:(0,s.jsx)(m.A,{database:t,query:i,confirmedDelegetedUser:n,user:e}),children:(0,s.jsx)(q.Provider,{value:{user:e,database:t,table:r,dbSchemaData:a,richTextEditors:x,jsonTextEditors:g,query:i,confirmedDelegetedUser:n,duplicateEntry:u},children:(0,s.jsx)(o.A,{})})})}async function N({req:e,res:t,query:r}){let a=await u()(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t;let s=r.single,i=await p()({request:e,user:a,databaseSlug:s,query:r});if(!i)throw Error("No Db Object Found!");let{dbUserId:l}=i,n=await f()(`SELECT * FROM user_databases WHERE user_id='${l}' AND db_slug='${r.single}'`);if(!n||!n[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};let u=JSON.parse(S.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l}/main.json`,"utf-8")),d=(u.filter(e=>e.dbFullName===n[0].db_full_name)[0]?.tables).filter(e=>e.tableName===r.single_table)[0];if(r.duplicate&&r.id){let e=n[0].db_full_name,a=d.tableName,s=await y()({database:e,queryString:`SELECT * FROM ${a} WHERE id='${r.id}'`,tableSchema:d});t=s?.[0]}return{props:{user:a,database:n[0],table:d,dbSchemaData:u,query:r,confirmedDelegetedUser:i,duplicateEntry:t||null}}}catch(e){return g()({component:"add-entry-page-component/getServerSideProps/catch-error",message:e.message,user:a}),{props:{user:a,database:null,table:null}}}}a()}catch(e){a(e)}})},51859:e=>{e.exports=require("@monaco-editor/react")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},90317:e=>{e.exports=require("html-prettify")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},43431:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}};var t=require("../../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,7734,8268,7070,5134,9621,9216],()=>r(23821));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json index bbe1e3f..66e4ed7 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../../webpack-runtime.js","../../../../../../../../chunks/4017.js","../../../../../../../../chunks/8313.js","../../../../../../../../chunks/5264.js","../../../../../../../../chunks/6729.js","../../../../../../../../chunks/5449.js","../../../../../../../../chunks/913.js","../../../../../../../../chunks/4480.js","../../../../../../../../chunks/370.js","../../../../../../../../chunks/424.js","../../../../../../../../chunks/4858.js","../../../../../../../../chunks/5472.js","../../../../../../../../chunks/1781.js","../../../../../../../../chunks/4941.js","../../../../../../../../chunks/7023.js","../../../../../../../../chunks/8682.js","../../../../../../../../chunks/2317.js","../../../../../../../../chunks/1206.js","../../../../../../../../chunks/5116.js","../../../../../../../../chunks/8345.js","../../../../../../../../chunks/4986.js","../../../../../../../../chunks/9594.js","../../../../../../../../chunks/8264.js","../../../../../../../../chunks/8515.js","../../../../../../../../chunks/4559.js","../../../../../../../../../package.json","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../../../node_modules/@mui/icons-material/LockOutlined.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/_virtual/_rollupPluginBabelHelpers.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/config/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/loader/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/compose.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/curry.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/deepMerge.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/isObject.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/utils/makeCancelable.js","../../../../../../../../../../node_modules/@monaco-editor/loader/lib/cjs/validators/index.js","../../../../../../../../../../node_modules/@monaco-editor/loader/package.json","../../../../../../../../../../node_modules/@monaco-editor/react/dist/index.js","../../../../../../../../../../node_modules/@monaco-editor/react/package.json","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../../node_modules/html-prettify/package.json","../../../../../../../../../../node_modules/html-prettify/src/index.js","../../../../../../../../../../node_modules/html-prettify/src/utils/addIndentation.js","../../../../../../../../../../node_modules/html-prettify/src/utils/toLines.js","../../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../../node_modules/next/head.js","../../../../../../../../../../node_modules/next/package.json","../../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../../node_modules/react/index.js","../../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../../node_modules/react/package.json","../../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../../node_modules/state-local/lib/cjs/state-local.js","../../../../../../../../../../node_modules/state-local/package.json","../../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../../package.json","../../../../../../../../../package.json","../../../../../../../../chunks/1137.js","../../../../../../../../chunks/1223.js","../../../../../../../../chunks/1790.js","../../../../../../../../chunks/2332.js","../../../../../../../../chunks/2414.js","../../../../../../../../chunks/2996.js","../../../../../../../../chunks/3247.js","../../../../../../../../chunks/3468.js","../../../../../../../../chunks/3737.js","../../../../../../../../chunks/4050.js","../../../../../../../../chunks/4237.js","../../../../../../../../chunks/4312.js","../../../../../../../../chunks/4417.js","../../../../../../../../chunks/5134.js","../../../../../../../../chunks/5212.js","../../../../../../../../chunks/5674.js","../../../../../../../../chunks/615.js","../../../../../../../../chunks/6154.js","../../../../../../../../chunks/6806.js","../../../../../../../../chunks/6946.js","../../../../../../../../chunks/7070.js","../../../../../../../../chunks/7318.js","../../../../../../../../chunks/7488.js","../../../../../../../../chunks/7665.js","../../../../../../../../chunks/7734.js","../../../../../../../../chunks/8153.js","../../../../../../../../chunks/8268.js","../../../../../../../../chunks/8370.js","../../../../../../../../chunks/883.js","../../../../../../../../chunks/8842.js","../../../../../../../../chunks/9205.js","../../../../../../../../chunks/9216.js","../../../../../../../../chunks/9621.js","../../../../../../../../chunks/9764.js","../../../../../../../../chunks/9810.js","../../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js index 268aa77..6f0901a 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js @@ -1,1054 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6941; -exports.ids = [6941,8105,133,4135,1674]; -exports.modules = { +"use strict";(()=>{var e={};e.id=6569,e.ids=[636,6569],e.modules={8409:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>x,default:()=>c,getServerSideProps:()=>b,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>g,routeModule:()=>D,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>h});var a=r(63865),l=r(9455),i=r(30671),n=r(49407),o=r(68268),d=r(48292),u=e([d]);d=(u.then?(await u)():u)[0];let c=(0,i.M)(d,"default"),p=(0,i.M)(d,"getStaticProps"),m=(0,i.M)(d,"getStaticPaths"),b=(0,i.M)(d,"getServerSideProps"),x=(0,i.M)(d,"config"),g=(0,i.M)(d,"reportWebVitals"),h=(0,i.M)(d,"unstable_getStaticProps"),f=(0,i.M)(d,"unstable_getStaticPaths"),_=(0,i.M)(d,"unstable_getStaticParams"),S=(0,i.M)(d,"unstable_getServerProps"),y=(0,i.M)(d,"unstable_getServerSideProps"),D=new a.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",pathname:"/admin/[user_id]/databases/[single]/tables/[single_table]/fields",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:d});s()}catch(e){s(e)}})},73972:(e,t,r)=>{r.d(t,{A:()=>d});var s=r(8732),a=r(82015),l=r.n(a),i=r(63715);r(58548);var n=r(55158),o=r(32415);function d({targetTable:e,database:t}){let[r,a]=l().useState(!1);return(0,s.jsxs)(n.Ay,{title:"delete-table-confirmation",children:[r&&(0,s.jsx)(o.A,{width:"20px"}),(0,s.jsxs)("h4",{className:"m-0",children:["Delete '",e?.table_name?e.table_name:"This Database","' Table?"]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("button",{className:"outlined"+(r?" pointer-events-none opacity-40":""),onClick:r=>{a(!0),(0,i.A)("/api/deleteUserTable",{method:"post",body:{database:t,table:e}},!0).then(e=>{e.success&&window.location.reload()})},children:(0,s.jsx)("span",{children:"Yes"})}),(0,s.jsx)("button",{onClick:e=>{(0,n.fs)()},children:(0,s.jsx)("span",{children:"Cancel"})})]})]})}},59844:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>g});var a=r(8732),l=r(82015),i=r.n(l),n=r(48292),o=r(46437),d=r(58548),u=r(94010),c=r(77802),p=r(86571),m=r(65241),b=r(59621),x=e([n,u,b]);function g(e){let{user:t,database:r,table:s,tableFields:l,setTableFields:x,setTargetField:g,refreshFieldsListRef:h,updateTableAfterFieldsUpdateFunction:f,query:_,confirmedDelegetedUser:S}=i().useContext(n.TableFieldsContext);return S?.delegated,S?.priviledges?.match(/Edit Tables/i),S?.priviledges?.match(/Delete Tables/i),S?.priviledges?.match(/Create Tables/i),s?.childTable&&s.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/),""),(0,a.jsxs)(i().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(o.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:[(0,a.jsx)("span",{children:"All Fields in"}),(0,a.jsx)("div",{className:"inline relative",children:(0,a.jsxs)("a",{href:`/admin/${t?.id}/databases/${r.db_slug}/tables/${s.tableName}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark relative",onClick:e=>{e.target.closest(".copy-slug-span")&&e.preventDefault()},children:[s.tableFullName,(0,a.jsx)("div",{className:"absolute -top-4 -right-4",children:(0,a.jsx)(u.A,{slugText:s.tableName,justIcon:!0})})]})}),(0,a.jsx)("span",{className:"ml-2",children:"Table"})]})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("a",{href:`/admin/${t?.id}/databases/${r.db_slug}/tables/${s.tableName}/entries/add-entry`,className:"button flex items-center gap-2",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New Table Entry"})]})})]}),(0,a.jsx)(d.A,{confirmedDelegetedUser:_?.delegated,user:t})]}),r.active_clone?(0,a.jsx)(p.A,{database:r,user:t}):(0,a.jsx)(a.Fragment,{}),r.remote_connected?(0,a.jsx)(b.p,{database:r}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(m.A,{table:s,database:r,user:t}),(0,a.jsx)(c.A,{user:t,tableFields:l,setTableFields:x,setTargetField:g,refreshFieldsListRef:h,updateTable:!0,updateTableAfterFieldsUpdateFunction:f,database:r,confirmedDelegetedUser:S,query:_,table:s})]})}[n,u,b]=x.then?(await x)():x,s()}catch(e){s(e)}})},65241:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),a=r(82015),l=r.n(a);function i({table:e,database:t,user:r,activeDbClone:a}){let i=e?.childTableDbFullName?e.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=e.childTableDbFullName===t.db_full_name;return i?(0,s.jsxs)("span",{className:"info small green gap-1"+(t?.active_clone?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,s.jsx)("a",{href:`/admin/${r?.id}/databases/${i}/tables/${e.childTableName}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:e.childTableName})})," ","in"," ",n?(0,s.jsxs)("span",{children:["this current database(",(0,s.jsx)("b",{children:t.db_name}),")."]}):(0,s.jsxs)(l().Fragment,{children:[(0,s.jsx)("a",{href:`/admin/${r?.id}/databases/${i}`,target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,s.jsx)("b",{children:i})}),(0,s.jsx)("span",{children:"database."})]})," ",t?.active_clone?"":"Only Foreign keys and Entries can be updated."]}):(0,s.jsx)(l().Fragment,{})}},31651:(e,t,r)=>{r(81630);let s=r(83007);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let l=r.id,i=null;if(!a?.delegated)return{dbUserId:l};let n=a.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${n}_${t}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let r=s(e.cookies[d]);if(!r)throw Error("Invalid Token");if((i=JSON.parse(r)).databaseSlug===t)return{dbUserId:l=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},92728:(e,t,r)=>{r.d(t,{A:()=>p}),r(81630);var s=r(68942),a=r.n(s),l=r(67216),i=r.n(l),n=r(31651),o=r.n(n),d=r(43479),u=r(90378),c=r.n(u);async function p({req:e,user:t,query:r}){try{let s=await o()({request:e,user:t,databaseSlug:r.single,query:r});if(!s)return null;let{dbUserId:a}=s,l=await i()(`SELECT * FROM user_databases WHERE user_id='${a}' AND db_slug='${r.single}'`);if(!l?.[0])return null;let n=(0,d.A)({userId:a});if(!n)throw Error("DB Schema not found!");let u=n.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables,p=u?.filter(e=>e.tableName===r.single_table)[0],m=await i()(`SELECT * FROM user_database_tables WHERE user_id='${a}' AND db_id='${l[0].id}' AND table_slug='${r.single_table}'`),b=await c()({database:l[0].db_full_name,queryString:`SELECT * FROM ${p?.tableName} ORDER BY id DESC LIMIT 10`,tableSchema:p}),x=await c()({database:l[0].db_full_name,queryString:`SELECT COUNT(id) AS count FROM ${p?.tableName}`,tableSchema:p});if(s.rootUserId){let e=n.filter(e=>e.dbFullName==l[0].db_full_name)[0],t=e.tables.filter(e=>e.tableName===p?.tableName);e.tables=t,n=[e]}return{confirmedDelegetedUser:s||null,database:l[0]||null,dbSchemaData:n||null,entries:b||null,entriesCount:x?.[0]?.count||0,query:r,table:p,tableRecord:m[0]||{}}}catch(e){return a()({component:"[single_table]/index-page-component/getServerSideProps/catch-error]",message:e.message,user:t}),{}}}},94933:(e,t,r)=>{r.d(t,{A:()=>l});var s=r(27825),a=r(63715);function l({query:e,table:t,database:r,dbSchemaData:l,tableFields:i,tableIndexes:n,setLoading:o}){let d=[...l];try{let l=d.findIndex(e=>e.dbFullName===r.db_full_name),u=d[l].tables.findIndex(e=>e.tableName===t.tableName);if(d[l].tables[u].fields=i?s.cloneDeep(i):[],d[l].tables[u].indexes=n?s.cloneDeep(n):[],d[l].tables[u].fields.find(e=>e.newTempField)){window.alert("Please resolve all open fields before you save"),setTimeout(()=>{o?.(!1)},1e3);return}(0,a.A)("/api/updateDbSchemaDataForUser",{method:"post",body:{schema:d,database:r.db_slug,table:t,delegated:e?.delegated}},!0).then(e=>{e.success?window.location.reload():window.alert(e.msg||"Operation Failed. Please check permissions.")}).finally(()=>{o&&setTimeout(()=>{o(!1)},1e3)})}catch(e){window.alert(e.message),setTimeout(()=>{o?.(!1)},1e3);return}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,r)=>{let s=r(83007),a=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l<e.length;l++){let i=e[l],n=Object.keys(i);for(let e=0;e<n.length;e++){let r=n[e],l=t?.fields[e];if(r?.match(a))continue;let o=i[r];("number"==typeof o||o)&&l?.encrypted&&o?.match(/./)&&(i[r]=s(o))}r.push(i)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},22373:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let l=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",l),s.appendFileSync("./.tmp/error.log",` -/***/ 1674: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ DeleteTableConfirmationPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_Breadcrumbs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(424); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5472); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").MYSQL_user_database_tables_table_def | null} [props.targetTable] - */ function DeleteTableConfirmationPopup({ targetTable , database , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP, { - title: "delete-table-confirmation", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("h4", { - className: "m-0", - children: [ - "Delete '", - targetTable?.table_name ? targetTable.table_name : "This Database", - "' Table?" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "outlined" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/deleteUserTable", { - method: "post", - body: { - database: database, - table: targetTable - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } - }); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Yes" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_3__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Cancel" - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 7809: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ grabTableSchemaData) -/* harmony export */ }); -/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3685); -/* harmony import */ var http__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(http__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2317); -/* harmony import */ var _serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5116); -/* harmony import */ var _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3314); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1206); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} grabTableSchemaDataReturn - * @property {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} [database] - * @property {import("@/package-shared/types").DSQL_TableSchemaType} [table] - * @property {import("@/package-shared/types").MYSQL_user_database_tables_table_def} [props.tableRecord] - * @property {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} [props.dbSchemaData] - * @property {any[]} [props.entries] - * @property {any} [props.query] - * @property {any} [props.confirmedDelegetedUser] - * @property {number} [props.entriesCount] - */ /** - * @param {object} params - * @param {http.IncomingMessage & { cookies: import("next/dist/server/api-utils").NextApiRequestCookies }} params.req - Database name slug - * @param {{ id: number, first_name: string, last_name: string }} params.user - user object - * @param {any} params.query - query params - * - * @returns {Promise<grabTableSchemaDataReturn | null>} new user auth object payload - */ async function grabTableSchemaData({ req , user , query }) { - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ const dbUserData = await _grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default()({ - request: req, - user: user, - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - return null; - } - const { dbUserId } = dbUserDataObj; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database?.[0]) { - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ let dbSchemaData = (0,_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)({ - userId: dbUserId - }); - if (!dbSchemaData) { - throw new Error("DB Schema not found!"); - } - /** @type {import("@/package-shared/types").DSQL_TableSchemaType[]| undefined} */ const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables?.filter((table)=>table.tableName === query.single_table)[0]; - const targetTableRecord = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT * FROM user_database_tables WHERE user_id='${dbUserId}' AND db_id='${database[0].id}' AND table_slug='${query.single_table}'`); - const tableEntries = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM ${targetTable?.tableName} ORDER BY id DESC LIMIT 10`, - tableSchema: targetTable - }); - const tableEntriesCount = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - database: database[0].db_full_name, - queryString: `SELECT COUNT(id) AS count FROM ${targetTable?.tableName}`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (confirmedDelegetedUser.rootUserId) { - const filteredDbSchema = dbSchemaData.filter((db)=>db.dbFullName == database[0].db_full_name); - let targetFilteredDb = filteredDbSchema[0]; - const filteredTables = targetFilteredDb.tables.filter(// @ts-ignore - (tbl)=>tbl.tableName === targetTable?.tableName); - targetFilteredDb.tables = filteredTables; - dbSchemaData = [ - targetFilteredDb - ]; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - confirmedDelegetedUser: confirmedDelegetedUser || null, - database: database[0] || null, - dbSchemaData: dbSchemaData || null, - entries: tableEntries || null, - entriesCount: tableEntriesCount?.[0]?.count || 0, - query, - table: targetTable, - tableRecord: targetTableRecord[0] || {} - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "[single_table]/index-page-component/getServerSideProps/catch-error]", - message: error.message, - user: user - }); - return {}; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 8382: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ updateTableAfterFieldsUpdateFunctionExt) -/* harmony export */ }); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6729); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Auth user on client side - * ============================================================================== - * @param {object} params - Single object parameters - * @param {{delegated: boolean}} [params.query] - Query object - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - Target table object - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - Target MYSQL database record object - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchemaData - DSQL db schema - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} [params.tableFields] - Table Fields - * @param {import("@/package-shared/types").DSQL_IndexSchemaType[]} [params.tableIndexes] - Table INdexes - * @param {React.Dispatch<React.SetStateAction<boolean>>} [params.setLoading] - */ function updateTableAfterFieldsUpdateFunctionExt({ query , table , database , dbSchemaData , tableFields , tableIndexes , setLoading , }) { - /** - * @description Initialize - */ let newDbSchemaData = [ - ...dbSchemaData - ]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - const dbIndex = newDbSchemaData.findIndex((db)=>db.dbFullName === database.db_full_name); - const targetDb = newDbSchemaData[dbIndex]; - const targetTableIndex = targetDb.tables.findIndex((_table)=>_table.tableName === table.tableName); - newDbSchemaData[dbIndex].tables[targetTableIndex].fields = tableFields ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableFields) : []; - newDbSchemaData[dbIndex].tables[targetTableIndex].indexes = tableIndexes ? lodash__WEBPACK_IMPORTED_MODULE_0__.cloneDeep(tableIndexes) : []; - const tempField = newDbSchemaData[dbIndex].tables[targetTableIndex].fields.find((fld)=>fld.newTempField); - if (tempField) { - window.alert("Please resolve all open fields before you save"); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } - (0,_fetchApi__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)("/api/updateDbSchemaDataForUser", { - method: "post", - body: { - schema: newDbSchemaData, - database: database.db_slug, - table: table, - delegated: query?.delegated - } - }, true).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert(res.msg || "Operation Failed. Please check permissions."); - } - }).finally(()=>{ - if (setLoading) { - setTimeout(()=>{ - setLoading(false); - }, 1000); - } - }); - } catch (/** @type {any} */ error) { - window.alert(error.message); - setTimeout(()=>{ - setLoading?.(false); - }, 1000); - return; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 325: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "TableFieldsContext": () => (/* binding */ TableFieldsContext), - "default": () => (/* binding */ TableFieldsPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/admin/databases/DeleteTableConfirmationPopup.jsx -var DeleteTableConfirmationPopup = __webpack_require__(1674); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/CopySlug.jsx -var CopySlug = __webpack_require__(9230); -// EXTERNAL MODULE: ./components/admin/databases/TableFields.jsx + 7 modules -var TableFields = __webpack_require__(4893); -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/ActiveCloneTableBanner.jsx -var ActiveCloneTableBanner = __webpack_require__(8515); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/databases/TableFieldsContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function TableFieldsContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , tableFields , setTableFields , setTargetField , refreshFieldsListRef , updateTableAfterFieldsUpdateFunction , query , confirmedDelegetedUser , } = external_react_default().useContext(TableFieldsContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const isDelegated = confirmedDelegetedUser?.delegated; - const isTableEditable = confirmedDelegetedUser?.priviledges?.match(/Edit Tables/i); - const isTableDeletable = confirmedDelegetedUser?.priviledges?.match(/Delete Tables/i); - const isTableCreatable = confirmedDelegetedUser?.priviledges?.match(/Create Tables/i); - const cloneParentDb = table?.childTable ? table.childTableDbFullName?.replace(new RegExp(/datasquirel_user_\d+_/), "") : null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "All Fields in" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "inline relative", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}`, - className: "p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-600 ml-2 text-primary hover:text-primary_dark relative", - onClick: (e)=>{ - /** @type {HTMLAnchorElement} */ // @ts-ignore - const linkEl = e.target; - if (linkEl.closest(".copy-slug-span")) { - e.preventDefault(); - } - }, - children: [ - table.tableFullName, - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "absolute -top-4 -right-4", - children: /*#__PURE__*/ jsx_runtime_.jsx(CopySlug/* default */.Z, { - slugText: table.tableName, - justIcon: true - }) - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "ml-2", - children: "Table" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/tables/${table.tableName}/entries/add-entry`, - className: "button flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New Table Entry" - }) - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - confirmedDelegetedUser: query?.delegated, - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneTableBanner/* default */.Z, { - table: table, - database: database, - user: user - }), - /*#__PURE__*/ jsx_runtime_.jsx(TableFields/* default */.Z, { - user: user, - tableFields: tableFields, - setTableFields: setTableFields, - setTargetField: setTargetField, - refreshFieldsListRef: refreshFieldsListRef, - updateTable: true, - updateTableAfterFieldsUpdateFunction: updateTableAfterFieldsUpdateFunction, - database: database, - confirmedDelegetedUser: confirmedDelegetedUser, - query: query, - table: table - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/updateTableAfterFieldsUpdateFunctionExt.js -var updateTableAfterFieldsUpdateFunctionExt = __webpack_require__(8382); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2317); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./functions/backend/grabTableSchemaData.js -var grabTableSchemaData = __webpack_require__(7809); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").FieldsContextType} */ // @ts-ignore -const init = {}; -const TableFieldsContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function TableFieldsPage({ user , database , table , dbSchemaData , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${table.tableFullName} Table | Datasquirel`; - const pageDescription = "Single Table"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ tableFields: import("@/package-shared/types").DSQL_FieldSchemaType[], setTableFields: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>> ]} */ // @ts-ignore - const [tableFields, setTableFields] = external_react_default().useState(table.fields); - /** @type {[ targetField: import("@/package-shared/types").DSQL_FieldSchemaType | null, setTargetField: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType | null>> ]} */ // @ts-ignore - const [targetField, setTargetField] = external_react_default().useState(null); - /** @type {React.MutableRefObject<React.Dispatch<React.SetStateAction<number>> | undefined>} */ const refreshFieldsListRef = external_react_default().useRef(); - // const targetFieldIndex = targetField ? tableFields.findIndex((field) => field.fieldName === targetField.fieldName) : 1; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * - * @param {React.Dispatch<React.SetStateAction<boolean>>} [setLoading] - */ function updateTableAfterFieldsUpdateFunction(setLoading) { - (0,updateTableAfterFieldsUpdateFunctionExt/* default */.Z)({ - query, - table, - database, - dbSchemaData, - tableFields, - tableIndexes: table.indexes, - setLoading - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(TableFieldsContext.Provider, { - value: { - user, - database, - table, - dbSchemaData, - targetField, - setTargetField, - refreshFieldsListRef, - tableFields, - setTableFields, - updateTableAfterFieldsUpdateFunction, - query, - confirmedDelegetedUser - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(TableFieldsContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DeleteTableConfirmationPopup/* default */.Z, { - database: database - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - try { - /** - * Check delegated user token - * - * @description Check delegated user token - */ const data = await (0,grabTableSchemaData/* default */.Z)({ - req, - query, - user - }); - if (!data || !data?.table) { - throw new Error("Data Fetching Error!"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - ...data - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError_default()({ - component: "fields-page-component/getServerSideProps/catch-error", - message: error.message, - user: user - }); - return { - // redirect: { - // destination: "/login", - // permanent: false - // }, - props: { - user: user, - database: null, - table: null - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 4287: -/***/ ((module) => { - -module.exports = require("gsap"); - -/***/ }), - -/***/ 2700: -/***/ ((module) => { - -module.exports = require("gsap/Flip"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,8682,2317,1206,5116,8345,4986,9594,8264,9471,9967,464,8515,3314,4893], () => (__webpack_exec__(325))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},90378:(e,t,r)=>{r(29021);let s=r(89545),a=r(22373),l=r(67216),i=r(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:n}){let o;let d=!!r?.match(/^datasquirel$/),u=d?l:i;try{o=e&&t&&Array.isArray(t)&&t[0]?d?await u(e,t):await u({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):d?await u(e):await u({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&n)try{let e=o;return await s({unparsedResults:e,tableSchema:n})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),l=r(31976),i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:l()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:n}){try{return new Promise((o,d)=>{let u=!!e?.match(/full.access|^fa$/i);try{function c(e){i.end(),o(JSON.parse(JSON.stringify(e)))}function p(e){i.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:n,sql:e.sql})}i=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:l()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:l()}}),n&&Array.isArray(n)&&n[0]?i.query(r,n).then(c).catch(p):i.query(r).then(c).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},48292:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{TableFieldsContext:()=>S,default:()=>f,getServerSideProps:()=>_});var a=r(8732),l=r(82015),i=r.n(l),n=r(20048),o=r.n(n),d=r(95222),u=r(73972),c=r(64098),p=r(59844),m=r(94933),b=r(68942),x=r.n(b),g=r(92728),h=e([c,p]);[c,p]=h.then?(await h)():h;let S=i().createContext({});function f({user:e,database:t,table:r,dbSchemaData:s,query:l,confirmedDelegetedUser:n}){let o=`${r.tableFullName} Table | Datasquirel`,b=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:o}),(0,a.jsx)("meta",{name:"description",content:"Single Table"})]}),[x,g]=i().useState(r.fields),[h,f]=i().useState(null),_=i().useRef();return(0,a.jsx)(d.A,{head:b,user:e,extraHeaderContent:(0,a.jsx)(c.A,{database:t,query:l,confirmedDelegetedUser:n,user:e}),children:(0,a.jsxs)(S.Provider,{value:{user:e,database:t,table:r,dbSchemaData:s,targetField:h,setTargetField:f,refreshFieldsListRef:_,tableFields:x,setTableFields:g,updateTableAfterFieldsUpdateFunction:function(e){(0,m.A)({query:l,table:r,database:t,dbSchemaData:s,tableFields:x,tableIndexes:r.indexes,setLoading:e})},query:l,confirmedDelegetedUser:n},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(u.A,{database:t})]})})}async function _({req:e,res:t,query:r}){let s=await o()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};try{let t=await (0,g.A)({req:e,query:r,user:s});if(!t||!t?.table)throw Error("Data Fetching Error!");return{props:{user:s,...t}}}catch(e){return x()({component:"fields-page-component/getServerSideProps/catch-error",message:e.message,user:s}),{props:{user:s,database:null,table:null}}}}s()}catch(e){s(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,7734,8268,7070,5134,3737,9621,4417,7318],()=>r(8409));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json index 2067c79..6ed20f2 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../webpack-runtime.js","../../../../../../../chunks/4017.js","../../../../../../../chunks/8313.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/6729.js","../../../../../../../chunks/5449.js","../../../../../../../chunks/913.js","../../../../../../../chunks/4480.js","../../../../../../../chunks/370.js","../../../../../../../chunks/424.js","../../../../../../../chunks/4858.js","../../../../../../../chunks/5472.js","../../../../../../../chunks/1781.js","../../../../../../../chunks/4941.js","../../../../../../../chunks/7023.js","../../../../../../../chunks/7901.js","../../../../../../../chunks/8682.js","../../../../../../../chunks/2317.js","../../../../../../../chunks/1206.js","../../../../../../../chunks/5116.js","../../../../../../../chunks/8345.js","../../../../../../../chunks/4986.js","../../../../../../../chunks/9594.js","../../../../../../../chunks/8264.js","../../../../../../../chunks/9471.js","../../../../../../../chunks/9967.js","../../../../../../../chunks/464.js","../../../../../../../chunks/8515.js","../../../../../../../chunks/3314.js","../../../../../../../chunks/4893.js","../../../../../../../../package.json","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../package.json","../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../../node_modules/gsap/package.json","../../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../../node_modules/lodash/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1137.js","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4237.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4417.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/6946.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7318.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9216.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9764.js","../../../../../../../chunks/9810.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js index ef410f9..9cf288b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js @@ -1,1310 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3828; -exports.ids = [3828,8105,3316]; -exports.modules = { - -/***/ 3532: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddTableContext": () => (/* binding */ AddTableContext), - "default": () => (/* binding */ AddTable), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/databases/TableFields.jsx + 7 modules -var TableFields = __webpack_require__(4893); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/FormAlertBlock.jsx -var FormAlertBlock = __webpack_require__(7037); -// EXTERNAL MODULE: ./functions/frontend/checkUniqueField.js -var checkUniqueField = __webpack_require__(4105); -;// CONCATENATED MODULE: ./components/admin/databases/NewTableNameSlugAndDescSection.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {React.Dispatch<React.SetStateAction<any>>} props.setAlert - */ function NewTableNameSlugAndDescSection({ setAlert }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database } = external_react_default().useContext(AddTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - * @param {string} value - */ async function checkDuplicateSlug(value) { - const duplicate = await (0,checkUniqueField/* default */.Z)({ - tableName: "user_database_tables", - columnName: "table_slug", - value: value, - dbId: database?.id, - userId: user?.id - }); - return duplicate; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_name", - children: "Name" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "table_name", - id: "table_name", - placeholder: "Table Name", - onInput: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const form = inputEl.closest("form"); - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - if (form) { - form["table_slug"].value = inputEl.value.toLowerCase().replace(/ /g, "_").replace(/[^a-zA-Z0-9-_]/g, ""); - let slugValue = form["table_slug"].value; - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - checkDuplicateSlug(slugValue).then((res)=>{ - if (res.result) { - form?.["table_slug"].classList.add("warning"); - setAlert("Duplicate Table Name"); - } else { - form["table_slug"].classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - } - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_slug", - children: "Slug" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "table_slug", - id: "table_slug", - placeholder: "Table Slug", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const form = inputEl.closest("form"); - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - checkDuplicateSlug(inputEl.value).then((res)=>{ - if (res.result) { - inputEl.classList.add("warning"); - setAlert("Duplicate Table Name"); - } else { - inputEl.classList.remove("warning"); - setAlert(null); - } - }); - }, 300); - }, - required: true - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "table_description", - children: "Description (optional)" - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: "table_description", - id: "table_description", - placeholder: "Short Description of Table" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/NewTableForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let NewTableForm_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function NewTableForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , tableFields , database , setTableFields , setTargetField , refreshFieldsListRef , query , } = external_react_default().useContext(AddTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [alert, setAlert] = external_react_default().useState(null); - const [cloneTable, setCloneTable] = external_react_default().useState(false); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "New Table Information" - }), - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-start gap-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - let table_name_full = formEl["table_name"].value; - let table_name = formEl["table_slug"].value; - /** @type {string|null} */ let table_description = formEl["table_description"]?.value?.match(/./) ? formEl["table_description"].value : null; - const tableObject = { - tableName: table_name, - tableFullName: table_name_full, - fields: tableFields - }; - if (table_description) { - // @ts-ignore - tableObject["description"] = table_description; - } - // submitNewDatabaseForm({ e, setLoading }) - (0,fetchApi/* default */.Z)("/api/addUserTable", { - method: "post", - body: { - dbFullName: database?.db_full_name, - dbId: database?.id, - dbSlug: database?.db_slug, - payload: tableObject - } - }, true).then((res)=>{ - if (res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${database?.db_slug}/tables`; - } else { - window.alert("Table Creation Failed! Please Try again."); - window.location.reload(); - } - }); - }, - id: "create-new-table-form", - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx(FormAlertBlock/* default */.Z, { - message: alert - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewTableNameSlugAndDescSection, { - setAlert: setAlert - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - className: "w-full hidden", - id: "create-new-table-form-submit-button", - children: "Create Table" - }) - ] - }), - user && tableFields && setTableFields && setTargetField && database && refreshFieldsListRef && /*#__PURE__*/ jsx_runtime_.jsx(TableFields/* default */.Z, { - user: user, - tableFields: tableFields, - setTableFields: setTableFields, - setTargetField: setTargetField, - refreshFieldsListRef: refreshFieldsListRef, - database: database, - query: query - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full p-4" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - document.getElementById("create-new-table-form-submit-button")?.click(); - }, - children: "Create Table" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/CloneTableForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let CloneTableForm_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function CloneTableForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , tableFields , database , dbSchemaData , query } = external_react_default().useContext(AddTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!dbSchemaData) { - return null; - } - const clone = query?.clone; - const clone_db = query?.clone_db; - const clone_table = query?.clone_table; - const initialTargetDb = clone_db ? dbSchemaData.find((db)=>db.dbSlug === clone_db) : null; - const initialTargetTables = initialTargetDb ? initialTargetDb.tables : null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [alert, setAlert] = external_react_default().useState(null); - const [loading, setLoading] = external_react_default().useState(false); - const [keepTableUpdated, setKeepTableUpdated] = external_react_default().useState(false); - const [targetDb, setTargetDb] = external_react_default().useState(initialTargetDb || { - ...dbSchemaData[0] - }); - const [tables, setTables] = external_react_default().useState(initialTargetTables || [ - ...dbSchemaData[0].tables - ]); - const [targetTable, setTargetTable] = external_react_default().useState(initialTargetTables ? initialTargetTables.find((table)=>table.tableName === clone_table) : dbSchemaData[0].tables[0] ? { - ...dbSchemaData[0].tables[0] - } : null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0 text-left w-full", - children: "Clone Existing Table" - }), - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-start gap-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - if (!targetTable) { - window.alert("No Table Selected!"); - setLoading(false); - return; - } - /** @type {HTMLFormElement} */ // @ts-ignore - const form = e.target; - let table_name_full = form["table_name"].value; - let table_name = form["table_slug"].value; - let table_description = form["table_description"]?.value?.match(/./) ? form["table_description"].value : null; - const tableObject = { - ...targetTable - }; - tableObject["tableName"] = table_name; - tableObject["tableFullName"] = table_name_full; - if (keepTableUpdated) { - tableObject["childTable"] = true; - tableObject["childTableName"] = targetTable.tableName; - tableObject["childTableDbFullName"] = targetDb.dbFullName; - } - if (table_description) tableObject["tableDescription"] = table_description; - tableObject.fields.forEach((/** @type {any} */ fieldObject)=>{ - delete fieldObject["foreignKey"]; - }); - delete tableObject.childrenTables; - if (database) { - (0,fetchApi/* default */.Z)("/api/addUserTable", { - method: "post", - body: { - dbFullName: database.db_full_name, - dbId: database.id, - dbSlug: database.db_slug, - parentDatabase: targetDb.dbFullName, - parentTable: targetTable.tableName, - payload: tableObject - } - }, true).then((res)=>{ - if (res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/tables`; - } else { - window.alert("Table Clonning Failed! Please Try again."); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - } else { - window.alert("Database record data not found!"); - } - }, - id: "create-new-table-form", - children: [ - alert && /*#__PURE__*/ jsx_runtime_.jsx(FormAlertBlock/* default */.Z, { - message: alert - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "w-full opacity-40" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "text-base m-0 font-semibold text-slate-600", - children: "Enter New Table Info" - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewTableNameSlugAndDescSection, { - setAlert: setAlert - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "w-full opacity-40" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "text-base m-0 font-semibold text-slate-600", - children: "Select Existing Table To Clone" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "select_root_database", - children: "Database" - }), - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "select_root_database", - id: "select_root_database", - onChange: (e)=>{ - const targetDb = dbSchemaData.filter((/** @type {any} */ dbObject)=>dbObject.dbName === e.target.value)[0]; - setTargetDb({ - ...targetDb - }); - setTables([ - ...targetDb.tables - ]); - if (targetDb.tables[0]) { - setTargetTable({ - ...targetDb.tables[0] - }); - } else { - setTargetTable(null); - } - }, - children: dbSchemaData.filter((db)=>!db.childDatabase).map((dbObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: dbObject.dbName, - selected: clone_db && clone_db == dbObject.dbSlug ? true : undefined, - children: dbObject.dbName - }, index + 1); - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-col items-start gap-0.5 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "select_root_table", - children: "Table" - }), - /*#__PURE__*/ jsx_runtime_.jsx("select", { - name: "select_root_table", - id: "select_root_table", - onChange: (e)=>{ - setTargetTable({ - ...tables.filter((table)=>table.tableName === e.target.value)[0] - }); - }, - children: tables && tables[0] ? tables.filter((tbl)=>!tbl.childTable).map((tableObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: tableObject.tableName, - selected: clone_table && clone_table == tableObject.tableName ? true : undefined, - children: tableObject.tableFullName - }, index + 1); - }) : /*#__PURE__*/ jsx_runtime_.jsx("option", { - value: "null", - children: "-- No Tables --" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-1", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "checkbox", - name: "toggle-update-table", - id: "toggle-update-table", - className: "w-4 h-4", - onChange: (e)=>{ - if (e.target.checked) { - setKeepTableUpdated(true); - } else { - setKeepTableUpdated(false); - } - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "toggle-update-table", - className: "text-base text-slate-600 dark:text-slate-100", - children: "Keep New Table Updated?" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm italic text-slate-600 dark:text-slate-400", - children: "By checking this box the new Table stays up to date with changes to the structure of the parent Table" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full p-4" + (loading ? " pointer-events-none opacity-40" : ""), - onClick: (e)=>{ - document.getElementById("create-new-table-form-submit-button")?.click(); - }, - children: "Clone Table" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/AddTableForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let AddTableForm_timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddTableForm(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , query } = external_react_default().useContext(AddTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const clone = query?.clone; - const clone_db = query?.clone_db; - const clone_table = query?.clone_table; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [cloneTable, setCloneTable] = external_react_default().useState(Boolean(clone)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-1 w-full bg-blue-100 dark:bg-blue-100/10 text-white p-2 rounded", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "checkbox", - name: "toggle-clone-table", - id: "toggle-clone-table", - className: "w-5 h-5", - onChange: (e)=>{ - if (e.target.checked) { - setCloneTable(true); - } else { - setCloneTable(false); - } - }, - defaultChecked: cloneTable - }), - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: "toggle-clone-table", - className: "text-base text-slate-600", - children: "Clone Another Table" - }) - ] - }), - cloneTable ? /*#__PURE__*/ jsx_runtime_.jsx(CloneTableForm, {}) : /*#__PURE__*/ jsx_runtime_.jsx(NewTableForm, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/databases/AddTableContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddTableContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , user } = external_react_default().useContext(AddTableContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ if (!database) return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add A New Table To" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}`, - className: "p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-700 ml-2 text-primary hover:text-primary_dark", - children: database.db_name - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex-col", - children: /*#__PURE__*/ jsx_runtime_.jsx(AddTableForm, {}) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/admin/databases/ExistingFieldEdit.jsx -var ExistingFieldEdit = __webpack_require__(9967); -;// CONCATENATED MODULE: ./components/admin/databases/EditFieldPopup.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_FieldSchemaType} props.targetField - * @param {number} props.fieldIndex - * @param {import("@/package-shared/types").DSQL_FieldSchemaType[]} props.tableFields - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>} props.setTableFields - * @param {any} props.refreshFieldsListRef - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").UserType} props.user - */ function EditFieldPopup({ targetField , fieldIndex , tableFields , setTableFields , refreshFieldsListRef , database , user , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(GeneralPopup/* default */.ZP, { - title: "edit-field-popup", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - "Edit", - " ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - className: "bg-slate-100 px-3 py-1.5 rounded-full border border-slate-300 border-solid", - children: targetField?.fieldName - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(ExistingFieldEdit/* default */.Z, { - fieldIndex: fieldIndex, - tableFields: tableFields, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - targetField: targetField, - database: database, - user: user - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(3314); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/tables/add-table.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type { import("@/package-shared/types").AddTableContextType } */ // @ts-ignore -const addTableInit = {}; -const AddTableContext = /*#__PURE__*/ external_react_default().createContext(addTableInit); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType[]} props.tables - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {any} props.query - */ function AddTable({ user , database , tables , dbSchemaData , query , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `Add Table To ${database.db_name}| Datasquirel`; - const pageDescription = "Add a database"; - const defaultFields = __webpack_require__(550); - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {any} */ const tableFieldsState = external_react_default().useState(defaultFields); - /** @type { [import("@/package-shared/types").DSQL_FieldSchemaType[], React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType[]>>] } */ const [tableFields, setTableFields] = tableFieldsState; - /** @type {any} */ const targetFieldState = external_react_default().useState(); - /** @type { [import("@/package-shared/types").DSQL_FieldSchemaType|null, React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_FieldSchemaType|null>>] } */ const [targetField, setTargetField] = targetFieldState; - /** @type {any} */ const pageRefreshState = external_react_default().useState(null); - /** @type { [number|null, React.Dispatch<React.SetStateAction<number>>] } */ const [pageRefresh, setPageRefresh] = pageRefreshState; - /** @type {React.MutableRefObject<React.Dispatch<React.SetStateAction<number>>>} */ // @ts-ignore - const refreshFieldsListRef = external_react_default().useRef(); - const targetFieldIndex = targetField && tableFields ? tableFields.findIndex((field)=>field.fieldName === targetField.fieldName) : 1; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(AddTableContext.Provider, { - value: { - user, - dbSchemaData, - database, - tables, - tableFields, - setTableFields, - targetField, - setTargetField, - pageRefresh, - setPageRefresh, - refreshFieldsListRef, - query - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(AddTableContent, {}), - targetField && tableFields && /*#__PURE__*/ jsx_runtime_.jsx(EditFieldPopup, { - targetField: targetField, - fieldIndex: targetFieldIndex, - tableFields: tableFields, - setTableFields: setTableFields, - refreshFieldsListRef: refreshFieldsListRef, - database: database, - user: user - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const tables = await DB_HANDLER_default()(`SELECT * FROM user_database_tables WHERE user_id='${user.id}' AND db_id='${database[0].id}'`); - const dbSchemaData = (0,grabUserSchemaData/* default */.Z)({ - userId: user.id - }); - if (!dbSchemaData) throw new Error("User schema data not found!"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - tables: tables, - dbSchemaData, - query - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log(error); - return { - redirect: { - destination: "/", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 4287: -/***/ ((module) => { - -module.exports = require("gsap"); - -/***/ }), - -/***/ 2700: -/***/ ((module) => { - -module.exports = require("gsap/Flip"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 550: -/***/ ((module) => { - -module.exports = JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]'); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,2317,9594,9471,7037,9967,464,4105,3314,4893], () => (__webpack_exec__(3532))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6778,e.ids=[636,6778],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,a){return a in t?t[a]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,a)):"function"==typeof t&&"default"===a?t:void 0}}})},95515:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{config:()=>b,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>j,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>f});var s=a(63865),r=a(9455),i=a(30671),d=a(49407),n=a(68268),u=a(85719),o=e([u]);u=(o.then?(await o)():o)[0];let c=(0,i.M)(u,"default"),p=(0,i.M)(u,"getStaticProps"),m=(0,i.M)(u,"getStaticPaths"),x=(0,i.M)(u,"getServerSideProps"),b=(0,i.M)(u,"config"),h=(0,i.M)(u,"reportWebVitals"),f=(0,i.M)(u,"unstable_getStaticProps"),y=(0,i.M)(u,"unstable_getStaticPaths"),g=(0,i.M)(u,"unstable_getStaticParams"),v=(0,i.M)(u,"unstable_getServerProps"),A=(0,i.M)(u,"unstable_getServerSideProps"),j=new s.PagesRouteModule({definition:{kind:r.A.PAGES,page:"/admin/[user_id]/databases/[single]/tables/add-table",pathname:"/admin/[user_id]/databases/[single]/tables/add-table",bundlePath:"",filename:""},components:{App:n.default,Document:d.default},userland:u});l()}catch(e){l(e)}})},59706:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>p});var s=a(8732),r=a(82015),i=a.n(r),d=a(85719),n=a(46437),u=a(58548),o=a(81579);a(77802);var c=e([d,o]);function p(e){let{database:t,user:a}=i().useContext(d.AddTableContext);return t?(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"",children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:[(0,s.jsx)("span",{children:"Add A New Table To"}),(0,s.jsx)("a",{href:`/admin/${a?.id}/databases/${t.db_slug}`,className:"p-2 bg-white dark:bg-slate-800 rounded border border-solid border-slate-200 dark:border-slate-700 ml-2 text-primary hover:text-primary_dark",children:t.db_name})]})]}),(0,s.jsx)(u.A,{user:a})]}),(0,s.jsx)("div",{className:"w-full flex-col",children:(0,s.jsx)(o.A,{})})]}):null}[d,o]=c.then?(await c)():c,l()}catch(e){l(e)}})},81579:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>c});var s=a(8732),r=a(82015),i=a.n(r),d=a(85719),n=a(34702),u=a(54253),o=e([d,n,u]);function c(e){let{database:t,query:a}=i().useContext(d.AddTableContext),l=a?.clone;a?.clone_db,a?.clone_table;let[r,o]=i().useState(!!l);return(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsxs)("div",{className:"gap-1 w-full bg-blue-100 dark:bg-blue-100/10 text-white p-2 rounded",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-clone-table",id:"toggle-clone-table",className:"w-5 h-5",onChange:e=>{e.target.checked?o(!0):o(!1)},defaultChecked:r}),(0,s.jsx)("label",{htmlFor:"toggle-clone-table",className:"text-base text-slate-600",children:"Clone Another Table"})]}),r?(0,s.jsx)(u.A,{}):(0,s.jsx)(n.A,{})]})}[d,n,u]=o.then?(await o)():o,l()}catch(e){l(e)}})},54253:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>m});var s=a(8732),r=a(82015),i=a.n(r),d=a(32415),n=a(85719),u=a(63715),o=a(64535),c=a(15969),p=e([n,c]);function m(e){let{user:t,tableFields:a,database:l,dbSchemaData:r,query:p}=i().useContext(n.AddTableContext);if(!r)return null;p?.clone;let m=p?.clone_db,x=p?.clone_table,b=m?r.find(e=>e.dbSlug===m):null,h=b?b.tables:null,[f,y]=i().useState(null),[g,v]=i().useState(!1),[A,j]=i().useState(!1),[N,w]=i().useState(b||{...r[0]}),[T,_]=i().useState(h||[...r[0].tables]),[S,k]=i().useState(h?h.find(e=>e.tableName===x):r[0].tables[0]?{...r[0].tables[0]}:null);return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Clone Existing Table"}),g&&(0,s.jsx)(d.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{if(e.preventDefault(),v(!0),!S){window.alert("No Table Selected!"),v(!1);return}let a=e.target,s=a.table_name.value,r=a.table_slug.value,i=a.table_description?.value?.match(/./)?a.table_description.value:null,d={...S};d.tableName=r,d.tableFullName=s,A&&(d.childTable=!0,d.childTableName=S.tableName,d.childTableDbFullName=N.dbFullName),i&&(d.tableDescription=i),d.fields.forEach(e=>{delete e.foreignKey}),delete d.childrenTables,l?(0,u.A)("/api/addUserTable",{method:"post",body:{dbFullName:l.db_full_name,dbId:l.id,dbSlug:l.db_slug,parentDatabase:N.dbFullName,parentTable:S.tableName,payload:d}},!0).then(e=>{e.success?window.location.pathname=`/admin/${t?.id}/databases/${l.db_slug}/tables`:window.alert("Table Clonning Failed! Please Try again.")}).finally(()=>{setTimeout(()=>{v(!1)},1e3)}):window.alert("Database record data not found!")},id:"create-new-table-form",children:[f&&(0,s.jsx)(o.A,{message:f}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Enter New Table Info"}),(0,s.jsx)(c.A,{setAlert:y}),(0,s.jsx)("hr",{className:"w-full opacity-40"}),(0,s.jsx)("h3",{className:"text-base m-0 font-semibold text-slate-600",children:"Select Existing Table To Clone"}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_database",children:"Database"}),(0,s.jsx)("select",{name:"select_root_database",id:"select_root_database",onChange:e=>{let t=r.filter(t=>t.dbName===e.target.value)[0];w({...t}),_([...t.tables]),t.tables[0]?k({...t.tables[0]}):k(null)},children:r.filter(e=>!e.childDatabase).map((e,t)=>(0,s.jsx)("option",{value:e.dbName,selected:!!m&&m==e.dbSlug||void 0,children:e.dbName},t+1))})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"select_root_table",children:"Table"}),(0,s.jsx)("select",{name:"select_root_table",id:"select_root_table",onChange:e=>{k({...T.filter(t=>t.tableName===e.target.value)[0]})},children:T&&T[0]?T.filter(e=>!e.childTable).map((e,t)=>(0,s.jsx)("option",{value:e.tableName,selected:!!x&&x==e.tableName||void 0,children:e.tableFullName},t+1)):(0,s.jsx)("option",{value:"null",children:"-- No Tables --"})})]}),(0,s.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,s.jsxs)("div",{className:"gap-1",children:[(0,s.jsx)("input",{type:"checkbox",name:"toggle-update-table",id:"toggle-update-table",className:"w-4 h-4",onChange:e=>{e.target.checked?j(!0):j(!1)}}),(0,s.jsx)("label",{htmlFor:"toggle-update-table",className:"text-base text-slate-600 dark:text-slate-100",children:"Keep New Table Updated?"})]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-400",children:"By checking this box the new Table stays up to date with changes to the structure of the parent Table"})]}),(0,s.jsx)("button",{className:"w-full p-4"+(g?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Clone Table"})]})]})}[n,c]=p.then?(await p)():p,l()}catch(e){l(e)}})},6848:(e,t,a)=>{a.d(t,{A:()=>u});var l=a(8732),s=a(82015),r=a.n(s),i=a(55158),d=a(32415),n=a(64417);function u({targetField:e,fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:u,database:o,user:c}){let[p,m]=r().useState(!1);return(0,l.jsxs)(i.Ay,{title:"edit-field-popup",children:[p&&(0,l.jsx)(d.A,{width:"20px"}),(0,l.jsxs)("span",{children:["Edit"," ",(0,l.jsx)("b",{className:"bg-slate-100 px-3 py-1.5 rounded-full border border-slate-300 border-solid",children:e?.fieldName})]}),(0,l.jsx)(n.A,{fieldIndex:t,tableFields:a,setTableFields:s,refreshFieldsListRef:u,targetField:e,database:o,user:c})]})}},34702:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.d(t,{A:()=>x});var s=a(8732),r=a(82015),i=a.n(r),d=a(32415),n=a(85719),u=a(77802),o=a(63715),c=a(64535),p=a(15969),m=e([n,p]);function x(e){let{user:t,tableFields:a,database:l,setTableFields:r,setTargetField:m,refreshFieldsListRef:x,query:b}=i().useContext(n.AddTableContext),[h,f]=i().useState(null),[y,g]=i().useState(!1),[v,A]=i().useState(!1);return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Table Information"}),v&&(0,s.jsx)(d.A,{}),(0,s.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),A(!0);let s=e.target,r=s.table_name.value,i=s.table_slug.value,d=s.table_description?.value?.match(/./)?s.table_description.value:null,n={tableName:i,tableFullName:r,fields:a};d&&(n.description=d),(0,o.A)("/api/addUserTable",{method:"post",body:{dbFullName:l?.db_full_name,dbId:l?.id,dbSlug:l?.db_slug,payload:n}},!0).then(e=>{e.success?window.location.pathname=`/admin/${t?.id}/databases/${l?.db_slug}/tables`:(window.alert("Table Creation Failed! Please Try again."),window.location.reload())})},id:"create-new-table-form",children:[h&&(0,s.jsx)(c.A,{message:h}),(0,s.jsx)(p.A,{setAlert:f}),(0,s.jsx)("button",{type:"submit",className:"w-full hidden",id:"create-new-table-form-submit-button",children:"Create Table"})]}),t&&a&&r&&m&&l&&x&&(0,s.jsx)(u.A,{user:t,tableFields:a,setTableFields:r,setTargetField:m,refreshFieldsListRef:x,database:l,query:b}),(0,s.jsx)("button",{className:"w-full p-4"+(v?" pointer-events-none opacity-40":""),onClick:e=>{document.getElementById("create-new-table-form-submit-button")?.click()},children:"Create Table"})]})}[n,p]=m.then?(await m)():m,l()}catch(e){l(e)}})},15969:(e,t,a)=>{a.a(e,async(e,l)=>{try{let c;a.d(t,{A:()=>o});var s=a(8732),r=a(82015),i=a.n(r),d=a(27462),n=a(85719),u=e([n]);function o({setAlert:e}){let{user:t,database:a}=i().useContext(n.AddTableContext);async function l(e){return await (0,d.A)({tableName:"user_database_tables",columnName:"table_slug",value:e,dbId:a?.id,userId:t?.id})}return(0,s.jsxs)(i().Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"table_name",id:"table_name",placeholder:"Table Name",onInput:async t=>{let a=t.target,s=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),s){s.table_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let t=s.table_slug.value;window.clearTimeout(c),c=setTimeout(()=>{l(t).then(t=>{t.result?(s?.table_slug.classList.add("warning"),e("Duplicate Table Name")):(s.table_slug.classList.remove("warning"),e(null))})},300)}},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"table_slug",id:"table_slug",placeholder:"Table Slug",onInput:t=>{let a=t.target;a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),e(null)):a.classList.add("warning"),window.clearTimeout(c),c=setTimeout(()=>{l(a.value).then(t=>{t.result?(a.classList.add("warning"),e("Duplicate Table Name")):(a.classList.remove("warning"),e(null))})},300)},required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"table_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"table_description",id:"table_description",placeholder:"Short Description of Table"})]})]})}n=(u.then?(await u)():u)[0],l()}catch(e){l(e)}})},64535:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(8732);function s({message:e}){return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:e})]})}a(82015)},55158:(e,t,a)=>{a.d(t,{Ay:()=>d,PB:()=>n,fs:()=>u});var l=a(8732),s=a(58150),r=a(82015),i=a.n(r);function d({children:e,title:t,data:a,fullPage:r,wrapperClasses:d,closePopupDispatch:n,wrapperStyle:o,noContainer:c}){return r?(0,l.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":t||null,style:o,children:[c?(0,l.jsx)(i().Fragment,{children:e}):(0,l.jsx)("div",{className:"relative w-full h-full z-50","data-data":a?JSON.stringify(a):"",children:e}),(0,l.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{u(),n&&n()},children:(0,l.jsx)(s.A,{color:"white",size:20})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{u(),n&&n()}})]}):(0,l.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[c?(0,l.jsx)(i().Fragment,{children:e}):(0,l.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":a?JSON.stringify(a):"",children:[e,(0,l.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{u(),n&&n()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})})]}),c&&(0,l.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{u(),n&&n()},children:(0,l.jsx)("span",{className:"font-normal",children:"✖"})}),(0,l.jsx)("div",{className:"popup-canceller",onClick:e=>{u(),n&&n()}})]})}function n(e,t){let a=document.querySelector(`[data-popupid='${e}']`);a&&(a.style.display="flex",t&&t(a))}function u(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},27462:(e,t,a)=>{a.d(t,{A:()=>s}),a(22326);var l=a(63715);async function s({tableName:e,columnName:t,value:a,dbFullName:s,dispatch:r,userId:i,dbId:d}){return await (0,l.A)(`/api/checkDuplicateData?tableName=${e}&type=${t}&value=${a}${s?"&dbFullName="+s:""}${i?"&userId="+i:""}${d?"&dbId="+d:""}`)}},42178:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(30887)),r=a(8732);t.A=(0,s.default)((0,r.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(30887)),r=a(8732);t.A=(0,s.default)([(0,r.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},48987:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(30887)),r=a(8732);t.A=(0,s.default)([(0,r.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(30887)),r=a(8732);t.A=(0,s.default)([(0,r.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,r.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,r.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,r.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,r.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(30887)),r=a(8732);t.A=(0,s.default)([(0,r.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},92441:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},85719:(e,t,a)=>{a.a(e,async(e,l)=>{try{a.r(t),a.d(t,{AddTableContext:()=>g,default:()=>f,getServerSideProps:()=>y});var s=a(8732),r=a(82015),i=a.n(r),d=a(95222),n=a(20048),u=a.n(n),o=a(59706),c=a(6848),p=a(64098),m=a(67216),x=a.n(m),b=a(43479),h=e([o,p]);[o,p]=h.then?(await h)():h;let g=i().createContext({});function f({user:e,database:t,tables:l,dbSchemaData:r,query:n}){let u=`Add Table To ${t.db_name}| Datasquirel`,m=a(6454),x=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:u}),(0,s.jsx)("meta",{name:"description",content:"Add a database"})]}),[b,h]=i().useState(m),[f,y]=i().useState(),[v,A]=i().useState(null),j=i().useRef(),N=f&&b?b.findIndex(e=>e.fieldName===f.fieldName):1;return(0,s.jsx)(d.A,{head:x,user:e,extraHeaderContent:(0,s.jsx)(p.A,{database:t,query:n,user:e}),children:(0,s.jsxs)(g.Provider,{value:{user:e,dbSchemaData:r,database:t,tables:l,tableFields:b,setTableFields:h,targetField:f,setTargetField:y,pageRefresh:v,setPageRefresh:A,refreshFieldsListRef:j,query:n},children:[(0,s.jsx)(o.A,{}),f&&b&&(0,s.jsx)(c.A,{targetField:f,fieldIndex:N,tableFields:b,setTableFields:h,refreshFieldsListRef:j,database:t,user:e})]})})}async function y({req:e,res:t,query:a}){try{let l=await u()(e,t);if(!l?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let s=await x()(`SELECT * FROM user_databases WHERE user_id='${l.id}' AND db_slug='${a.single}'`);if(!s||!s[0])return{redirect:{destination:`/admin/${l?.id}/databases`,permanent:!1}};let r=await x()(`SELECT * FROM user_database_tables WHERE user_id='${l.id}' AND db_id='${s[0].id}'`),i=(0,b.A)({userId:l.id});if(!i)throw Error("User schema data not found!");return{props:{user:l,database:s[0],tables:r,dbSchemaData:i,query:a}}}catch(e){return console.log(e),{redirect:{destination:"/",permanent:!1}}}}l()}catch(e){l(e)}})},9455:(e,t)=>{var a;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return a}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(a||(a={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},80255:e=>{e.exports=require("gsap")},43191:e=>{e.exports=require("gsap/Flip")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},6454:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var a=e=>t(t.s=e),l=t.X(0,[9764,883,8268,7070,5134,3737,4417,7318],()=>a(95515));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json index 09e126b..8c1248c 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/tables/add-table.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/4941.js","../../../../../../chunks/7901.js","../../../../../../chunks/2317.js","../../../../../../chunks/9594.js","../../../../../../chunks/9471.js","../../../../../../chunks/7037.js","../../../../../../chunks/9967.js","../../../../../../chunks/464.js","../../../../../../chunks/4105.js","../../../../../../chunks/3314.js","../../../../../../chunks/4893.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../jsonData/dbSchemas/defaultFields.json","../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../package.json","../../../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../../../jsonData/dbSchemas/defaultFields.json","../../../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/gsap/Flip.js","../../../../../../../../node_modules/gsap/dist/gsap.js","../../../../../../../../node_modules/gsap/package.json","../../../../../../../../node_modules/gsap/utils/matrix.js","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/lodash/lodash.js","../../../../../../../../node_modules/lodash/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/client.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js index 008166a..6e0de4e 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js @@ -1,798 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6153; -exports.ids = [6153,8105,133,4135]; -exports.modules = { +"use strict";(()=>{var e={};e.id=9974,e.ids=[636,9974],e.modules={74468:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{config:()=>g,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>p,getStaticProps:()=>m,reportWebVitals:()=>b,routeModule:()=>j,unstable_getServerProps:()=>f,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>h});var a=t(63865),i=t(9455),n=t(30671),l=t(49407),o=t(68268),u=t(53702),d=e([u]);u=(d.then?(await d)():d)[0];let c=(0,n.M)(u,"default"),m=(0,n.M)(u,"getStaticProps"),p=(0,n.M)(u,"getStaticPaths"),x=(0,n.M)(u,"getServerSideProps"),g=(0,n.M)(u,"config"),b=(0,n.M)(u,"reportWebVitals"),h=(0,n.M)(u,"unstable_getStaticProps"),_=(0,n.M)(u,"unstable_getStaticPaths"),S=(0,n.M)(u,"unstable_getStaticParams"),f=(0,n.M)(u,"unstable_getServerProps"),y=(0,n.M)(u,"unstable_getServerSideProps"),j=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users",pathname:"/admin/[user_id]/databases/[single]/users",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:u});r()}catch(e){r(e)}})},25969:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.d(s,{A:()=>g});var a=t(8732),i=t(82015),n=t.n(i),l=t(53702),o=t(58548),u=t(74504),d=t(86571),c=t(46437),m=t(62506),p=t(59621),x=e([l,p]);function g(e){let{user:s,users:t,table:r,setTargetUser:i,database:x}=n().useContext(l.UsersContext),[g,b]=n().useState(!1);return(0,a.jsxs)(n().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(c.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Users in ",x.db_name]})]}),r?.tableName&&(0,a.jsxs)(m.A,{children:[(0,a.jsxs)("a",{href:`/admin/${s?.id}/databases/${x.db_slug}/users/add-user`,className:"gap-2 button",children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New User"})]}),(0,a.jsx)("a",{href:`/admin/${s?.id}/databases/${x.db_slug}/users/add-social-logins`,className:"gap-2 button outlined",children:(0,a.jsx)("span",{children:"Social Logins"})})]})]}),(0,a.jsx)(o.A,{user:s})]}),x.active_clone?(0,a.jsx)(d.A,{database:x,user:s}):(0,a.jsx)(a.Fragment,{}),x.remote_connected?(0,a.jsx)(p.p,{database:x}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:(0,a.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,a.jsx)(u.A,{setTargetUser:i,user:s,users:t,table:r,database:x})})})]})}[l,p]=x.then?(await x)():x,r()}catch(e){r(e)}})},74504:(e,s,t)=>{t.d(s,{A:()=>o});var r=t(8732),a=t(82015),i=t.n(a);t(21347);var n=t(63715),l=t(32415);function o({user:e,table:s,setTargetUser:t,users:a,database:o}){let{active_clone:u,active_clone_parent_db:d,remote_connected:c}=o,[m,p]=i().useState(!1);return(0,r.jsxs)(i().Fragment,{children:[m&&(0,r.jsx)(l.A,{}),a&&a[0]?(0,r.jsx)(i().Fragment,{children:a.map((s,t)=>(0,r.jsxs)("a",{href:`/admin/${e?.id}/databases/${o.db_slug}/users/${s.id}`,className:"card",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,r.jsx)("img",{src:s.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,r.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,r.jsxs)("span",{className:"font-bold",children:[s.first_name," ",s.last_name]}),(0,r.jsx)("span",{className:"text-xs text-slate-500",children:s.date_created?.substring(0,16)})]}),(0,r.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]},t+1))}):s?.tableName?(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("span",{children:"No Users Added Yet"})}):(0,r.jsx)("section",{className:"paper",children:(0,r.jsx)("span",{children:"No User Table Present"})}),!s?.tableName&&!d&&!c&&(0,r.jsxs)("button",{className:"gap-4 py-3",onClick:e=>{window.confirm(`Add users table to ${o.db_name}?`)&&(p(!0),(0,n.A)("/api/addUsersTableToDatabase",{method:"post",body:{dbFullName:o.db_full_name,dbSlug:o.db_slug,dbId:o.id}},!0).then(e=>{console.log(e),e.success&&window.location.reload(),setTimeout(()=>{p(!1)},500)}))},children:[(0,r.jsx)("span",{className:"symbol",children:"+"}),(0,r.jsx)("span",{children:"Add User Table"})]})]})}},21347:(e,s,t)=>{t.d(s,{A:()=>d});var r=t(8732),a=t(82015),i=t.n(a),n=t(55158),l=t(63715),o=t(32415),u=t(62506);function d({userObject:e,setTargetUser:s,paradigm:t}){let a=t?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,d=t?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[c,m]=i().useState(!1);return(0,r.jsxs)("div",{className:"card no-hover items-center "+(t?.match(/invited/)?" green green-bg":" primary"),children:[c&&(0,r.jsx)(o.A,{}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("img",{src:d,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,r.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,r.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,r.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!t?.match(/invited/)&&(0,r.jsx)(i().Fragment,{children:(0,r.jsxs)(u.A,{children:[(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{s(e),setTimeout(()=>{(0,n.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{m(!0),window.confirm("Delete this user")&&(0,l.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{m(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}},31651:(e,s,t)=>{t(81630);let r=t(83007);e.exports=async function({request:e,databaseSlug:s,user:t,query:a}){try{let i=t.id,n=null;if(!a?.delegated)return{dbUserId:i};let l=a.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${l}_${s}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=r(e.cookies[u]);if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===s)return{dbUserId:i=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:i}}catch(e){return null}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,s,t)=>{let r=t(83007),a=t(68743);e.exports=async function({unparsedResults:e,tableSchema:s}){let t=[];try{for(let i=0;i<e.length;i++){let n=e[i],l=Object.keys(n);for(let e=0;e<l.length;e++){let t=l[e],i=s?.fields[e];if(t?.match(a))continue;let o=n[t];("number"==typeof o||o)&&i?.encrypted&&o?.match(/./)&&(n[t]=r(o))}t.push(n)}return t}catch(s){return console.log("ERROR in parseDbResults Function =>",s.message),e}}},22373:(e,s,t)=>{let r=t(29021);e.exports=async function({user:e,message:s,component:t,noMail:a}){let i=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${s} +Component: ${t} +Date: ${Date()} +========================================`;r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let n=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",i),r.appendFileSync("./.tmp/error.log",` -/***/ 4726: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "UsersContext": () => (/* binding */ UsersContext), - "default": () => (/* binding */ Dashboard), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/users/TargetUserPreviewPopup.jsx -var TargetUserPreviewPopup = __webpack_require__(9417); -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/users/UserListCard.jsx -var UserListCard = __webpack_require__(3863); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/users/DbUsersList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>>} [props.setTargetUser] - * @param {import("@/package-shared/types").MYSQL_user_users_table_def[]} props.users - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - */ function DbUsersList({ user , table , setTargetUser , users , database , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const { active_clone , active_clone_parent_db , remote_connected } = database; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - users && users[0] ? /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: users.map((userObject, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users/${userObject.id}`, - className: "card", - onClick: (e)=>{ - // @ts-ignore - if (e.target.closest("button")) return e.preventDefault(); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: userObject.image_thumbnail, - alt: "", - className: "w-10 h-10 rounded-full object-cover bg-slate-200" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-1", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "font-bold", - children: [ - userObject.first_name, - " ", - userObject.last_name - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs text-slate-500", - children: userObject.date_created?.substring(0, 16) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ml-auto outlined gray pointer-events-none", - children: "Edit User" - }) - ] - }, index + 1); - }) - }) : table?.tableName ? /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Users Added Yet" - }) - }) : /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No User Table Present" - }) - }), - !table?.tableName && !active_clone_parent_db && !remote_connected && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "gap-4 py-3", - onClick: (e)=>{ - if (window.confirm(`Add users table to ${database.db_name}?`)) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/addUsersTableToDatabase", { - method: "post", - body: { - dbFullName: database.db_full_name, - dbSlug: database.db_slug, - dbId: database.id - } - }, true).then((res)=>{ - console.log(res); - if (res.success) { - window.location.reload(); - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - } - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add User Table" - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ActiveCloneDbBanner.jsx -var ActiveCloneDbBanner = __webpack_require__(4986); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: ./components/admin/databases/DatabasesTablesList.jsx -var DatabasesTablesList = __webpack_require__(8264); -;// CONCATENATED MODULE: ./components/admin/users/DbUsersContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DbUsersContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , users , table , setTargetUser , database } = external_react_default().useContext(UsersContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Users in ", - database.db_name - ] - }) - ] - }), - table?.tableName && /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users/add-user`, - className: "gap-2 button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New User" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: `/admin/${user?.id}/databases/${database.db_slug}/users/add-social-logins`, - className: "gap-2 button outlined", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Social Logins" - }) - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - database.active_clone ? /*#__PURE__*/ jsx_runtime_.jsx(ActiveCloneDbBanner/* default */.Z, { - database: database, - user: user - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - database.remote_connected ? /*#__PURE__*/ jsx_runtime_.jsx(DatabasesTablesList/* ConnectedDatabaseBanner */.w, { - database: database - }) : /*#__PURE__*/ jsx_runtime_.jsx(jsx_runtime_.Fragment, {}), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full grid grid-cols-1 items-start justify-start", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-stretch justify-start", - children: /*#__PURE__*/ jsx_runtime_.jsx(DbUsersList, { - setTargetUser: setTargetUser, - user: user, - users: users, - table: table, - database: database - }) - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/users/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").UserUsersContextType} */ // @ts-ignore -const init = {}; -const UsersContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {import("@/package-shared/types").MYSQL_user_users_table_def[]} props.users - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function Dashboard({ user , database , table , dbSchemaData , users , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Users | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [newUser, setNewUser] = external_react_default().useState(null); - /** @type {[ targetUser: import("@/package-shared/types").MYSQL_user_users_table_def, setTargetUser: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>> ]} */ // @ts-ignore - const [targetUser, setTargetUser] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(UsersContext.Provider, { - value: { - user, - users, - targetUser, - setTargetUser, - database, - table, - dbSchemaData, - query, - confirmedDelegetedUser - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(DbUsersContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TargetUserPreviewPopup/* default */.Z, { - targetUser: targetUser, - user: user, - setTargetUser: setTargetUser - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - // @ts-ignore - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - throw new Error("No Db Object Found!"); - } - const { dbUserId , rootUserId } = dbUserDataObj; - const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === "users")[0]; - const users = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM users LIMIT 20`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - table: targetTable ? targetTable : {}, - dbSchemaData: dbSchemaData, - users: users?.error ? [] : users, - query, - confirmedDelegetedUser - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - console.log("Db Users Error =>", error.message); - return { - redirect: { - destination: `/admin`, - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 1522: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTableTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 3851: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TableViewTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,4114,8682,1206,5116,8345,4986,8264,9486,9417,3863], () => (__webpack_exec__(4726))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${n}`)}},90378:(e,s,t)=>{t(29021);let r=t(89545),a=t(22373),i=t(67216),n=t(1231);e.exports=async function({queryString:e,queryValuesArray:s,database:t,tableSchema:l}){let o;let u=!!t?.match(/^datasquirel$/),d=u?i:n;try{o=e&&s&&Array.isArray(s)&&s[0]?u?await d(e,s):await d({paradigm:"Full Access",database:t,queryString:e,queryValues:s}):u?await d(e):await d({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&l)try{let e=o;return await r({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,s,t)=>{let r=t(29021);t(33873);let a=t(9973),i=t(31976),n=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:i()}});e.exports=function({paradigm:e,database:s,queryString:t,queryValues:l}){try{return new Promise((o,u)=>{let d=!!e?.match(/full.access|^fa$/i);try{function c(e){n.end(),o(JSON.parse(JSON.stringify(e)))}function m(e){n.end(),o({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}n=d?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:s,ssl:i()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:s,ssl:i()}}),l&&Array.isArray(l)&&l[0]?n.query(t,l).then(c).catch(m):n.query(t).then(c).catch(m)}catch(e){r.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},53702:(e,s,t)=>{t.a(e,async(e,r)=>{try{t.r(s),t.d(s,{UsersContext:()=>v,default:()=>f,getServerSideProps:()=>y});var a=t(8732),i=t(82015),n=t.n(i),l=t(95222),o=t(20048),u=t.n(o),d=t(84312),c=t(90378),m=t.n(c),p=t(25969),x=t(64098),g=t(31651),b=t.n(g),h=t(67216),_=t.n(h),S=e([p,x]);[p,x]=S.then?(await S)():S;let j=t(29021),v=n().createContext({});function f({user:e,database:s,table:t,dbSchemaData:r,users:i,query:o,confirmedDelegetedUser:u}){let c=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Users | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[m,g]=n().useState(null),[b,h]=n().useState(null);return(0,a.jsx)(l.A,{head:c,user:e,extraHeaderContent:(0,a.jsx)(x.A,{database:s,query:o,confirmedDelegetedUser:u,user:e}),children:(0,a.jsxs)(v.Provider,{value:{user:e,users:i,targetUser:b,setTargetUser:h,database:s,table:t,dbSchemaData:r,query:o,confirmedDelegetedUser:u},children:[(0,a.jsx)(p.A,{}),(0,a.jsx)(d.A,{targetUser:b,user:e,setTargetUser:h})]})})}async function y({req:e,res:s,query:t}){try{let r=await u()(e,s);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await b()({request:e,user:r,databaseSlug:t.single,query:t});if(!a)throw Error("No Db Object Found!");let{dbUserId:i,rootUserId:n}=a,l=await _()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${t.single}'`);if(!l||!l[0])return{redirect:{destination:`/admin/${r?.id}/databases`,permanent:!1}};let o=JSON.parse(j.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(o.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0],c=await m()({database:l[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:d});return{props:{user:r,database:l[0],table:d||{},dbSchemaData:o,users:c?.error?[]:c,query:t,confirmedDelegetedUser:a}}}catch(e){return console.log("Db Users Error =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}r()}catch(e){r(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var s=require("../../../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),r=s.X(0,[9764,883,7734,8268,7070,5134,9621,4312],()=>t(74468));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json index 97124b6..843e158 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/5472.js","../../../../../chunks/1781.js","../../../../../chunks/4941.js","../../../../../chunks/7023.js","../../../../../chunks/4114.js","../../../../../chunks/8682.js","../../../../../chunks/1206.js","../../../../../chunks/5116.js","../../../../../chunks/8345.js","../../../../../chunks/4986.js","../../../../../chunks/8264.js","../../../../../chunks/9486.js","../../../../../chunks/9417.js","../../../../../chunks/3863.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../node_modules/@mui/icons-material/TableViewTwoTone.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../jsonData/userPriviledges.json","../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js index b7d6d65..0b7088f 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js @@ -1,214 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8105; -exports.ids = [8105]; -exports.modules = { - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(7531))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2602,e.ids=[636,2602],e.modules={68126:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>d,default:()=>n,getServerSideProps:()=>c,getStaticPaths:()=>q,getStaticProps:()=>x,reportWebVitals:()=>g,routeModule:()=>M,unstable_getServerProps:()=>y,unstable_getServerSideProps:()=>f,unstable_getStaticParams:()=>b,unstable_getStaticPaths:()=>S,unstable_getStaticProps:()=>P});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(87730),m=e([l]);l=(m.then?(await m)():m)[0];let n=(0,o.M)(l,"default"),x=(0,o.M)(l,"getStaticProps"),q=(0,o.M)(l,"getStaticPaths"),c=(0,o.M)(l,"getServerSideProps"),d=(0,o.M)(l,"config"),g=(0,o.M)(l,"reportWebVitals"),P=(0,o.M)(l,"unstable_getStaticProps"),S=(0,o.M)(l,"unstable_getStaticPaths"),b=(0,o.M)(l,"unstable_getStaticParams"),y=(0,o.M)(l,"unstable_getServerProps"),f=(0,o.M)(l,"unstable_getServerSideProps"),M=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]",pathname:"/admin/[user_id]/databases/[single]/users/[user]",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:l});s()}catch(e){s(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,7070,5134,2332,8370],()=>t(68126));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json index 4f3c567..1befa78 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/4941.js","../../../../../../chunks/7023.js","../../../../../../chunks/8682.js","../../../../../../chunks/1206.js","../../../../../../chunks/5116.js","../../../../../../chunks/6718.js","../../../../../../chunks/2733.js","../../../../../../chunks/7531.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js index 85f1298..f893c11 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js @@ -1,502 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4970; -exports.ids = [4970,8105]; -exports.modules = { - -/***/ 9494: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ DatabaseSingleUserPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./pages/admin/[user_id]/databases/[single]/users/[user]/index.jsx + 1 modules -var _user_ = __webpack_require__(7531); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/users/ChangeDbUserPassword.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - * @param {import("@/package-shared/types").MYSQL_user_users_table_def} props.singleUser - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").UserType} props.user - */ function ChangeDbUserPassword({ singleUser , database , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Change Password For", - " ", - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("u", { - children: [ - singleUser.first_name, - " ", - singleUser.last_name - ] - }) - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex-col items-stretch", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-col items-stretch gap-4", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLInputElement} */ // @ts-ignore - const password = document.getElementById("password"); - /** @type {HTMLInputElement} */ // @ts-ignore - const passwordRepeat = document.getElementById("password-repeat"); - const passwordRegexp = new RegExp(`${password.value}`); - if (!passwordRepeat?.value?.match(passwordRegexp)) { - window.alert("Passwords dont Match!"); - return; - } - if (!window.confirm("change this User's password?")) { - setLoading(false); - return; - } - (0,fetchApi/* default */.Z)("/api/changeDbUserPassword", { - method: "POST", - body: { - userId: singleUser.id, - password: password.value, - dbId: database.id - } - }, true).then((res)=>{ - if (res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/users/${singleUser.id}`; - } - }).catch((/** @type {any} */ error)=>{ - console.log(error.message); - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 2000); - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - id: "password", - name: "password", - type: "password", - placeholder: "New Password", - required: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - id: "password-repeat", - name: "password-repeat", - type: "password", - placeholder: "Repeat New Password", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const password = document.getElementById("password"); - /** @type {HTMLInputElement} */ // @ts-ignore - const passwordRepeat = document.getElementById("password-repeat"); - const passwordRegexp = password?.value ? new RegExp(`${password.value}`) : null; - if (!passwordRegexp) { - return; - } - if (!passwordRepeat?.value?.match(passwordRegexp)) { - passwordRepeat.classList.add("warning"); - } else { - passwordRepeat.classList.remove("warning"); - } - }, - required: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: "Change Password" - }) - ] - }) - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/users/[user]/change-password.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - * @param {import("@/package-shared/types").MYSQL_user_users_table_def} props.singleUser - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function DatabaseSingleUserPage({ user , database , table , dbSchemaData , singleUser , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${singleUser.first_name} ${singleUser.last_name} Users | Datasquirel"`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(ChangeDbUserPassword, { - singleUser: singleUser, - database: database, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ const getServerSideProps = _user_.getServerSideProps; - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,8682,1206,5116,6718,2733,7531], () => (__webpack_exec__(9494))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6377,e.ids=[636,6377],e.modules={50609:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.r(r),s.d(r,{config:()=>g,default:()=>d,getServerSideProps:()=>x,getStaticPaths:()=>c,getStaticProps:()=>m,reportWebVitals:()=>h,routeModule:()=>S,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>q});var i=s(63865),a=s(9455),u=s(30671),o=s(49407),l=s(68268),n=s(65956),p=e([n]);n=(p.then?(await p)():p)[0];let d=(0,u.M)(n,"default"),m=(0,u.M)(n,"getStaticProps"),c=(0,u.M)(n,"getStaticPaths"),x=(0,u.M)(n,"getServerSideProps"),g=(0,u.M)(n,"config"),h=(0,u.M)(n,"reportWebVitals"),q=(0,u.M)(n,"unstable_getStaticProps"),w=(0,u.M)(n,"unstable_getStaticPaths"),f=(0,u.M)(n,"unstable_getStaticParams"),P=(0,u.M)(n,"unstable_getServerProps"),y=(0,u.M)(n,"unstable_getServerSideProps"),S=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/[user]/change-password",pathname:"/admin/[user_id]/databases/[single]/users/[user]/change-password",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:n});t()}catch(e){t(e)}})},91736:(e,r,s)=>{s.d(r,{A:()=>p});var t=s(8732),i=s(82015),a=s.n(i),u=s(58548),o=s(46437),l=s(63715),n=s(32415);function p({singleUser:e,database:r,user:s}){let[i,p]=a().useState(!1);return(0,t.jsxs)(a().Fragment,{children:[i&&(0,t.jsx)(n.A,{width:"20px"}),(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,t.jsxs)("div",{children:[(0,t.jsx)(o.A,{}),(0,t.jsxs)("h1",{className:"text-3xl m-0",children:["Change Password For"," ",(0,t.jsxs)("u",{children:[e.first_name," ",e.last_name]})]})]})}),(0,t.jsx)(u.A,{user:s})]}),(0,t.jsx)("section",{className:"paper",children:(0,t.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,t.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:t=>{t.preventDefault(),p(!0);let i=document.getElementById("password"),a=document.getElementById("password-repeat"),u=RegExp(`${i.value}`);if(!a?.value?.match(u)){window.alert("Passwords dont Match!");return}if(!window.confirm("change this User's password?")){p(!1);return}(0,l.A)("/api/changeDbUserPassword",{method:"POST",body:{userId:e.id,password:i.value,dbId:r.id}},!0).then(t=>{t.success&&(window.location.pathname=`/admin/${s?.id}/databases/${r.db_slug}/users/${e.id}`)}).catch(e=>{console.log(e.message)}).finally(()=>{setTimeout(()=>{p(!1)},2e3)})},children:[(0,t.jsx)("input",{id:"password",name:"password",type:"password",placeholder:"New Password",required:!0}),(0,t.jsx)("input",{id:"password-repeat",name:"password-repeat",type:"password",placeholder:"Repeat New Password",onInput:e=>{let r=document.getElementById("password"),s=document.getElementById("password-repeat"),t=r?.value?RegExp(`${r.value}`):null;t&&(s?.value?.match(t)?s.classList.remove("warning"):s.classList.add("warning"))},required:!0}),(0,t.jsx)("button",{children:"Change Password"})]})})})]})}},65956:(e,r,s)=>{s.a(e,async(e,t)=>{try{s.r(r),s.d(r,{default:()=>p,getServerSideProps:()=>d});var i=s(8732);s(82015);var a=s(95222),u=s(64098),o=s(87730),l=s(91736),n=e([u,o]);function p({user:e,database:r,table:s,dbSchemaData:t,singleUser:o,query:n,confirmedDelegetedUser:p}){let d=`${o.first_name} ${o.last_name} Users | Datasquirel"`,m=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:d}),(0,i.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,i.jsx)(a.A,{head:m,user:e,extraHeaderContent:(0,i.jsx)(u.A,{database:r,query:n,confirmedDelegetedUser:p,user:e}),children:(0,i.jsx)(l.A,{singleUser:o,database:r,user:e})})}[u,o]=n.then?(await n)():n;let d=o.getServerSideProps;t()}catch(e){t(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../../../../../../webpack-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[9764,883,8268,7070,5134,2332,8370],()=>s(50609));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json index 2d950ed..6ebb9f9 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/[user]/change-password.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../../webpack-runtime.js","../../../../../../../chunks/4017.js","../../../../../../../chunks/8313.js","../../../../../../../chunks/5264.js","../../../../../../../chunks/6729.js","../../../../../../../chunks/5449.js","../../../../../../../chunks/913.js","../../../../../../../chunks/4480.js","../../../../../../../chunks/370.js","../../../../../../../chunks/424.js","../../../../../../../chunks/4858.js","../../../../../../../chunks/5472.js","../../../../../../../chunks/1781.js","../../../../../../../chunks/4941.js","../../../../../../../chunks/7023.js","../../../../../../../chunks/8682.js","../../../../../../../chunks/1206.js","../../../../../../../chunks/5116.js","../../../../../../../chunks/6718.js","../../../../../../../chunks/2733.js","../../../../../../../chunks/7531.js","../../../../../../../../package.json","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../../node_modules/client-only/index.js","../../../../../../../../../node_modules/client-only/package.json","../../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../../node_modules/clsx/package.json","../../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../../node_modules/inherits/package.json","../../../../../../../../../node_modules/isarray/index.js","../../../../../../../../../node_modules/isarray/package.json","../../../../../../../../../node_modules/mysql/index.js","../../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/mysql/package.json","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../../node_modules/next/head.js","../../../../../../../../../node_modules/next/package.json","../../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../../node_modules/react-is/index.js","../../../../../../../../../node_modules/react-is/package.json","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../../node_modules/react/index.js","../../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../../node_modules/react/package.json","../../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../../node_modules/stylis/package.json","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../../package.json","../../../../../../../../package.json","../../../../../../../chunks/1137.js","../../../../../../../chunks/1223.js","../../../../../../../chunks/1790.js","../../../../../../../chunks/2332.js","../../../../../../../chunks/2414.js","../../../../../../../chunks/2996.js","../../../../../../../chunks/3247.js","../../../../../../../chunks/3468.js","../../../../../../../chunks/3737.js","../../../../../../../chunks/4050.js","../../../../../../../chunks/4237.js","../../../../../../../chunks/4312.js","../../../../../../../chunks/4417.js","../../../../../../../chunks/5134.js","../../../../../../../chunks/5212.js","../../../../../../../chunks/5674.js","../../../../../../../chunks/615.js","../../../../../../../chunks/6154.js","../../../../../../../chunks/6806.js","../../../../../../../chunks/6946.js","../../../../../../../chunks/7070.js","../../../../../../../chunks/7318.js","../../../../../../../chunks/7488.js","../../../../../../../chunks/7665.js","../../../../../../../chunks/7734.js","../../../../../../../chunks/8153.js","../../../../../../../chunks/8268.js","../../../../../../../chunks/8370.js","../../../../../../../chunks/883.js","../../../../../../../chunks/8842.js","../../../../../../../chunks/9205.js","../../../../../../../chunks/9216.js","../../../../../../../chunks/9621.js","../../../../../../../chunks/9764.js","../../../../../../../chunks/9810.js","../../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js index b51e442..79c15b7 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js @@ -1,735 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5668; -exports.ids = [5668]; -exports.modules = { - -/***/ 9053: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddSocialLoginsContext": () => (/* binding */ AddSocialLoginsContext), - "default": () => (/* binding */ AddSocialLogins), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/users/DbCreateDbUserForm.jsx -var DbCreateDbUserForm = __webpack_require__(1926); -// EXTERNAL MODULE: ./components/form/FormRadios.jsx -var FormRadios = __webpack_require__(2348); -// EXTERNAL MODULE: ./components/form/FormCheckboxes.jsx -var FormCheckboxes = __webpack_require__(9486); -;// CONCATENATED MODULE: ./components/admin/users/SocialLoginsContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SocialLoginsContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , socialLogins } = external_react_default().useContext(AddSocialLoginsContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const availablePlatforms = [ - "Github", - "Google" - ]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ paradigm: string | null, setParadigm: React.Dispatch<React.SetStateAction<string | null>> ]} */ // @ts-ignore - const [paradigm, setParadigm] = external_react_default().useState(socialLogins && socialLogins[0]?.paradigm?.match(/personal/i) ? "personal" : "datasquirel"); - const [platforms, setPlatforms] = external_react_default().useState(socialLogins && socialLogins[0] ? socialLogins : []); - const infoText = (()=>{ - if (paradigm?.match(/datasquirel/i)) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - children: [ - "All social media logins on your site will be done using datasquirel credentials. Please note that you ", - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "MUST" - }), - " ", - "add your domain for this to work." - ] - }); - } - if (paradigm?.match(/personal/i)) { - return /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided." - }); - } - return ""; - })(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Add Social Logins to ", - database.db_name - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - screen: true - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormRadios/* default */.Z, { - radioValues: [ - { - title: "Use Datasquirel Credentials", - payload: "datasquirel", - default: paradigm?.match(/datasquirel/i) ? true : false - }, - { - title: "Use Your Own Credentials", - payload: "personal", - default: paradigm?.match(/personal/i) ? true : false - }, - ], - flexRow: true, - name: "select-paradigm", - onChangeHandler: (e)=>{ - setParadigm(null); - setTimeout(()=>{ - setParadigm(e.target.value); - }, 500); - } - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "max-w-2xl w-full flex-col items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "info gray font-normal mb-4", - children: infoText - }), - paradigm ? /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - checkBoxValues: availablePlatforms.map((platform, index)=>{ - const existingLoginDetails = socialLogins?.filter((scObj)=>scObj.platform === platform.toLocaleLowerCase()); - const targetExistingSocial = existingLoginDetails && existingLoginDetails[0] ? existingLoginDetails[0] : null; - return { - title: platform, - payload: platform.toLowerCase(), - className: "w-full", - jsx: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card grow", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: `/images/${platform.toLowerCase()}.png`, - alt: `${platform} icon`, - className: "avatar small" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "content", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "title", - children: platform - }), - paradigm?.match(/personal/) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: `${platform.toLowerCase()}-client-id`, - id: `${platform.toLowerCase()}-client-id`, - placeholder: "Client Id", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let targetPlatformFilterArray = platforms.filter((obj)=>obj.platform === platform.toLocaleLowerCase()); - if (targetPlatformFilterArray && targetPlatformFilterArray[0]) { - targetPlatformFilterArray[0].clientId = inputEl.value; - } - }, - defaultValue: targetExistingSocial?.clientId ? targetExistingSocial.clientId : undefined - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: `${platform.toLowerCase()}-client-secret`, - id: `${platform.toLowerCase()}-client-secret`, - placeholder: "Client Secret", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let targetPlatformFilterArray = platforms.filter((obj)=>obj.platform === platform.toLocaleLowerCase()); - if (targetPlatformFilterArray && targetPlatformFilterArray[0]) { - targetPlatformFilterArray[0].clientSecret = inputEl.value; - } - }, - defaultValue: targetExistingSocial?.clientSecret ? targetExistingSocial.clientSecret : undefined - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: `${platform.toLowerCase()}-callback-url`, - id: `${platform.toLowerCase()}-callback-url`, - placeholder: "Callback URL", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let targetPlatformFilterArray = platforms.filter((obj)=>obj.platform === platform.toLocaleLowerCase()); - if (targetPlatformFilterArray && targetPlatformFilterArray[0]) { - targetPlatformFilterArray[0].callbackUrl = inputEl.value; - } - }, - defaultValue: targetExistingSocial?.callbackUrl ? targetExistingSocial.callbackUrl : undefined - }) - ] - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: `${platform.toLowerCase()}-domain-1`, - id: `${platform.toLowerCase()}-domain-1`, - placeholder: "Domain 1", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let targetPlatformFilterArray = platforms.filter((obj)=>obj.platform === platform.toLocaleLowerCase()); - if (targetPlatformFilterArray && targetPlatformFilterArray[0]) { - targetPlatformFilterArray[0].domain1 = inputEl.value; - } - }, - defaultValue: targetExistingSocial?.domain1 ? targetExistingSocial.domain1 : undefined - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: `${platform.toLowerCase()}-domain-2`, - id: `${platform.toLowerCase()}-domain-2`, - placeholder: "Domain 2", - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - let targetPlatformFilterArray = platforms.filter((obj)=>obj.platform === platform.toLocaleLowerCase()); - if (targetPlatformFilterArray && targetPlatformFilterArray[0]) { - targetPlatformFilterArray[0].domain2 = inputEl.value; - } - }, - defaultValue: targetExistingSocial?.domain2 ? targetExistingSocial.domain2 : undefined - }) - ] - }) - ] - }) - ] - }), - onChangeHandler: (e)=>{ - const clientId = e.target.parentNode.querySelector(`input[name='${platform.toLowerCase()}-client-id']`)?.value; - const clientSecret = e.target.parentNode.querySelector(`input[name='${platform.toLowerCase()}-client-secret']`)?.value; - const callbackUrl = e.target.parentNode.querySelector(`input[name='${platform.toLowerCase()}-callback-url']`)?.value; - const domain1 = e.target.parentNode.querySelector(`input[name='${platform.toLowerCase()}-domain-1']`)?.value; - const domain2 = e.target.parentNode.querySelector(`input[name='${platform.toLowerCase()}-domain2']`)?.value; - const platformObject = { - platform: platform.toLowerCase(), - clientId: clientId, - clientSecret: clientSecret, - callbackUrl: callbackUrl, - domain1: domain1, - domain2: domain2 - }; - if (e.target.checked) { - setPlatforms((prev)=>[ - ...prev, - platformObject, - ]); - } else { - setPlatforms((prev)=>prev.filter((obj)=>obj.platform !== platformObject.platform)); - } - }, - default: targetExistingSocial ? true : false - }; - }), - name: "social-platforms", - className: "w-full" - }) : /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full p-10", - children: /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative", - width: "20px" - }) - }), - platforms && platforms[0] && /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "w-full more-padding", - onClick: (e)=>{ - setLoading(true); - const fetchObject = { - dbFullName: database.db_full_name, - dbSlug: database.db_slug, - paradigm: paradigm, - platforms: platforms - }; - (0,fetchApi/* default */.Z)("/api/addSocialLogin", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (res?.success) { - window.location.reload(); - } else { - window.alert(res.msg); - } - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - }, - children: "Add Social Logins" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/users/add-social-logins.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AddSocialLoginContextType} */ // @ts-ignore -const init = {}; -const AddSocialLoginsContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {any} props.query - * @param {import("@/package-shared/types").SocialLoginObjectType[]} props.socialLogins - */ function AddSocialLogins({ user , database , query , socialLogins , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Social Logins | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(AddSocialLoginsContext.Provider, { - value: { - user, - database, - query, - socialLogins - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(SocialLoginsContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - try { - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`, "utf-8")); - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const userEnvFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/env.json`; - if (!fs.existsSync(userEnvFilePath)) { - // const envPreset = fs.readFileSync(`./jsonData/dbSchemas/presets/env.json`, "utf-8"); - fs.writeFileSync(userEnvFilePath, "{}", "utf-8"); - } - /** @type {import("@/package-shared/types").SocialLoginObjectType} */ const socialLogins = JSON.parse(fs.readFileSync(userEnvFilePath, "utf-8"))[database[0].db_full_name]?.social; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - socialLogins: socialLogins ? socialLogins : [], - query - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log("Error in 'add-social-logins; page component =>", error.message); - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7901,6718,9486,7037,2733,1926,2348], () => (__webpack_exec__(9053))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=201,e.ids=[201,636],e.modules={3589:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{config:()=>g,default:()=>c,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>p,reportWebVitals:()=>h,routeModule:()=>y,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>q,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>f});var s=r(63865),i=r(9455),l=r(30671),o=r(49407),n=r(68268),u=r(85012),d=e([u]);u=(d.then?(await d)():d)[0];let c=(0,l.M)(u,"default"),p=(0,l.M)(u,"getStaticProps"),m=(0,l.M)(u,"getStaticPaths"),x=(0,l.M)(u,"getServerSideProps"),g=(0,l.M)(u,"config"),h=(0,l.M)(u,"reportWebVitals"),f=(0,l.M)(u,"unstable_getStaticProps"),v=(0,l.M)(u,"unstable_getStaticPaths"),w=(0,l.M)(u,"unstable_getStaticParams"),S=(0,l.M)(u,"unstable_getServerProps"),q=(0,l.M)(u,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-social-logins",pathname:"/admin/[user_id]/databases/[single]/users/add-social-logins",bundlePath:"",filename:""},components:{App:n.default,Document:o.default},userland:u});a()}catch(e){a(e)}})},26860:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{A:()=>g});var s=r(8732),i=r(82015),l=r.n(i),o=r(58548),n=r(46437),u=r(63715),d=r(32415);r(84851);var c=r(85012),p=r(43656),m=r(58403),x=e([c]);function g(e){let{user:t,database:r,socialLogins:a}=l().useContext(c.AddSocialLoginsContext),[i,x]=l().useState(!1),[g,h]=l().useState(a&&a[0]?.paradigm?.match(/personal/i)?"personal":"datasquirel"),[f,v]=l().useState(a&&a[0]?a:[]),w=g?.match(/datasquirel/i)?(0,s.jsxs)("span",{children:["All social media logins on your site will be done using datasquirel credentials. Please note that you ",(0,s.jsx)("b",{children:"MUST"})," ","add your domain for this to work."]}):g?.match(/personal/i)?(0,s.jsx)("span",{children:"You need to setup your credentials in respective providers and put those credentials in the appropriate fields provided."}):"";return(0,s.jsxs)(l().Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,s.jsxs)("div",{children:[(0,s.jsx)(n.A,{}),(0,s.jsxs)("h1",{className:"text-3xl m-0",children:["Add Social Logins to ",r.db_name]})]})}),(0,s.jsx)(o.A,{user:t})]}),(0,s.jsxs)("section",{className:"paper",children:[i&&(0,s.jsx)(d.A,{screen:!0}),(0,s.jsx)(p.A,{radioValues:[{title:"Use Datasquirel Credentials",payload:"datasquirel",default:!!g?.match(/datasquirel/i)},{title:"Use Your Own Credentials",payload:"personal",default:!!g?.match(/personal/i)}],flexRow:!0,name:"select-paradigm",onChangeHandler:e=>{h(null),setTimeout(()=>{h(e.target.value)},500)}}),(0,s.jsxs)("div",{className:"max-w-2xl w-full flex-col items-start",children:[(0,s.jsx)("div",{className:"info gray font-normal mb-4",children:w}),g?(0,s.jsx)(m.A,{checkBoxValues:["Github","Google"].map((e,t)=>{let r=a?.filter(t=>t.platform===e.toLocaleLowerCase()),i=r&&r[0]?r[0]:null;return{title:e,payload:e.toLowerCase(),className:"w-full",jsx:(0,s.jsxs)("div",{className:"card grow",children:[(0,s.jsx)("img",{src:`/images/${e.toLowerCase()}.png`,alt:`${e} icon`,className:"avatar small"}),(0,s.jsxs)("div",{className:"content",children:[(0,s.jsx)("span",{className:"title",children:e}),g?.match(/personal/)?(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-id`,id:`${e.toLowerCase()}-client-id`,placeholder:"Client Id",onInput:t=>{let r=t.target,a=f.filter(t=>t.platform===e.toLocaleLowerCase());a&&a[0]&&(a[0].clientId=r.value)},defaultValue:i?.clientId?i.clientId:void 0}),(0,s.jsx)("input",{type:"text",name:`${e.toLowerCase()}-client-secret`,id:`${e.toLowerCase()}-client-secret`,placeholder:"Client Secret",onInput:t=>{let r=t.target,a=f.filter(t=>t.platform===e.toLocaleLowerCase());a&&a[0]&&(a[0].clientSecret=r.value)},defaultValue:i?.clientSecret?i.clientSecret:void 0}),(0,s.jsx)("input",{type:"text",name:`${e.toLowerCase()}-callback-url`,id:`${e.toLowerCase()}-callback-url`,placeholder:"Callback URL",onInput:t=>{let r=t.target,a=f.filter(t=>t.platform===e.toLocaleLowerCase());a&&a[0]&&(a[0].callbackUrl=r.value)},defaultValue:i?.callbackUrl?i.callbackUrl:void 0})]}):(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-1`,id:`${e.toLowerCase()}-domain-1`,placeholder:"Domain 1",onInput:t=>{let r=t.target,a=f.filter(t=>t.platform===e.toLocaleLowerCase());a&&a[0]&&(a[0].domain1=r.value)},defaultValue:i?.domain1?i.domain1:void 0}),(0,s.jsx)("input",{type:"text",name:`${e.toLowerCase()}-domain-2`,id:`${e.toLowerCase()}-domain-2`,placeholder:"Domain 2",onInput:t=>{let r=t.target,a=f.filter(t=>t.platform===e.toLocaleLowerCase());a&&a[0]&&(a[0].domain2=r.value)},defaultValue:i?.domain2?i.domain2:void 0})]})]})]}),onChangeHandler:t=>{let r=t.target.parentNode.querySelector(`input[name='${e.toLowerCase()}-client-id']`)?.value,a=t.target.parentNode.querySelector(`input[name='${e.toLowerCase()}-client-secret']`)?.value,s=t.target.parentNode.querySelector(`input[name='${e.toLowerCase()}-callback-url']`)?.value,i=t.target.parentNode.querySelector(`input[name='${e.toLowerCase()}-domain-1']`)?.value,l=t.target.parentNode.querySelector(`input[name='${e.toLowerCase()}-domain2']`)?.value,o={platform:e.toLowerCase(),clientId:r,clientSecret:a,callbackUrl:s,domain1:i,domain2:l};t.target.checked?v(e=>[...e,o]):v(e=>e.filter(e=>e.platform!==o.platform))},default:!!i}}),name:"social-platforms",className:"w-full"}):(0,s.jsx)("div",{className:"w-full p-10",children:(0,s.jsx)(d.A,{position:"relative",width:"20px"})}),f&&f[0]&&(0,s.jsx)("button",{className:"w-full more-padding",onClick:e=>{x(!0);let t={dbFullName:r.db_full_name,dbSlug:r.db_slug,paradigm:g,platforms:f};(0,u.A)("/api/addSocialLogin",{method:"post",body:t},!0).then(e=>{e?.success?window.location.reload():window.alert(e.msg),setTimeout(()=>{x(!1)},1e3)})},children:"Add Social Logins"})]})]})]})}c=(x.then?(await x)():x)[0],a()}catch(e){a(e)}})},58403:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({name:e,checkBoxValues:t,setAlert:r,labelColor:s,flexRow:i,baseText:l,smallText:o,className:n}){return(0,a.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(n||""),children:t.map((t,i)=>{let{payload:n,title:u,onChangeHandler:d,fixed:c,jsx:p}=t,m=t.name?`${e}-${t.name}`:n?e+"-"+n:e;return(0,a.jsxs)("div",{className:"flex items-center"+(t.default&&c?" pointer-events-none":"")+(o?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,a.jsx)("input",{className:"m-0"+(o?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:m,id:m,onChange:e=>{r&&r(null),d&&d(e,t)},value:n,style:{minWidth:"20px"}}),p||(0,a.jsx)("label",{htmlFor:m,className:"m-0 "+(s||"text-slate-800 dark:text-white/80")+(l||o?" text-base":" text-lg"),children:u})]},i+1)})})}r(82015)},43656:(e,t,r)=>{r.d(t,{A:()=>s});var a=r(8732);function s({radioValues:e,name:t,onChangeHandler:r,setAlert:s,flexRow:i,labelColor:l,baseText:o,smallText:n,className:u}){try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(u||""),children:e.map((e,i)=>{let{payload:u,title:d,jsx:c}=e,p=!1===u?u:u||d||null;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{className:"m-0"+(o?" w-5 h-5":n?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:t,id:t+"_"+p,onChange:t=>{s&&s(null),e.onChangeHandler?e.onChangeHandler(t):r&&r(t)},value:"string"==typeof p?p:void 0}),c||(0,a.jsx)("label",{htmlFor:t+"_"+p,className:"text-lg m-0 "+(l||"text-slate-800")+(o?" text-base":n?" text-sm":" text-lg"),children:d})]},i+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}r(82015)},85012:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{AddSocialLoginsContext:()=>v,default:()=>g,getServerSideProps:()=>h});var s=r(8732),i=r(82015),l=r.n(i),o=r(95222),n=r(20048),u=r.n(n),d=r(64098),c=r(26860),p=r(67216),m=r.n(p),x=e([d,c]);[d,c]=x.then?(await x)():x;let f=r(29021),v=l().createContext({});function g({user:e,database:t,query:r,socialLogins:a}){let i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:"Social Logins | Datasquirel"}),(0,s.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,s.jsx)(o.A,{head:i,user:e,extraHeaderContent:(0,s.jsx)(d.A,{database:t,query:r,user:e}),children:(0,s.jsx)(v.Provider,{value:{user:e,database:t,query:r,socialLogins:a},children:(0,s.jsx)(c.A,{})})})}async function h({req:e,res:t,query:r}){let a=await u()(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};try{let e=await m()(`SELECT * FROM user_databases WHERE user_id='${a.id}' AND db_slug='${r.single}'`);if(!e||!e[0])return{redirect:{destination:`/admin/${a?.id}/databases`,permanent:!1}};JSON.parse(f.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/main.json`,"utf-8"));let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a.id}/env.json`;f.existsSync(t)||f.writeFileSync(t,"{}","utf-8");let s=JSON.parse(f.readFileSync(t,"utf-8"))[e[0].db_full_name]?.social;return{props:{user:a,database:e[0],socialLogins:s||[],query:r}}}catch(e){return console.log("Error in 'add-social-logins; page component =>",e.message),{redirect:{destination:"/admin",permanent:!1}}}}a()}catch(e){a(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[9764,883,8268,7070,5134,3737,2332,7488],()=>r(3589));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json index 2e10c45..1befa78 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-social-logins.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/4941.js","../../../../../../chunks/7901.js","../../../../../../chunks/6718.js","../../../../../../chunks/9486.js","../../../../../../chunks/7037.js","../../../../../../chunks/2733.js","../../../../../../chunks/1926.js","../../../../../../chunks/2348.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js index e7eaeeb..cd31980 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js @@ -1,639 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5926; -exports.ids = [5926,8105]; -exports.modules = { +"use strict";(()=>{var e={};e.id=9582,e.ids=[636,9582],e.modules={44219:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>S,default:()=>m,getServerSideProps:()=>g,getStaticPaths:()=>p,getStaticProps:()=>c,reportWebVitals:()=>x,routeModule:()=>D,unstable_getServerProps:()=>h,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>b});var a=r(63865),i=r(9455),u=r(30671),l=r(49407),o=r(68268),n=r(12403),d=e([n]);n=(d.then?(await d)():d)[0];let m=(0,u.M)(n,"default"),c=(0,u.M)(n,"getStaticProps"),p=(0,u.M)(n,"getStaticPaths"),g=(0,u.M)(n,"getServerSideProps"),S=(0,u.M)(n,"config"),x=(0,u.M)(n,"reportWebVitals"),b=(0,u.M)(n,"unstable_getStaticProps"),_=(0,u.M)(n,"unstable_getStaticPaths"),f=(0,u.M)(n,"unstable_getStaticParams"),h=(0,u.M)(n,"unstable_getServerProps"),y=(0,u.M)(n,"unstable_getServerSideProps"),D=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/[single]/users/add-user",pathname:"/admin/[user_id]/databases/[single]/users/add-user",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:n});s()}catch(e){s(e)}})},16975:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>g});var a=r(8732),i=r(82015),u=r.n(i),l=r(58548),o=r(46437),n=r(63715),d=r(32415),m=r(84851),c=r(12403),p=e([c]);function g(e){let{user:t,database:s,table:i,query:p,confirmedDelegetedUser:g}=u().useContext(c.AddNewDbUserContext);r(49436);let[S,x]=u().useState("invitation"),[b,_]=u().useState(!1),[f,h]=u().useState(!1),[y,D]=u().useState(["Edit"]),[q,E]=u().useState(s.db_slug),[v,w]=u().useState(null),[A,U]=u().useState(null),[P,R]=u().useState([]),[$,N]=u().useState([]);return(0,a.jsxs)(u().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,a.jsxs)("div",{children:[(0,a.jsx)(o.A,{}),(0,a.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User to ",s.db_name]})]})}),(0,a.jsx)(l.A,{user:t})]}),(0,a.jsxs)("section",{className:"paper",children:[b&&(0,a.jsx)(d.A,{}),(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault(),_(!0);let r=e.target,a=Array.from(r),i={};a.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(i[e.name]=e.value)});let u={payload:i,dbFullName:s.db_full_name,dbId:s.id};(0,n.A)("/api/addDbUser",{method:"post",body:u},!0).then(e=>{e.success?A?(A.imageName=`${q}-user-${e.newUserId}`,A.mimeType="jpeg",delete A.imageBase64Full,(0,n.A)("/api/addUserMedia",{method:"post",body:{media:[A],folder:q.replace(/_/g,"-"),type:"image"}},!0).then(r=>{(0,n.A)("/api/updateDbUser",{method:"post",body:{dbFullName:s.db_full_name,payload:{id:e.newUserId,image:r.mediaData[0].media_url,image_thumbnail:r.mediaData[0].media_thumbnail_url}}},!0).then(e=>{e.success&&(window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users`),setTimeout(()=>{_(!1)},500)})})):window.location.pathname=`/admin/${t?.id}/databases/${s.db_slug}/users`:setTimeout(()=>{_(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,a.jsx)(m.A,{user:t,targetDb:s.db_full_name,database:s,userImage:A,setUserImage:U}),(0,a.jsx)("button",{children:"Add User"})]})]})]})}c=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},31651:(e,t,r)=>{r(81630);let s=r(83007);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let i=r.id,u=null;if(!a?.delegated)return{dbUserId:i};let l=a.dbUserId,o=`${process.env.DSQL_USER_DB_PREFIX}${l}_${t}`,n=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${o}`;try{if(!e.cookies?.[n])throw Error("Cookie not present");let r=s(e.cookies[n]);if(!r)throw Error("Invalid Token");if((u=JSON.parse(r)).databaseSlug===t)return{dbUserId:i=u.rootUserId,rootUserId:u.rootUserId,rootUserName:u.rootUserName,rootUserEmail:u.rootUserEmail,rootUserImage:u.rootUserImage,databaseFullName:u.databaseFullName,databaseSlug:u.databaseSlug,allowedTables:u.allowedTables,priviledges:u.priviledges,database:u.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:i}}catch(e){return null}}},68743:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},89545:(e,t,r)=>{let s=r(83007),a=r(68743);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let i=0;i<e.length;i++){let u=e[i],l=Object.keys(u);for(let e=0;e<l.length;e++){let r=l[e],i=t?.fields[e];if(r?.match(a))continue;let o=u[r];("number"==typeof o||o)&&i?.encrypted&&o?.match(/./)&&(u[r]=s(o))}r.push(u)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},22373:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let i=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let u=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` -/***/ 4437: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddNewDbUserContext": () => (/* binding */ AddNewDbUserContext), - "default": () => (/* binding */ AddUserPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/admin/users/DbCreateDbUserForm.jsx -var DbCreateDbUserForm = __webpack_require__(1926); -;// CONCATENATED MODULE: ./components/admin/users/DbAddNewUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DbAddNewUserContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , database , table , query , confirmedDelegetedUser } = external_react_default().useContext(AddNewDbUserContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userPriviledges = __webpack_require__(9169); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [paradigm, setParadigm] = external_react_default().useState("invitation"); - const [loading, setLoading] = external_react_default().useState(false); - const [allDbSelected, setAllDbSelected] = external_react_default().useState(false); - const [priviledges, setPriviledges] = external_react_default().useState([ - "Edit" - ]); - /** @type {[ targetDb: string, setTargetDb: React.Dispatch<React.SetStateAction<string>> ]} */ // @ts-ignore - const [targetDb, setTargetDb] = external_react_default().useState(database.db_slug); - const [alert, setAlert] = external_react_default().useState(null); - /** @type {[ userImage: any, setUserImage: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [userImage, setUserImage] = external_react_default().useState(null); - const [dbTables, setDbTables] = external_react_default().useState([]); - const [selectedDbTables, setSlectedDbTables] = external_react_default().useState([]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Add A New User to ", - database.db_name - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const form = e.target; - const formFields = Array.from(form); - /** @type {any} */ const formFieldsObject = {}; - formFields.forEach((/** @type {any} */ field)=>{ - if (field.nodeName?.match(/button/i)) return; - if (!field.name || !field.value?.match(/./)) return; - formFieldsObject[field.name] = field.value; - }); - const fetchObject = { - payload: formFieldsObject, - dbFullName: database.db_full_name, - dbId: database.id - }; - (0,fetchApi/* default */.Z)("/api/addDbUser", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (res.success) { - if (userImage) { - userImage["imageName"] = `${targetDb}-user-${res.newUserId}`; - userImage["mimeType"] = "jpeg"; - delete userImage["imageBase64Full"]; - (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - userImage - ], - folder: targetDb.replace(/_/g, "-"), - type: "image" - } - }, true).then((_res)=>{ - (0,fetchApi/* default */.Z)("/api/updateDbUser", { - method: "post", - body: { - dbFullName: database.db_full_name, - payload: { - id: res.newUserId, - image: _res.mediaData[0].media_url, - image_thumbnail: _res.mediaData[0].media_thumbnail_url - } - } - }, true).then((__res)=>{ - if (__res.success) { - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/users`; - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - }); - } else { - window.location.pathname = `/admin/${user?.id}/databases/${database.db_slug}/users`; - } - } else { - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); - }, - className: "w-full flex flex-col items-stretch gap-4", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(DbCreateDbUserForm/* default */.Z, { - user: user, - targetDb: database.db_full_name, - database: database, - userImage: userImage, - setUserImage: setUserImage - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: "Add User" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/functions/backend/varDatabaseDbHandler.js -var varDatabaseDbHandler = __webpack_require__(1206); -var varDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(varDatabaseDbHandler); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(5116); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/databases/[single]/users/add-user.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AddUserUserContextType} */ // @ts-ignore -const init = {}; -const AddNewDbUserContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - * @param {import("@/package-shared/types").DSQL_TableSchemaType} props.table - * @param {any} props.query - * @param {any} props.confirmedDelegetedUser - */ function AddUserPage({ user , database , table , query , confirmedDelegetedUser , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Users | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - extraHeaderContent: /*#__PURE__*/ jsx_runtime_.jsx(ExtraContentDatabase/* default */.Z, { - database: database, - query: query, - confirmedDelegetedUser: confirmedDelegetedUser, - user: user - }), - children: /*#__PURE__*/ jsx_runtime_.jsx(AddNewDbUserContext.Provider, { - value: { - user, - database, - table, - query, - confirmedDelegetedUser - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(DbAddNewUserContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const dbUserData = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - // @ts-ignore - databaseSlug: query.single, - query - }); - const dbUserDataObj = dbUserData; - if (!dbUserDataObj) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const { dbUserId , rootUserId } = dbUserDataObj; - const database = await DB_HANDLER_default()(`SELECT * FROM user_databases WHERE user_id='${dbUserId}' AND db_slug='${query.single}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/databases`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Confirm delegated User - * - * @description Confirm delegated User - */ let confirmedDelegetedUser = dbUserData; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchemaData = JSON.parse(fs.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dbUserId}/main.json`, "utf-8")); - const tables = dbSchemaData.filter((db)=>db.dbFullName === database[0].db_full_name)[0]?.tables; - const targetTable = tables.filter((table)=>table.tableName === "users")[0]; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await varDatabaseDbHandler_default()({ - database: database[0].db_full_name, - queryString: `SELECT * FROM users LIMIT 20`, - tableSchema: targetTable - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - database: database[0], - table: targetTable ? targetTable : {}, - query, - confirmedDelegetedUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9169: -/***/ ((module) => { - -module.exports = JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]'); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4941,7023,7901,8682,1206,5116,6718,7037,2733,1926], () => (__webpack_exec__(4437))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}},90378:(e,t,r)=>{r(29021);let s=r(89545),a=r(22373),i=r(67216),u=r(1231);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:l}){let o;let n=!!r?.match(/^datasquirel$/),d=n?i:u;try{o=e&&t&&Array.isArray(t)&&t[0]?n?await d(e,t):await d({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):n?await d(e):await d({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&l)try{let e=o;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},1231:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),i=r(31976),u=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:i()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:l}){try{return new Promise((o,n)=>{let d=!!e?.match(/full.access|^fa$/i);try{function m(e){u.end(),o(JSON.parse(JSON.stringify(e)))}function c(e){u.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:l,sql:e.sql})}u=d?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:i()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:i()}}),l&&Array.isArray(l)&&l[0]?u.query(r,l).then(m).catch(c):u.query(r).then(m).catch(c)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},12403:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{AddNewDbUserContext:()=>D,default:()=>f,getServerSideProps:()=>h});var a=r(8732),i=r(82015),u=r.n(i),l=r(95222),o=r(20048),n=r.n(o),d=r(16975),m=r(90378),c=r.n(m),p=r(64098),g=r(31651),S=r.n(g),x=r(67216),b=r.n(x),_=e([d,p]);[d,p]=_.then?(await _)():_;let y=r(29021),D=u().createContext({});function f({user:e,database:t,table:r,query:s,confirmedDelegetedUser:i}){let u=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Users | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,a.jsx)(l.A,{head:u,user:e,extraHeaderContent:(0,a.jsx)(p.A,{database:t,query:s,confirmedDelegetedUser:i,user:e}),children:(0,a.jsx)(D.Provider,{value:{user:e,database:t,table:r,query:s,confirmedDelegetedUser:i},children:(0,a.jsx)(d.A,{})})})}async function h({req:e,res:t,query:r}){let s=await n()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await S()({request:e,user:s,databaseSlug:r.single,query:r});if(!a)return{redirect:{destination:"/admin",permanent:!1}};let{dbUserId:i,rootUserId:u}=a,l=await b()(`SELECT * FROM user_databases WHERE user_id='${i}' AND db_slug='${r.single}'`);if(!l||!l[0])return{redirect:{destination:`/admin/${s?.id}/databases`,permanent:!1}};let o=JSON.parse(y.readFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/main.json`,"utf-8")),d=(o.filter(e=>e.dbFullName===l[0].db_full_name)[0]?.tables).filter(e=>"users"===e.tableName)[0];return await c()({database:l[0].db_full_name,queryString:"SELECT * FROM users LIMIT 20",tableSchema:d}),{props:{user:s,database:l[0],table:d||{},query:r,confirmedDelegetedUser:a}}}s()}catch(e){s(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")},49436:e=>{e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,7070,5134,3737,2332,7488],()=>r(44219));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json index df6724d..5790d15 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/[single]/users/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/4941.js","../../../../../../chunks/7023.js","../../../../../../chunks/7901.js","../../../../../../chunks/8682.js","../../../../../../chunks/1206.js","../../../../../../chunks/5116.js","../../../../../../chunks/6718.js","../../../../../../chunks/7037.js","../../../../../../chunks/2733.js","../../../../../../chunks/1926.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../jsonData/userPriviledges.json","../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../jsonData/userPriviledges.json","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../../../../node_modules/tailwind-merge/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js index 43a1d10..e4423a7 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js @@ -1,200 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3316; -exports.ids = [3316]; -exports.modules = { - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 6405: -/***/ ((module) => { - -module.exports = require("react-dom"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,7023,7901,6718,9594,9471,9486,7037,9967,4105,3974], () => (__webpack_exec__(6706))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9718,e.ids=[636,9718],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},91293:(e,t,r)=>{r.r(t),r.d(t,{config:()=>m,default:()=>p,getServerSideProps:()=>d,getStaticPaths:()=>c,getStaticProps:()=>n,reportWebVitals:()=>x,routeModule:()=>A,unstable_getServerProps:()=>q,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>y});var s=r(63865),i=r(9455),a=r(30671),u=r(49407),l=r(68268),o=r(2471);let p=(0,a.M)(o,"default"),n=(0,a.M)(o,"getStaticProps"),c=(0,a.M)(o,"getStaticPaths"),d=(0,a.M)(o,"getServerSideProps"),m=(0,a.M)(o,"config"),x=(0,a.M)(o,"reportWebVitals"),y=(0,a.M)(o,"unstable_getStaticProps"),h=(0,a.M)(o,"unstable_getStaticPaths"),f=(0,a.M)(o,"unstable_getStaticParams"),q=(0,a.M)(o,"unstable_getServerProps"),k=(0,a.M)(o,"unstable_getServerSideProps"),A=new s.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/databases/add-database",pathname:"/admin/[user_id]/databases/add-database",bundlePath:"",filename:""},components:{App:l.default,Document:u.default},userland:o})},46437:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var i=r(42178);function a(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(i.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},55158:(e,t,r)=>{r.d(t,{Ay:()=>l,PB:()=>o,fs:()=>p});var s=r(8732),i=r(58150),a=r(82015),u=r.n(a);function l({children:e,title:t,data:r,fullPage:a,wrapperClasses:l,closePopupDispatch:o,wrapperStyle:n,noContainer:c}){return a?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(l||""),"data-popupid":t||null,style:n,children:[c?(0,s.jsx)(u().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{p(),o&&o()},children:(0,s.jsx)(i.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{p(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[c?(0,s.jsx)(u().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{p(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),c&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{p(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{p(),o&&o()}})]})}function o(e,t){let r=document.querySelector(`[data-popupid='${e}']`);r&&(r.style.display="flex",t&&t(r))}function p(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},42178:(e,t,r)=>{var s=r(24994);t.A=void 0;var i=s(r(30887)),a=r(8732);t.A=(0,i.default)((0,a.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var s=r(24994);t.A=void 0;var i=s(r(30887)),a=r(8732);t.A=(0,i.default)([(0,a.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,7070,3737,4417,2996],()=>r(91293));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json index 9b189fe..914ea5c 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/databases/add-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/913.js","../../../../chunks/4480.js","../../../../chunks/370.js","../../../../chunks/424.js","../../../../chunks/4858.js","../../../../chunks/5472.js","../../../../chunks/1781.js","../../../../chunks/7023.js","../../../../chunks/7901.js","../../../../chunks/6718.js","../../../../chunks/9594.js","../../../../chunks/9471.js","../../../../chunks/9486.js","../../../../chunks/7037.js","../../../../chunks/9967.js","../../../../chunks/4105.js","../../../../chunks/3974.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react-dom/client.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/client.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js index ef842b1..6fb9a1a 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js @@ -1,616 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3400; -exports.ids = [3400]; -exports.modules = { - -/***/ 8333: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "MediaContext": () => (/* binding */ MediaContext), - "default": () => (/* binding */ Dashboard), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/VerificationBanner.jsx -var VerificationBanner = __webpack_require__(7946); -// EXTERNAL MODULE: ./components/admin/media/MediaList.jsx + 5 modules -var MediaList = __webpack_require__(7604); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -;// CONCATENATED MODULE: ./components/admin/media/MediaContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function MediaContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { media , setTargetMedia , user , folders , staticHost } = external_react_default().useContext(MediaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Media" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex items-center gap-2", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("choose-media-type-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Media" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex items-center gap-2 outlined gray", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("add-folder-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Folder" - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(MediaList/* default */.Z, { - media: media, - setTargetMedia: setTargetMedia, - folders: folders, - staticHost: staticHost, - user: user - }), - media && media[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - className: "border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("choose-media-type-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Add Media" - }) - ] - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx(VerificationBanner/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/UploadImageComponent.jsx -var UploadImageComponent = __webpack_require__(3770); -// EXTERNAL MODULE: ./components/admin/media/NewMediaPopup.jsx + 3 modules -var NewMediaPopup = __webpack_require__(4891); -// EXTERNAL MODULE: ./components/admin/media/TargetMediaPreviewPopup.jsx -var TargetMediaPreviewPopup = __webpack_require__(3428); -// EXTERNAL MODULE: ./components/admin/media/NewFolderPopup.jsx -var NewFolderPopup = __webpack_require__(1597); -// EXTERNAL MODULE: ./components/general/UploadFileComponent.jsx -var UploadFileComponent = __webpack_require__(8916); -// EXTERNAL MODULE: ./components/admin/media/ChooseMediaTypePopup.jsx -var ChooseMediaTypePopup = __webpack_require__(9201); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: external "path" -var external_path_ = __webpack_require__(1017); -var external_path_default = /*#__PURE__*/__webpack_require__.n(external_path_); -// EXTERNAL MODULE: ./components/general/UploadVideoComponent.jsx -var UploadVideoComponent = __webpack_require__(7525); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/media/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").MediaContextType} */ // @ts-ignore -const init = {}; -const MediaContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").MYSQL_user_media_table_def[]} props.media - * @param {string[]} props.folders - * @param {string} props.staticHost - */ function Dashboard({ user , media , folders , staticHost }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ newMedia: import("@/package-shared/types").ImageObjectType[] | null, setNewMedia: React.Dispatch<React.SetStateAction<import("@/package-shared/types").ImageObjectType[] | null>> ]} */ // @ts-ignore - const [newMedia, setNewMedia] = external_react_default().useState(null); - /** @type {[ newFile: any | null, setNewFile: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [newFile, setNewFile] = external_react_default().useState(null); - /** @type {[ newFile: any | null, setNewFile: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [newVideo, setNewVideo] = external_react_default().useState(null); - const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ targetMedia: import("@/package-shared/types").MYSQL_user_media_table_def | null, setTargetMedia: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_media_table_def | null>> ]} */ // @ts-ignore - const [targetMedia, setTargetMedia] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(MediaContext.Provider, { - value: { - user, - media, - targetMedia, - setTargetMedia, - folders, - staticHost - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - screen: true, - title: "Processing Files ..." - }), - /*#__PURE__*/ jsx_runtime_.jsx(MediaContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UploadImageComponent/* default */.Z, { - setNewMedia: setNewMedia, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(UploadFileComponent/* default */.Z, { - setNewFile: setNewFile, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(UploadVideoComponent/* default */.Z, { - setNewVideo: setNewVideo, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewMediaPopup/* default */.Z, { - newMedia: newMedia, - setNewMedia: setNewMedia, - newFile: newFile, - setNewFile: setNewFile, - newVideo: newVideo, - setNewVideo: setNewVideo - }), - /*#__PURE__*/ jsx_runtime_.jsx(TargetMediaPreviewPopup/* default */.Z, { - targetMedia: targetMedia, - setTargetMedia: setTargetMedia, - staticHost: staticHost, - media: media - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewFolderPopup/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx(ChooseMediaTypePopup/* default */.Z, { - user: user - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const media = await DB_HANDLER_default()(`SELECT * FROM user_media WHERE user_id='${user.id}' AND folder IS NULL`); - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const folderPath = external_path_default().join(STATIC_ROOT, `images/user-images/user-${user.id}/`); - if (!fs.existsSync(folderPath)) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const folders = fs.readdirSync(folderPath).filter((name)=>!name.match(/\..{3,4}$/)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - media: media, - folders: folders, - staticHost: process.env.DSQL_STATIC_HOST || "" - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 9765: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AssignmentTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8757: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteOutlineOutlined"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 8398: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/FolderCopyTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 8083: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOpenOutlined"); - -/***/ }), - -/***/ 4624: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonRounded"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 5580: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PermMediaTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 871: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/VideoCameraBackTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,8345,6718,7946,6390], () => (__webpack_exec__(8333))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9326,e.ids=[636,9326],e.modules={53088:(e,r,t)=>{t.r(r),t.d(r,{config:()=>W,default:()=>V,getServerSideProps:()=>H,getStaticPaths:()=>I,getStaticProps:()=>k,reportWebVitals:()=>U,routeModule:()=>G,unstable_getServerProps:()=>Q,unstable_getServerSideProps:()=>z,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>$,unstable_getStaticProps:()=>B});var s={};t.r(s),t.d(s,{MediaContext:()=>D,default:()=>L,getServerSideProps:()=>R});var i=t(63865),u=t(9455),a=t(30671),o=t(49407),l=t(68268),n=t(8732),d=t(82015),p=t.n(d),c=t(95222),m=t(20048),x=t.n(m),g=t(58548),q=t(55158),S=t(24671),h=t(2628),f=t(62506);function j(e){let{media:r,setTargetMedia:t,user:s,folders:i,staticHost:u}=p().useContext(D);return(0,n.jsxs)(p().Fragment,{children:[(0,n.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,n.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,n.jsx)("h1",{className:"text-3xl m-0",children:"Media"}),(0,n.jsxs)(f.A,{children:[(0,n.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,q.PB)("choose-media-type-popoup")},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{children:"Add Media"})]}),(0,n.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,q.PB)("add-folder-popoup")},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{children:"Add Folder"})]})]})]}),(0,n.jsx)(g.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,n.jsxs)(p().Fragment,{children:[(0,n.jsx)(h.A,{media:r,setTargetMedia:t,folders:i,staticHost:u,user:s}),r&&r[0]&&(0,n.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,q.PB)("choose-media-type-popoup")},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,n.jsx)(S.A,{})]})}var y=t(83531),P=t(90194),b=t(70161),M=t(30180),v=t(31700),A=t(73413),_=t(32415),w=t(67216),N=t.n(w),C=t(33873),F=t.n(C),E=t(65693);let T=t(29021),D=p().createContext({});function L({user:e,media:r,folders:t,staticHost:s}){let i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[u,a]=p().useState(null),[o,l]=p().useState(null),[d,m]=p().useState(null),[x,g]=p().useState(!1),[q,S]=p().useState(null);return(0,n.jsx)(c.A,{head:i,user:e,children:(0,n.jsxs)(D.Provider,{value:{user:e,media:r,targetMedia:q,setTargetMedia:S,folders:t,staticHost:s},children:[x&&(0,n.jsx)(_.A,{screen:!0,title:"Processing Files ..."}),(0,n.jsx)(j,{}),(0,n.jsx)(y.A,{setNewMedia:a,setLoading:g}),(0,n.jsx)(v.A,{setNewFile:l,setLoading:g}),(0,n.jsx)(E.A,{setNewVideo:m,setLoading:g}),(0,n.jsx)(P.A,{newMedia:u,setNewMedia:a,newFile:o,setNewFile:l,newVideo:d,setNewVideo:m}),(0,n.jsx)(b.A,{targetMedia:q,setTargetMedia:S,staticHost:s,media:r}),(0,n.jsx)(M.A,{}),(0,n.jsx)(A.A,{user:e})]})})}async function R({req:e,res:r,query:t}){let s=await x()(e,r);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=await N()(`SELECT * FROM user_media WHERE user_id='${s.id}' AND folder IS NULL`),u=process.env.DSQL_STATIC_SERVER_DIR;if(!u)return console.log("Static File ENV not Found!"),{redirect:{destination:"/admin",permanent:!1}};let a=F().join(u,`images/user-images/user-${s.id}/`);return T.existsSync(a)?{props:{user:s,media:i,folders:T.readdirSync(a).filter(e=>!e.match(/\..{3,4}$/)),staticHost:process.env.DSQL_STATIC_HOST||""}}:{redirect:{destination:"/admin",permanent:!1}}}let V=(0,a.M)(s,"default"),k=(0,a.M)(s,"getStaticProps"),I=(0,a.M)(s,"getStaticPaths"),H=(0,a.M)(s,"getServerSideProps"),W=(0,a.M)(s,"config"),U=(0,a.M)(s,"reportWebVitals"),B=(0,a.M)(s,"unstable_getStaticProps"),$=(0,a.M)(s,"unstable_getStaticPaths"),O=(0,a.M)(s,"unstable_getStaticParams"),Q=(0,a.M)(s,"unstable_getServerProps"),z=(0,a.M)(s,"unstable_getServerSideProps"),G=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/admin/[user_id]/media",pathname:"/admin/[user_id]/media",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,3468,8268,7070,7665],()=>t(53088));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json index 062da34..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../chunks/8345.js","../../../chunks/6718.js","../../../chunks/7946.js","../../../chunks/6390.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/AssignmentTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteOutlineOutlined.js","../../../../../node_modules/@mui/icons-material/FolderCopyTwoTone.js","../../../../../node_modules/@mui/icons-material/LockOpenOutlined.js","../../../../../node_modules/@mui/icons-material/LockPersonRounded.js","../../../../../node_modules/@mui/icons-material/PermMediaTwoTone.js","../../../../../node_modules/@mui/icons-material/VideoCameraBackTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js index c6b3e84..852c25b 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js @@ -1,724 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2759; -exports.ids = [2759]; -exports.modules = { - -/***/ 3345: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** - * Imports: Handle imports - */ /** - * Grab Paths Function - * ============================================================================== - * @description Description - * - * @param {object} params - An object containing the function parameters. - * @param {boolean} [params.isPrivate] - Is this file private or not? - * @param {any} params.user - User object - * @param {string} [params.folder] - Folder, if available - * @param {boolean} [params.video] - Video, if available - * @param {boolean} [params.pathOnly] - Just generate the directories' paths - * - * @returns {{ fileRootPath: string, urlRootPath: string, relativePath: string } | null} - */ module.exports = function grabPaths({ isPrivate , user , folder , video , pathOnly , }) { - /** - * Initialize variables - */ const isProduction = "production".match(/production/); - const userId = user?.id || user?.user_id; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return null; - } - const relativePath = isPrivate ? `@/${video ? "videos" : "media"}/${folder ? folder + "/" : ""}` : video ? `/videos/user-videos/user-${userId}/${folder ? folder + "/" : ""}` : `/images/user-images/user-${userId}/${folder ? folder + "/" : ""}`; - const fileRootPath = isPrivate ? `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/media/${folder ? folder + "/" : ""}` : path.join(STATIC_ROOT, relativePath); - if (!fs.existsSync(fileRootPath) && !pathOnly) { - fs.mkdirSync(fileRootPath, { - recursive: true - }); - } - const urlRootPath = isPrivate ? `@/media/${folder ? folder + "/" : ""}` : `${process.env.DSQL_STATIC_HOST}${relativePath}`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return { - fileRootPath: fileRootPath, - urlRootPath: urlRootPath, - relativePath - }; -}; - - -/***/ }), - -/***/ 3947: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "MediaContext": () => (/* binding */ MediaContext), - "default": () => (/* binding */ Dashboard), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/UploadImageComponent.jsx -var UploadImageComponent = __webpack_require__(3770); -// EXTERNAL MODULE: ./components/admin/media/NewMediaPopup.jsx + 3 modules -var NewMediaPopup = __webpack_require__(4891); -// EXTERNAL MODULE: ./components/admin/media/TargetMediaPreviewPopup.jsx -var TargetMediaPreviewPopup = __webpack_require__(3428); -// EXTERNAL MODULE: ./components/admin/media/NewFolderPopup.jsx -var NewFolderPopup = __webpack_require__(1597); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/VerificationBanner.jsx -var VerificationBanner = __webpack_require__(7946); -// EXTERNAL MODULE: ./components/admin/media/MediaList.jsx + 5 modules -var MediaList = __webpack_require__(7604); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -// EXTERNAL MODULE: external "@mui/icons-material/FolderCopyTwoTone" -var FolderCopyTwoTone_ = __webpack_require__(8398); -var FolderCopyTwoTone_default = /*#__PURE__*/__webpack_require__.n(FolderCopyTwoTone_); -;// CONCATENATED MODULE: ./components/admin/media/MediaFolderContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function MediaFolderContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { media , setTargetMedia , user , folders , query , staticHost , folder } = external_react_default().useContext(MediaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx((FolderCopyTwoTone_default()), { - className: "opacity-40" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: query.folder[query.folder.length - 1] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex items-center gap-2", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("choose-media-type-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Media" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "flex items-center gap-2 outlined gray", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("add-folder-popoup", (popupElement)=>{ - popupElement?.querySelector("input")?.focus(); - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add Folder" - }) - ] - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(MediaList/* default */.Z, { - media: media, - setTargetMedia: setTargetMedia, - folders: folders, - folder: folder, - staticHost: staticHost, - user: user - }), - media && media[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - className: "border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("choose-media-type-popoup"); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "", - children: "Add Media" - }) - ] - }) - ] - }) : /*#__PURE__*/ jsx_runtime_.jsx(VerificationBanner/* default */.Z, {}) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/UploadFileComponent.jsx -var UploadFileComponent = __webpack_require__(8916); -// EXTERNAL MODULE: ./components/admin/media/ChooseMediaTypePopup.jsx -var ChooseMediaTypePopup = __webpack_require__(9201); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: external "path" -var external_path_ = __webpack_require__(1017); -var external_path_default = /*#__PURE__*/__webpack_require__.n(external_path_); -// EXTERNAL MODULE: ./components/general/UploadVideoComponent.jsx -var UploadVideoComponent = __webpack_require__(7525); -// EXTERNAL MODULE: ./functions/backend/grabPaths.js -var grabPaths = __webpack_require__(3345); -var grabPaths_default = /*#__PURE__*/__webpack_require__.n(grabPaths); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/media/[...folder].jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").MediaFolderPageContextType} */ // @ts-ignore -const init = {}; -const MediaContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any[]} props.media - * @param {any[]} props.folders - * @param {any} props.query - * @param {string} props.staticHost - * @param {string} props.folderNameFull - */ function Dashboard({ user , media , folders , query , staticHost , folderNameFull , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ newMedia: any, setNewMedia: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [newMedia, setNewMedia] = external_react_default().useState(null); - /** @type {[ newFile: any, setNewFile: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [newFile, setNewFile] = external_react_default().useState(null); - /** @type {[ newFile: any, setNewFile: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [newVideo, setNewVideo] = external_react_default().useState(null); - const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ targetMedia: import("@/package-shared/types").MYSQL_user_media_table_def | null, setTargetMedia: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_media_table_def | null>> ]} */ // @ts-ignore - const [targetMedia, setTargetMedia] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(MediaContext.Provider, { - value: { - user, - media, - targetMedia, - setTargetMedia, - folders, - query, - staticHost, - folder: folderNameFull - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - screen: true, - title: "Processing Files ..." - }), - /*#__PURE__*/ jsx_runtime_.jsx(MediaFolderContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UploadImageComponent/* default */.Z, { - setNewMedia: setNewMedia, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(UploadFileComponent/* default */.Z, { - setNewFile: setNewFile, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(UploadVideoComponent/* default */.Z, { - setNewVideo: setNewVideo, - setLoading: setLoading - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewMediaPopup/* default */.Z, { - newMedia: newMedia, - setNewMedia: setNewMedia, - newFile: newFile, - setNewFile: setNewFile, - folder: folderNameFull, - newVideo: newVideo, - setNewVideo: setNewVideo - }), - /*#__PURE__*/ jsx_runtime_.jsx(TargetMediaPreviewPopup/* default */.Z, { - targetMedia: targetMedia, - staticHost: staticHost, - setTargetMedia: setTargetMedia, - media: media - }), - /*#__PURE__*/ jsx_runtime_.jsx(NewFolderPopup/* default */.Z, { - folder: folderNameFull - }), - /*#__PURE__*/ jsx_runtime_.jsx(ChooseMediaTypePopup/* default */.Z, { - user: user - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - try { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {string[]} */ // @ts-ignore - const queryFoldersArray = query.folder; - const folderName = queryFoldersArray.join("/"); - const media = await DB_HANDLER_default()(`SELECT * FROM user_media WHERE user_id='${user.id}' AND folder='${folderName}'`); - const paths = grabPaths_default()({ - isPrivate: false, - user, - folder: folderName, - video: false, - pathOnly: true - }); - if (!paths) { - console.log("Static File ENV not Found!"); - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - const folderPath = paths.fileRootPath; - const folders = fs.readdirSync(folderPath).filter((name)=>!fs.statSync(external_path_default().normalize(`${folderPath}/${name}`)).isFile()); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - media: media, - folders: folders, - query: query, - staticHost: process.env.DSQL_STATIC_HOST || "", - folderNameFull: folderName - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {*} */ error) { - return { - redirect: { - destination: `/admin`, - permanent: false - } - }; - } -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 9765: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AssignmentTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8757: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteOutlineOutlined"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 8398: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/FolderCopyTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 8083: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockOpenOutlined"); - -/***/ }), - -/***/ 4624: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonRounded"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 5580: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PermMediaTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 871: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/VideoCameraBackTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,8345,6718,7946,6390], () => (__webpack_exec__(3947))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=431,e.ids=[431,636],e.modules={55840:(e,r,t)=>{t.r(r),t.d(r,{config:()=>Q,default:()=>I,getServerSideProps:()=>O,getStaticPaths:()=>W,getStaticProps:()=>B,reportWebVitals:()=>U,routeModule:()=>Y,unstable_getServerProps:()=>J,unstable_getServerSideProps:()=>K,unstable_getStaticParams:()=>X,unstable_getStaticPaths:()=>G,unstable_getStaticProps:()=>z});var s={};t.r(s),t.d(s,{MediaContext:()=>L,default:()=>V,getServerSideProps:()=>H});var i=t(63865),o=t(9455),u=t(30671),a=t(49407),l=t(68268),n=t(8732),d=t(82015),c=t.n(d),p=t(95222),m=t(20048),x=t.n(m),f=t(83531),S=t(90194),h=t(70161),g=t(30180),q=t(46437),j=t(58548),y=t(55158),v=t(24671),P=t(2628),b=t(62506),A=t(8203);function M(e){let{media:r,setTargetMedia:t,user:s,folders:i,query:o,staticHost:u,folder:a}=c().useContext(L);return(0,n.jsxs)(c().Fragment,{children:[(0,n.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,n.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(q.A,{}),(0,n.jsx)(A.A,{className:"opacity-40"}),(0,n.jsx)("h1",{className:"text-3xl m-0",children:o.folder[o.folder.length-1]})]}),(0,n.jsxs)(b.A,{children:[(0,n.jsxs)("button",{className:"flex items-center gap-2",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{children:"Add Media"})]}),(0,n.jsxs)("button",{className:"flex items-center gap-2 outlined gray",onClick:e=>{(0,y.PB)("add-folder-popoup",e=>{e?.querySelector("input")?.focus()})},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{children:"Add Folder"})]})]})]}),(0,n.jsx)(j.A,{user:s})]}),s?.verification_status?.toString().match(/1/)?(0,n.jsxs)(c().Fragment,{children:[(0,n.jsx)(P.A,{media:r,setTargetMedia:t,folders:i,folder:a,staticHost:u,user:s}),r&&r[0]&&(0,n.jsxs)("a",{className:"border-dotted border-slate-400 border-2 px-4 py-3 w-full rounded flex items-center hover:border-primary/50 gap-2 cursor-pointer justify-center",onClick:e=>{(0,y.PB)("choose-media-type-popoup")},children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{className:"",children:"Add Media"})]})]}):(0,n.jsx)(v.A,{})]})}var _=t(31700),w=t(73413),N=t(32415),C=t(67216),F=t.n(C),E=t(33873),$=t.n(E),T=t(65693),R=t(67735),k=t.n(R);let D=t(29021),L=c().createContext({});function V({user:e,media:r,folders:t,query:s,staticHost:i,folderNameFull:o}){let u=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[a,l]=c().useState(null),[d,m]=c().useState(null),[x,q]=c().useState(null),[j,y]=c().useState(!1),[v,P]=c().useState(null);return(0,n.jsx)(p.A,{head:u,user:e,children:(0,n.jsxs)(L.Provider,{value:{user:e,media:r,targetMedia:v,setTargetMedia:P,folders:t,query:s,staticHost:i,folder:o},children:[j&&(0,n.jsx)(N.A,{screen:!0,title:"Processing Files ..."}),(0,n.jsx)(M,{}),(0,n.jsx)(f.A,{setNewMedia:l,setLoading:y}),(0,n.jsx)(_.A,{setNewFile:m,setLoading:y}),(0,n.jsx)(T.A,{setNewVideo:q,setLoading:y}),(0,n.jsx)(S.A,{newMedia:a,setNewMedia:l,newFile:d,setNewFile:m,folder:o,newVideo:x,setNewVideo:q}),(0,n.jsx)(h.A,{targetMedia:v,staticHost:i,setTargetMedia:P,media:r}),(0,n.jsx)(g.A,{folder:o}),(0,n.jsx)(w.A,{user:e})]})})}async function H({req:e,res:r,query:t}){try{let s=await x()(e,r);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=t.folder.join("/"),o=await F()(`SELECT * FROM user_media WHERE user_id='${s.id}' AND folder='${i}'`),u=k()({isPrivate:!1,user:s,folder:i,video:!1,pathOnly:!0});if(!u)return console.log("Static File ENV not Found!"),{redirect:{destination:"/",permanent:!1}};let a=u.fileRootPath,l=D.readdirSync(a).filter(e=>!D.statSync($().normalize(`${a}/${e}`)).isFile());return{props:{user:s,media:o,folders:l,query:t,staticHost:process.env.DSQL_STATIC_HOST||"",folderNameFull:i}}}catch(e){return{redirect:{destination:"/admin",permanent:!1}}}}let I=(0,u.M)(s,"default"),B=(0,u.M)(s,"getStaticProps"),W=(0,u.M)(s,"getStaticPaths"),O=(0,u.M)(s,"getServerSideProps"),Q=(0,u.M)(s,"config"),U=(0,u.M)(s,"reportWebVitals"),z=(0,u.M)(s,"unstable_getStaticProps"),G=(0,u.M)(s,"unstable_getStaticPaths"),X=(0,u.M)(s,"unstable_getStaticParams"),J=(0,u.M)(s,"unstable_getServerProps"),K=(0,u.M)(s,"unstable_getServerSideProps"),Y=new i.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/admin/[user_id]/media/[...folder]",pathname:"/admin/[user_id]/media/[...folder]",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:s})},46437:(e,r,t)=>{t.d(r,{A:()=>o});var s=t(8732);t(82015);var i=t(42178);function o(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(i.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},67735:(e,r,t)=>{let s=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:o,pathOnly:u}){"production".match(/production/);let a=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let n=e?`@/${o?"videos":"media"}/${t?t+"/":""}`:o?`/videos/user-videos/user-${a}/${t?t+"/":""}`:`/images/user-images/user-${a}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${a}/media/${t?t+"/":""}`:i.join(l,n);return s.existsSync(d)||u||s.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${n}`,relativePath:n}}},42178:(e,r,t)=>{var s=t(24994);r.A=void 0;var i=s(t(30887)),o=t(8732);r.A=(0,i.default)((0,o.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,3468,8268,7070,7665],()=>t(55840));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json index d51d69f..83fc63c 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/media/[...folder].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/913.js","../../../../chunks/4480.js","../../../../chunks/370.js","../../../../chunks/424.js","../../../../chunks/4858.js","../../../../chunks/5472.js","../../../../chunks/1781.js","../../../../chunks/8345.js","../../../../chunks/6718.js","../../../../chunks/7946.js","../../../../chunks/6390.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../node_modules/@mui/icons-material/AssignmentTwoTone.js","../../../../../../node_modules/@mui/icons-material/DeleteOutlineOutlined.js","../../../../../../node_modules/@mui/icons-material/FolderCopyTwoTone.js","../../../../../../node_modules/@mui/icons-material/LockOpenOutlined.js","../../../../../../node_modules/@mui/icons-material/LockPersonRounded.js","../../../../../../node_modules/@mui/icons-material/PermMediaTwoTone.js","../../../../../../node_modules/@mui/icons-material/VideoCameraBackTwoTone.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js index 6b638af..9a76bf9 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js @@ -1,931 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5957; -exports.ids = [5957]; -exports.modules = { - -/***/ 7947: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* unused harmony export default */ -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {{ - * editorRef: { current: any }, - * readOnly: boolean, - * executeFunction: (editor: AceAjax.Editor) => void, - * content: string, - * placeholder?: string, - * mode?: string, - * fontSize?: string, - * }} props - React component props including { children } - */ function AceEditor({ editorRef , readOnly , executeFunction , content , placeholder , mode , fontSize , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.LegacyRef<HTMLDivElement | undefined>} */ const editorElementRef = React.useRef(); - /** @type {React.MutableRefObject<AceAjax.Editor | undefined>} */ const editorRefInstance = React.useRef(); - const [loading, setLoading] = React.useState(false); - const [refresh, setRefresh] = React.useState(0); - React.useEffect(()=>{ - if (!ace?.edit || !editorElementRef.current) { - setTimeout(()=>{ - setRefresh((prev)=>prev + 1); - }, 1000); - return; - } - const editor = ace.edit(editorElementRef.current); - editor.setOptions({ - mode: `ace/mode/${mode ? mode : "javascript"}`, - theme: "ace/theme/nord_dark", - // theme: "ace/theme/twilight", - value: content, - placeholder: placeholder ? placeholder : "", - enableBasicAutocompletion: true, - enableLiveAutocompletion: true, - readOnly: readOnly ? true : false, - fontSize: fontSize ? fontSize : null - }); - editor.commands.addCommand({ - name: "myCommand", - bindKey: { - win: "Ctrl-Enter", - mac: "Command-Enter" - }, - exec: function(editor) { - if (executeFunction) executeFunction(editor); - }, - readOnly: true - }); - editorRefInstance.current = editor; - if (editorRef) editorRef.current = editor; - }, [ - refresh - ]); - React.useEffect(()=>{ - if (!editorRefInstance.current) return; - editorRefInstance.current.setValue(content, -1); - }, [ - content - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ _jsx(React.Fragment, { - children: /*#__PURE__*/ _jsx("div", { - className: "p-4 w-full h-full block rounded-md", - style: { - backgroundColor: "#2e3440" - }, - children: /*#__PURE__*/ _jsx("div", { - // @ts-ignore - ref: editorElementRef, - className: "ace-editor-wrapper w-full h-full minimal-scrollbars all-children" - }) - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - React.useEffect(()=>{ - fetchApi("/api/admin/clientError", { - method: "post", - body: { - component: "AceEditor/main-catch-error", - message: error.message, - user: {} - } - }); - }, []); - return /*#__PURE__*/ _jsx(React.Fragment, { - children: /*#__PURE__*/ _jsx("h2", { - className: "text-xl m-0", - children: "Editor Error" - }) - }); - } -} - - -/***/ }), - -/***/ 4458: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "UserSchemaContext": () => (/* binding */ UserSchemaContext), - "default": () => (/* binding */ DatabaseSchema), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/ExtraContentDatabase.jsx -var ExtraContentDatabase = __webpack_require__(4941); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/admin/databases/UserSchemaVisualizer.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function UserSchemaVisualizer(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { dbSchemaData , user } = external_react_default().useContext(UserSchemaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper p-4 flex-col items-start justify-start gap-14", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "-mb-2 font-bold text-lg text-slate-400 mt-1", - children: "User Schema Map" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "-my-8" - }), - dbSchemaData.map((targetDb, rootIndex)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "w-full xl:w-auto ml-auto text-lg bg-primary px-3 py-1 rounded text-white font-bold top-0 sticky", - children: [ - targetDb.dbName, - " Database Tables" - ] - }), - targetDb.tables.map((table, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-4 left-border pl-6 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold text-base rounded sticky top-10 xl:top-0 px-3 py-1 bg-slate-800 text-white -ml-6 w-full xl:w-auto", - children: table.tableFullName - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Fields" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start left-border pl-6 w-full", - children: table.fields.map((field, _index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card flex-col items-start gap-1 bg-white p-4 border border-solid border-slate-300 rounded w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold", - children: field.fieldName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs", - children: field.dataType - }) - ] - }, _index + 1); - }) - }) - ] - }), - table.indexes && table.indexes[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Indexes" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start left-border pl-6 w-full", - children: table.indexes.map((index, _index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card flex-col items-start gap-1 bg-white p-4 border border-solid border-slate-300 rounded w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-bold text-secondary", - children: index.indexName - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs", - children: index.indexType - }) - ] - }, _index + 1); - }) - }) - ] - }) - ] - }, index + 1); - }) - ] - }, rootIndex + 1); - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "UserSchemaVisualizer/catch-error-return", - message: error.message, - user: user - } - }); - }, []); - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: "Nothing to See here" - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/AceEditor.jsx -var AceEditor = __webpack_require__(7947); -// EXTERNAL MODULE: ./components/general/CodeBlock.jsx -var CodeBlock = __webpack_require__(1095); -;// CONCATENATED MODULE: ./components/admin/databases/UserSchemaContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function UserSchemaContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { dbSchemaData , user } = external_react_default().useContext(UserSchemaContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ previewObject: any, setPreviewObject: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [previewObject, setPreviewObject] = external_react_default().useState(dbSchemaData); - const [targetDb, setTargetDb] = external_react_default().useState(null); - /** @type {[ dbTables: import("@/package-shared/types").DSQL_TableSchemaType[], setDbTables: React.Dispatch<React.SetStateAction<import("@/package-shared/types").DSQL_TableSchemaType[] | null>> ]} */ // @ts-ignore - const [dbTables, setDbTables] = external_react_default().useState(null); - const [targetTable, setTargetTable] = external_react_default().useState(null); - external_react_default().useEffect(()=>{ - if (targetDb) { - try { - const targetDbSchema = dbSchemaData.filter((db)=>db.dbFullName === targetDb)[0]; - setPreviewObject(targetDbSchema); - setDbTables(targetDbSchema.tables); - } catch (/** @type {any} */ error) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "UserSchemaContent/lines-64-66", - message: error.message, - user: user - } - }); - } - } else { - setDbTables(null); - setTargetTable(null); - setPreviewObject(dbSchemaData); - } - }, [ - targetDb - ]); - external_react_default().useEffect(()=>{ - if (targetTable && dbTables && dbTables[0]) { - try { - // @ts-ignore - const targetTableObject = dbTables.filter((/** @type {any} */ table)=>table.tableName === targetTable)[0]; - setPreviewObject(targetTableObject); - } catch (/** @type {any} */ error) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "UserSchemaContent/lines-87-88", - message: error.message, - user: user - } - }); - } - } else if (targetDb) { - try { - const targetDbSchema = dbSchemaData.filter((db)=>db.dbFullName === targetDb)[0]; - setPreviewObject(targetDbSchema); - setDbTables(targetDbSchema.tables); - } catch (/** @type {any} */ error1) { - (0,fetchApi/* default */.Z)("/api/admin/clientError", { - method: "post", - body: { - component: "UserSchemaContent/lines-100-103", - message: error1.message, - user: user - } - }); - } - } else { - setDbTables(null); - setTargetTable(null); - setPreviewObject(dbSchemaData); - } - }, [ - targetTable - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "", - children: /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "User Schema" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Database SCHEMA JSON" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - required: true, - selectOptions: [ - { - title: "All Databases", - payload: "none" - }, - ...dbSchemaData.map((db, index)=>{ - return { - title: db.dbName, - payload: db.dbFullName, - name: db.dbFullName - }; - }), - ], - name: "databases", - onChangeHandler: (e)=>{ - if (e.target.value?.match(/^none$/)) { - setTargetDb(null); - } else { - setTargetDb(e.target.value); - } - } - }), - dbTables && dbTables[0] && /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - required: true, - selectOptions: [ - { - title: "All Tables", - payload: "none" - }, - ...dbTables.map((table, index)=>{ - return { - title: table.tableFullName, - payload: table.tableName, - name: table.tableName - }; - }), - ], - name: "database_tables", - onChangeHandler: (e)=>{ - if (e.target.value?.match(/^none$/)) { - setTargetTable(null); - } else { - setTargetTable(e.target.value); - } - } - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "grid grid-cols-1 xl:grid-cols-2 items-stretch w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "relative w-full block", - children: /*#__PURE__*/ jsx_runtime_.jsx(CodeBlock/* default */.Z, { - content: JSON.stringify(previewObject, null, 4), - language: "javascript" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserSchemaVisualizer, {}) - ] - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/VerificationBanner.jsx -var VerificationBanner = __webpack_require__(7946); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/schema.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").UserSchemaContextType} */ // @ts-ignore -const init = {}; -const UserSchemaContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.query - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} props.dbSchemaData - */ function DatabaseSchema({ user , query , dbSchemaData }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Add Database | Datasquirel"; - const pageDescription = "Add a database"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - aceEditor: true, - children: /*#__PURE__*/ jsx_runtime_.jsx(UserSchemaContext.Provider, { - value: { - user, - dbSchemaData - }, - children: user?.verification_status?.toString().match(/1/) ? /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(UserSchemaContent, {}) - }) : /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "", - children: /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "User Schema" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(VerificationBanner/* default */.Z, {}) - ] - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const folderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - if (!fs.existsSync(folderPath)) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const dbSchemaData = JSON.parse(fs.readFileSync(folderPath, "utf-8")); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - query, - dbSchemaData: dbSchemaData ? dbSchemaData : [] - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 3849: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CodeRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 6843: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ContentCopy"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 6500: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SendToMobileTwoTone"); - -/***/ }), - -/***/ 7428: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SummarizeTwoTone"); - -/***/ }), - -/***/ 507: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TipsAndUpdatesTwoTone"); - -/***/ }), - -/***/ 9174: -/***/ ((module) => { - -module.exports = require("@mui/material/Snackbar"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4941,4114,7946,2434], () => (__webpack_exec__(4458))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8591,e.ids=[636,8591],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},23133:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{config:()=>h,default:()=>u,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>p,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>j,unstable_getServerSideProps:()=>b,unstable_getStaticParams:()=>g,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>f});var a=r(63865),i=r(9455),l=r(30671),n=r(49407),c=r(68268),o=r(74094),d=e([o]);o=(d.then?(await d)():d)[0];let u=(0,l.M)(o,"default"),p=(0,l.M)(o,"getStaticProps"),x=(0,l.M)(o,"getStaticPaths"),m=(0,l.M)(o,"getServerSideProps"),h=(0,l.M)(o,"config"),y=(0,l.M)(o,"reportWebVitals"),f=(0,l.M)(o,"unstable_getStaticProps"),v=(0,l.M)(o,"unstable_getStaticPaths"),g=(0,l.M)(o,"unstable_getStaticParams"),j=(0,l.M)(o,"unstable_getServerProps"),b=(0,l.M)(o,"unstable_getServerSideProps"),w=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/schema",pathname:"/admin/[user_id]/schema",bundlePath:"",filename:""},components:{App:c.default,Document:n.default},userland:o});s()}catch(e){s(e)}})},74223:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>x});var a=r(8732),i=r(82015),l=r.n(i);r(46437);var n=r(58548),c=r(51548),o=r(74094),d=r(40942);r(63715),r(89788);var u=r(34844),p=e([o,d]);function x(e){let{dbSchemaData:t,user:r}=l().useContext(o.UserSchemaContext),[s,i]=l().useState(t),[p,x]=l().useState(null),[m,h]=l().useState(null),[y,f]=l().useState(null);return(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,a.jsx)(n.A,{user:r})]}),(0,a.jsx)("section",{className:"paper",children:(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Database SCHEMA JSON"}),(0,a.jsxs)("div",{children:[(0,a.jsx)(c.A,{required:!0,selectOptions:[{title:"All Databases",payload:"none"},...t.map((e,t)=>({title:e.dbName,payload:e.dbFullName,name:e.dbFullName}))],name:"databases",onChangeHandler:e=>{e.target.value?.match(/^none$/)?x(null):x(e.target.value)}}),m&&m[0]&&(0,a.jsx)(c.A,{required:!0,selectOptions:[{title:"All Tables",payload:"none"},...m.map((e,t)=>({title:e.tableFullName,payload:e.tableName,name:e.tableName}))],name:"database_tables",onChangeHandler:e=>{e.target.value?.match(/^none$/)?f(null):f(e.target.value)}})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 items-stretch w-full",children:[(0,a.jsx)("div",{className:"relative w-full block",children:(0,a.jsx)(u.A,{content:JSON.stringify(s,null,4),language:"javascript"})}),(0,a.jsx)(d.A,{})]})]})})]})}[o,d]=p.then?(await p)():p,s()}catch(e){s(e)}})},40942:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.d(t,{A:()=>o});var a=r(8732),i=r(82015),l=r.n(i),n=r(74094);r(63715);var c=e([n]);function o(e){let{dbSchemaData:t,user:r}=l().useContext(n.UserSchemaContext);try{return(0,a.jsxs)("div",{className:"paper p-4 flex-col items-start justify-start gap-14",children:[(0,a.jsx)("span",{className:"-mb-2 font-bold text-lg text-slate-400 mt-1",children:"User Schema Map"}),(0,a.jsx)("hr",{className:"-my-8"}),t.map((e,t)=>(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsxs)("span",{className:"w-full xl:w-auto ml-auto text-lg bg-primary px-3 py-1 rounded text-white font-bold top-0 sticky",children:[e.dbName," Database Tables"]}),e.tables.map((e,t)=>(0,a.jsxs)("div",{className:"flex-col items-start gap-4 left-border pl-6 w-full",children:[(0,a.jsx)("span",{className:"font-bold text-base rounded sticky top-10 xl:top-0 px-3 py-1 bg-slate-800 text-white -ml-6 w-full xl:w-auto",children:e.tableFullName}),(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"Fields"}),(0,a.jsx)("div",{className:"flex-col items-start left-border pl-6 w-full",children:e.fields.map((e,t)=>(0,a.jsxs)("div",{className:"card flex-col items-start gap-1 bg-white p-4 border border-solid border-slate-300 rounded w-full",children:[(0,a.jsx)("span",{className:"font-bold",children:e.fieldName}),(0,a.jsx)("span",{className:"text-xs",children:e.dataType})]},t+1))})]}),e.indexes&&e.indexes[0]&&(0,a.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,a.jsx)("span",{children:"Indexes"}),(0,a.jsx)("div",{className:"flex-col items-start left-border pl-6 w-full",children:e.indexes.map((e,t)=>(0,a.jsxs)("div",{className:"card flex-col items-start gap-1 bg-white p-4 border border-solid border-slate-300 rounded w-full",children:[(0,a.jsx)("span",{className:"font-bold text-secondary",children:e.indexName}),(0,a.jsx)("span",{className:"text-xs",children:e.indexType})]},t+1))})]})]},t+1))]},t+1))]})}catch(e){return(0,a.jsx)("div",{children:"Nothing to See here"})}}n=(c.then?(await c)():c)[0],s()}catch(e){s(e)}})},51548:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732),a=r(58526);function i({selectOptions:e,name:t,onChangeHandler:r,required:i,setAlert:l,title:n,defaultValue:c,info:o,id:d}){try{function u(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),r=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!r.classList.contains("hidden")){r.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&r.classList.contains("hidden"))){if(!t){r.classList.add("hidden");return}if(r.classList.contains("hidden")){r.classList.remove("hidden");return}r.classList.add("hidden")}}return(0,s.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[n&&(0,s.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,s.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,s.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:i,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),r&&r(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:r,title:a}=e;return(0,s.jsx)("option",{value:r,selected:!!e.default,children:a},t+1)})}),(0,s.jsx)(a.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,s.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,s.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,s.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,s.jsx)("span",{children:o})}),(0,s.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,s.jsx)("div",{children:"Form Select Error"})}}r(82015)},89788:(e,t,r)=>{r(8732),r(82015)},34844:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),a=r(82015),i=r.n(a),l=r(11790),n=r.n(l),c=r(96089);function o({content:e,language:t,style:r,showCopy:a}){let[l,o]=i().useState(!1),d=()=>{o(!0)},u=(e,t)=>{"clickaway"!==t&&o(!1)},p=(0,s.jsx)(i().Fragment,{children:(0,s.jsx)("button",{className:"outlined gray",style:{border:"none",padding:"2px",width:"20px",height:"20px",color:"white"},onClick:u,children:"✖"})}),x={};return(0,s.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:r?{...r,...x}:x,children:[(0,s.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,s.jsx)("button",{className:"outlined copy-code "+(a?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{d()})},children:(0,s.jsx)(c.A,{className:"text-white",size:20})}),(0,s.jsx)(n(),{open:l,autoHideDuration:2e3,onClose:u,children:(0,s.jsxs)("div",{className:"h-full text-white px-4 py-2 justify-between rounded",style:{maxWidth:"250px",width:"250px",backgroundColor:"#0b8862"},children:[(0,s.jsx)("span",{children:"Code Copied!"}),p]})})]})}},24671:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);function a(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}r(82015)},42178:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},48987:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},42125:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,i.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,i.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,i.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,i.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},50993:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},92441:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},96089:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},98136:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},74094:(e,t,r)=>{r.a(e,async(e,s)=>{try{r.r(t),r.d(t,{UserSchemaContext:()=>v,default:()=>h,getServerSideProps:()=>y});var a=r(8732),i=r(82015),l=r.n(i),n=r(95222),c=r(20048),o=r.n(c),d=r(64098),u=r(74223),p=r(24671);r(46437);var x=r(58548),m=e([d,u]);[d,u]=m.then?(await m)():m;let f=r(29021),v=l().createContext({});function h({user:e,query:t,dbSchemaData:r}){let s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"Add Database | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Add a database"})]});return(0,a.jsx)(n.A,{head:s,user:e,aceEditor:!0,children:(0,a.jsx)(v.Provider,{value:{user:e,dbSchemaData:r},children:e?.verification_status?.toString().match(/1/)?(0,a.jsx)(l().Fragment,{children:(0,a.jsx)(u.A,{})}):(0,a.jsxs)(l().Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,a.jsx)("div",{className:"",children:(0,a.jsx)("h1",{className:"text-3xl m-0",children:"User Schema"})}),(0,a.jsx)(x.A,{user:e})]}),(0,a.jsx)(p.A,{})]})})})}async function y({req:e,res:t,query:r}){let s=await o()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let a=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.id}/main.json`;if(!f.existsSync(a))return{redirect:{destination:"/admin",permanent:!1}};let i=JSON.parse(f.readFileSync(a,"utf-8"));return{props:{user:s,query:r,dbSchemaData:i||[]}}}s()}catch(e){s(e)}})},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},710:e=>{e.exports=require("@mui/utils/useTimeout")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,1790,8268,7070,5134],()=>r(23133));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json index 7c325d1..e2a0a90 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/1781.js","../../../chunks/4941.js","../../../chunks/4114.js","../../../chunks/7946.js","../../../chunks/2434.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/@mui/material/Snackbar/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../../../node_modules/@mui/icons-material/ContentCopy.js","../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../node_modules/@mui/icons-material/CodeRounded.js","../../../../../node_modules/@mui/icons-material/SummarizeTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/base/node/index.js","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../node_modules/@popperjs/core/package.json","../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@floating-ui/dom/package.json","../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/@floating-ui/core/package.json","../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../../node_modules/tailwind-merge/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js index 307a495..50d9cfe 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js @@ -1,849 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2417; -exports.ids = [2417,133,4135]; -exports.modules = { - -/***/ 9310: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ UserMediaPopup) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5472); -/* harmony import */ var _general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5264); -/* harmony import */ var _ExistingFieldEdit__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9967); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {React.Dispatch<React.SetStateAction<string | null | import("@/package-shared/types").ImageObjectType>>} props.setDbImage - */ function UserMediaPopup({ setDbImage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(true); - /** @type {any} */ const mediaState = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type { [ media: import("@/package-shared/types").MYSQL_MediaType[] | null, setMedia: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_MediaType | null>> ] } */ const [media, setMedia] = mediaState; - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/getUserMedia").then((res)=>{ - setLoading(false); - setMedia(res.media); - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .ZP, { - title: "user-media-popup", - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - width: "20px" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h4", { - className: "m-0 text-lg", - children: "Your Uploaded Images" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "grid grid-cols-2", - children: media && media[0] && media.filter((media)=>media.media_type == "image").map((mediaObject, index)=>{ - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "w-full h-44 cursor-pointer hover:opacity-70", - onClick: (e)=>{ - setDbImage(mediaObject.media_thumbnail_url || null); - (0,_general_GeneralPopup__WEBPACK_IMPORTED_MODULE_2__/* .closePopup */ .j4)(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: mediaObject.media_thumbnail_url, - alt: "User Media", - className: "w-full h-full object-contain" - }) - }, index + 1); - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 4227: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const fs = __webpack_require__(7147); -const serverError = __webpack_require__(7023); -const NO_DB_HANDLER = __webpack_require__(2020); -/** - * Create database from Schema Function - * ============================================================================== - * @param {string} queryString - Query String - * @returns {Promise<any>} - */ module.exports = async function noDatabaseDbHandler(queryString) { - "production"?.match(/dev/) && fs.appendFileSync("./.tmp/sqlQuery.sql", queryString + "\n" + Date() + "\n\n\n", "utf8"); - /** - * Declare variables - * - * @description Declare "results" variable - */ let results; - /** - * Fetch from db - * - * @description Fetch data from db if no cache - */ try { - /** ********************* Run Query */ results = await NO_DB_HANDLER(queryString); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "noDatabaseDbHandler", - message: error.message - }); - console.log("ERROR in noDatabaseDbHandler =>", error.message); - } - /** - * Return results - * - * @description Return results add to cache if "req" param is passed - */ if (results) { - return results; - } else { - return null; - } -}; - - -/***/ }), - -/***/ 2020: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const mysql = __webpack_require__(2261); -const grabDbSSL = __webpack_require__(3260); -let NO_DB = mysql({ - config: { - host: process.env.DSQL_DB_HOST, - user: process.env.DSQL_DB_USERNAME, - password: process.env.DSQL_DB_PASSWORD, - charset: "utf8mb4", - ssl: grabDbSSL() - } -}); -/** - * DSQL user read-only DB handler - * @param {object} params - * @param {string} params.paradigm - * @param {string} params.database - * @param {string} params.queryString - * @param {string[]} [params.queryValues] - */ // @ts-ignore -function NO_DB_HANDLER(...args) { - try { - return new Promise((resolve, reject)=>{ - NO_DB.query(...args).then((results)=>{ - NO_DB.end(); - resolve(JSON.parse(JSON.stringify(results))); - }).catch((err)=>{ - NO_DB.end(); - resolve({ - error: err.message, - sql: err.sql - }); - }); - }); - } catch (/** @type {any} */ error) { - return { - success: false, - error: error.message - }; - } -} -module.exports = NO_DB_HANDLER; - - -/***/ }), - -/***/ 1481: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SettingsContext": () => (/* binding */ SettingsContext), - "default": () => (/* binding */ Settings), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./pages/admin/[user_id]/index.jsx -var _user_id_ = __webpack_require__(1457); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/pages/create-account/CreateAccountForm.jsx + 1 modules -var CreateAccountForm = __webpack_require__(5114); -// EXTERNAL MODULE: ./functions/frontend/imageInputFileToBase64.js -var imageInputFileToBase64 = __webpack_require__(6718); -// EXTERNAL MODULE: ./components/general/GeneralPopup.jsx -var GeneralPopup = __webpack_require__(5472); -// EXTERNAL MODULE: ./components/general/ui/ButtonGroup.jsx -var ButtonGroup = __webpack_require__(5449); -;// CONCATENATED MODULE: ./components/admin/databases/UserImage.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} [props.user] - * @param {string | null | import("@/package-shared/types").ImageObjectType} props.image - * @param {React.Dispatch<React.SetStateAction<string | null | import("@/package-shared/types").ImageObjectType>>} props.setImage - */ function UserImage({ user , image , setImage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const imagePreviewRef = external_react_default().useRef(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper w-full items-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "m-0 text-xl", - children: "User Image" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "bg-white rounded-full overflow-hidden w-24 h-24", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: image ? typeof image === "string" ? image : image.imageBase64Full : "/images/database-placeholder.png", - alt: "User Image", - width: 100, - className: "w-full h-full object-cover", - // @ts-ignore - ref: imagePreviewRef, - "data-imagepreview": "image" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col", - id: "upload-user-image-options", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)(ButtonGroup/* default */.Z, { - column: true, - className: "w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "outlined gray w-full whitespace-normal", - onClick: (e)=>{ - (0,GeneralPopup/* openPopup */.Mw)("user-media-popup"); - }, - children: "Choose image From your Uploads" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "secondary w-full whitespace-normal", - onClick: (e)=>{ - /** @type {HTMLButtonElement} */ // @ts-ignore - const buttonEl = e.target; - buttonEl.closest("#upload-user-image-options")?.querySelector("input")?.click(); - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Choose image From your Computer" - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "file", - accept: ".png,.jpg,.jpeg,.webp", - placeholder: "Choose Image", - className: "hidden", - onChange: async (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - const inputFile = inputEl?.files?.[0]; - if (inputFile) { - let imageData = await (0,imageInputFileToBase64/* default */.Z)({ - imageInputFile: inputFile, - maxWidth: 400 - }); - setImage(imageData); - } - } - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/settings/SettingsContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SettingsContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , image , setImage , activeUser } = external_react_default().useContext(SettingsContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [delLoading, setDelLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex items-center justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Settings" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: !user?.social_login && /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/send-password-reset-link", - className: "button outlined", - children: "Reset Password" - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "p-0", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "m-0 text-xl", - children: "Account Information" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-row w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "USER ID" - }), - /*#__PURE__*/ jsx_runtime_.jsx("b", { - className: "info w-auto", - children: user.id - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(CreateAccountForm/* default */.Z, { - user: activeUser, - image: image - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "items-stretch", - children: /*#__PURE__*/ jsx_runtime_.jsx(UserImage, { - image: image, - setImage: setImage - }) - }) - ] - }) - }), - false && /*#__PURE__*/ 0 - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/admin/databases/UserMediaPopup.jsx -var UserMediaPopup = __webpack_require__(9310); -// EXTERNAL MODULE: ./package-shared/functions/backend/noDatabaseDbHandler.js -var noDatabaseDbHandler = __webpack_require__(4227); -var noDatabaseDbHandler_default = /*#__PURE__*/__webpack_require__.n(noDatabaseDbHandler); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/settings.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").SettingsPageContextType} */ // @ts-ignore -const init = {}; -const SettingsContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} [props.databases] - * @param {any} props.activeUser - */ function Settings({ user , databases , activeUser }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [image, setImage] = external_react_default().useState(activeUser.image); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(SettingsContext.Provider, { - value: { - user, - image, - setImage, - activeUser - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SettingsContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(UserMediaPopup/* default */.Z, { - setDbImage: setImage - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const databases = await noDatabaseDbHandler_default()(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${user.id}%'`); - const activeUser = await DB_HANDLER_default()(`SELECT first_name,last_name,username,email,image,image_thumbnail FROM users WHERE id='${user.id}'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - databases: databases, - activeUser: activeUser[0] - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 5050: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CopyAllTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 7039: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteForeverTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 8193: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DriveFileRenameOutlineTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 4063: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StorageTwoTone"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 7849: -/***/ ((module) => { - -module.exports = require("react-dom/client"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,7023,7901,6718,9594,9471,7037,9967,7946,1500,75,9282,8374,7926,5114], () => (__webpack_exec__(1481))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=189,e.ids=[189,636],e.modules={19881:(e,t,r)=>{r.r(t),r.d(t,{config:()=>U,default:()=>E,getServerSideProps:()=>D,getStaticPaths:()=>R,getStaticProps:()=>A,reportWebVitals:()=>F,routeModule:()=>k,unstable_getServerProps:()=>H,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>W,unstable_getStaticPaths:()=>L,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{SettingsContext:()=>_,default:()=>M,getServerSideProps:()=>C});var i=r(63865),a=r(9455),l=r(30671),u=r(49407),o=r(68268),n=r(8732),c=r(82015),m=r.n(c),d=r(95222),p=r(20048),x=r.n(p);r(26295);var g=r(58548),h=r(70045),f=r(79100),q=r(55158),S=r(62506);function j({user:e,image:t,setImage:r}){let s=m().useRef();return(0,n.jsxs)("div",{className:"paper w-full items-center",children:[(0,n.jsx)("h2",{className:"m-0 text-xl",children:"User Image"}),(0,n.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,n.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"User Image",width:100,className:"w-full h-full object-cover",ref:s,"data-imagepreview":"image"})}),(0,n.jsxs)("div",{className:"w-full flex-col",id:"upload-user-image-options",children:[(0,n.jsxs)(S.A,{column:!0,className:"w-full",children:[(0,n.jsx)("button",{className:"outlined gray w-full whitespace-normal",onClick:e=>{(0,q.PB)("user-media-popup")},children:"Choose image From your Uploads"}),(0,n.jsx)("button",{className:"secondary w-full whitespace-normal",onClick:e=>{let t=e.target;t.closest("#upload-user-image-options")?.querySelector("input")?.click()},children:(0,n.jsx)("span",{children:"Choose image From your Computer"})})]}),(0,n.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Image",className:"hidden",onChange:async e=>{let t=e.target,s=t?.files?.[0];s&&r(await (0,f.A)({imageInputFile:s,maxWidth:400}))}})]})]})}function w(e){let{user:t,image:r,setImage:s,activeUser:i}=m().useContext(_),[a,l]=m().useState(!1);return(0,n.jsxs)(m().Fragment,{children:[(0,n.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,n.jsxs)("div",{className:"w-full flex items-center justify-between",children:[(0,n.jsx)("h1",{className:"text-3xl m-0",children:"Settings"}),(0,n.jsx)("div",{children:!t?.social_login&&(0,n.jsx)("a",{href:"/send-password-reset-link",className:"button outlined",children:"Reset Password"})})]}),(0,n.jsx)(g.A,{user:t})]}),(0,n.jsx)("section",{className:"p-0",children:(0,n.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-8 items-stretch",children:[(0,n.jsxs)("div",{className:"paper w-full",children:[(0,n.jsx)("h2",{className:"m-0 text-xl",children:"Account Information"}),(0,n.jsxs)("div",{className:"flex flex-row w-full",children:[(0,n.jsx)("span",{children:"USER ID"}),(0,n.jsx)("b",{className:"info w-auto",children:t.id})]}),(0,n.jsx)(h.A,{user:i,image:r})]}),(0,n.jsx)("div",{className:"items-stretch",children:(0,n.jsx)(j,{image:r,setImage:s})})]})}),!1]})}r(32415);var v=r(42105),b=r(41658),y=r.n(b),N=r(67216),P=r.n(N);let _=m().createContext({});function M({user:e,databases:t,activeUser:r}){let s=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,a]=m().useState(r.image);return(0,n.jsx)(d.A,{head:s,user:e,children:(0,n.jsxs)(_.Provider,{value:{user:e,image:i,setImage:a,activeUser:r},children:[(0,n.jsx)(w,{}),(0,n.jsx)(v.A,{setDbImage:a})]})})}async function C({req:e,res:t,query:r}){let s=await x()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/login",permanent:!1}};let i=await y()(`SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME LIKE 'user_${s.id}%'`),a=await P()(`SELECT first_name,last_name,username,email,image,image_thumbnail FROM users WHERE id='${s.id}'`);return{props:{user:s,databases:i,activeUser:a[0]}}}let E=(0,l.M)(s,"default"),A=(0,l.M)(s,"getStaticProps"),R=(0,l.M)(s,"getStaticPaths"),D=(0,l.M)(s,"getServerSideProps"),U=(0,l.M)(s,"config"),F=(0,l.M)(s,"reportWebVitals"),I=(0,l.M)(s,"unstable_getStaticProps"),L=(0,l.M)(s,"unstable_getStaticPaths"),W=(0,l.M)(s,"unstable_getStaticParams"),H=(0,l.M)(s,"unstable_getServerProps"),O=(0,l.M)(s,"unstable_getServerSideProps"),k=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/settings",pathname:"/admin/[user_id]/settings",bundlePath:"",filename:""},components:{App:o.default,Document:u.default},userland:s})},42105:(e,t,r)=>{r.d(t,{A:()=>o});var s=r(8732),i=r(82015),a=r.n(i);r(63715);var l=r(55158),u=r(32415);function o({setDbImage:e}){let[t,r]=a().useState(!0),[i,o]=a().useState(null);return(0,s.jsxs)(l.Ay,{title:"user-media-popup",children:[t&&(0,s.jsx)(u.A,{width:"20px"}),(0,s.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,s.jsx)("div",{className:"grid grid-cols-2",children:i&&i[0]&&i.filter(e=>"image"==e.media_type).map((t,r)=>(0,s.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:r=>{e(t.media_thumbnail_url||null),(0,l.fs)()},children:(0,s.jsx)("img",{src:t.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},r+1))})]})}r(64417)},79100:(e,t,r)=>{r.d(t,{A:()=>s});async function s({imageInputFile:e,maxWidth:t}){let r,s,i=document.querySelector("[data-imagepreview='image']"),a=e.name.replace(/\..*/,""),l=document.createElement("canvas"),u=e.type,o=t||null,n=URL.createObjectURL(e),c=new Image;return c.src=n,r=await new Promise((e,t)=>{c.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},c.onload=function(){if(URL.revokeObjectURL(this.src),o){let e=o/c.naturalWidth;l.width=c.naturalWidth<o?c.naturalWidth:o,l.height=c.naturalWidth<o?c.naturalHeight:c.naturalHeight*e}else l.width=c.naturalWidth,l.height=c.naturalHeight;let t=l.getContext("2d");t?.drawImage(c,0,0,l.width,l.height);let r=l.toDataURL(u,.95);i&&document.querySelectorAll("[data-imagepreview='image']").forEach(e=>{e.src=r}),e(r)}}),s=await new Promise((e,t)=>{l.toBlob(t=>{e(t?.size)},u,.95)}),{imageBase64:r.replace(/.*?base64,/,""),imageBase64Full:r,imageName:a,imageSize:s}}},41658:(e,t,r)=>{let s=r(29021),i=r(22373),a=r(13608);e.exports=async function(e){let t;"production".match(/dev/)&&s.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{t=await a(e)}catch(e){i({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return t||null}},13608:(e,t,r)=>{let s=r(9973),i=r(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:i()}});e.exports=function(...e){try{return new Promise((t,r)=>{a.query(...e).then(e=>{a.end(),t(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),t({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},1976:e=>{e.exports=require("react-dom/client")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,7070,3737,4417,1223,2414,3247,1137],()=>r(19881));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json index b387fde..83d6ffb 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/settings.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../chunks/7023.js","../../../chunks/7901.js","../../../chunks/6718.js","../../../chunks/9594.js","../../../chunks/9471.js","../../../chunks/7037.js","../../../chunks/9967.js","../../../chunks/7946.js","../../../chunks/1500.js","../../../chunks/75.js","../../../chunks/9282.js","../../../chunks/8374.js","../../../chunks/7926.js","../../../chunks/5114.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/CopyAllTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteForeverTwoTone.js","../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../node_modules/@mui/icons-material/DriveFileRenameOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../../../node_modules/@mui/icons-material/Close.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/client.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/dbSchemas/dataTypes.json","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/client.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js index c47ebb8..e0c79e4 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js @@ -1,747 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1838; -exports.ids = [1838]; -exports.modules = { - -/***/ 3931: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "UsersContext": () => (/* binding */ UsersContext), - "default": () => (/* binding */ Dashboard), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/users/TargetUserPreviewPopup.jsx -var TargetUserPreviewPopup = __webpack_require__(9417); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/users/UserListCard.jsx -var UserListCard = __webpack_require__(3863); -;// CONCATENATED MODULE: ./components/admin/users/UsersList.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>>} props.setTargetUser - * @param {import("@/package-shared/types").MYSQL_user_users_table_def[]} [props.users] - * @param {any[]} props.adminUsers - * @param {any[]} props.invitedAccounts - */ function UsersList({ user , setTargetUser , users , adminUsers , invitedAccounts , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Users List" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card no-hover items-center w-full justify-between", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-10 h-10 rounded-full overflow-hidden", - children: /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: user.image_thumbnail, - alt: "Main User Image", - width: 40, - className: "w-full h-full object-cover" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "font-semibold", - children: [ - user.first_name, - " ", - user.last_name - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm font-semibold", - children: "Super User (Owner)" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col items-stretch", - children: [ - invitedAccounts && invitedAccounts[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h4", { - className: "m-0 text-sm font-semibold text-slate-400", - children: "Accounts that Invited you" - }), - invitedAccounts.map((userObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(UserListCard/* default */.Z, { - userObject: userObject, - setTargetUser: setTargetUser, - paradigm: "invited" - }, index + 1); - }) - ] - }), - adminUsers && adminUsers[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h4", { - className: "m-0 text-sm font-semibold text-slate-400", - children: "Accounts you Invited" - }), - adminUsers.map((userObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(UserListCard/* default */.Z, { - userObject: userObject, - setTargetUser: setTargetUser - }, index + 1); - }) - ] - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: ./components/admin/users/InvitationReceivedCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.invitationObject - */ function InvitationReceivedCard({ invitationObject }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "bg-slate-100 px-4 py-2 rounded w-full justify-between relative", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-sm font-semibold", - children: [ - invitationObject.first_name, - " ", - invitationObject.last_name, - " (", - invitationObject.email, - ")" - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "py-1.5 px-3 text-sm secondary", - onClick: (e)=>{ - setLoading(true); - (0,fetchApi/* default */.Z)("/api/acceptUserInvitation", { - method: "post", - body: { - ...invitationObject - } - }, true).then((res)=>{ - if (res.success) { - window.alert("Invitation Accepted!"); - window.location.reload(); - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - }, - children: "Accept Invitation" - }) - ] - }, invitationObject.id); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/admin/users/UsersContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function UsersContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { user , databases , pendingInvitations , pendingInvitationsReceived , adminUsers , invitedAccounts , setTargetUser , } = external_react_default().useContext(UsersContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "Users" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/add-user`, - className: "flex items-center gap-2 whitespace-normal button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New User" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full grid grid-cols-1 items-start justify-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-stretch justify-start", - children: /*#__PURE__*/ jsx_runtime_.jsx(UsersList, { - setTargetUser: setTargetUser, - user: user, - adminUsers: adminUsers, - invitedAccounts: invitedAccounts - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-stretch justify-start", - children: [ - pendingInvitations && pendingInvitations[0] && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "p-4 items-start gap-4 overflow-visible", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Invitations Sent" - }), - pendingInvitations.map((invitationObject, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "bg-slate-100 px-4 py-2 rounded w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm font-semibold", - children: invitationObject.invited_user_email - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-slate-400", - children: "Pending" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-sm text-orange-600 hover:opacity-50 cursor-pointer", - onClick: (e)=>{ - if (window.confirm("Delete this invitation?")) { - (0,fetchApi/* default */.Z)("/api/deleteInvitation", { - method: "POST", - body: { - id: invitationObject.id - } - }, true).finally(()=>{ - window.location.reload(); - }); - } - }, - children: "Delete Invitation" - }) - ] - }) - ] - }, invitationObject.id); - }) - ] - }) - }) - }), - pendingInvitationsReceived && pendingInvitationsReceived[0] && /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "p-4 items-start gap-4 overflow-visible", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Pending Invitations Received" - }), - pendingInvitationsReceived.map((invitationObject, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(InvitationReceivedCard, { - invitationObject: invitationObject - }, index + 1); - }) - ] - }) - }) - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/users/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AllUserUsersContextType} */ // @ts-ignore -const init = {}; -const UsersContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").MYSQL_delegated_users_table_def[]} props.users - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - * @param {import("@/package-shared/types").MYSQL_invitations_table_def[]} props.pendingInvitations - * @param {any[]} props.pendingInvitationsReceived - * @param {any[]} props.adminUsers - * @param {any[]} props.invitedAccounts - */ function Dashboard({ user , users , databases , pendingInvitations , pendingInvitationsReceived , adminUsers , invitedAccounts , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Users | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [newUser, setNewUser] = external_react_default().useState(null); - /** @type {[ targetUser: import("@/package-shared/types").MYSQL_user_users_table_def | null, setTargetUser: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>> ]} */ // @ts-ignore - const [targetUser, setTargetUser] = external_react_default().useState(null); - /** @type {[ media: any, setTargetMedia: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - const [media, setTargetMedia] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(UsersContext.Provider, { - value: { - user, - users, - targetUser, - setTargetUser, - databases, - pendingInvitations, - pendingInvitationsReceived, - adminUsers, - invitedAccounts - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(UsersContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TargetUserPreviewPopup/* default */.Z, { - targetUser: targetUser, - user: user, - setTargetUser: setTargetUser - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await DB_HANDLER_default()(`SELECT * FROM delegated_users WHERE user_id='${user.id}'`); - const databases = await DB_HANDLER_default()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${user.id}'`); - const pendingInvitations = await DB_HANDLER_default()(`SELECT * FROM invitations WHERE inviting_user_id='${user.id}' AND invitation_status='Pending'`); - const pendingInvitationsReceived = await DB_HANDLER_default()(`SELECT invitations.*,users.first_name,users.last_name,users.email FROM invitations JOIN users ON users.id=invitations.inviting_user_id WHERE invited_user_email='${user.email}' AND invitation_status='Pending'`); - const adminUsers = await DB_HANDLER_default()(`SELECT * FROM user_users WHERE user_id='${user.id}' AND user_type='admin'`); - const invitedAccounts = await DB_HANDLER_default()(`SELECT user_users.*,users.first_name AS inviteeFirstName,users.last_name AS inviteeLastName,users.email AS inviteeEmail, users.image_thumbnail AS inviteeImage FROM user_users JOIN users ON users.id=user_users.user_id WHERE user_users.email='${user.email}' AND user_users.user_type='admin'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - users: users, - databases: databases, - pendingInvitations, - pendingInvitationsReceived, - adminUsers, - invitedAccounts - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,4114,9486,9417,3863], () => (__webpack_exec__(3931))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5662,e.ids=[636,5662],e.modules={30671:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,t){return t in s?s[t]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,t)):"function"==typeof s&&"default"===t?s:void 0}}})},67777:(e,s,t)=>{t.r(s),t.d(s,{config:()=>C,default:()=>M,getServerSideProps:()=>E,getStaticPaths:()=>k,getStaticProps:()=>P,reportWebVitals:()=>F,routeModule:()=>H,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>I,unstable_getStaticProps:()=>U});var i={};t.r(i),t.d(i,{UsersContext:()=>w,default:()=>q,getServerSideProps:()=>S});var r=t(63865),a=t(9455),l=t(30671),n=t(49407),u=t(68268),o=t(8732),d=t(82015),c=t.n(d),m=t(95222),p=t(20048),x=t.n(p),h=t(84312),v=t(58548),y=t(21347);function f({user:e,setTargetUser:s,users:t,adminUsers:i,invitedAccounts:r}){return(0,o.jsx)(c().Fragment,{children:(0,o.jsxs)("section",{className:"paper",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"Users List"}),(0,o.jsxs)("div",{className:"card no-hover items-center w-full justify-between",children:[(0,o.jsxs)("div",{className:"gap-2",children:[(0,o.jsx)("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:(0,o.jsx)("img",{src:e.image_thumbnail,alt:"Main User Image",width:40,className:"w-full h-full object-cover"})}),(0,o.jsxs)("span",{className:"font-semibold",children:[e.first_name," ",e.last_name]})]}),(0,o.jsx)("span",{className:"text-sm font-semibold",children:"Super User (Owner)"})]}),(0,o.jsxs)("div",{className:"w-full flex-col items-stretch",children:[r&&r[0]&&(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts that Invited you"}),r.map((e,t)=>(0,o.jsx)(y.A,{userObject:e,setTargetUser:s,paradigm:"invited"},t+1))]}),i&&i[0]&&(0,o.jsxs)(c().Fragment,{children:[(0,o.jsx)("h4",{className:"m-0 text-sm font-semibold text-slate-400",children:"Accounts you Invited"}),i.map((e,t)=>(0,o.jsx)(y.A,{userObject:e,setTargetUser:s},t+1))]})]})]})})}var j=t(63715),g=t(32415);function b({invitationObject:e}){let[s,t]=c().useState(!1);return(0,o.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between relative",children:[s&&(0,o.jsx)(g.A,{width:"20px"}),(0,o.jsxs)("span",{className:"text-sm font-semibold",children:[e.first_name," ",e.last_name," (",e.email,")"]}),(0,o.jsx)("button",{className:"py-1.5 px-3 text-sm secondary",onClick:s=>{t(!0),(0,j.A)("/api/acceptUserInvitation",{method:"post",body:{...e}},!0).then(e=>{e.success&&(window.alert("Invitation Accepted!"),window.location.reload()),setTimeout(()=>{t(!1)},500)})},children:"Accept Invitation"})]},e.id)}function A(e){let{user:s,databases:t,pendingInvitations:i,pendingInvitationsReceived:r,adminUsers:a,invitedAccounts:l,setTargetUser:n}=c().useContext(w),[u,d]=c().useState(!1);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsx)("h1",{className:"text-3xl m-0",children:"Users"}),(0,o.jsxs)("a",{href:`/admin/${s?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add New User"})]})]}),(0,o.jsx)(v.A,{user:s})]}),(0,o.jsxs)("div",{className:"w-full grid grid-cols-1 items-start justify-start",children:[(0,o.jsx)("div",{className:"flex-col items-stretch justify-start",children:(0,o.jsx)(f,{setTargetUser:n,user:s,adminUsers:a,invitedAccounts:l})}),(0,o.jsxs)("div",{className:"flex-col items-stretch justify-start",children:[i&&i[0]&&(0,o.jsx)(c().Fragment,{children:(0,o.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,o.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"Invitations Sent"}),i.map((e,s)=>(0,o.jsxs)("div",{className:"bg-slate-100 px-4 py-2 rounded w-full justify-between",children:[(0,o.jsx)("span",{className:"text-sm font-semibold",children:e.invited_user_email}),(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:"text-sm text-slate-400",children:"Pending"}),(0,o.jsx)("span",{className:"text-sm text-orange-600 hover:opacity-50 cursor-pointer",onClick:s=>{window.confirm("Delete this invitation?")&&(0,j.A)("/api/deleteInvitation",{method:"POST",body:{id:e.id}},!0).finally(()=>{window.location.reload()})},children:"Delete Invitation"})]})]},e.id))]})})}),r&&r[0]&&(0,o.jsx)(c().Fragment,{children:(0,o.jsx)("section",{className:"p-4 items-start gap-4 overflow-visible",children:(0,o.jsxs)("div",{className:"flex-col w-full items-start",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"Pending Invitations Received"}),r.map((e,s)=>(0,o.jsx)(b,{invitationObject:e},s+1))]})})})]})]})]})}var N=t(67216),_=t.n(N);let w=c().createContext({});function q({user:e,users:s,databases:t,pendingInvitations:i,pendingInvitationsReceived:r,adminUsers:a,invitedAccounts:l}){let n=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Users | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[u,d]=c().useState(null),[p,x]=c().useState(null),[v,y]=c().useState(null);return(0,o.jsx)(m.A,{head:n,user:e,children:(0,o.jsxs)(w.Provider,{value:{user:e,users:s,targetUser:p,setTargetUser:x,databases:t,pendingInvitations:i,pendingInvitationsReceived:r,adminUsers:a,invitedAccounts:l},children:[(0,o.jsx)(A,{}),(0,o.jsx)(h.A,{targetUser:p,user:e,setTargetUser:x})]})})}async function S({req:e,res:s,query:t}){let i=await x()(e,s);if(!i?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await _()(`SELECT * FROM delegated_users WHERE user_id='${i.id}'`),a=await _()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${i.id}'`),l=await _()(`SELECT * FROM invitations WHERE inviting_user_id='${i.id}' AND invitation_status='Pending'`),n=await _()(`SELECT invitations.*,users.first_name,users.last_name,users.email FROM invitations JOIN users ON users.id=invitations.inviting_user_id WHERE invited_user_email='${i.email}' AND invitation_status='Pending'`),u=await _()(`SELECT * FROM user_users WHERE user_id='${i.id}' AND user_type='admin'`),o=await _()(`SELECT user_users.*,users.first_name AS inviteeFirstName,users.last_name AS inviteeLastName,users.email AS inviteeEmail, users.image_thumbnail AS inviteeImage FROM user_users JOIN users ON users.id=user_users.user_id WHERE user_users.email='${i.email}' AND user_users.user_type='admin'`);return{props:{user:i,users:r,databases:a,pendingInvitations:l,pendingInvitationsReceived:n,adminUsers:u,invitedAccounts:o}}}let M=(0,l.M)(i,"default"),P=(0,l.M)(i,"getStaticProps"),k=(0,l.M)(i,"getStaticPaths"),E=(0,l.M)(i,"getServerSideProps"),C=(0,l.M)(i,"config"),F=(0,l.M)(i,"reportWebVitals"),U=(0,l.M)(i,"unstable_getStaticProps"),I=(0,l.M)(i,"unstable_getStaticPaths"),O=(0,l.M)(i,"unstable_getStaticParams"),T=(0,l.M)(i,"unstable_getServerProps"),R=(0,l.M)(i,"unstable_getServerSideProps"),H=new r.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/admin/[user_id]/users",pathname:"/admin/[user_id]/users",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:i})},21347:(e,s,t)=>{t.d(s,{A:()=>d});var i=t(8732),r=t(82015),a=t.n(r),l=t(55158),n=t(63715),u=t(32415),o=t(62506);function d({userObject:e,setTargetUser:s,paradigm:t}){let r=t?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,d=t?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[c,m]=a().useState(!1);return(0,i.jsxs)("div",{className:"card no-hover items-center "+(t?.match(/invited/)?" green green-bg":" primary"),children:[c&&(0,i.jsx)(u.A,{}),(0,i.jsxs)("div",{className:"w-full",children:[(0,i.jsx)("img",{src:d,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,i.jsx)("span",{className:"text-sm font-semibold",children:r}),e?.user_priviledge?.match(/./)&&(0,i.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,i.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!t?.match(/invited/)&&(0,i.jsx)(a().Fragment,{children:(0,i.jsxs)(o.A,{children:[(0,i.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{s(e),setTimeout(()=>{(0,l.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,i.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{m(!0),window.confirm("Delete this user")&&(0,n.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{m(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}},55158:(e,s,t)=>{t.d(s,{Ay:()=>n,PB:()=>u,fs:()=>o});var i=t(8732),r=t(58150),a=t(82015),l=t.n(a);function n({children:e,title:s,data:t,fullPage:a,wrapperClasses:n,closePopupDispatch:u,wrapperStyle:d,noContainer:c}){return a?(0,i.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":s||null,style:d,children:[c?(0,i.jsx)(l().Fragment,{children:e}):(0,i.jsx)("div",{className:"relative w-full h-full z-50","data-data":t?JSON.stringify(t):"",children:e}),(0,i.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),u&&u()},children:(0,i.jsx)(r.A,{color:"white",size:20})}),(0,i.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),u&&u()}})]}):(0,i.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[c?(0,i.jsx)(l().Fragment,{children:e}):(0,i.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":t?JSON.stringify(t):"",children:[e,(0,i.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),u&&u()},children:(0,i.jsx)("span",{className:"font-normal",children:"✖"})})]}),c&&(0,i.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),u&&u()},children:(0,i.jsx)("span",{className:"font-normal",children:"✖"})}),(0,i.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),u&&u()}})]})}function u(e,s){let t=document.querySelector(`[data-popupid='${e}']`);t&&(t.style.display="flex",s&&s(t))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},26406:(e,s,t)=>{var i=t(24994);s.A=void 0;var r=i(t(30887)),a=t(8732);s.A=(0,r.default)([(0,a.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,s,t)=>{t.d(s,{A:()=>i});let i=(0,t(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,s)=>{var t;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var s=require("../../../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),i=s.X(0,[9764,883,8268,7070,4312],()=>t(67777));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json index 6b8ca9c..fa52fb5 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/4480.js","../../../chunks/370.js","../../../chunks/424.js","../../../chunks/4858.js","../../../chunks/5472.js","../../../chunks/4114.js","../../../chunks/9486.js","../../../chunks/9417.js","../../../chunks/3863.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../jsonData/userPriviledges.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/userPriviledges.json","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js index f06c159..3eacca3 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js @@ -1,739 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3869; -exports.ids = [3869]; -exports.modules = { - -/***/ 421: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AddNewUserContext": () => (/* binding */ AddNewUserContext), - "default": () => (/* binding */ AddUserPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/form/FormCheckboxes.jsx -var FormCheckboxes = __webpack_require__(9486); -;// CONCATENATED MODULE: ./components/admin/users/AddNewUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {any} */ let timeout; -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AddNewUserContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , user , query } = external_react_default().useContext(AddNewUserContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userPriviledges = __webpack_require__(9169); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [paradigm, setParadigm] = external_react_default().useState("invitation"); - const [loading, setLoading] = external_react_default().useState(false); - const [allDbSelected, setAllDbSelected] = external_react_default().useState(false); - const [priviledges, setPriviledges] = external_react_default().useState([ - "Update Entries", - "Delete Entries", - ]); - /** @type {[ databasesAccess: string[], setDatabasesAccess: React.Dispatch<React.SetStateAction<string[]>> ]} */ // @ts-ignore - const [databasesAccess, setDatabasesAccess] = external_react_default().useState([]); - const [targetDb, setTargetDb] = external_react_default().useState(databases && databases[0] ? databases[0].db_slug : null); - /** @type {[ selectedDbTables: string | null, setSelectedDbTables: React.Dispatch<React.SetStateAction<string | null>> ]} */ // @ts-ignore - const [alert, setAlert] = external_react_default().useState(null); - /** @type {[ userImage: import("@/package-shared/types").ImageObjectType, setUserImage: React.Dispatch<React.SetStateAction<import("@/package-shared/types").ImageObjectType>> ]} */ // @ts-ignore - const [userImage, setUserImage] = external_react_default().useState(null); - /** @type {[ dbTables: import("@/package-shared/types").MYSQL_user_database_tables_table_def[] | null, setDbTables: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_database_tables_table_def[] | null>> ]} */ // @ts-ignore - const [dbTables, setDbTables] = external_react_default().useState([]); - /** @type {[ selectedDbTables: string[], setSelectedDbTables: React.Dispatch<React.SetStateAction<string[]>> ]} */ // @ts-ignore - const [selectedDbTables, setSelectedDbTables] = external_react_default().useState([]); - external_react_default().useEffect(()=>{ - if (!targetDb) return; - (0,fetchApi/* default */.Z)(`/api/getDatabaseTables?dbSlug=${targetDb}&dbOwnerId=${user.id}`).then((res)=>{ - if (res.success) { - setDbTables(null); - setTimeout(()=>{ - setDbTables([ - ...res.tables - ]); - }, 200); - } - }); - }, [ - targetDb - ]); - external_react_default().useEffect(()=>{ - setTargetDb(databasesAccess[0]); - }, [ - databasesAccess - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full justify-between flex-wrap", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - "Add A New User", - paradigm?.match(/database/) && targetDb ? ` To ${targetDb}` : "" - ] - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "p-4 items-start gap-4 overflow-visible", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const form = e.target; - const formFields = Array.from(form); - /** @type {any} */ const formFieldsObject = {}; - formFields.forEach((/** @type {any} */ field)=>{ - if (field.nodeName?.match(/button/i)) return; - if (!field.name || !field.value?.match(/./)) return; - formFieldsObject[field.name] = field.value; - }); - const fetchObject = { - ...formFieldsObject, - db_tables: databasesAccess && databasesAccess[0] ? selectedDbTables.join("|") : "", - paradigm - }; - if (paradigm.match(/database/i)) { - fetchObject["database"] = targetDb; - } else { - fetchObject["database_access"] = databasesAccess.join("|"); - fetchObject["priviledge"] = priviledges.join("|"); - } - (0,fetchApi/* default */.Z)("/api/addUserUser", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (res.success) { - if (userImage) { - userImage["imageName"] = `${targetDb}-user-${res.newUserId}`; - userImage["mimeType"] = "jpeg"; - delete userImage["imageBase64Full"]; - (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - userImage - ], - folder: targetDb?.replace(/_/g, "-"), - type: "image" - } - }, true).then((_res)=>{ - (0,fetchApi/* default */.Z)("/api/updateUserUser", { - method: "post", - body: { - id: res.newUserId, - user_type: paradigm, - image: _res.mediaData[0].media_url, - image_thumbnail: _res.mediaData[0].media_thumbnail_url - } - }, true).then((__res)=>{ - if (__res.success) { - if (paradigm?.match(/database/)) { - window.location.pathname = `/admin/${user?.id}/users/databases/${targetDb}`; - } else { - window.location.pathname = `/admin/${user?.id}/users`; - } - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - }); - } else { - if (paradigm?.match(/database/)) { - window.location.pathname = `/admin/${user?.id}/users/databases/${targetDb}`; - } else { - window.location.pathname = `/admin/${user?.id}/users`; - } - } - } else { - setTimeout(()=>{ - setLoading(false); - }, 500); - } - }); - }, - className: "w-full flex flex-col items-stretch gap-4", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600 mt-4", - children: "User Email Address" - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "email", - name: "email_address", - id: "email_address", - placeholder: "Email Address", - autoComplete: "email", - required: true, - onInput: (e)=>{ - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - if (inputEl.value.match(/./)) { - inputEl.classList.remove("warning"); - setAlert(null); - } else { - inputEl.classList.add("warning"); - } - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - (0,fetchApi/* default */.Z)(`/api/checkDuplicateData?type=email&value=${inputEl.value}&tableName=user_users&userId=${user.id}&userType=invitation`).then((res)=>{ - if (res?.result) { - setAlert("Email Already Exists"); - inputEl.classList.add("warning"); - } else { - setAlert(null); - inputEl.classList.remove("warning"); - } - }); - }, 300); - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600 mt-4", - children: "User Priviledges" - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - checkBoxValues: userPriviledges.map((userPriviledge)=>{ - return { - title: userPriviledge, - name: userPriviledge, - default: userPriviledge.match(/entries/i) ? true : false, - onChangeHandler: (e)=>{ - if (priviledges.includes(userPriviledge)) { - let newArray = priviledges.filter((priv)=>priv != userPriviledge); - setPriviledges([ - ...newArray - ]); - } else { - setPriviledges((prev)=>[ - ...prev, - userPriviledge, - ]); - } - } - }; - }), - smallText: true, - flexRow: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600 mt-4", - children: "Databases Access" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "button outlined gray px-4 py-1 -mt-2", - onClick: (e)=>{ - if (allDbSelected) { - databases.forEach((db)=>{ - setTimeout(()=>{ - /** @type {HTMLInputElement | null} */ // @ts-ignore - const elt = document.getElementById(db.db_slug); - if (elt?.checked) elt.click(); - }, 200); - }); - setAllDbSelected(false); - } else { - databases.forEach((db)=>{ - setTimeout(()=>{ - /** @type {HTMLInputElement | null} */ // @ts-ignore - const elt = document.getElementById(db.db_slug); - if (!elt?.checked) elt?.click(); - }, 200); - }); - setAllDbSelected(true); - } - }, - children: allDbSelected ? "Deselect All" : "Select All" - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - checkBoxValues: databases.map((db)=>{ - return { - title: db.db_name, - name: db.db_slug, - onChangeHandler: (e)=>{ - if (databasesAccess.includes(db.db_slug)) { - let newArray = databasesAccess.filter((_db)=>_db != db.db_slug); - setDatabasesAccess([ - ...newArray - ]); - } else { - setDatabasesAccess((prev)=>[ - ...prev, - db.db_slug, - ]); - } - if (databasesAccess.length === databases.length) { - setAllDbSelected(true); - } else { - setAllDbSelected(false); - } - } - }; - }), - smallText: true, - flexRow: true, - name: "db-select" - }), - databasesAccess && databasesAccess[0] && /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "my-6" - }), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-2 text-slate-600", - children: "Database Tables" - }), - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - required: true, - selectOptions: databases.filter((db)=>databasesAccess.includes(db.db_slug)).map((db)=>{ - return { - title: db.db_name, - payload: db.db_slug - }; - }), - name: "databases", - onChangeHandler: (e)=>{ - setTargetDb(e.target.value); - } - }), - dbTables && dbTables[0] && /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - checkBoxValues: dbTables.map((dbTable)=>{ - return { - title: dbTable.table_name, - name: dbTable.table_slug, - onChangeHandler: (e)=>{ - if (e.target.checked) { - setSelectedDbTables((prev)=>[ - ...prev, - `${targetDb}-${dbTable.table_slug}`, - ]); - } else { - let newArray = selectedDbTables.filter((table)=>table != `${targetDb}-${dbTable.table_slug}`); - setSelectedDbTables([ - ...newArray - ]); - } - // if (selectedDbTables.includes(`${targetDb}-${dbTable.table_slug}`)) { - // let newArray = selectedDbTables.filter(table => table != `${targetDb}-${dbTable.table_slug}`); - // setSelectedDbTables([...newArray]) - // } else { - // setSelectedDbTables(prev => [...prev, `${targetDb}-${dbTable.table_slug}`]) - // } - }, - default: selectedDbTables?.includes(`${targetDb}-${dbTable.table_slug}`) ? true : false - }; - }), - smallText: true, - flexRow: true - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: paradigm?.match(/database/) ? "Add User" : "Invite User" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/users/add-user.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").AddUserContextType} */ // @ts-ignore -const init = {}; -const AddNewUserContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").MYSQL_delegated_users_table_def[]} props.users - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - * @param {any} props.query - */ function AddUserPage({ user , users , databases , query }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Users | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [newUser, setNewUser] = external_react_default().useState(null); - const [targetUser, setTargetUser] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(AddNewUserContext.Provider, { - value: { - user, - users, - databases, - query - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(AddNewUserContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await DB_HANDLER_default()(`SELECT * FROM delegated_users WHERE user_id='${user.id}'`); - const databases = await DB_HANDLER_default()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${user.id}'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - users: users, - databases: databases, - query - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9169: -/***/ ((module) => { - -module.exports = JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]'); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,1781,4114,9486], () => (__webpack_exec__(421))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2774,e.ids=[636,2774],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},36885:(e,t,s)=>{let a;s.r(t),s.d(t,{config:()=>C,default:()=>M,getServerSideProps:()=>N,getStaticPaths:()=>E,getStaticProps:()=>P,reportWebVitals:()=>T,routeModule:()=>R,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>H,unstable_getStaticParams:()=>$,unstable_getStaticPaths:()=>U,unstable_getStaticProps:()=>L});var r={};s.r(r),s.d(r,{AddNewUserContext:()=>q,default:()=>_,getServerSideProps:()=>S});var i=s(63865),l=s(9455),n=s(30671),d=s(49407),u=s(68268),o=s(8732),c=s(82015),m=s.n(c),p=s(95222),h=s(20048),x=s.n(h),f=s(58548),g=s(46437),y=s(51548),b=s(63715),v=s(32415),A=s(58403);function w(e){let{databases:t,user:r,query:i}=m().useContext(q),l=s(49436),[n,d]=m().useState("invitation"),[u,c]=m().useState(!1),[p,h]=m().useState(!1),[x,w]=m().useState(["Update Entries","Delete Entries"]),[j,k]=m().useState([]),[_,S]=m().useState(t&&t[0]?t[0].db_slug:null),[M,P]=m().useState(null),[E,N]=m().useState(null),[C,T]=m().useState([]),[L,U]=m().useState([]);return(0,o.jsxs)(m().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsx)("div",{className:"w-full justify-between flex-wrap",children:(0,o.jsxs)("div",{children:[(0,o.jsx)(g.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:["Add A New User",n?.match(/database/)&&_?` To ${_}`:""]})]})}),(0,o.jsx)(f.A,{user:r})]}),(0,o.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[u&&(0,o.jsx)(v.A,{}),(0,o.jsxs)("form",{onSubmit:e=>{e.preventDefault(),c(!0);let t=Array.from(e.target),s={};t.forEach(e=>{!e.nodeName?.match(/button/i)&&e.name&&e.value?.match(/./)&&(s[e.name]=e.value)});let a={...s,db_tables:j&&j[0]?L.join("|"):"",paradigm:n};n.match(/database/i)?a.database=_:(a.database_access=j.join("|"),a.priviledge=x.join("|")),(0,b.A)("/api/addUserUser",{method:"post",body:a},!0).then(e=>{e.success?E?(E.imageName=`${_}-user-${e.newUserId}`,E.mimeType="jpeg",delete E.imageBase64Full,(0,b.A)("/api/addUserMedia",{method:"post",body:{media:[E],folder:_?.replace(/_/g,"-"),type:"image"}},!0).then(t=>{(0,b.A)("/api/updateUserUser",{method:"post",body:{id:e.newUserId,user_type:n,image:t.mediaData[0].media_url,image_thumbnail:t.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&(n?.match(/database/)?window.location.pathname=`/admin/${r?.id}/users/databases/${_}`:window.location.pathname=`/admin/${r?.id}/users`),setTimeout(()=>{c(!1)},500)})})):n?.match(/database/)?window.location.pathname=`/admin/${r?.id}/users/databases/${_}`:window.location.pathname=`/admin/${r?.id}/users`:setTimeout(()=>{c(!1)},500)})},className:"w-full flex flex-col items-stretch gap-4",children:[(0,o.jsxs)("div",{className:"flex-col items-start w-full",children:[(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Email Address"}),(0,o.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",required:!0,onInput:e=>{let t=e.target;t.value.match(/./)?(t.classList.remove("warning"),P(null)):t.classList.add("warning"),window.clearTimeout(a),a=setTimeout(()=>{(0,b.A)(`/api/checkDuplicateData?type=email&value=${t.value}&tableName=user_users&userId=${r.id}&userType=invitation`).then(e=>{e?.result?(P("Email Already Exists"),t.classList.add("warning")):(P(null),t.classList.remove("warning"))})},300)}}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User Priviledges"}),(0,o.jsx)(A.A,{checkBoxValues:l.map(e=>({title:e,name:e,default:!!e.match(/entries/i),onChangeHandler:t=>{x.includes(e)?w([...x.filter(t=>t!=e)]):w(t=>[...t,e])}})),smallText:!0,flexRow:!0}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"Databases Access"}),(0,o.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-2",onClick:e=>{p?(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked&&t.click()},200)}),h(!1)):(t.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t?.checked||t?.click()},200)}),h(!0))},children:p?"Deselect All":"Select All"}),(0,o.jsx)(A.A,{checkBoxValues:t.map(e=>({title:e.db_name,name:e.db_slug,onChangeHandler:s=>{j.includes(e.db_slug)?k([...j.filter(t=>t!=e.db_slug)]):k(t=>[...t,e.db_slug]),j.length===t.length?h(!0):h(!1)}})),smallText:!0,flexRow:!0,name:"db-select"}),j&&j[0]&&(0,o.jsxs)(m().Fragment,{children:[(0,o.jsx)("hr",{className:"my-6"}),(0,o.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,o.jsx)(y.A,{required:!0,selectOptions:t.filter(e=>j.includes(e.db_slug)).map(e=>({title:e.db_name,payload:e.db_slug})),name:"databases",onChangeHandler:e=>{S(e.target.value)}}),C&&C[0]&&(0,o.jsx)(A.A,{checkBoxValues:C.map(e=>({title:e.table_name,name:e.table_slug,onChangeHandler:t=>{t.target.checked?U(t=>[...t,`${_}-${e.table_slug}`]):U([...L.filter(t=>t!=`${_}-${e.table_slug}`)])},default:!!L?.includes(`${_}-${e.table_slug}`)})),smallText:!0,flexRow:!0})]})]}),(0,o.jsx)("button",{children:n?.match(/database/)?"Add User":"Invite User"})]})]})]})}var j=s(67216),k=s.n(j);let q=m().createContext({});function _({user:e,users:t,databases:s,query:a}){let r=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"Users | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,l]=m().useState(null),[n,d]=m().useState(null);return(0,o.jsx)(p.A,{head:r,user:e,children:(0,o.jsx)(q.Provider,{value:{user:e,users:t,databases:s,query:a},children:(0,o.jsx)(w,{})})})}async function S({req:e,res:t,query:s}){let a=await x()(e,t);if(!a?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let r=await k()(`SELECT * FROM delegated_users WHERE user_id='${a.id}'`),i=await k()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${a.id}'`);return{props:{user:a,users:r,databases:i,query:s}}}let M=(0,n.M)(r,"default"),P=(0,n.M)(r,"getStaticProps"),E=(0,n.M)(r,"getStaticPaths"),N=(0,n.M)(r,"getServerSideProps"),C=(0,n.M)(r,"config"),T=(0,n.M)(r,"reportWebVitals"),L=(0,n.M)(r,"unstable_getStaticProps"),U=(0,n.M)(r,"unstable_getStaticPaths"),$=(0,n.M)(r,"unstable_getStaticParams"),D=(0,n.M)(r,"unstable_getServerProps"),H=(0,n.M)(r,"unstable_getServerSideProps"),R=new i.PagesRouteModule({definition:{kind:l.A.PAGES,page:"/admin/[user_id]/users/add-user",pathname:"/admin/[user_id]/users/add-user",bundlePath:"",filename:""},components:{App:u.default,Document:d.default},userland:r})},58403:(e,t,s)=>{s.d(t,{A:()=>r});var a=s(8732);function r({name:e,checkBoxValues:t,setAlert:s,labelColor:r,flexRow:i,baseText:l,smallText:n,className:d}){return(0,a.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:t.map((t,i)=>{let{payload:d,title:u,onChangeHandler:o,fixed:c,jsx:m}=t,p=t.name?`${e}-${t.name}`:d?e+"-"+d:e;return(0,a.jsxs)("div",{className:"flex items-center"+(t.default&&c?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,a.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:p,id:p,onChange:e=>{s&&s(null),o&&o(e,t)},value:d,style:{minWidth:"20px"}}),m||(0,a.jsx)("label",{htmlFor:p,className:"m-0 "+(r||"text-slate-800 dark:text-white/80")+(l||n?" text-base":" text-lg"),children:u})]},i+1)})})}s(82015)},51548:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732),r=s(58526);function i({selectOptions:e,name:t,onChangeHandler:s,required:i,setAlert:l,title:n,defaultValue:d,info:u,id:o}){try{function c(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(u?" pr-8":""),children:[n&&(0,a.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:t,id:o||t,className:"w-full bg-white",required:i,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:d||void 0,children:e.map((e,t)=>{let{payload:s,title:r}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:r},t+1)})}),(0,a.jsx)(r.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),u&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:c,onMouseLeave:c,onClick:c,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:u})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}s(82015)},46437:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(8732);s(82015);var r=s(42178);function i(){return(0,a.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,a.jsx)(r.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},42178:(e,t,s)=>{var a=s(24994);t.A=void 0;var r=a(s(30887)),i=s(8732);t.A=(0,r.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,s)=>{var a=s(24994);t.A=void 0;var r=a(s(30887)),i=s(8732);t.A=(0,r.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49436:e=>{e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}};var t=require("../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[9764,883,8268,7070],()=>s(36885));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json index f8a57bc..410f530 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/913.js","../../../../chunks/4480.js","../../../../chunks/370.js","../../../../chunks/424.js","../../../../chunks/4858.js","../../../../chunks/1781.js","../../../../chunks/4114.js","../../../../chunks/9486.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../jsonData/userPriviledges.json","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js index 8933b88..125fd51 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js @@ -1,513 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9334; -exports.ids = [9334]; -exports.modules = { - -/***/ 3666: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "AllDatabasesUsersContext": () => (/* binding */ AllDatabasesUsersContext), - "default": () => (/* binding */ AllDatabasesUsersPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/users/TargetUserPreviewPopup.jsx -var TargetUserPreviewPopup = __webpack_require__(9417); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -;// CONCATENATED MODULE: ./components/admin/users/DatabaseUsers.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - * @param {import("@/package-shared/types").UserType} props.user - */ function DatabaseUsers({ databases , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "p-4 items-start gap-4 overflow-visible", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Database Users" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex flex-wrap gap-6", - children: databases && databases[0] ? databases.map((dbObject, index)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/databases/${dbObject.db_slug}`, - className: "border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: dbObject.db_image, - className: "w-8 h-8 rounded-full object-cover", - alt: "" - }), - dbObject.db_name - ] - }, index + 1); - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Databases Yet" - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -;// CONCATENATED MODULE: ./components/admin/users/AllDatabasesUsersContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function AllDatabasesUsersContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { databases , user } = external_react_default().useContext(AllDatabasesUsersContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-3xl m-0", - children: "All Databases Users" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/add-user`, - className: "flex items-center gap-2 whitespace-normal button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New User" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(DatabaseUsers, { - databases: databases, - user: user - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/users/databases/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").UserDatabasesContextType} */ // @ts-ignore -const init = {}; -const AllDatabasesUsersContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any[]} props.users - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[]} props.databases - */ function AllDatabasesUsersPage({ user , users , databases }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Users | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [newUser, setNewUser] = external_react_default().useState(null); - /** @type {[ targetUser: import("@/package-shared/types").MYSQL_user_users_table_def, setTargetUser: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>> ]} */ // @ts-ignore - const [targetUser, setTargetUser] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(AllDatabasesUsersContext.Provider, { - value: { - user, - users, - targetUser, - setTargetUser, - databases - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(AllDatabasesUsersContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TargetUserPreviewPopup/* default */.Z, { - targetUser: targetUser, - user: user, - setTargetUser: setTargetUser - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await DB_HANDLER_default()(`SELECT * FROM delegated_users WHERE user_id='${user.id}'`); - const databases = await DB_HANDLER_default()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${user.id}'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - users: users, - databases: databases - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,9486,9417], () => (__webpack_exec__(3666))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3681,e.ids=[636,3681],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},31702:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>M,getServerSideProps:()=>w,getStaticPaths:()=>S,getStaticProps:()=>P,reportWebVitals:()=>C,routeModule:()=>U,unstable_getServerProps:()=>F,unstable_getServerSideProps:()=>H,unstable_getStaticParams:()=>z,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>N});var s={};r.r(s),r.d(s,{AllDatabasesUsersContext:()=>q,default:()=>j,getServerSideProps:()=>k});var a=r(63865),i=r(9455),l=r(30671),u=r(49407),o=r(68268),n=r(8732),d=r(82015),c=r.n(d),p=r(95222),m=r(20048),x=r.n(m),h=r(84312),y=r(58548);function f({databases:e,user:t}){return(0,n.jsx)(c().Fragment,{children:(0,n.jsxs)("section",{className:"p-4 items-start gap-4 overflow-visible",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Database Users"}),(0,n.jsx)("div",{className:"flex flex-wrap gap-6",children:e&&e[0]?e.map((e,r)=>(0,n.jsxs)("a",{href:`/admin/${t?.id}/users/databases/${e.db_slug}`,className:"border border-slate-200 border-solid rounded px-6 py-4 hover:border-primary flex items-center gap-2",children:[(0,n.jsx)("img",{src:e.db_image,className:"w-8 h-8 rounded-full object-cover",alt:""}),e.db_name]},r+1)):(0,n.jsx)("span",{children:"No Databases Yet"})})]})})}var b=r(46437);function v(e){let{databases:t,user:r}=c().useContext(q);return(0,n.jsxs)(c().Fragment,{children:[(0,n.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,n.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(b.A,{}),(0,n.jsx)("h1",{className:"text-3xl m-0",children:"All Databases Users"})]}),(0,n.jsxs)("a",{href:`/admin/${r?.id}/users/add-user`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,n.jsx)("span",{className:"symbol",children:"+"}),(0,n.jsx)("span",{children:"Add New User"})]})]}),(0,n.jsx)(y.A,{user:r})]}),(0,n.jsx)(f,{databases:t,user:r})]})}var g=r(67216),A=r.n(g);let q=c().createContext({});function j({user:e,users:t,databases:r}){let s=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"Users | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[a,i]=c().useState(null),[l,u]=c().useState(null);return(0,n.jsx)(p.A,{head:s,user:e,children:(0,n.jsxs)(q.Provider,{value:{user:e,users:t,targetUser:l,setTargetUser:u,databases:r},children:[(0,n.jsx)(v,{}),(0,n.jsx)(h.A,{targetUser:l,user:e,setTargetUser:u})]})})}async function k({req:e,res:t,query:r}){let s=await x()(e,t);if(!s?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await A()(`SELECT * FROM delegated_users WHERE user_id='${s.id}'`),i=await A()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${s.id}'`);return{props:{user:s,users:a,databases:i}}}let M=(0,l.M)(s,"default"),P=(0,l.M)(s,"getStaticProps"),S=(0,l.M)(s,"getStaticPaths"),w=(0,l.M)(s,"getServerSideProps"),_=(0,l.M)(s,"config"),C=(0,l.M)(s,"reportWebVitals"),N=(0,l.M)(s,"unstable_getStaticProps"),E=(0,l.M)(s,"unstable_getStaticPaths"),z=(0,l.M)(s,"unstable_getStaticParams"),F=(0,l.M)(s,"unstable_getServerProps"),H=(0,l.M)(s,"unstable_getServerSideProps"),U=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/databases",pathname:"/admin/[user_id]/users/databases",bundlePath:"",filename:""},components:{App:o.default,Document:u.default},userland:s})},46437:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732);r(82015);var a=r(42178);function i(){return(0,s.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,s.jsx)(a.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},55158:(e,t,r)=>{r.d(t,{Ay:()=>u,PB:()=>o,fs:()=>n});var s=r(8732),a=r(58150),i=r(82015),l=r.n(i);function u({children:e,title:t,data:r,fullPage:i,wrapperClasses:u,closePopupDispatch:o,wrapperStyle:d,noContainer:c}){return i?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(u||""),"data-popupid":t||null,style:d,children:[c?(0,s.jsx)(l().Fragment,{children:e}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:e}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{n(),o&&o()},children:(0,s.jsx)(a.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[c?(0,s.jsx)(l().Fragment,{children:e}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[e,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{n(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),c&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{n(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{n(),o&&o()}})]})}function o(e,t){let r=document.querySelector(`[data-popupid='${e}']`);r&&(r.style.display="flex",t&&t(r))}function n(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},42178:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,r)=>{var s=r(24994);t.A=void 0;var a=s(r(30887)),i=r(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,7070,4312],()=>r(31702));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json index 1cf7756..410f530 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/913.js","../../../../chunks/4480.js","../../../../chunks/370.js","../../../../chunks/424.js","../../../../chunks/4858.js","../../../../chunks/5472.js","../../../../chunks/1781.js","../../../../chunks/4114.js","../../../../chunks/9486.js","../../../../chunks/9417.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../jsonData/userPriviledges.json","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/userPriviledges.json","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js index 6f096a6..5fe3df9 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js @@ -1,491 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1383; -exports.ids = [1383]; -exports.modules = { - -/***/ 7650: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleDatabaseUsersContext": () => (/* binding */ SingleDatabaseUsersContext), - "default": () => (/* binding */ DatabaseUsersPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/admin/users/TargetUserPreviewPopup.jsx -var TargetUserPreviewPopup = __webpack_require__(9417); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/users/UserListCard.jsx -var UserListCard = __webpack_require__(3863); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -;// CONCATENATED MODULE: ./components/admin/users/SingleDatabaseUsersContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleDatabaseUsersContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { database , users , user } = external_react_default().useContext(SingleDatabaseUsersContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - database.db_name, - " Users" - ] - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/add-user?db=${database.db_slug}`, - className: "flex items-center gap-2 whitespace-normal button", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "symbol", - children: "+" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Add New User" - }) - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "paper w-full flex-col items-stretch", - children: users && users[0] ? users.map((userObject)=>{ - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/admin/${user?.id}/users/databases/${database.db_slug}/${userObject.id}`, - className: "w-full flex items-center gap-2 p-4 border border-solid border-slate-200 rounded cursor-pointer hover:border-slate-400 flex-wrap", - onClick: (e)=>{ - // @ts-ignore - if (e.target.closest("button")) return e.preventDefault(); - // setTargetUser(userObject) - // openPopup("target-media-popup") - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: userObject.image_thumbnail, - alt: "", - className: "w-10 h-10 rounded-full object-cover bg-slate-200" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-1", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "font-bold", - children: [ - userObject.first_name, - " ", - userObject.last_name - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-xs text-slate-500", - children: userObject.date_created?.substring(0, 16) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "ml-auto outlined gray pointer-events-none", - children: "Edit User" - }) - ] - }); - }) : /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Users for this database yet" - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/users/databases/[database]/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").DelegatedDbContextType} */ // @ts-ignore -const init = {}; -const SingleDatabaseUsersContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").MYSQL_user_users_table_def[]} props.users - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} props.database - */ function DatabaseUsersPage({ user , users , database }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${database.db_name} Users | Datasquirel"`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [newUser, setNewUser] = external_react_default().useState(null); - /** @type {[ targetUser: import("@/package-shared/types").MYSQL_user_users_table_def | null, setTargetUser: React.Dispatch<React.SetStateAction<import("@/package-shared/types").MYSQL_user_users_table_def | null>> ]} */ // @ts-ignore - const [targetUser, setTargetUser] = external_react_default().useState(null); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)(SingleDatabaseUsersContext.Provider, { - value: { - user, - users, - targetUser, - setTargetUser, - database - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SingleDatabaseUsersContent, {}), - /*#__PURE__*/ jsx_runtime_.jsx(TargetUserPreviewPopup/* default */.Z, { - targetUser: targetUser, - user: user, - setTargetUser: setTargetUser - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await DB_HANDLER_default()(`SELECT * FROM user_users WHERE user_id='${user.id}' AND \`database\`='${query.database}'`); - const database = await DB_HANDLER_default()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${user.id}' AND db_slug='${query.database}'`); - if (!database || !database[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/users`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - users: users, - database: database[0] - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,9486,9417,3863], () => (__webpack_exec__(7650))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4397,e.ids=[636,4397],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},59950:(e,t,s)=>{s.r(t),s.d(t,{config:()=>N,default:()=>k,getServerSideProps:()=>S,getStaticPaths:()=>P,getStaticProps:()=>M,reportWebVitals:()=>_,routeModule:()=>F,unstable_getServerProps:()=>$,unstable_getServerSideProps:()=>U,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>w});var r={};s.r(r),s.d(r,{SingleDatabaseUsersContext:()=>j,default:()=>A,getServerSideProps:()=>q});var a=s(63865),i=s(9455),l=s(30671),n=s(49407),u=s(68268),o=s(8732),d=s(82015),c=s.n(d),p=s(95222),m=s(20048),x=s.n(m),h=s(84312),y=s(58548);s(21347);var f=s(46437);function b(e){let{database:t,users:s,user:r}=c().useContext(j);return(0,o.jsxs)(c().Fragment,{children:[(0,o.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,o.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(f.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:[t.db_name," Users"]})]}),(0,o.jsxs)("a",{href:`/admin/${r?.id}/users/add-user?db=${t.db_slug}`,className:"flex items-center gap-2 whitespace-normal button",children:[(0,o.jsx)("span",{className:"symbol",children:"+"}),(0,o.jsx)("span",{children:"Add New User"})]})]}),(0,o.jsx)(y.A,{user:r})]}),(0,o.jsx)("div",{className:"paper w-full flex-col items-stretch",children:s&&s[0]?s.map(e=>(0,o.jsxs)("a",{href:`/admin/${r?.id}/users/databases/${t.db_slug}/${e.id}`,className:"w-full flex items-center gap-2 p-4 border border-solid border-slate-200 rounded cursor-pointer hover:border-slate-400 flex-wrap",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[(0,o.jsx)("img",{src:e.image_thumbnail,alt:"",className:"w-10 h-10 rounded-full object-cover bg-slate-200"}),(0,o.jsxs)("div",{className:"flex-col items-start gap-1",children:[(0,o.jsxs)("span",{className:"font-bold",children:[e.first_name," ",e.last_name]}),(0,o.jsx)("span",{className:"text-xs text-slate-500",children:e.date_created?.substring(0,16)})]}),(0,o.jsx)("button",{className:"ml-auto outlined gray pointer-events-none",children:"Edit User"})]})):(0,o.jsx)("span",{children:"No Users for this database yet"})})]})}var v=s(67216),g=s.n(v);let j=c().createContext({});function A({user:e,users:t,database:s}){let r=`${s.db_name} Users | Datasquirel"`,a=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:r}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[i,l]=c().useState(null),[n,u]=c().useState(null);return(0,o.jsx)(p.A,{head:a,user:e,children:(0,o.jsxs)(j.Provider,{value:{user:e,users:t,targetUser:n,setTargetUser:u,database:s},children:[(0,o.jsx)(b,{}),(0,o.jsx)(h.A,{targetUser:n,user:e,setTargetUser:u})]})})}async function q({req:e,res:t,query:s}){let r=await x()(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await g()(`SELECT * FROM user_users WHERE user_id='${r.id}' AND \`database\`='${s.database}'`),i=await g()(`SELECT db_name,db_slug,db_image FROM user_databases WHERE user_id='${r.id}' AND db_slug='${s.database}'`);return i&&i[0]?{props:{user:r,users:a,database:i[0]}}:{redirect:{destination:`/admin/${r?.id}/users`,permanent:!1}}}let k=(0,l.M)(r,"default"),M=(0,l.M)(r,"getStaticProps"),P=(0,l.M)(r,"getStaticPaths"),S=(0,l.M)(r,"getServerSideProps"),N=(0,l.M)(r,"config"),_=(0,l.M)(r,"reportWebVitals"),w=(0,l.M)(r,"unstable_getStaticProps"),C=(0,l.M)(r,"unstable_getStaticPaths"),E=(0,l.M)(r,"unstable_getStaticParams"),$=(0,l.M)(r,"unstable_getServerProps"),U=(0,l.M)(r,"unstable_getServerSideProps"),F=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/databases/[database]",pathname:"/admin/[user_id]/users/databases/[database]",bundlePath:"",filename:""},components:{App:u.default,Document:n.default},userland:r})},21347:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(8732),a=s(82015),i=s.n(a),l=s(55158),n=s(63715),u=s(32415),o=s(62506);function d({userObject:e,setTargetUser:t,paradigm:s}){let a=s?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,d=s?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[c,p]=i().useState(!1);return(0,r.jsxs)("div",{className:"card no-hover items-center "+(s?.match(/invited/)?" green green-bg":" primary"),children:[c&&(0,r.jsx)(u.A,{}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("img",{src:d,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,r.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,r.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,r.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!s?.match(/invited/)&&(0,r.jsx)(i().Fragment,{children:(0,r.jsxs)(o.A,{children:[(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{t(e),setTimeout(()=>{(0,l.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{p(!0),window.confirm("Delete this user")&&(0,n.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{p(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}},46437:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732);s(82015);var a=s(42178);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(a.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},55158:(e,t,s)=>{s.d(t,{Ay:()=>n,PB:()=>u,fs:()=>o});var r=s(8732),a=s(58150),i=s(82015),l=s.n(i);function n({children:e,title:t,data:s,fullPage:i,wrapperClasses:n,closePopupDispatch:u,wrapperStyle:d,noContainer:c}){return i?(0,r.jsxs)("div",{className:"popup-bg overflow-hidden "+(n||""),"data-popupid":t||null,style:d,children:[c?(0,r.jsx)(l().Fragment,{children:e}):(0,r.jsx)("div",{className:"relative w-full h-full z-50","data-data":s?JSON.stringify(s):"",children:e}),(0,r.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{o(),u&&u()},children:(0,r.jsx)(a.A,{color:"white",size:20})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),u&&u()}})]}):(0,r.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[c?(0,r.jsx)(l().Fragment,{children:e}):(0,r.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":s?JSON.stringify(s):"",children:[e,(0,r.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{o(),u&&u()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})})]}),c&&(0,r.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{o(),u&&u()},children:(0,r.jsx)("span",{className:"font-normal",children:"✖"})}),(0,r.jsx)("div",{className:"popup-canceller",onClick:e=>{o(),u&&u()}})]})}function u(e,t){let s=document.querySelector(`[data-popupid='${e}']`);s&&(s.style.display="flex",t&&t(s))}function o(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},42178:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},26406:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},92441:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},34637:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},29743:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},10643:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},66916:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},83158:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},66918:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},10321:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},25294:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},58150:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268,7070,4312],()=>s(59950));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json index e20fd6c..0412df7 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../webpack-runtime.js","../../../../../chunks/4017.js","../../../../../chunks/8313.js","../../../../../chunks/5264.js","../../../../../chunks/6729.js","../../../../../chunks/5449.js","../../../../../chunks/913.js","../../../../../chunks/4480.js","../../../../../chunks/370.js","../../../../../chunks/424.js","../../../../../chunks/4858.js","../../../../../chunks/5472.js","../../../../../chunks/1781.js","../../../../../chunks/4114.js","../../../../../chunks/9486.js","../../../../../chunks/9417.js","../../../../../chunks/3863.js","../../../../../../package.json","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/lucide-react/package.json","../../../../../../../node_modules/@mui/material/package.json","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../node_modules/@mui/base/package.json","../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../jsonData/userPriviledges.json","../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../jsonData/userPriviledges.json","../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../node_modules/@mui/system/display.js","../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../node_modules/@mui/system/index.js","../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../node_modules/@mui/system/package.json","../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../node_modules/@mui/system/style.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../node_modules/client-only/index.js","../../../../../../../node_modules/client-only/package.json","../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../node_modules/clsx/package.json","../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../node_modules/core-util-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../node_modules/inherits/inherits.js","../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../node_modules/inherits/package.json","../../../../../../../node_modules/isarray/index.js","../../../../../../../node_modules/isarray/package.json","../../../../../../../node_modules/mysql/index.js","../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../node_modules/mysql/package.json","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../node_modules/next/head.js","../../../../../../../node_modules/next/package.json","../../../../../../../node_modules/object-assign/index.js","../../../../../../../node_modules/object-assign/package.json","../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../node_modules/prop-types/index.js","../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../node_modules/prop-types/package.json","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../node_modules/react-dom/index.js","../../../../../../../node_modules/react-dom/package.json","../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../node_modules/react-is/index.js","../../../../../../../node_modules/react-is/package.json","../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../node_modules/react/index.js","../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../node_modules/react/package.json","../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../node_modules/readable-stream/package.json","../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../node_modules/scheduler/index.js","../../../../../../../node_modules/scheduler/package.json","../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../node_modules/sqlstring/index.js","../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../node_modules/sqlstring/package.json","../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../node_modules/string_decoder/package.json","../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../node_modules/stylis/package.json","../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../package.json","../../../../../../package.json","../../../../../chunks/1137.js","../../../../../chunks/1223.js","../../../../../chunks/1790.js","../../../../../chunks/2332.js","../../../../../chunks/2414.js","../../../../../chunks/2996.js","../../../../../chunks/3247.js","../../../../../chunks/3468.js","../../../../../chunks/3737.js","../../../../../chunks/4050.js","../../../../../chunks/4237.js","../../../../../chunks/4312.js","../../../../../chunks/4417.js","../../../../../chunks/5134.js","../../../../../chunks/5212.js","../../../../../chunks/5674.js","../../../../../chunks/615.js","../../../../../chunks/6154.js","../../../../../chunks/6806.js","../../../../../chunks/6946.js","../../../../../chunks/7070.js","../../../../../chunks/7318.js","../../../../../chunks/7488.js","../../../../../chunks/7665.js","../../../../../chunks/7734.js","../../../../../chunks/8153.js","../../../../../chunks/8268.js","../../../../../chunks/8370.js","../../../../../chunks/883.js","../../../../../chunks/8842.js","../../../../../chunks/9205.js","../../../../../chunks/9216.js","../../../../../chunks/9621.js","../../../../../chunks/9764.js","../../../../../chunks/9810.js","../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js index 24609f3..59f2f32 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js @@ -1,640 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9268; -exports.ids = [9268]; -exports.modules = { - -/***/ 5342: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SingleDatabaseSingleUserContext": () => (/* binding */ SingleDatabaseSingleUserContext), - "default": () => (/* binding */ DatabaseSingleUserPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/AdminLayout.jsx + 2 modules -var AdminLayout = __webpack_require__(4858); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: ./components/admin/users/UserListCard.jsx -var UserListCard = __webpack_require__(3863); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -// EXTERNAL MODULE: ./components/form/FormCheckboxes.jsx -var FormCheckboxes = __webpack_require__(9486); -// EXTERNAL MODULE: ./components/admin/users/UserImage.jsx -var UserImage = __webpack_require__(2733); -;// CONCATENATED MODULE: ./components/admin/users/SingleDatabaseSingleUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SingleDatabaseSingleUserContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { singleUser , user } = external_react_default().useContext(SingleDatabaseSingleUserContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const userFields = Object.keys(singleUser).filter((key)=>!key.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [priviledges, setPriviledges] = external_react_default().useState(singleUser.user_type?.match(/invitation/) ? singleUser["user_priviledge"]?.split("|") : [ - "Edit" - ]); - /** @type {[ userImage: string | import("@/package-shared/types").ImageObjectType | any, setUserImage: React.Dispatch<React.SetStateAction<string | import("@/package-shared/types").ImageObjectType | any>> ]} */ // @ts-ignore - const [userImage, setUserImage] = external_react_default().useState(singleUser["image"]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start gap-0 w-full", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between flex-wrap", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - singleUser.first_name, - " ", - singleUser.last_name - ] - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - className: "bg-red-500", - onClick: (e)=>{ - setLoading(true); - if (window.confirm("Delete this user?")) { - (0,fetchApi/* default */.Z)("/api/deleteUserUser", { - method: "post", - body: { - ...singleUser - } - }, true).then((res)=>{ - if (res.success) window.location.pathname = `/admin/${user?.id}/users/databases/${singleUser.database}`; - }); - } - }, - children: "Delete User" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(Breadcrumbs/* default */.Z, { - user: user - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full flex-col items-stretch", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-col items-stretch gap-4", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const form = e.target; - const formFields = Array.from(form); - /** @type {any} */ const formFieldsObject = {}; - formFields.forEach((/** @type {any} */ field)=>{ - if (field?.nodeName?.match(/button/i)) return; - if (!field?.name || !field?.value?.match(/./)) return; - if (field?.name?.match(/username|email/)) return; - formFieldsObject[field.name] = field.value; - }); - const fetchObject = { - ...formFieldsObject, - user_type: singleUser["user_type"], - id: singleUser["id"] - }; - if (singleUser["user_type"]?.match(/invitation/i)) { - // fetchObject["database_access"] = - // databasesAccess.join("|"); - fetchObject["user_priviledge"] = priviledges?.join("|"); - } - (0,fetchApi/* default */.Z)("/api/updateUserUser", { - method: "post", - body: fetchObject - }, true).then((res)=>{ - if (userImage?.imageBase64) { - userImage["imageName"] = `${singleUser["database"]}-user-${singleUser.id}`; - userImage["mimeType"] = "jpeg"; - delete userImage["imageBase64Full"]; - (0,fetchApi/* default */.Z)("/api/addUserMedia", { - method: "post", - body: { - media: [ - userImage - ], - folder: singleUser["database"]?.replace(/_/g, "-"), - type: "image" - } - }, true).then((_res)=>{ - if (_res && _res.mediaData && _res.mediaData[0]?.media_url) { - (0,fetchApi/* default */.Z)("/api/updateUserUser", { - method: "post", - body: { - id: singleUser.id, - user_type: singleUser.user_type, - image: _res.mediaData[0].media_url, - image_thumbnail: _res.mediaData[0].media_thumbnail_url - } - }, true).then((__res)=>{ - if (__res.success) window.location.reload(); - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - } else { - window.location.reload(); - } - }); - } else { - window.location.reload(); - } - }); - }, - children: [ - userFields.map((field, index)=>{ - if (field?.match(/user_priviledge/) && singleUser.user_type?.match(/invitation/)) { - return /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-start w-full gap-1", - children: /*#__PURE__*/ jsx_runtime_.jsx(FormCheckboxes/* default */.Z, { - // @ts-ignore - checkBoxValues: singleUser[field]?.split("|").map((/** @type {string} */ priv)=>{ - return { - title: priv, - name: priv, - onChangeHandler: (/** @type {any} */ e)=>{ - if (priviledges?.includes("Edit")) { - let newArray = priviledges.filter((_db)=>_db != "Edit"); - setPriviledges([ - ...newArray, - ]); - } else { - setPriviledges((prev)=>prev ? [ - ...prev, - "Edit", - ] : []); - } - } - }; - }), - smallText: true, - flexRow: true - }) - }, index + 1); - } else if (field?.match(/user_priviledge/) && !singleUser.user_type?.match(/invitation/)) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, {}, index + 1); - } - if (field?.match(/password|^database|email|username/)) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: field, - id: field, - value: // @ts-ignore - singleUser[field], - placeholder: field, - className: "opacity-40 pointer-events-none", - onChange: (e)=>{ - e.preventDefault(); - } - }, index + 1) - ] - }, index + 1); - } - if (field?.match(/more_user_data/)) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("textarea", { - name: field, - id: field, - defaultValue: // @ts-ignore - singleUser[field] ? singleUser[field] : undefined, - placeholder: field, - rows: 6 - }, index + 1) - ] - }, index + 1); - } - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start w-full gap-1", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("label", { - htmlFor: field, - children: field - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: field, - id: field, - defaultValue: // @ts-ignore - singleUser[field] ? singleUser[field] : undefined, - placeholder: field - }, index + 1) - ] - }, index + 1); - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold mb-1 text-slate-600", - children: "Update Image" - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserImage/* default */.Z, { - userImage: userImage, - setUserImage: setUserImage - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: "Update User" - }) - ] - }) - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/admin/[user_id]/users/databases/[database]/[user].jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").SingleUserUserContextType} */ // @ts-ignore -const init = {}; -const SingleDatabaseSingleUserContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {import("@/package-shared/types").MYSQL_user_users_table_def} props.singleUser - */ function DatabaseSingleUserPage({ user , singleUser }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${singleUser.first_name} ${singleUser.last_name} Users | Datasquirel"`; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(AdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SingleDatabaseSingleUserContext.Provider, { - value: { - user, - singleUser - }, - children: /*#__PURE__*/ jsx_runtime_.jsx(SingleDatabaseSingleUserContent, {}) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (!user?.logged_in_status) { - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const singleUser = await DB_HANDLER_default()(`SELECT id,\`database\`,database_access,first_name,last_name,email,phone,user_type,user_priviledge,username,image,image_thumbnail,city,state,country,zip_code,verification_status,more_user_data FROM user_users WHERE user_id='${user.id}' AND \`database\`='${query.database}' AND id='${query.user}'`); - if (!singleUser || !singleUser[0]) { - return { - redirect: { - destination: `/admin/${user?.id}/users/databases/${query.database}`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - singleUser: singleUser[0] - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4003: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdminPanelSettingsTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 69: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudOffTwoTone"); - -/***/ }), - -/***/ 4008: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CloudQueueRounded"); - -/***/ }), - -/***/ 7306: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CollectionsTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 8979: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DynamicFormTwoTone"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LanguageOutlined"); - -/***/ }), - -/***/ 2814: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9806: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleOutlineTwoTone"); - -/***/ }), - -/***/ 36: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/RefreshRounded"); - -/***/ }), - -/***/ 1799: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SchemaTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,424,4858,5472,1781,4114,6718,9486,2733,3863], () => (__webpack_exec__(5342))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5707,e.ids=[636,5707],e.modules={20684:(e,t,s)=>{s.r(t),s.d(t,{config:()=>k,default:()=>P,getServerSideProps:()=>C,getStaticPaths:()=>$,getStaticProps:()=>A,reportWebVitals:()=>E,routeModule:()=>R,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>F,unstable_getStaticPaths:()=>U,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{SingleDatabaseSingleUserContext:()=>q,default:()=>N,getServerSideProps:()=>S});var a=s(63865),i=s(9455),l=s(30671),n=s(49407),o=s(68268),u=s(8732),d=s(82015),m=s.n(d),c=s(95222),p=s(20048),x=s.n(p),h=s(58548);s(21347);var g=s(46437),f=s(63715),b=s(32415);s(51548);var v=s(58403),j=s(77826);function y(e){let{singleUser:t,user:s}=m().useContext(q),r=Object.keys(t).filter(e=>!e.match(/^id$|^date_|^user_id$|^social_|^disk_usage|user_type/)),[a,i]=m().useState(!1),[l,n]=m().useState(t.user_type?.match(/invitation/)?t.user_priviledge?.split("|"):["Edit"]),[o,d]=m().useState(t.image);return(0,u.jsxs)(m().Fragment,{children:[(0,u.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,u.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,u.jsxs)("div",{children:[(0,u.jsx)(g.A,{}),(0,u.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]})]}),(0,u.jsx)("button",{className:"bg-red-500",onClick:e=>{i(!0),window.confirm("Delete this user?")&&(0,f.A)("/api/deleteUserUser",{method:"post",body:{...t}},!0).then(e=>{e.success&&(window.location.pathname=`/admin/${s?.id}/users/databases/${t.database}`)})},children:"Delete User"})]}),(0,u.jsx)(h.A,{user:s})]}),(0,u.jsxs)("section",{children:[a&&(0,u.jsx)(b.A,{}),(0,u.jsx)("div",{className:"w-full flex-col items-stretch",children:(0,u.jsxs)("form",{className:"flex flex-col items-stretch gap-4",onSubmit:e=>{e.preventDefault(),i(!0);let s=Array.from(e.target),r={};s.forEach(e=>{!e?.nodeName?.match(/button/i)&&e?.name&&e?.value?.match(/./)&&(e?.name?.match(/username|email/)||(r[e.name]=e.value))});let a={...r,user_type:t.user_type,id:t.id};t.user_type?.match(/invitation/i)&&(a.user_priviledge=l?.join("|")),(0,f.A)("/api/updateUserUser",{method:"post",body:a},!0).then(e=>{o?.imageBase64?(o.imageName=`${t.database}-user-${t.id}`,o.mimeType="jpeg",delete o.imageBase64Full,(0,f.A)("/api/addUserMedia",{method:"post",body:{media:[o],folder:t.database?.replace(/_/g,"-"),type:"image"}},!0).then(e=>{e&&e.mediaData&&e.mediaData[0]?.media_url?(0,f.A)("/api/updateUserUser",{method:"post",body:{id:t.id,user_type:t.user_type,image:e.mediaData[0].media_url,image_thumbnail:e.mediaData[0].media_thumbnail_url}},!0).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{i(!1)},500)}):window.location.reload()})):window.location.reload()})},children:[r.map((e,s)=>e?.match(/user_priviledge/)&&t.user_type?.match(/invitation/)?(0,u.jsx)("div",{className:"flex-col items-start w-full gap-1",children:(0,u.jsx)(v.A,{checkBoxValues:t[e]?.split("|").map(e=>({title:e,name:e,onChangeHandler:e=>{l?.includes("Edit")?n([...l.filter(e=>"Edit"!=e)]):n(e=>e?[...e,"Edit"]:[])}})),smallText:!0,flexRow:!0})},s+1):e?.match(/user_priviledge/)&&!t.user_type?.match(/invitation/)?(0,u.jsx)(m().Fragment,{},s+1):e?.match(/password|^database|email|username/)?(0,u.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,u.jsx)("label",{htmlFor:e,children:e}),(0,u.jsx)("input",{type:"text",name:e,id:e,value:t[e],placeholder:e,className:"opacity-40 pointer-events-none",onChange:e=>{e.preventDefault()}},s+1)]},s+1):e?.match(/more_user_data/)?(0,u.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,u.jsx)("label",{htmlFor:e,children:e}),(0,u.jsx)("textarea",{name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e,rows:6},s+1)]},s+1):(0,u.jsxs)("div",{className:"flex-col items-start w-full gap-1",children:[(0,u.jsx)("label",{htmlFor:e,children:e}),(0,u.jsx)("input",{type:"text",name:e,id:e,defaultValue:t[e]?t[e]:void 0,placeholder:e},s+1)]},s+1)),(0,u.jsxs)("div",{className:"border border-slate-300 dark:border-slate-600 border-solid bg-slate-100 dark:bg-slate-700 rounded p-6 flex-col items-start w-full",children:[(0,u.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"Update Image"}),(0,u.jsx)(j.A,{userImage:o,setUserImage:d})]}),(0,u.jsx)("button",{children:"Update User"})]})})]})]})}var w=s(67216),_=s.n(w);let q=m().createContext({});function N({user:e,singleUser:t}){let s=`${t.first_name} ${t.last_name} Users | Datasquirel"`,r=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:s}),(0,u.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,u.jsx)(c.A,{head:r,user:e,children:(0,u.jsx)(q.Provider,{value:{user:e,singleUser:t},children:(0,u.jsx)(y,{})})})}async function S({req:e,res:t,query:s}){let r=await x()(e,t);if(!r?.logged_in_status)return{redirect:{destination:"/logout",permanent:!1}};let a=await _()(`SELECT id,\`database\`,database_access,first_name,last_name,email,phone,user_type,user_priviledge,username,image,image_thumbnail,city,state,country,zip_code,verification_status,more_user_data FROM user_users WHERE user_id='${r.id}' AND \`database\`='${s.database}' AND id='${s.user}'`);return a&&a[0]?{props:{user:r,singleUser:a[0]}}:{redirect:{destination:`/admin/${r?.id}/users/databases/${s.database}`,permanent:!1}}}let P=(0,l.M)(r,"default"),A=(0,l.M)(r,"getStaticProps"),$=(0,l.M)(r,"getStaticPaths"),C=(0,l.M)(r,"getServerSideProps"),k=(0,l.M)(r,"config"),E=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),U=(0,l.M)(r,"unstable_getStaticPaths"),F=(0,l.M)(r,"unstable_getStaticParams"),D=(0,l.M)(r,"unstable_getServerProps"),L=(0,l.M)(r,"unstable_getServerSideProps"),R=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/admin/[user_id]/users/databases/[database]/[user]",pathname:"/admin/[user_id]/users/databases/[database]/[user]",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:r})},21347:(e,t,s)=>{s.d(t,{A:()=>d});var r=s(8732),a=s(82015),i=s.n(a),l=s(55158),n=s(63715),o=s(32415),u=s(62506);function d({userObject:e,setTargetUser:t,paradigm:s}){let a=s?.match(/invited/)?`${e.inviteeFirstName} ${e.inviteeLastName} (${e.inviteeEmail})`:`${e.first_name} ${e.last_name} (${e.email})`,d=s?.match(/invited/)?`${e.inviteeImage}`:`${e.image_thumbnail}`,[m,c]=i().useState(!1);return(0,r.jsxs)("div",{className:"card no-hover items-center "+(s?.match(/invited/)?" green green-bg":" primary"),children:[m&&(0,r.jsx)(o.A,{}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("img",{src:d,className:"w-8 h-8 rounded-full object-cover bg-slate-200",onError:e=>{e.target.src="/images/user-preset-thumbnail.png"}}),(0,r.jsx)("span",{className:"text-sm font-semibold",children:a}),e?.user_priviledge?.match(/./)&&(0,r.jsxs)("span",{className:"text-sm ml-auto text-slate-900/50",children:["Priviledges:"," ",(0,r.jsx)("span",{className:"text-slate-600 font-semibold",children:e.user_priviledge.split("|").join(" | ")})]}),!s?.match(/invited/)&&(0,r.jsx)(i().Fragment,{children:(0,r.jsxs)(u.A,{children:[(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:s=>{t(e),setTimeout(()=>{(0,l.PB)("target-user-popup")},200)},children:"Edit User Access"}),(0,r.jsx)("button",{className:"outlined text-xs px-3 py-1",onClick:t=>{c(!0),window.confirm("Delete this user")&&(0,n.A)("/api/deleteUserUser",{method:"post",body:{...e}},!0).then(e=>{setTimeout(()=>{c(!1)},500),window.location.reload()})},children:"Delete User"})]})})]})]})}},58403:(e,t,s)=>{s.d(t,{A:()=>a});var r=s(8732);function a({name:e,checkBoxValues:t,setAlert:s,labelColor:a,flexRow:i,baseText:l,smallText:n,className:o}){return(0,r.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(o||""),children:t.map((t,i)=>{let{payload:o,title:u,onChangeHandler:d,fixed:m,jsx:c}=t,p=t.name?`${e}-${t.name}`:o?e+"-"+o:e;return(0,r.jsxs)("div",{className:"flex items-center"+(t.default&&m?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+(t?.className?t.className:""),children:[(0,r.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!t.default,name:p,id:p,onChange:e=>{s&&s(null),d&&d(e,t)},value:o,style:{minWidth:"20px"}}),c||(0,r.jsx)("label",{htmlFor:p,className:"m-0 "+(a||"text-slate-800 dark:text-white/80")+(l||n?" text-base":" text-lg"),children:u})]},i+1)})})}s(82015)},51548:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(58526);function i({selectOptions:e,name:t,onChangeHandler:s,required:i,setAlert:l,title:n,defaultValue:o,info:u,id:d}){try{function m(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(u?" pr-8":""),children:[n&&(0,r.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:d||t,className:"w-full bg-white",required:i,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:o||void 0,children:e.map((e,t)=>{let{payload:s,title:a}=e;return(0,r.jsx)("option",{value:s,selected:!!e.default,children:a},t+1)})}),(0,r.jsx)(a.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),u&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:m,onMouseLeave:m,onClick:m,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:u})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}s(82015)},46437:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732);s(82015);var a=s(42178);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(a.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268,7070,2332],()=>s(20684));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json index 95348a4..50804ec 100644 --- a/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json +++ b/dsql-app/.local_dist/server/pages/admin/[user_id]/users/databases/[database]/[user].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../../../webpack-runtime.js","../../../../../../chunks/4017.js","../../../../../../chunks/8313.js","../../../../../../chunks/5264.js","../../../../../../chunks/6729.js","../../../../../../chunks/5449.js","../../../../../../chunks/913.js","../../../../../../chunks/4480.js","../../../../../../chunks/370.js","../../../../../../chunks/424.js","../../../../../../chunks/4858.js","../../../../../../chunks/5472.js","../../../../../../chunks/1781.js","../../../../../../chunks/4114.js","../../../../../../chunks/6718.js","../../../../../../chunks/9486.js","../../../../../../chunks/2733.js","../../../../../../chunks/3863.js","../../../../../../../package.json","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/lucide-react/package.json","../../../../../../../../node_modules/@mui/material/package.json","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/@mui/icons-material/AdminPanelSettingsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudQueueRounded.js","../../../../../../../../node_modules/@mui/icons-material/CollectionsTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/CloudOffTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/LanguageOutlined.js","../../../../../../../../node_modules/@mui/icons-material/LockTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/PeopleOutlineTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/RefreshRounded.js","../../../../../../../../node_modules/@mui/icons-material/SchemaTwoTone.js","../../../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../../../node_modules/@mui/base/package.json","../../../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/refType.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../../../node_modules/@babel/runtime/package.json","../../../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../../../node_modules/@emotion/cache/package.json","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../../../node_modules/@emotion/hash/package.json","../../../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../../../node_modules/@emotion/react/package.json","../../../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../../../node_modules/@emotion/styled/package.json","../../../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../../../node_modules/@emotion/utils/package.json","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../../../node_modules/@mui/system/borders.js","../../../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../../../node_modules/@mui/system/compose.js","../../../../../../../../node_modules/@mui/system/createBox.js","../../../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../../../node_modules/@mui/system/display.js","../../../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../../../node_modules/@mui/system/index.js","../../../../../../../../node_modules/@mui/system/memoize.js","../../../../../../../../node_modules/@mui/system/merge.js","../../../../../../../../node_modules/@mui/system/package.json","../../../../../../../../node_modules/@mui/system/palette.js","../../../../../../../../node_modules/@mui/system/positions.js","../../../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../../../node_modules/@mui/system/shadows.js","../../../../../../../../node_modules/@mui/system/sizing.js","../../../../../../../../node_modules/@mui/system/spacing.js","../../../../../../../../node_modules/@mui/system/style.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../../../node_modules/@mui/system/styled.js","../../../../../../../../node_modules/@mui/system/typography.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../../../node_modules/@mui/system/version/index.js","../../../../../../../../node_modules/@mui/system/version/package.json","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../../../node_modules/@mui/utils/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../../../node_modules/@mui/utils/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../../../node_modules/@mui/utils/types.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../../../node_modules/@swc/helpers/package.json","../../../../../../../../node_modules/client-only/index.js","../../../../../../../../node_modules/client-only/package.json","../../../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../../../node_modules/clsx/package.json","../../../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../../../node_modules/core-util-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../../../node_modules/inherits/inherits.js","../../../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../../../node_modules/inherits/package.json","../../../../../../../../node_modules/isarray/index.js","../../../../../../../../node_modules/isarray/package.json","../../../../../../../../node_modules/mysql/index.js","../../../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/mysql/package.json","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../../../node_modules/next/head.js","../../../../../../../../node_modules/next/package.json","../../../../../../../../node_modules/object-assign/index.js","../../../../../../../../node_modules/object-assign/package.json","../../../../../../../../node_modules/process-nextick-args/index.js","../../../../../../../../node_modules/process-nextick-args/package.json","../../../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../../../node_modules/prop-types/index.js","../../../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../../../node_modules/prop-types/lib/has.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../../../node_modules/prop-types/package.json","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../../../node_modules/react-dom/index.js","../../../../../../../../node_modules/react-dom/package.json","../../../../../../../../node_modules/react-dom/server.browser.js","../../../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../../../node_modules/react-is/index.js","../../../../../../../../node_modules/react-is/package.json","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../../../node_modules/react/cjs/react.development.js","../../../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../../../node_modules/react/index.js","../../../../../../../../node_modules/react/jsx-runtime.js","../../../../../../../../node_modules/react/package.json","../../../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/readable-stream/package.json","../../../../../../../../node_modules/readable-stream/readable.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../../../node_modules/scheduler/index.js","../../../../../../../../node_modules/scheduler/package.json","../../../../../../../../node_modules/serverless-mysql/index.js","../../../../../../../../node_modules/serverless-mysql/package.json","../../../../../../../../node_modules/sqlstring/index.js","../../../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../../../node_modules/sqlstring/package.json","../../../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../../../node_modules/string_decoder/package.json","../../../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../../../node_modules/styled-jsx/index.js","../../../../../../../../node_modules/styled-jsx/package.json","../../../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../../../node_modules/stylis/package.json","../../../../../../../../node_modules/util-deprecate/node.js","../../../../../../../../node_modules/util-deprecate/package.json","../../../../../../../../package.json","../../../../../../../package.json","../../../../../../chunks/1137.js","../../../../../../chunks/1223.js","../../../../../../chunks/1790.js","../../../../../../chunks/2332.js","../../../../../../chunks/2414.js","../../../../../../chunks/2996.js","../../../../../../chunks/3247.js","../../../../../../chunks/3468.js","../../../../../../chunks/3737.js","../../../../../../chunks/4050.js","../../../../../../chunks/4237.js","../../../../../../chunks/4312.js","../../../../../../chunks/4417.js","../../../../../../chunks/5134.js","../../../../../../chunks/5212.js","../../../../../../chunks/5674.js","../../../../../../chunks/615.js","../../../../../../chunks/6154.js","../../../../../../chunks/6806.js","../../../../../../chunks/6946.js","../../../../../../chunks/7070.js","../../../../../../chunks/7318.js","../../../../../../chunks/7488.js","../../../../../../chunks/7665.js","../../../../../../chunks/7734.js","../../../../../../chunks/8153.js","../../../../../../chunks/8268.js","../../../../../../chunks/8370.js","../../../../../../chunks/883.js","../../../../../../chunks/8842.js","../../../../../../chunks/9205.js","../../../../../../chunks/9216.js","../../../../../../chunks/9621.js","../../../../../../chunks/9764.js","../../../../../../chunks/9810.js","../../../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js index 874bd80..7b07b1b 100644 --- a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js @@ -1,222 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9361; -exports.ids = [9361]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6765: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=8935,e.ids=[8935],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},27118:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>v,routeModule:()=>h});var i={};r.r(i),r.d(i,{default:()=>E});var a=r(89947),s=r(2706),n=r(96762),l=r(6420),u=r.n(l),o=r(77538),d=r.n(o),c=r(27825),_=r.n(c),m=r(51348),p=r.n(m),f=r(47670),g=r.n(f);async function E(e,t){if("POST"!==e.method)return t.json({user:null,msg:"Registration Failed!"});let r=await u()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let i=_().cloneDeep(e.body),a=i.inviting_user_id,s=i.invited_user_email,n=i.database_access,l=i.priviledge;try{let e=await p()("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[a,r.id,r.email]);if(e&&e[0])return t.json({success:!1});let i=await g()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:a,invited_user_id:r.id,database_access:n,user_priviledge:l,user_type:"admin",first_name:r.first_name,last_name:r.last_name,email:r.email,username:r.first_name,image:r.image,image_thumbnail:r.image_thumbnail}});await p()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[a,s]);let u=await p()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=?",[a]);if(await p()(`DELETE FROM delegated_user_tables WHERE root_user_id='${a}' AND delegated_user_id='${r.id}'`),u&&u[0]){let e=u[0].db_tables_data.split("|");for(let t=0;t<e.length;t++){let[i,s]=e[t].split("-");await g()({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:a,database:i,table:s,priviledge:l}})}}t.json({success:!!i?.insertId})}catch(i){d()({component:"/api/acceptUserInvitation/catch-error",message:i.message,user:r,req:e}),t.json({success:!1})}}r(29021);let v=(0,n.M)(i,"default"),S=(0,n.M)(i,"config"),h=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/acceptUserInvitation",pathname:"/api/acceptUserInvitation",bundlePath:"",filename:""},userland:i})},77538:(e,t,r)=>{let i=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],t=s.headers["x-real-ip"],r=s.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||i||t||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(a+=` +URL: ${s.url}`),s?.body&&(a+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${n.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let u=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",a),i.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ // const { id, inviting_user_id, invited_user_email, invitation_status, database_access, priviledge } = req.body; - const sanitizedReqBody = lodash__WEBPACK_IMPORTED_MODULE_2___default().cloneDeep(req.body); - const inviting_user_id = sanitizedReqBody.inviting_user_id; - const invited_user_email = sanitizedReqBody.invited_user_email; - const database_access = sanitizedReqBody.database_access; - const priviledge = sanitizedReqBody.priviledge; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const existingUserUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?`, [ - inviting_user_id, - user.id, - user.email - ]); - if (existingUserUser && existingUserUser[0]) { - return res.json({ - success: false - }); - } - /** @type {any} */ const newUserUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_4___default()({ - dbFullName: "datasquirel", - tableName: "user_users", - data: { - user_id: inviting_user_id, - invited_user_id: user.id, - database_access: database_access, - user_priviledge: priviledge, - user_type: "admin", - first_name: user.first_name, - last_name: user.last_name, - email: user.email, - username: user.first_name, - image: user.image, - image_thumbnail: user.image_thumbnail - } - }); - const inviteAccepted = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?`, [ - inviting_user_id, - invited_user_email - ]); - const dbTableData = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT db_tables_data FROM invitations WHERE inviting_user_id=?`, [ - inviting_user_id - ]); - // const dbTableData = await DB_HANDLER(`SELECT db_tables_data FROM invitations WHERE inviting_user_id='${inviting_user_id}' AND invited_user_email='${invited_user_email}'`); - const clearEntries = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`DELETE FROM delegated_user_tables WHERE root_user_id='${inviting_user_id}' AND delegated_user_id='${user.id}'`); - if (dbTableData && dbTableData[0]) { - const dbTableEntries = dbTableData[0].db_tables_data.split("|"); - for(let i = 0; i < dbTableEntries.length; i++){ - const dbTableEntry = dbTableEntries[i]; - const dbTableEntryArray = dbTableEntry.split("-"); - const [db_slug, table_slug] = dbTableEntryArray; - const newEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_4___default()({ - dbFullName: "datasquirel", - tableName: "delegated_user_tables", - data: { - delegated_user_id: user.id, - root_user_id: inviting_user_id, - database: db_slug, - table: table_slug, - priviledge: priviledge - } - }); - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: newUserUser?.insertId ? true : false - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/acceptUserInvitation/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338], () => (__webpack_exec__(6765))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let i=r(51348),a=r(72907),s=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let u=JSON.parse(l);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!s.existsSync(`${o}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await i(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},72907:(e,t,r)=>{let{scryptSync:i,createDecipheriv:a}=r(55511),{Buffer:s}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",i(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[4050],()=>r(27118));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json index d42a7ac..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/acceptUserInvitation.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js index 0f81431..9e85b6d 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js @@ -1,144 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3488; -exports.ids = [3488]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3278: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(613); -/* harmony import */ var _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ console.log("Invitation Received by current logged in user, Loggin in VIA API ..."); - const acceptInvitation = await _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1___default()({ - // @ts-ignore - query: req.body.query, - user - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - result: acceptInvitation - }); -} +"use strict";(()=>{var e={};e.id=9785,e.ids=[9785],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},81764:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>c,routeModule:()=>p});var i={};t.r(i),t.d(i,{default:()=>_});var a=t(89947),s=t(2706),n=t(96762),l=t(6420),u=t.n(l),d=t(98968),o=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});console.log("Invitation Received by current logged in user, Loggin in VIA API ...");let i=await o()({query:e.body.query,user:t});r.json({success:!0,result:i})}let c=(0,n.M)(i,"default"),m=(0,n.M)(i,"config"),p=new a.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addAdminUserUser",pathname:"/api/addAdminUserUser",bundlePath:"",filename:""},userland:i})},98968:(e,r,t)=>{t(29021),t(28187);let i=t(77538),a=t(51348),s=t(47670);e.exports=async function({query:e,user:r}){try{let{invite:t,database_access:i,priviledge:n,email:l}=e,u=await a("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(!u||!u[0])throw Error("No Invitation Found");let d=await a("SELECT first_name,last_name,email FROM users WHERE id=?",[t]);if(d?.[0]){let e=await a("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[t,r.id,l]);if(e?.[0])console.log("User already added");else{s({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t,invited_user_id:r.id,database_access:i,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:n,image:r.image,image_thumbnail:r.image_thumbnail}});let e=await a("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,l]);if(await a("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t,r.id]),e&&e[0]){let i=e[0].db_tables_data.split("|");for(let e=0;e<i.length;e++){let[a,l]=i[e].split("-");await s({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:t,database:a,table:l,priviledge:n}})}}}await a("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t,l])}}catch(e){i({component:"addAdminUserOnLogin",message:e.message,user:r})}}},77538:(e,r,t)=>{let i=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||i||r||s.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(a+=` +URL: ${s.url}`),s?.body&&(a+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${n.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let u=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",a),i.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,613], () => (__webpack_exec__(3278))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let i=t(51348),a=t(72907),s=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let u=JSON.parse(l);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${d}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await i(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},72907:(e,r,t)=>{let{scryptSync:i,createDecipheriv:a}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",i(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),i=r.X(0,[4050],()=>t(81764));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json index 34851c3..2d9dd4e 100644 --- a/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addAdminUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/613.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/datasquirel/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/datasquirel/utils/get.js","../../../../node_modules/datasquirel/utils/post.js","../../../../node_modules/datasquirel/utils/get-schema.js","../../../../node_modules/datasquirel/utils/upload-image.js","../../../../node_modules/datasquirel/utils/upload-file.js","../../../../node_modules/datasquirel/utils/delete-file.js","../../../../node_modules/datasquirel/users/add-user.js","../../../../node_modules/datasquirel/users/update-user.js","../../../../node_modules/datasquirel/users/login-user.js","../../../../node_modules/datasquirel/users/send-email-code.js","../../../../node_modules/datasquirel/users/reauth-user.js","../../../../node_modules/datasquirel/users/user-auth.js","../../../../node_modules/datasquirel/users/logout-user.js","../../../../node_modules/datasquirel/users/get-token.js","../../../../node_modules/datasquirel/users/get-user.js","../../../../node_modules/datasquirel/users/validate-token.js","../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../node_modules/mysql/index.js","../../../../node_modules/datasquirel/functions/decrypt.js","../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/datasquirel/functions/encrypt.js","../../../../node_modules/mysql/package.json","../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../node_modules/datasquirel/engine/query/post.js","../../../../node_modules/datasquirel/engine/query/get.js","../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addApiKey.js b/dsql-app/.local_dist/server/pages/api/addApiKey.js index 3227f27..4a54304 100644 --- a/dsql-app/.local_dist/server/pages/api/addApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js @@ -1,239 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1600; -exports.ids = [1600]; -exports.modules = { - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5241: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); -const generator = __webpack_require__(3785); +"use strict";(()=>{var e={};e.id=1385,e.ids=[1385],e.modules={47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},87256:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>h,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>g});var a=t(89947),i=t(2706),n=t(96762),o=t(82703),l=t.n(o),u=t(77538),c=t.n(u),d=t(6420),p=t.n(d),f=t(47670),m=t.n(f);let y=t(29021);t(33873);let{execSync:S}=t(79646),_=t(47795);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{api_key_name:s,api_key_slug:a,api_key_scope:i,target_database:n,target_table:o}=e.body;if(!s?.match(/./)||!a?.match(/./)||!i?.match(/./))return r.json({success:!1,msg:"Wrong Input"});try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");y.existsSync(e)||y.mkdirSync(e,{recursive:!0});let u=_.generate({length:24,numbers:!0,uppercase:!0,lowercase:!0,symbols:"-"})+"-"+Date.now(),c={user_id:t.id,date_code:Date.now(),sign:u,target_database:n,target_table:o};"fullAccess"==i&&(c={...c,full_access:!0});let d=l()(JSON.stringify(c));if(!d)return r.json({success:!1,msg:"Couldn't encrypt API key"});let p=l()(d),f={dbFullName:"datasquirel",tableName:"api_keys",data:{user_id:t.id,name:s,slug:a,key:p,scope:i}};if(u&&(f.data.csrf=u),!(await m()(f)).insertId)throw Error("Api Key Couldn't be added");y.writeFileSync(`${e}/${u}`,JSON.stringify(c),"utf-8"),r.json({success:!0})}catch(e){c()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,n.M)(s,"default"),x=(0,n.M)(s,"config"),A=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addApiKey",pathname:"/api/addApiKey",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:i}){let n=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(a+=` +URL: ${i.url}`),i?.body&&(a+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${n.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ /** @type {import("@/package-shared/types").AddApiKeyRequestBody} */ const reqBody = req.body; - const { api_key_name , api_key_slug , api_key_scope , target_database , target_table , } = reqBody; - /** - * Input Validation - * - * @description Input Validation - */ if (!api_key_name?.match(/./) || !api_key_slug?.match(/./) || !api_key_scope?.match(/./)) { - return res.json({ - success: false, - msg: "Wrong Input" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - const allowedKeysPath = process.env.DSQL_API_KEYS_PATH; - if (!allowedKeysPath) throw new Error("process.env.DSQL_API_KEYS_PATH variable not found"); - if (!fs.existsSync(allowedKeysPath)) { - fs.mkdirSync(allowedKeysPath, { - recursive: true - }); - } - let sign = generator.generate({ - length: 24, - numbers: true, - uppercase: true, - lowercase: true, - symbols: "-" - }) + "-" + Date.now(); - /** @type {import("@/package-shared/types").ApiKeyObject} */ let payload = { - user_id: user.id, - date_code: Date.now(), - sign, - target_database, - target_table - }; - if (api_key_scope == "fullAccess") { - const extraPayload = { - full_access: true - }; - payload = { - ...payload, - ...extraPayload - }; - } - const apiKey = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify(payload)); - if (!apiKey) return res.json({ - success: false, - msg: "Couldn't encrypt API key" - }); - const encryptedApiKey = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default()(apiKey); - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ /** @type {any} */ let dbEntryObject = { - dbFullName: "datasquirel", - tableName: "api_keys", - data: { - user_id: user.id, - name: api_key_name, - slug: api_key_slug, - key: encryptedApiKey, - scope: api_key_scope - } - }; - if (sign) dbEntryObject.data.csrf = sign; - let newApiKey = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()(dbEntryObject); - if (!newApiKey.insertId) { - throw new Error("Api Key Couldn't be added"); - } - fs.writeFileSync(`${allowedKeysPath}/${sign}`, JSON.stringify(payload), "utf-8"); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/addApiKey/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338], () => (__webpack_exec__(5241))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),i=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(87256));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json b/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json index 2772861..20c5641 100644 --- a/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addApiKey.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/generate-password/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addDbUser.js b/dsql-app/.local_dist/server/pages/api/addDbUser.js index 8132313..7d8e347 100644 --- a/dsql-app/.local_dist/server/pages/api/addDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js @@ -1,171 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8066; -exports.ids = [8066]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5078: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { payload , dbFullName , dbId } = sanitizedReqBody; - /** - * Input Validation - * - * @description Input Validation - */ const newUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: "users", - data: (()=>{ - const reqBodyKeys = Object.keys(payload); - /** @type {any} */ let finalData = {}; - reqBodyKeys.forEach((key)=>{ - if (key?.match(/paradigm|priviledge|database_access|databases|confirm/)) return; - finalData[key] = payload[key]; - }); - finalData["password"] = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: payload.password - }); - finalData["email"] = payload.email_address; - finalData["image"] = "/images/user-preset.png"; - finalData["image_thumbnail"] = "/images/user-preset-thumbnail.png"; - delete finalData["email_address"]; - return finalData; - })() - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: newUser?.insertId ? true : false, - msg: "New User User Added", - newUserId: newUser.insertId - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,7547,5886,5338], () => (__webpack_exec__(5078))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9187,e.ids=[9187],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},49915:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>m,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),n=s(96762),u=s(43499),l=s.n(u),o=s(6420),d=s.n(o),c=s(47670),p=s.n(c);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await d()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{payload:s,dbFullName:t,dbId:a}=e.body,i=await p()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:t,tableName:"users",data:(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(r[e]=s[e])}),r.password=l()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s.password}),r.email=s.email_address,r.image="/images/user-preset.png",r.image_thumbnail="/images/user-preset-thumbnail.png",delete r.email_address,r})()});r.json({success:!!i?.insertId,msg:"New User User Added",newUserId:i.insertId})}let m=(0,n.M)(t,"default"),_=(0,n.M)(t,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addDbUser",pathname:"/api/addDbUser",bundlePath:"",filename:""},userland:t})},6420:(e,r,s)=>{s(81630);let t=s(51348),a=s(72907),i=s(29021);async function n(e,r,s,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let u=a(e.cookies.datasquirelAuthKey);if(!u)return null;let l=JSON.parse(u);if(!l.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!i.existsSync(`${o}/${l.csrf_k}`))return null;if(0==l.verification_status&&!s){let e=await t(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},72907:(e,r,s)=>{let{scryptSync:t,createDecipheriv:a}=s(55511),{Buffer:i}=s(79428);e.exports=e=>{let r=a("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let s=r.update(e,"hex","utf8");return s+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(49915));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json index 4ea82f7..ec015c1 100644 --- a/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js index 429fdd6..2e3a4fe 100644 --- a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js @@ -1,312 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8336; -exports.ids = [8336]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2250: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const _ = __webpack_require__(6517); -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * Sanitize SQL function - * ============================================================================== - * @description this function takes in a text(or number) and returns a sanitized - * text, usually without spaces - * - * @param {any} text - Text or number or object - * @param {boolean} [spaces] - Allow spaces - * @param {RegExp?} [regex] - Regular expression, removes any match - * - * @returns {any} - */ function sanitizeSql(text, spaces, regex) { - /** - * Initial Checks - * - * @description Initial Checks - */ if (!text) return ""; - if (typeof text == "number" || typeof text == "boolean") return text; - if (typeof text == "string" && !text?.toString()?.match(/./)) return ""; - if (typeof text == "object" && !Array.isArray(text)) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newObject = sanitizeObjects(text, spaces); - return newObject; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else if (typeof text == "object" && Array.isArray(text)) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newArray = sanitizeArrays(text, spaces); - return newArray; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } - // if (text?.toString()?.match(/\'|\"/)) { - // console.log("TEXT containing commas =>", text); - // return ""; - // } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Declare variables - * - * @description Declare "results" variable - */ let finalText = text; - if (regex) { - finalText = text.toString().replace(regex, ""); - } - if (spaces) {} else { - finalText = text.toString().replace(/\n|\r|\n\r|\r\n/g, "").replace(/ /g, ""); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const escapeRegex = /select |insert |drop |delete |alter |create |exec | union | or | like | concat|LOAD_FILE|ASCII| COLLATE | HAVING | information_schema|DECLARE |\#|WAITFOR |delay |BENCHMARK |\/\*.*\*\//gi; - finalText = finalText.replace(/(?<!\\)\'/g, "\\'").replace(/(?<!\\)\`/g, "\\`")// .replace(/(?<!\\)\"/g, '\\"') - .replace(/\/\*\*\//g, "").replace(escapeRegex, "\\$&"); - // const injectionRegexp = /select .* from|\*|delete from|drop database|drop table|update .* set/i; - // if (text?.toString()?.match(injectionRegexp)) { - // console.log("ATTEMPTED INJECTION =>", text); - // return ""; - // } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return finalText; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * Sanitize Objects Function - * ============================================================================== - * @description Sanitize objects in the form { key: "value" } - * - * @param {any} object - Database Full Name - * @param {boolean} [spaces] - Allow spaces - * - * @returns {object} - */ function sanitizeObjects(object, spaces) { - /** @type {any} */ let objectUpdated = { - ...object - }; - const keys = Object.keys(objectUpdated); - keys.forEach((key)=>{ - const value = objectUpdated[key]; - if (!value) { - delete objectUpdated[key]; - return; - } - if (typeof value == "string" || typeof value == "number") { - objectUpdated[key] = sanitizeSql(value, spaces); - } else if (typeof value == "object" && !Array.isArray(value)) { - objectUpdated[key] = sanitizeObjects(value, spaces); - } else if (typeof value == "object" && Array.isArray(value)) { - objectUpdated[key] = sanitizeArrays(value, spaces); - } - }); - return objectUpdated; -} -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * Sanitize Objects Function - * ============================================================================== - * @description Sanitize objects in the form { key: "value" } - * - * @param {any[]} array - Database Full Name - * @param {boolean} [spaces] - Allow spaces - * - * @returns {string[]|number[]|object[]} - */ function sanitizeArrays(array, spaces) { - let arrayUpdated = _.cloneDeep(array); - arrayUpdated.forEach((item, index)=>{ - const value = item; - if (!value) { - arrayUpdated.splice(index, 1); - return; - } - if (typeof item == "string" || typeof item == "number") { - arrayUpdated[index] = sanitizeSql(value, spaces); - } else if (typeof item == "object" && !Array.isArray(value)) { - arrayUpdated[index] = sanitizeObjects(value, spaces); - } else if (typeof item == "object" && Array.isArray(value)) { - arrayUpdated[index] = sanitizeArrays(item, spaces); - } - }); - return arrayUpdated; -} -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -module.exports = sanitizeSql; - - -/***/ }), - -/***/ 4373: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_sanitizeSql__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2250); -/* harmony import */ var _package_shared_functions_backend_db_sanitizeSql__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_sanitizeSql__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = _package_shared_functions_backend_db_sanitizeSql__WEBPACK_IMPORTED_MODULE_2___default()(req.body); - const { name } = sanitizedReqBody; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return res.json({ - success: false, - msg: "No Static File Path" - }); - } - const folderPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(STATIC_ROOT, `images/user-images/user-${user.id}/`); - const newFolderPath = folderPath + name; - const doesFolderExist = fs.existsSync(newFolderPath); - if (doesFolderExist) return res.json({ - success: false - }); - fs.mkdirSync(newFolderPath); - /** - * Send Response - * - * @description Send a boolean response - */ res.json({ - success: true - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(4373))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6534,e.ids=[6534],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},68336:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>y,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>S});var s=t(89947),o=t(2706),i=t(96762),a=t(33873),u=t.n(a),c=t(6420),l=t.n(c),f=t(80304),p=t.n(f);let d=t(29021);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{name:n}=p()(e.body),s=process.env.DSQL_STATIC_SERVER_DIR;if(!s)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});let o=u().join(s,`images/user-images/user-${t.id}/`)+n;if(d.existsSync(o))return r.json({success:!1});d.mkdirSync(o),r.json({success:!0})}let y=(0,i.M)(n,"default"),A=(0,i.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addNewMediaFolder",pathname:"/api/addNewMediaFolder",bundlePath:"",filename:""},userland:n})},6420:(e,r,t)=>{t(81630);let n=t(51348),s=t(72907),o=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=s(e.cookies.datasquirelAuthKey);if(!a)return null;let u=JSON.parse(a);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await n(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},80304:(e,r,t)=>{let n=t(27825);function s(e,r,t){if(!e)return"";if("number"==typeof e||"boolean"==typeof e)return e;if("string"==typeof e&&!e?.toString()?.match(/./))return"";if("object"==typeof e&&!Array.isArray(e))return o(e,r);if("object"==typeof e&&Array.isArray(e))return i(e,r);let n=e;return t&&(n=e.toString().replace(t,"")),r||(n=e.toString().replace(/\n|\r|\n\r|\r\n/g,"").replace(/ /g,"")),n=n.replace(/(?<!\\)\'/g,"\\'").replace(/(?<!\\)\`/g,"\\`").replace(/\/\*\*\//g,"").replace(/select |insert |drop |delete |alter |create |exec | union | or | like | concat|LOAD_FILE|ASCII| COLLATE | HAVING | information_schema|DECLARE |\#|WAITFOR |delay |BENCHMARK |\/\*.*\*\//gi,"\\$&")}function o(e,r){let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(!n){delete t[e];return}"string"==typeof n||"number"==typeof n?t[e]=s(n,r):"object"!=typeof n||Array.isArray(n)?"object"==typeof n&&Array.isArray(n)&&(t[e]=i(n,r)):t[e]=o(n,r)}),t}function i(e,r){let t=n.cloneDeep(e);return t.forEach((e,n)=>{if(!e){t.splice(n,1);return}"string"==typeof e||"number"==typeof e?t[n]=s(e,r):"object"!=typeof e||Array.isArray(e)?"object"==typeof e&&Array.isArray(e)&&(t[n]=i(e,r)):t[n]=o(e,r)}),t}e.exports=s},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let n=t(9973),s=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let n=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!n.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:n.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=68336);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json index 4018f9a..a31c801 100644 --- a/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addNewMediaFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js index a77a361..c59ad4c 100644 --- a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js @@ -1,225 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5012; -exports.ids = [5012]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1541: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=3292,e.ids=[3292],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},25858:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),o=t(2706),a=t(96762),i=t(77538),l=t.n(i),c=t(6420),u=t.n(c);let p=t(29021);t(33873);let{execSync:f}=t(79646);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:n,paradigm:o,platforms:a}=e.body;try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/env.json`;p.existsSync(e)||p.writeFileSync(e,"{}","utf8");let n=JSON.parse(p.readFileSync(e,"utf8")),i=n[s];i||(i={social:[]},n[s]=i);let l=i.social;l=[];for(let e=0;e<a.length;e++){let r=a[e],{clientId:t,clientSecret:s,domain1:n,domain2:i,callbackUrl:c}=r;if(o?.match(/personal/)&&!t?.match(/./))throw Error("Client Id Must be present");if(o?.match(/personal/)&&!s?.match(/./))throw Error("Client Secret Must be present");if(o?.match(/datasquirel/)&&!n?.match(/./))throw Error("Atleast one Domain Must be present");o?.match(/personal/)?l.push({platform:r.platform,paradigm:o,clientId:t,clientSecret:s,callbackUrl:c}):l.push({platform:r.platform,paradigm:o,domain1:n,domain2:i})}i.social=l,p.writeFileSync(e,JSON.stringify(n,null,4),"utf-8"),r.json({success:!0})}catch(e){console.log(e.message),l()({component:"/api/addSocialLogin/catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let S=(0,a.M)(s,"default"),m=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/addSocialLogin",pathname:"/api/addSocialLogin",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ // import { get, set } from "lodash"; -// const rateLimit = 10; // Number of allowed requests per minute -// const rateLimiter = {}; -// const rateLimiterMiddleware = (ip) => { -// const now = Date.now(); -// const windowStart = now - 60 * 1000; // 1 minute ago -// const requestTimestamps = get(rateLimiter, ip, []).filter((timestamp) => timestamp > windowStart); -// requestTimestamps.push(now); -// set(rateLimiter, ip, requestTimestamps); -// return requestTimestamps.length <= rateLimit; -// }; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ // const ip = req.headers["x-real-ip"] || req.connection.remoteAddress; - // if (!rateLimiterMiddleware(ip)) { - // // res.status(429).json({ message: "Too Many Requests" }); - // return res.status(429).json({ msg: "Too Many Requests" }); - // } - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbFullName , dbSlug , paradigm , platforms } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userEnvFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/env.json`; - if (!fs.existsSync(userEnvFilePath)) { - fs.writeFileSync(userEnvFilePath, "{}", "utf8"); - } - const envObject = JSON.parse(fs.readFileSync(userEnvFilePath, "utf8")); - let databseObject = envObject[dbFullName]; - if (!databseObject) { - databseObject = { - social: [] - }; - envObject[dbFullName] = databseObject; - } - /** @type {object[]} */ let socialLogins = databseObject.social; - socialLogins = []; - for(let i = 0; i < platforms.length; i++){ - const platform = platforms[i]; - const { clientId , clientSecret , domain1 , domain2 , callbackUrl } = platform; - if (paradigm?.match(/personal/) && !clientId?.match(/./)) { - throw new Error("Client Id Must be present"); - } - if (paradigm?.match(/personal/) && !clientSecret?.match(/./)) { - throw new Error("Client Secret Must be present"); - } - if (paradigm?.match(/datasquirel/) && !domain1?.match(/./)) { - throw new Error("Atleast one Domain Must be present"); - } - // const existingPlatformIndex = socialLogins.findIndex((scObj) => scObj.platform === platform.platform); - // console.log(existingPlatformIndex); - // if (existingPlatformIndex >= 0) { - // if (paradigm?.match(/personal/)) { - // socialLogins[existingPlatformIndex] = { ...platform, paradigm }; - // } else { - // socialLogins[existingPlatformIndex] = { paradigm, platform: platform.platform }; - // } - // } else { - // socialLogins.push({ paradigm, ...platform }); - // } - if (paradigm?.match(/personal/)) { - socialLogins.push({ - platform: platform.platform, - paradigm, - clientId, - clientSecret, - callbackUrl - }); - } else { - socialLogins.push({ - platform: platform.platform, - paradigm, - domain1, - domain2 - }); - } - } - databseObject.social = socialLogins; - fs.writeFileSync(userEnvFilePath, JSON.stringify(envObject, null, 4), "utf-8"); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/addSocialLogin/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: error.message - }); - //////////////////////////////////////// - } -} -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(1541))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=25858);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json index 19bb3fc..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addSocialLogin.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addTableEntry.js b/dsql-app/.local_dist/server/pages/api/addTableEntry.js index d8f433c..1768872 100644 --- a/dsql-app/.local_dist/server/pages/api/addTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js @@ -1,216 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8325; -exports.ids = [8325]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2771: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(766); -/* harmony import */ var _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DSQL_USER_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3403); -/* harmony import */ var _package_shared_utils_backend_global_db_DSQL_USER_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DSQL_USER_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check +"use strict";(()=>{var e={};e.id=460,e.ids=[460],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},14373:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>E,routeModule:()=>b});var a={};t.r(a),t.d(a,{default:()=>f});var s=t(89947),l=t(2706),i=t(96762),o=t(96771),n=t.n(o),d=t(47670),u=t.n(d);t(51348),t(21339);let c=t(73677),p=t(39831),g=t(77538),m=t(6420);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await m(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:a,payload:s,tableSchema:l,dbSlug:i,dbId:o,delegated:d}=e.body;try{let d=await p({databaseSlug:i,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:i,table:a,dbId:o,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let g=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${i}`:`datasquirel_user_${t.id}_${i}`,m=await u()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:g,tableName:a,data:s,tableSchema:l});if(!m.insertId)throw console.log("Table Insertion Failed =>",m),Error("Table Insertion Failed");await n()({dbName:g,entryId:m.insertId,entryOrder:s.order,tableName:a,tableSchema:l}),r.json({success:!0})}catch(e){g({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let E=(0,i.M)(a,"default"),_=(0,i.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addTableEntry",pathname:"/api/addTableEntry",bundlePath:"",filename:""},userland:a})},73677:(e,r,t)=>{let a=t(51348),s=t(77538);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:l,priviledgeRegex:i,dbId:o}){let n,d;try{r?.delegated?(n=await a("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,l]),d=n[0]?.priviledge?.match(i)):(n=await a("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,l,o]),d=!0)}catch(r){s({component:"checkUserRights",message:r.message,user:e})}return!!n&&!!n[0]&&!!d}},39831:(e,r,t)=>{t(81630);let a=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:s}){try{let l=t.id,i=null;if(!s?.delegated)return{dbUserId:l};let o=s.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${o}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=a(e.cookies[d]);if(!t)throw Error("Invalid Token");if((i=JSON.parse(t)).databaseSlug===r)return{dbUserId:l=i.rootUserId,rootUserId:i.rootUserId,rootUserName:i.rootUserName,rootUserEmail:i.rootUserEmail,rootUserImage:i.rootUserImage,databaseFullName:i.databaseFullName,databaseSlug:i.databaseSlug,allowedTables:i.allowedTables,priviledges:i.priviledges,database:i.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:l}}catch(e){return null}}},96771:(e,r,t)=>{let a=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:s,tableSchema:l}){try{if(l.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let l=await a({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${s} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!l?.[0])throw Error("No Existing Order");await a({database:e,paradigm:"Full Access",queryString:`UPDATE ${s} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:l}){let i=new Date,o=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` +Date: ${i.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let n=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const checkUserRights = __webpack_require__(8999); -const grabDelegatedUserFromCookie = __webpack_require__(1352); -const serverError = __webpack_require__(2163); -const userAuth = __webpack_require__(6825); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} AddTableEntryRequestBody - * @property {string} tableName - * @property {any} payload - * @property {import("@/package-shared/types").DSQL_TableSchemaType} tableSchema - * @property {string} dbSlug - * @property {number} dbId - * @property {boolean} delegated - */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await userAuth(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "User Auth Failed" - }); - } - /** - * User auth - * - * @description Authenticate user - */ /** @type {AddTableEntryRequestBody} */ const sanitizedReqBody = req.body; - const { tableName , payload , tableSchema , dbSlug , dbId , delegated } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await grabDelegatedUserFromCookie({ - databaseSlug: dbSlug, - request: req, - user: user, - query: req.query - }); - const checkUserRightsBoolean = await checkUserRights({ - user: user, - confirmedDelegetedUser: delegatedUser, - database: dbSlug, - table: tableName, - dbId: dbId, - priviledgeRegex: /Update Entries/i - }); - if (!checkUserRightsBoolean) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const dbFullName = delegatedUser?.rootUserId ? `datasquirel_user_${delegatedUser.rootUserId}_${dbSlug}` : `datasquirel_user_${user.id}_${dbSlug}`; - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const newTableEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: tableName, - data: payload, - tableSchema: tableSchema - }); - if (!newTableEntry.insertId) { - console.log("Table Insertion Failed =>", newTableEntry); - throw new Error("Table Insertion Failed"); - } - const handleOrder = await _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0___default()({ - dbName: dbFullName, - entryId: newTableEntry.insertId, - entryOrder: payload.order, - tableName: tableName, - tableSchema: tableSchema - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - serverError({ - component: "/api/addTableEntry/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!", - err: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,1352,8999,766], () => (__webpack_exec__(2771))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72907),l=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=s(e.cookies.datasquirelAuthKey);if(!o)return null;let n=JSON.parse(o);if(!n.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${n.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${d}/${n.csrf_k}`))return null;if(0==n.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${n.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return n?.date&&Date.now()-n.date>6048e5?null:n}e.exports=i},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:l}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(14373));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json index 5cf6b85..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/1352.js","../../chunks/8999.js","../../chunks/766.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserMedia.js b/dsql-app/.local_dist/server/pages/api/addUserMedia.js index 6e1ee0e..233a67b 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js @@ -1,356 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3909; -exports.ids = [3909]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7441: -/***/ ((module) => { - -module.exports = require("sharp"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9146: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5910); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6715); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); -const config = { - api: { - responseLimit: "1mb", - bodyParser: { - sizeLimit: "200mb" - } - } -}; +"use strict";(()=>{var e={};e.id=979,e.ids=[979],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},93851:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>b,routeModule:()=>E});var a={};t.r(a),t.d(a,{config:()=>y,default:()=>$});var i=t(89947),l=t(2706),s=t(96762),n=t(47670),o=t.n(n),u=t(10701),d=t.n(u),m=t(48227),c=t.n(m),p=t(77538),_=t.n(p),f=t(6420),h=t.n(f);let g=t(29021),S=t(33873),{execSync:v}=t(79646),y={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function $(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await h()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body,{media:i}=a;console.log(a.type);let l=a.folder,s=a.type;"production".match(/production/);let n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)return console.log("Static File ENV not Found!"),r.json({success:!1,msg:"No Static File Path"});if(l){let e=S.join(n,`images/user-images/user-${t.id}/${l}`);g.existsSync(e)||g.mkdirSync(e,{recursive:!0});let r=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/${l}`;g.existsSync(r)||g.mkdirSync(r,{recursive:!0})}try{let e=[];for(let r=0;r<i.length;r++){let a=i[r];if(s?.match(/image/i)){let{imageBase64:r,imageName:i,imageSize:s,mimeType:n}=a,u=await d()({imageName:i.replace(/ /g,"-"),imageSourceBase64:r,user:t,folder:l,mimeType:n,isPrivate:a.private});if(!u){console.log("Image Write Failed!");continue}let{urlPath:m,urlThumbnailPath:c,urlRelativePath:p,urlThumbnailRelativePath:_}=u;await o()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:t.id,media_name:i.replace(/ /g,"-"),media_url:m,media_type:"image",media_thumbnail_url:c,media_path:p,media_thumbnail_path:_,folder:l,private:a.private?1:0},duplicateColumnName:"media_url",duplicateColumnValue:m}),e.push({media_name:i.replace(/ /g,"-"),media_url:m,media_thumbnail_url:c})}else if(s?.match(/file/i)){let{fileBase64:r,fileSize:i,fileType:s}=a,n=a.fileName.replace(/ /g,"-").replace(/\./g,""),u=c()({isPrivate:a.private,user:t,folder:l});if(!u)continue;let{fileRootPath:d,urlRootPath:m,relativePath:p}=u,_=s?.match(/pdf/)?".pdf":s?.match(/xlsx/)?".xlsx":s?.match(/csv/)?".csv":s?.match(/json/)?".json":null;if(!_)continue;let f=d+n+_,h=m+n+_,S=p+n+_;g.writeFileSync(f,r,"base64"),await o()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:t.id,media_name:n,media_url:h,media_thumbnail_url:h,media_path:S,media_thumbnail_path:S,media_type:"file/"+_.replace(/\./,""),folder:l,private:a.private?1:0},duplicateColumnName:"media_url",duplicateColumnValue:h}),e.push({media_name:n,media_url:h,media_thumbnail_url:h})}else if(s?.match(/video/i)){let{fileBase64:r,fileSize:i,fileType:s}=a,n=a.fileName.replace(/ /g,"-").replace(/\./g,""),u=c()({isPrivate:a.private,user:t,folder:l,video:!0});if(!u)continue;let{fileRootPath:d,urlRootPath:m,relativePath:p}=u,_=s?.match(/mp4/)?".mp4":null;if(!_)continue;let f=d+n+_,h=m+n+_,S=p+n+_;g.writeFileSync(f,r,"base64"),await o()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:t.id,media_name:n,media_url:h,media_thumbnail_url:h,media_path:S,media_thumbnail_path:S,media_type:"video/"+_.replace(/\./,""),folder:l,private:a.private?1:0},duplicateColumnName:"media_url",duplicateColumnValue:h}),e.push({media_name:n,media_url:h,media_thumbnail_url:h})}}r.json({success:!0,mediaData:e})}catch(e){console.log(`Add User Media Error: ${e.message}`),_()({component:"/api/addUserMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let b=(0,s.M)(a,"default"),x=(0,s.M)(a,"config"),E=new i.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/addUserMedia",pathname:"/api/addUserMedia",bundlePath:"",filename:""},userland:a})},10701:(e,r,t)=>{let a=t(9288),i=t(77538),l=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:s,thumbnailSize:n,folder:o,isPrivate:u}){try{let i=Buffer.from(e,"base64"),d=n?parseInt(n.toString()):400,m=a(i),c=a(i),p=l({isPrivate:u,user:t,folder:o});if(!p)return null;let{fileRootPath:_,urlRootPath:f,relativePath:h}=p,{width:g,height:S,format:v}=await m.metadata(),y=s||v;g&&S&&g>1800&&m.resize(1800,Math.round(1800/g*S),{fit:"cover"}),m.toFormat(y,{quality:80}),await m.metadata();let $=`${r}.${y}`;if(await m.toFile(_+$),g&&S&&g>d){let e=d/g;c.resize(d,Math.round(S*e),{fit:"cover"})}else g&&S&&c.resize(150,Math.round(150/g*S),{fit:"cover"});c.toFormat(y,{quality:80});let b=`${r}_thumbnail.${y}`;return await c.toFile(_+b),{urlPath:f+$,urlThumbnailPath:f+b,urlRelativePath:h+$,urlThumbnailRelativePath:h+b}}catch(e){return console.log("Write Image to Disk error =>",e.message),i({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let a=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:l,pathOnly:s}){"production".match(/production/);let n=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${l?"videos":"media"}/${t?t+"/":""}`:l?`/videos/user-videos/user-${n}/${t?t+"/":""}`:`/images/user-images/user-${n}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/${t?t+"/":""}`:i.join(o,u);return a.existsSync(d)||s||a.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:l}){let s=new Date,n=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||l.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(i+=` +URL: ${l.url}`),l?.body&&(i+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),n&&(i+=` +IP: ${n}`),i+=` +Date: ${s.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",i),a.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { media } = sanitizedReqBody; - console.log(sanitizedReqBody.type); - const folder = sanitizedReqBody.folder; - const type = sanitizedReqBody.type; - const newMediaArray = media; - const isProduction = "production".match(/production/); - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return res.json({ - success: false, - msg: "No Static File Path" - }); - } - if (folder) { - const folderPath = path.join(STATIC_ROOT, `images/user-images/user-${user.id}/${folder}`); - const folderExists = fs.existsSync(folderPath); - if (!folderExists) { - fs.mkdirSync(folderPath, { - recursive: true - }); - } - const privateFolderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media/${folder}`; - const privateFolderExists = fs.existsSync(privateFolderPath); - if (!privateFolderExists) { - fs.mkdirSync(privateFolderPath, { - recursive: true - }); - } - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const mediaData = []; - for(let i = 0; i < newMediaArray.length; i++){ - const newMedia = newMediaArray[i]; - if (type?.match(/image/i)) { - const { imageBase64 , imageName , imageSize , mimeType } = newMedia; - const imageWrite = await _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_1___default()({ - imageName: imageName.replace(/ /g, "-"), - imageSourceBase64: imageBase64, - user: user, - folder, - mimeType, - isPrivate: newMedia.private - }); - if (!imageWrite) { - console.log("Image Write Failed!"); - continue; - } - const { urlPath , urlThumbnailPath , urlRelativePath , urlThumbnailRelativePath , } = imageWrite; - let newMediaEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - data: { - user_id: user.id, - media_name: imageName.replace(/ /g, "-"), - media_url: urlPath, - media_type: "image", - media_thumbnail_url: urlThumbnailPath, - media_path: urlRelativePath, - media_thumbnail_path: urlThumbnailRelativePath, - folder: folder, - private: newMedia.private ? 1 : 0 - }, - duplicateColumnName: "media_url", - duplicateColumnValue: urlPath - }); - // if (newMediaEntry?.insertId) { - mediaData.push({ - media_name: imageName.replace(/ /g, "-"), - media_url: urlPath, - media_thumbnail_url: urlThumbnailPath - }); - // } - } else if (type?.match(/file/i)) { - const { fileBase64 , fileSize , fileType } = newMedia; - const fileName = newMedia.fileName.replace(/ /g, "-").replace(/\./g, ""); - /** - * Grab URL Paths - */ const grabedPaths = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2___default()({ - isPrivate: newMedia.private, - user: user, - folder: folder - }); - if (!grabedPaths) { - continue; - } - const { fileRootPath , urlRootPath , relativePath } = grabedPaths; - const fileExt = (()=>{ - if (fileType?.match(/pdf/)) return ".pdf"; - if (fileType?.match(/xlsx/)) return ".xlsx"; - if (fileType?.match(/csv/)) return ".csv"; - if (fileType?.match(/json/)) return ".json"; - return null; - })(); - if (!fileExt) continue; - const writePath = fileRootPath + fileName + fileExt; - const urlPath1 = urlRootPath + fileName + fileExt; - const urlRelativePath1 = relativePath + fileName + fileExt; - fs.writeFileSync(writePath, fileBase64, "base64"); - let newMediaEntry1 = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - data: { - user_id: user.id, - media_name: fileName, - media_url: urlPath1, - media_thumbnail_url: urlPath1, - media_path: urlRelativePath1, - media_thumbnail_path: urlRelativePath1, - media_type: "file" + "/" + fileExt.replace(/\./, ""), - folder: folder, - private: newMedia.private ? 1 : 0 - }, - duplicateColumnName: "media_url", - duplicateColumnValue: urlPath1 - }); - mediaData.push({ - media_name: fileName, - media_url: urlPath1, - media_thumbnail_url: urlPath1 - }); - } else if (type?.match(/video/i)) { - const { fileBase64: fileBase641 , fileSize: fileSize1 , fileType: fileType1 } = newMedia; - const fileName1 = newMedia.fileName.replace(/ /g, "-").replace(/\./g, ""); - /** - * Grab URL Paths - */ const grabedPaths1 = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2___default()({ - isPrivate: newMedia.private, - user: user, - folder: folder, - video: true - }); - if (!grabedPaths1) { - continue; - } - const { fileRootPath: fileRootPath1 , urlRootPath: urlRootPath1 , relativePath: relativePath1 } = grabedPaths1; - const fileExt1 = (()=>{ - if (fileType1?.match(/mp4/)) return ".mp4"; - return null; - })(); - if (!fileExt1) continue; - const writePath1 = fileRootPath1 + fileName1 + fileExt1; - const urlPath2 = urlRootPath1 + fileName1 + fileExt1; - const urlRelativePath2 = relativePath1 + fileName1 + fileExt1; - fs.writeFileSync(writePath1, fileBase641, "base64"); - let newMediaEntry2 = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - data: { - user_id: user.id, - media_name: fileName1, - media_url: urlPath2, - media_thumbnail_url: urlPath2, - media_path: urlRelativePath2, - media_thumbnail_path: urlRelativePath2, - media_type: "video" + "/" + fileExt1.replace(/\./, ""), - folder: folder, - private: newMedia.private ? 1 : 0 - }, - duplicateColumnName: "media_url", - duplicateColumnValue: urlPath2 - }); - mediaData.push({ - media_name: fileName1, - media_url: urlPath2, - media_thumbnail_url: urlPath2 - }); - } - } - //////////////////////////////////////// - res.json({ - success: true, - mediaData: mediaData - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(`Add User Media Error: ${error.message}`); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/addUserMedia/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,6715,5910], () => (__webpack_exec__(9146))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),i=t(72907),l=t(29021);async function s(e,r,t,s){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let n=i(e.cookies.datasquirelAuthKey);if(!n)return null;let o=JSON.parse(n);if(!o.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${u}/${o.csrf_k}`))return null;if(0==o.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=s},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:i}=t(55511),{Buffer:l}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(93851));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json index cf3389b..ba5d2e0 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/6715.js","../../chunks/5910.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/lru-cache/package.json","../../../../node_modules/lru-cache/index.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/color/index.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/color/package.json","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/yallist/package.json","../../../../node_modules/yallist/yallist.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/yallist/iterator.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/color/node_modules/color-convert/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/color/node_modules/color-convert/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/color-string/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/color-string/package.json","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/color/node_modules/color-convert/route.js","../../../../node_modules/color/node_modules/color-convert/conversions.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/color/node_modules/color-name/package.json","../../../../node_modules/color/node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../../../../node_modules/@img/sharp-linux-x64/LICENSE","../../../../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/internal/lrucache.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js b/dsql-app/.local_dist/server/pages/api/addUserTable.js index 87b5a63..4cd33cb 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js @@ -1,304 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8448; -exports.ids = [8448]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 8583: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8164); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_setUserSchemaData__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7638); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=8275,e.ids=[8275],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13441:(e,a,t)=>{t.r(a),t.d(a,{config:()=>F,default:()=>E,routeModule:()=>D});var r={};t.r(r),t.d(r,{default:()=>y});var l=t(89947),s=t(2706),n=t(96762),i=t(77538),d=t.n(i),u=t(6420),o=t.n(u),c=t(49827),b=t(27825),m=t.n(b),f=t(19857),p=t(51348),_=t.n(p),h=t(47670),g=t.n(h);t(29021);let N=t(33873),{execSync:S}=t(79646);async function y(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let t=await o()(e,a,!0);if(!t)return console.log("No User"),a.json({success:!1,msg:"Unauthorized"});let{payload:r}=e.body,l=e.body.dbFullName.replace(/[^a-z\_0-9]/g,""),s=e.body.dbSlug,n=e.body.dbId,i=e.body.parentDatabase,u=e.body.parentTable;try{let e=(0,c.default)({userId:t.id});if(!e)throw Error("No User Schema found!");let o=e.findIndex(e=>e.dbFullName===l),b=e[o];if(!b)throw Error("No Target Database Found!");let p=b.tables.findIndex(e=>e.tableName===r.tableName);if(p>=0?e[o].tables[p]=r:e[o].tables.push(r),r?.childTable){let a=e.find(e=>e.dbFullName===i),t=a?.tables.find(e=>{if(e.tableName===u)return!0});if(!t)throw Error("Child Table Parent Doesn't Exist!");t.childrenTables?.[0]?t.childrenTables.push({dbNameFull:l,tableName:r.tableName,tableNameFull:r.tableNameFull}):t.childrenTables=[{dbNameFull:l,tableName:r.tableName,tableNameFull:r.tableFullName}]}if(b.childrenDatabases)for(let a=0;a<b.childrenDatabases.length;a++){let l=b.childrenDatabases[a];try{let a=e.findIndex(e=>e.dbFullName===l.dbFullName);e[a]&&(e[a].tables=m().cloneDeep(b.tables));let s=await _()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[t.id,l.dbFullName]),n=await _()("SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?",[s[0].id,t.id,r.tableName]);if(n?.[0])continue;await g()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:s[0].id,db_slug:s[0].db_slug,table_name:r.tableFullName,table_slug:r.tableName}})}catch(e){d()({component:"/api/addUserTable/lines-124-140",message:e.message,user:t})}}(0,f.default)({userId:t.id,schemaData:e});let h={user_id:t.id,db_id:n,db_slug:s,table_name:r.tableFullName,table_slug:r.tableName};r?.childTable&&(h.child_table="1",h.child_table_parent_database=i,h.child_table_parent_table=u),await g()({dbFullName:"datasquirel",tableName:"user_database_tables",data:h});let y=N.join(process.cwd(),"/shell");S(`node createDbFromSchema.js --user ${t.id} --database ${l}${r?.childTable?" --clone":""}`,{cwd:y}),a.json({success:!0})}catch(e){console.log(e.message),d()({component:"/api/addUserTable/main-catch-error",message:e.message,user:t}),a.json({success:!1,msg:"Database Files could not be written!"})}}let E=(0,n.M)(r,"default"),F=(0,n.M)(r,"config"),D=new l.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addUserTable",pathname:"/api/addUserTable",bundlePath:"",filename:""},userland:r})},49827:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});let r=t(77538),l=t(29021),s=t(33873);function n({userId:e}){try{let a=s.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(l.readFileSync(a,"utf-8"))}catch(e){return r({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},77538:(e,a,t)=>{let r=t(29021),{IncomingMessage:l}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:l,req:s}){let n=new Date,i=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],a=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],l=t||r||a||s.socket.remoteAddress;if(!l)return null;return String(l)}catch(e){return null}})();try{let l=`🚀 SERVER ERROR =========================== +Error Message: ${a} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(l+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(l+=` +URL: ${s.url}`),s?.body&&(l+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),i&&(l+=` +IP: ${i}`),l+=` +Date: ${n.toDateString()} +========================================`,r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let d=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",l),r.appendFileSync("./.tmp/error.log",` - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - console.log("No User"); - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { payload } = req.body; - const dbFullName = req.body.dbFullName.replace(/[^a-z\_0-9]/g, ""); - const dbSlug = req.body.dbSlug; - const dbId = req.body.dbId; - const parentDatabase = req.body.parentDatabase; - const parentTable = req.body.parentTable; - /** - * Send Response - * - * @description Send a boolean response - */ try { - let userSchemaData = (0,_functions_backend_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_2__["default"])({ - userId: user.id - }); - if (!userSchemaData) { - throw new Error("No User Schema found!"); - } - let targetDatabaseIndex = userSchemaData.findIndex((db)=>db.dbFullName === dbFullName); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ let targetDatabase = userSchemaData[targetDatabaseIndex]; - if (!targetDatabase) { - throw new Error("No Target Database Found!"); - } - let existingTableIndex = targetDatabase.tables.findIndex((table)=>table.tableName === payload.tableName); - if (existingTableIndex >= 0) { - userSchemaData[targetDatabaseIndex].tables[existingTableIndex] = payload; - } else { - userSchemaData[targetDatabaseIndex].tables.push(payload); - } - if (payload?.childTable) { - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ const parentDb = userSchemaData.find((db)=>db.dbFullName === parentDatabase); - const parentTableObject = parentDb?.tables.find((table)=>{ - if (table.tableName === parentTable) { - return true; - } - }); - if (!parentTableObject) { - throw new Error("Child Table Parent Doesn't Exist!"); - } - if (parentTableObject.childrenTables?.[0]) { - parentTableObject.childrenTables.push({ - dbNameFull: dbFullName, - tableName: payload.tableName, - tableNameFull: payload.tableNameFull - }); - } else { - parentTableObject.childrenTables = [ - { - dbNameFull: dbFullName, - tableName: payload.tableName, - tableNameFull: payload.tableFullName - }, - ]; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Check Children Databases - * - * @description Check Children Databases - */ if (targetDatabase.childrenDatabases) { - for(let i = 0; i < targetDatabase.childrenDatabases.length; i++){ - const childDb = targetDatabase.childrenDatabases[i]; - try { - const targetChildIndex = userSchemaData.findIndex((db)=>db.dbFullName === childDb.dbFullName); - if (userSchemaData[targetChildIndex]) userSchemaData[targetChildIndex].tables = lodash__WEBPACK_IMPORTED_MODULE_3___default().cloneDeep(targetDatabase.tables); - const targetDbRecord = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?`, [ - user.id, - childDb.dbFullName - ]); - const existingEntry = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM user_database_tables WHERE db_id=? AND user_id=? AND table_slug=?`, [ - targetDbRecord[0].id, - user.id, - payload.tableName - ]); - if (existingEntry?.[0]) continue; - const newChildTableEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_6___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: user.id, - db_id: targetDbRecord[0].id, - db_slug: targetDbRecord[0].db_slug, - table_name: payload.tableFullName, - table_slug: payload.tableName - } - }); - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/addUserTable/lines-124-140", - message: error.message, - user: user - }); - } - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - // console.log("Done ..."); - // fs.writeFileSync( - // "./.tmp/newTableSchema.json", - // JSON.stringify(userSchemaData, null, 4), - // "utf8" - // ); - // return res.json({ - // success: false, - // msg: "Testing", - // }); - (0,_functions_backend_setUserSchemaData__WEBPACK_IMPORTED_MODULE_4__["default"])({ - userId: user.id, - schemaData: userSchemaData - }); - //////////////////////////////////////// - /** @type {any} */ const newTableInsertObject = { - user_id: user.id, - db_id: dbId, - db_slug: dbSlug, - table_name: payload.tableFullName, - table_slug: payload.tableName - }; - if (payload?.childTable) { - newTableInsertObject["child_table"] = "1"; - newTableInsertObject["child_table_parent_database"] = parentDatabase; - newTableInsertObject["child_table_parent_table"] = parentTable; - } - const newTableEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_6___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: newTableInsertObject - }); - //////////////////////////////////////// - const targetPath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${user.id} --database ${dbFullName}${payload?.childTable ? " --clone" : ""}`, { - cwd: targetPath - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - console.log(error1.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/addUserTable/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,8164,7638], () => (__webpack_exec__(8583))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${d}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19857:(e,a,t)=>{t.r(a),t.d(a,{default:()=>n});let r=t(77538),l=t(29021),s=t(33873);function n({userId:e,schemaData:a}){try{let t=s.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return l.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return r({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},6420:(e,a,t)=>{t(81630);let r=t(51348),l=t(72907),s=t(29021);async function n(e,a,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=l(e.cookies.datasquirelAuthKey);if(!i)return null;let d=JSON.parse(i);if(!d.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${u}/${d.csrf_k}`))return null;if(0==d.verification_status&&!t){let e=await r(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=n},72907:(e,a,t)=>{let{scryptSync:r,createDecipheriv:l}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let a=l("aes-192-cbc",r(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=a.update(e,"hex","utf8");return t+=a.final("utf8")}catch(e){return null}}}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),r=a.X(0,[4050],()=>t(13441));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json index f93e50b..d8a8c5f 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/8164.js","../../chunks/7638.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserUser.js b/dsql-app/.local_dist/server/pages/api/addUserUser.js index b558e43..91af023 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js @@ -1,231 +1,4 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5402; -exports.ids = [5402]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9210: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ // const sanitizedReqBody = sanitizeSql(req.body); - const sanitizedReqBody = req.body; - const paradigm = sanitizedReqBody.paradigm; - /** - * Input Validation - * - * @description Input Validation - */ if (paradigm?.match(/database/)) { - const newUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "user_users", - data: (()=>{ - const reqBodyKeys = Object.keys(sanitizedReqBody); - /** @type {any} */ const finalData = {}; - reqBodyKeys.forEach((key)=>{ - if (key?.match(/paradigm|priviledge|database_access|databases|confirm/)) return; - finalData[key] = sanitizedReqBody[key]; - }); - finalData["user_id"] = user.id; - finalData["password"] = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: sanitizedReqBody.password - }); - finalData["user_type"] = "database"; - finalData["email"] = sanitizedReqBody.email_address; - finalData["image"] = "/images/user-preset.png"; - finalData["image_thumbnail"] = "/images/user-preset-thumbnail.png"; - delete finalData["email_address"]; - return finalData; - })() - }); - res.json({ - success: newUser?.insertId ? true : false, - msg: "New User User Added", - newUserId: newUser.insertId - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } else { - if (user?.email === sanitizedReqBody.email_address) { - return res.json({ - success: false, - msg: "Can't Invite yourself" - }); - } - const existingInvitation = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4___default()(`SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?`, [ - sanitizedReqBody.email_address, - user.id - ]); - if (existingInvitation && existingInvitation[0]) { - return res.json({ - success: false, - msg: "User Already Invited" - }); - } - const newInvitation = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "invitations", - data: { - inviting_user_id: user.id, - invited_user_email: sanitizedReqBody.email_address, - database_access: sanitizedReqBody.database_access, - priviledge: sanitizedReqBody.priviledge, - db_tables_data: sanitizedReqBody.db_tables - } - }); - const sendInvitationMail = await _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default()({ - to: sanitizedReqBody.email_address, - subject: `${user.first_name} ${user.last_name} Invited you`, - text: `${user.first_name} ${user.last_name} has invited you to manage a datasquirel account`, - html: ` - <h2>${user.first_name} ${user.last_name} has invited you to manage a datasquirel account.</h2> - <a href="${process.env.DSQL_HOST}/create-account?invite=${user.id}&database_access=${sanitizedReqBody.database_access}&priviledge=${sanitizedReqBody.priviledge}&email=${sanitizedReqBody.email_address}">Accept Invitation</a> - ` - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: sendInvitationMail?.accepted ? true : false, - msg: "This is an invitation request" - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,7547,5886,5338,6926], () => (__webpack_exec__(9210))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3812,e.ids=[3812],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},21110:(e,s,a)=>{a.r(s),a.d(s,{config:()=>g,default:()=>S,routeModule:()=>b});var t={};a.r(t),a.d(t,{default:()=>h});var r=a(89947),i=a(2706),n=a(96762),l=a(79531),d=a.n(l),u=a(43499),o=a.n(u),c=a(6420),_=a.n(c),p=a(47670),m=a.n(p),f=a(51348),v=a.n(f);async function h(e,s){if("POST"!==e.method)return s.json({msg:"Failed!"});let a=await _()(e,s,!0);if(!a)return s.json({success:!1,msg:"Unauthorized"});let t=e.body,r=t.paradigm;if(r?.match(/database/)){let e=await m()({dbFullName:"datasquirel",tableName:"user_users",data:(()=>{let e=Object.keys(t),s={};return e.forEach(e=>{e?.match(/paradigm|priviledge|database_access|databases|confirm/)||(s[e]=t[e])}),s.user_id=a.id,s.password=o()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:t.password}),s.user_type="database",s.email=t.email_address,s.image="/images/user-preset.png",s.image_thumbnail="/images/user-preset-thumbnail.png",delete s.email_address,s})()});s.json({success:!!e?.insertId,msg:"New User User Added",newUserId:e.insertId})}else{if(a?.email===t.email_address)return s.json({success:!1,msg:"Can't Invite yourself"});let e=await v()("SELECT * FROM invitations WHERE invited_user_email=? AND inviting_user_id=?",[t.email_address,a.id]);if(e&&e[0])return s.json({success:!1,msg:"User Already Invited"});await m()({dbFullName:"datasquirel",tableName:"invitations",data:{inviting_user_id:a.id,invited_user_email:t.email_address,database_access:t.database_access,priviledge:t.priviledge,db_tables_data:t.db_tables}});let r=await d()({to:t.email_address,subject:`${a.first_name} ${a.last_name} Invited you`,text:`${a.first_name} ${a.last_name} has invited you to manage a datasquirel account`,html:` + <h2>${a.first_name} ${a.last_name} has invited you to manage a datasquirel account.</h2> + <a href="${process.env.DSQL_HOST}/create-account?invite=${a.id}&database_access=${t.database_access}&priviledge=${t.priviledge}&email=${t.email_address}">Accept Invitation</a> + `});s.json({success:!!r?.accepted,msg:"This is an invitation request"})}}let S=(0,n.M)(t,"default"),g=(0,n.M)(t,"config"),b=new r.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/addUserUser",pathname:"/api/addUserUser",bundlePath:"",filename:""},userland:t})},79531:(e,s,a)=>{let t=a(29021),r=a(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:s,text:a,html:i,alias:n}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let d=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!t.existsSync("./email/index.html"))return;let u=t.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"Datasquirel" <${d}>`,t.sender=d,n&&(t["replyTo "]=d),t.to=e,t.subject=s,t.text=a,t.html=u,l=await r.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},6420:(e,s,a)=>{a(81630);let t=a(51348),r=a(72907),i=a(29021);async function n(e,s,a,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=r(e.cookies.datasquirelAuthKey);if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||a&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(a&&!i.existsSync(`${u}/${d.csrf_k}`))return null;if(0==d.verification_status&&!a){let e=await t(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=n},72907:(e,s,a)=>{let{scryptSync:t,createDecipheriv:r}=a(55511),{Buffer:i}=a(79428);e.exports=e=>{let s=r("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let a=s.update(e,"hex","utf8");return a+=s.final("utf8")}catch(e){return null}}}};var s=require("../../webpack-api-runtime.js");s.C(e);var a=e=>s(s.s=e),t=s.X(0,[4050],()=>a(21110));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json index 8a90e13..b261edf 100644 --- a/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/6926.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js index 5761237..5a7dc0b 100644 --- a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js @@ -1,265 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9372; -exports.ids = [9372]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2066: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=4436,e.ids=[4436],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},13461:(e,a,t)=>{t.r(a),t.d(a,{config:()=>A,default:()=>y,routeModule:()=>b});var l={};t.r(l),t.d(l,{default:()=>R});var r=t(89947),s=t(2706),i=t(96762),d=t(51348),u=t.n(d),n=t(77538),o=t.n(n),p=t(6420),m=t.n(p),f=t(47670),c=t.n(f);let _=t(29021),N=t(33873),{execSync:T}=t(79646);async function R(e,a){if("POST"!==e.method)return a.json({msg:"Failed!"});let l=await m()(e,a,!0);if(!l)return a.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,dbSlug:s,dbId:i}=e.body,d=t(87924),n=t(83434),p=[...n.slice(0,2),...d.fields,...n.slice(2)];d.fields=[...p];try{let e;let t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${l.id}/main.json`,n=JSON.parse(_.readFileSync(t,"utf8")),p=n.filter(e=>e.dbFullName===r)[0],m=p.tables.filter((a,t)=>{if("users"===a.tableName)return e=t,!0});if(m?.[0]&&"number"==typeof e?p.tables[e]=d:p.tables.push(d),p.childrenDatabases)for(let e=0;e<p.childrenDatabases.length;e++){let a=p.childrenDatabases[e];try{n.filter(e=>e.dbFullName===a.dbFullName)[0].tables=p.tables;let e=await u()("SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?",[l.id,a.dbFullName]);await c()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:l.id,db_id:e[0].id,db_slug:e[0].db_slug,table_name:"Users",table_slug:"users"}})}catch(e){o()({component:"/api/addUsersTableToDatabase/lines-100-115",message:e.message,user:l})}}_.writeFileSync(`${t}`,JSON.stringify(n),"utf8"),await c()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:l.id,db_id:i,db_slug:s,table_name:"Users",table_slug:"users"}});let f=N.join(process.cwd(),"/shell"),R=r.replace(/[^a-z\_0-9]/g,""),y=T(`node createDbFromSchema.js --user ${l.id} --database ${R}`,{cwd:f});console.log(y.toString()),a.json({success:!0})}catch(e){o()({component:"/api/addUsersTableToDatabase/main-catch-error",message:e.message,user:l}),a.json({success:!1,msg:"Database Files could not be written!"})}}let y=(0,i.M)(l,"default"),A=(0,i.M)(l,"config"),b=new r.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/addUsersTableToDatabase",pathname:"/api/addUsersTableToDatabase",bundlePath:"",filename:""},userland:l})},77538:(e,a,t)=>{let l=t(29021),{IncomingMessage:r}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:r,req:s}){let i=new Date,d=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],a=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],l=Array.isArray(e)?e[0]:e?.split(",")[0],r=t||l||a||s.socket.remoteAddress;if(!r)return null;return String(r)}catch(e){return null}})();try{let r=`🚀 SERVER ERROR =========================== +Error Message: ${a} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(r+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(r+=` +URL: ${s.url}`),s?.body&&(r+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),d&&(r+=` +IP: ${d}`),r+=` +Date: ${i.toDateString()} +========================================`,l.existsSync("./.tmp/error.log")||l.writeFileSync("./.tmp/error.log","","utf-8");let u=l.readFileSync("./.tmp/error.log","utf-8");l.writeFileSync("./.tmp/error.log",r),l.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbFullName , dbSlug , dbId } = sanitizedReqBody; - const userPreset = __webpack_require__(9258); - const defaultFields = __webpack_require__(2439); - const finalFields = [ - ...defaultFields.slice(0, 2), - ...userPreset.fields, - ...defaultFields.slice(2), - ]; - userPreset.fields = [ - ...finalFields - ]; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - let targetDatabase = userSchemaData.filter((db)=>db.dbFullName === dbFullName)[0]; - /** @type {number | undefined} */ let existingTableIndex; - let existingTable = targetDatabase.tables.filter((table, index)=>{ - if (table.tableName === "users") { - existingTableIndex = index; - return true; - } - }); - // if (typeof existingTableIndex !== "number") - // return res.json({ success: false }); - if (existingTable?.[0] && typeof existingTableIndex == "number") { - targetDatabase.tables[existingTableIndex] = userPreset; - } else { - targetDatabase.tables.push(userPreset); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Check Children Databases - * - * @description Check Children Databases - */ if (targetDatabase.childrenDatabases) { - for(let i = 0; i < targetDatabase.childrenDatabases.length; i++){ - const childDb = targetDatabase.childrenDatabases[i]; - try { - const targetChild = userSchemaData.filter((db)=>db.dbFullName === childDb.dbFullName)[0]; - targetChild.tables = targetDatabase.tables; - const targetDbRecord = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_databases WHERE user_id = ? AND db_full_name = ?`, [ - user.id, - childDb.dbFullName - ]); - const newChildTableEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: user.id, - db_id: targetDbRecord[0].id, - db_slug: targetDbRecord[0].db_slug, - table_name: "Users", - table_slug: "users" - } - }); - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/addUsersTableToDatabase/lines-100-115", - message: error.message, - user: user - }); - } - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newTableEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: user.id, - db_id: dbId, - db_slug: dbSlug, - table_name: "Users", - table_slug: "users" - } - }); - //////////////////////////////////////// - const targetPath = path.join(process.cwd(), "/shell"); - const sanitizedDbName = dbFullName.replace(/[^a-z\_0-9]/g, ""); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${user.id} --database ${sanitizedDbName}`, { - cwd: targetPath - }); - console.log(dbShellUpdate.toString()); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/addUsersTableToDatabase/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} - - -/***/ }), - -/***/ 2439: -/***/ ((module) => { - -module.exports = JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]'); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,9258], () => (__webpack_exec__(2066))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,a,t)=>{t(81630);let l=t(51348),r=t(72907),s=t(29021);async function i(e,a,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let d=r(e.cookies.datasquirelAuthKey);if(!d)return null;let u=JSON.parse(d);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${n}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await l(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&a.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},72907:(e,a,t)=>{let{scryptSync:l,createDecipheriv:r}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let a=r("aes-192-cbc",l(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=a.update(e,"hex","utf8");return t+=a.final("utf8")}catch(e){return null}}},83434:e=>{e.exports=JSON.parse('[{"fieldName":"id","dataType":"BIGINT","notNullValue":true,"primaryKey":true,"autoIncrement":true},{"fieldName":"uuid","dataType":"UUID","defaultValueLiteral":"UUID()"},{"fieldName":"date_created","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_created_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_created_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP"},{"fieldName":"date_updated","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"date_updated_code","dataType":"BIGINT","nullValue":true},{"fieldName":"date_updated_timestamp","dataType":"TIMESTAMP","defaultValueLiteral":"CURRENT_TIMESTAMP","onUpdateLiteral":"CURRENT_TIMESTAMP"}]')},87924:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"VARCHAR(250)","notNullValue":true},{"fieldName":"image","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),l=a.X(0,[4050],()=>t(13461));module.exports=l})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json index 77b755b..677433f 100644 --- a/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/addUsersTableToDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/9258.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../jsonData/dbSchemas/defaultFields.json","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../jsonData/presets/users.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/defaultFields.json","../../../../jsonData/presets/users.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js index 2b67034..692a931 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js @@ -1,177 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2383; -exports.ids = [2383]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 5509: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -const fs = __webpack_require__(7147); -const os = __webpack_require__(2037); -const { execSync , spawnSync } = __webpack_require__(2081); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "Unauthorized" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - try { - /** - * Validate Form - * - * @description Check if request body is valid - */ const dsqlUser = req.body.user; - const dsqlUserId = dsqlUser.id.toString().replace(/[^0-9]/g, "").replace(/\//g, ""); - const backupFolder = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dsqlUserId}/backups`; - if (!fs.existsSync(backupFolder)) { - fs.mkdirSync(backupFolder); - } - const newBackupFolderName = Date.now().toString(); - fs.mkdirSync(`${backupFolder}/${newBackupFolderName}`); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const userDatabases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SHOW databases LIKE ?`, [ - `datasquirel_user_${dsqlUserId}_%`, - ]); - for(let i = 0; i < userDatabases.length; i++){ - const dbObject = userDatabases[i]; - const dbName = Object.values(dbObject)[0].replace(/[^a-z0-9\_]/g, ""); - //////////////////////////////////////////////// - const mysqlDumpPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe" + "'" : "mysqldump"; - /** @type {import("child_process").SpawnSyncOptions} */ let execSyncOptions = { - cwd: process.cwd() - }; - const filePath = `${backupFolder}/${newBackupFolderName}/${dbName}.sql`; - if (os.platform().match(/win/i)) execSyncOptions.shell = "bash.exe"; - const exe = `${mysqlDumpPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${dbName} > ${filePath}`; - console.log(`addUserBackup.js exe => ${exe}`); - const dumpDb = spawnSync(mysqlDumpPath, [ - "-u", - process.env.DSQL_DB_USERNAME, - "-h", - process.env.DSQL_DB_HOST, - `-p${process.env.DSQL_DB_PASSWORD}`, - dbName, - ">", - filePath, - ], execSyncOptions); - // const dumpDb = execSync(mysqlDumpPath, [], execSyncOptions); - //////////////////////////////////////////////// - } - //////////////////////////////////////////////// - fs.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dsqlUserId}/main.json`, `${backupFolder}/${newBackupFolderName}/main.json`); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - res.json({ - success: false - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,4432], () => (__webpack_exec__(5509))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9171,e.ids=[9171],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},55535:(e,r,s)=>{s.r(r),s.d(r,{config:()=>A,default:()=>D,routeModule:()=>m});var t={};s.r(t),s.d(t,{default:()=>f});var n=s(89947),o=s(2706),a=s(96762),c=s(51348),u=s.n(c),i=s(19131),l=s.n(i);let p=s(29021),S=s(21820),{execSync:d,spawnSync:_}=s(79646);async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let s=await l()(e);if(!s?.logged_in_status)return r.json({success:!1,log:"Unauthorized"});try{let s=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),t=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/backups`;p.existsSync(t)||p.mkdirSync(t);let n=Date.now().toString();p.mkdirSync(`${t}/${n}`);let o=await u()("SHOW databases LIKE ?",[`datasquirel_user_${s}_%`]);for(let e=0;e<o.length;e++){let r=o[e],s=Object.values(r)[0].replace(/[^a-z0-9\_]/g,""),a=S.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump",c={cwd:process.cwd()},u=`${t}/${n}/${s}.sql`;S.platform().match(/win/i)&&(c.shell="bash.exe");let i=`${a} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${s} > ${u}`;console.log(`addUserBackup.js exe => ${i}`),_(a,["-u",process.env.DSQL_DB_USERNAME,"-h",process.env.DSQL_DB_HOST,`-p${process.env.DSQL_DB_PASSWORD}`,s,">",u],c)}p.copyFileSync(`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s}/main.json`,`${t}/${n}/main.json`),r.json({success:!0})}catch(e){console.log(e.message),r.json({success:!1})}}let D=(0,a.M)(t,"default"),A=(0,a.M)(t,"config"),m=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/addUserBackup",pathname:"/api/admin/addUserBackup",bundlePath:"",filename:""},userland:t})},19131:(e,r,s)=>{let{IncomingMessage:t}=s(81630),n=s(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let s=JSON.parse(r);return s.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):s.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):s}},72907:(e,r,s)=>{let{scryptSync:t,createDecipheriv:n}=s(55511),{Buffer:o}=s(79428);e.exports=e=>{let r=n("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let s=r.update(e,"hex","utf8");return s+=r.final("utf8")}catch(e){return null}}},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var s=r(r.s=55535);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json index f0e67cd..d333e55 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/addUserBackup.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/4432.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js index 7eb9dae..9c33feb 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js @@ -1,112 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7331; -exports.ids = [7331]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5313: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -const { execSync } = __webpack_require__(2081); -const fs = __webpack_require__(7147); - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ fs.writeFileSync("./.tmp/error.log", "", "utf-8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(5313))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4785,e.ids=[4785],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},6126:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>P});var o={};t.r(o),t.d(o,{default:()=>d});var n=t(89947),s=t(2706),u=t(96762),i=t(19131),l=t.n(i);let{execSync:a}=t(79646),c=t(29021);async function d(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await l()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});c.writeFileSync("./.tmp/error.log","","utf-8"),r.json({success:!0})}let p=(0,u.M)(o,"default"),f=(0,u.M)(o,"config"),P=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/clearErrorLogs",pathname:"/api/admin/clearErrorLogs",bundlePath:"",filename:""},userland:o})},19131:(e,r,t)=>{let{IncomingMessage:o}=t(81630),n=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:o,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",o(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=6126);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json index 6b22fb4..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/clearErrorLogs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clientError.js b/dsql-app/.local_dist/server/pages/api/admin/clientError.js index 6d446fb..b33217b 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clientError.js +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js @@ -1,80 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7194; -exports.ids = [7194]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 4177: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Failed" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const { component , message , user } = req.body; - const log = `💻 CLIENT ERROR ===========================\nUser Id: ${user?.id}\nUser Name: ${user?.first_name} ${user?.last_name}\nUser Email: ${user?.email}\nError Message: ${message}\nComponent: ${component}\nDate: ${Date()}\n========================================`; - const initialText = fs.readFileSync(`./.tmp/error.log`, "utf-8"); - fs.writeFileSync(`./.tmp/error.log`, log); - fs.appendFileSync(`./.tmp/error.log`, `\n\n\n\n\n${initialText}`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=4396,e.ids=[4396],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},24351:(e,r,t)=>{t.r(r),t.d(r,{config:()=>c,default:()=>u,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),i=t(2706),o=t(96762);t(79531);let a=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{component:t,message:n,user:s}=e.body,i=`💻 CLIENT ERROR =========================== +User Id: ${s?.id} +User Name: ${s?.first_name} ${s?.last_name} +User Email: ${s?.email} +Error Message: ${n} +Component: ${t} +Date: ${Date()} +========================================`,o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",i),a.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [6926], () => (__webpack_exec__(4177))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`),r.json({success:!0})}let u=(0,o.M)(n,"default"),c=(0,o.M)(n,"config"),d=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/admin/clientError",pathname:"/api/admin/clientError",bundlePath:"",filename:""},userland:n})},79531:(e,r,t)=>{let n=t(29021),s=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:i,alias:o}){let a;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n.existsSync("./email/index.html"))return;let u=n.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"Datasquirel" <${l}>`,n.sender=l,o&&(n["replyTo "]=l),n.to=e,n.subject=r,n.text=t,n.html=u,a=await s.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return a}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=24351);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json index 0ebe7d7..ecf2b2e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/clientError.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/6926.js","../../../../package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js index fc57110..33ceca5 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js @@ -1,230 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2845; -exports.ids = [2845]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 233: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * rootFolderPath: string, - * destinationFolderPath: string, - * }} params - params - * - * @returns {boolean} operation successful or not - */ module.exports = function copyFolderRecursively({ rootFolderPath , destinationFolderPath , }) { - try { - /** - * Start Operations - * - * @description Start Operations - */ fs.mkdirSync(destinationFolderPath); - /** - * Recursive Copy Function - * - * @description Recursive Copy Function - * @param {string} srcPath - path string - * @param {string} dstPath - path string - */ function copyFiles(srcPath, dstPath) { - const files = fs.readdirSync(srcPath); - for(let i = 0; i < files.length; i++){ - const file = files[i]; - if (file?.match(/\..{2,5}$/)) { - fs.copyFileSync(`${srcPath}/${file}`, `${dstPath}/${file}`); - } else { - fs.mkdirSync(`${dstPath}/${file}`, { - recursive: true - }); - copyFiles(`${srcPath}/${file}`, `${dstPath}/${file}`); - } - } - } - copyFiles(rootFolderPath, destinationFolderPath); - return true; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - return false; - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - - -/***/ }), - -/***/ 9389: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_copyFolderRecursively__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(233); -/* harmony import */ var _functions_backend_copyFolderRecursively__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_copyFolderRecursively__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const fs = __webpack_require__(7147); -const os = __webpack_require__(2037); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=9885,e.ids=[9885],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},75865:(e,r,t)=>{t.r(r),t.d(r,{config:()=>$,default:()=>g,routeModule:()=>h});var n={};t.r(n),t.d(n,{default:()=>y});var s=t(89947),o=t(2706),a=t(96762),l=t(93209),i=t.n(l),c=t(77538),u=t.n(c),d=t(19131),p=t.n(d);let m=t(29021),S=t(21820),{execSync:f}=t(79646);async function y(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await p()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n="./.tmp/backups";m.existsSync(n)||m.mkdirSync("./.tmp/backups");let s=Date.now().toString();m.mkdirSync(`${n}/${s}`);let o=S.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let e={cwd:process.cwd()},t=`${n}/${s}/datasquirel.sql`;S.platform().match(/win/i)&&(e.shell="bash.exe");let a=`${o} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} datasquirel > ${t}`;console.log(`createNewBackup.js exe => ${a}`),f(a,e),m.copyFileSync("./jsonData/dbSchemas/main.json",`${n}/${s}/datasquirelSchema.json`),i()({rootFolderPath:`${process.env.DSQL_USER_DB_SCHEMA_PATH}`,destinationFolderPath:`${n}/${s}/userSchemas`}),r.json({success:!0})}catch(e){r.json({success:!1}),u()({component:"/api/admin/createNewBackup/lines-73-90",message:e.message})}}let g=(0,a.M)(n,"default"),$=(0,a.M)(n,"config"),h=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/createNewBackup",pathname:"/api/admin/createNewBackup",bundlePath:"",filename:""},userland:n})},93209:(e,r,t)=>{let n=t(29021);e.exports=function({rootFolderPath:e,destinationFolderPath:r}){try{return n.mkdirSync(r),function e(r,t){let s=n.readdirSync(r);for(let o=0;o<s.length;o++){let a=s[o];a?.match(/\..{2,5}$/)?n.copyFileSync(`${r}/${a}`,`${t}/${a}`):(n.mkdirSync(`${t}/${a}`,{recursive:!0}),e(`${r}/${a}`,`${t}/${a}`))}}(e,r),!0}catch(e){return console.log(e.message),!1}}},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:o}){let a=new Date,l=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${a.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let i=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",s),n.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - success: false, - msg: "Failed" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const backupFolder = "./.tmp/backups"; - if (!fs.existsSync(backupFolder)) { - fs.mkdirSync("./.tmp/backups"); - } - const newBackupFolderName = Date.now().toString(); - fs.mkdirSync(`${backupFolder}/${newBackupFolderName}`); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const mysqlDumpPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe" + "'" : "mysqldump"; - try { - /** @type {import("child_process").ExecSyncOptions} */ let execSyncOptions = { - cwd: process.cwd() - }; - const filePath = `${backupFolder}/${newBackupFolderName}/datasquirel.sql`; - if (os.platform().match(/win/i)) execSyncOptions.shell = "bash.exe"; - const exe = `${mysqlDumpPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} datasquirel > ${filePath}`; - console.log(`createNewBackup.js exe => ${exe}`); - const dumpDb = execSync(exe, execSyncOptions); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - fs.copyFileSync(`./jsonData/dbSchemas/main.json`, `${backupFolder}/${newBackupFolderName}/datasquirelSchema.json`); - const copyUserFiles = _functions_backend_copyFolderRecursively__WEBPACK_IMPORTED_MODULE_0___default()({ - rootFolderPath: `${process.env.DSQL_USER_DB_SCHEMA_PATH}`, - destinationFolderPath: `${backupFolder}/${newBackupFolderName}/userSchemas` - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - res.json({ - success: false - }); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/admin/createNewBackup/lines-73-90", - message: error.message - }); - } -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,4432], () => (__webpack_exec__(9389))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),s=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=s(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=75865);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json index c13f928..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/createNewBackup.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2163.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js index 8a2ec24..f9ed0a5 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js @@ -1,556 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9875; -exports.ids = [9875]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1689: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const sanitizeHtml = __webpack_require__(6109); -const DB_HANDLER = __webpack_require__(2224); -const addDbEntry = __webpack_require__(5338); -const sanitizeHtmlOptions = __webpack_require__(9544); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {any} params.body - Request body - * @param {boolean} [params.update] - Update if existing - * - * @returns {Promise<object|null>} - */ module.exports = async function({ body , update }) { - /** - * Initialize variables - */ const slug = body.title.toLowerCase().replace(/ /g, "-").replace(/[^a-z0-9\-]/g, ""); - const currentOrder = await async function() { - if (update) return null; - try { - const lastOrder = await DB_HANDLER(`SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1`); - return lastOrder[0].page_order; - } catch (error) { - return null; - } - }(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - * @type {any} - */ const addDocPage = await addDbEntry({ - data: { - title: body.title, - slug: slug, - description: sanitizeHtml(body.description, sanitizeHtmlOptions), - content: sanitizeHtml(body.content, sanitizeHtmlOptions), - text_content: body.text_content, - level: body.level, - page_order: update ? body.page_order : parseInt(currentOrder) + 1, - parent_id: body?.parent_id - }, - tableName: "docs_pages", - update: update, - duplicateColumnName: "id", - duplicateColumnValue: body.id - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ if (addDocPage?.insertId) { - return addDocPage; - } else if (update && addDocPage.affectedRows) { - return addDocPage; - } - { - return null; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 6672: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const DB_HANDLER = __webpack_require__(2224); -/** - * Imports: Handle imports - */ /** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {any} params.body - Request body - * @param {boolean} [params.update] - Update if existing - * - * @returns {Promise<object|null>} - */ module.exports = async function({ body }) { - /** - * Initialize variables - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ const deleteDocPage = await DB_HANDLER(`DELETE FROM docs_pages WHERE id=?`, [ - body.id - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ if (deleteDocPage) { - return deleteDocPage; - } else { - return null; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 2755: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const fs = __webpack_require__(7147); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {object} [params.body] - Request body - * @param {boolean} [params.update] - Update if existing - * - * @returns {Promise<object|null>} - */ module.exports = async function() { - /** - * Initialize variables - */ const snippetsDirectory = "./components/su/components/RichText/html-presets"; - /** @type {any[]} */ let snippets = []; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ if (fs.existsSync(snippetsDirectory)) { - const presetFiles = fs.readdirSync(snippetsDirectory); - presetFiles.forEach((file)=>{ - if (file?.endsWith(".html")) { - /** @type {any} */ const pushObject = {}; - pushObject[file.replace(/\.html$/, "")] = fs.readFileSync(`${snippetsDirectory}/${file}`, "utf-8"); - snippets.push({ - ...pushObject - }); - } - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return snippets; -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 5217: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const fs = __webpack_require__(7147); -const DB_HANDLER = __webpack_require__(2224); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {any} params.body - Request body - * - * @returns {Promise<object|null>} - */ module.exports = async function({ body }) { - /** - * Initialize variables - */ let results; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ const pages = await DB_HANDLER(`SELECT id, title, slug FROM docs_pages WHERE parent_id = ?`, [ - body.pageId - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ if (!pages[0]) return null; - return pages; -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 5030: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const DB_HANDLER = __webpack_require__(2224); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {any} params.body - Request body - * - * @returns {Promise<object|null>} - */ module.exports = async function({ body }) { - /** - * Initialize variables - */ let results; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ const pages = body?.currentPageId ? await DB_HANDLER(`SELECT * FROM docs_pages WHERE level = ? AND id != ?`, [ - body.pagesLevel, - body.currentPageId - ]) : await DB_HANDLER(`SELECT * FROM docs_pages WHERE level = ?`, [ - body.pagesLevel, - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return pages; -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 4751: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const fs = __webpack_require__(7147); -const DB_HANDLER = __webpack_require__(2224); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {any} params.body - Request body - * - * @returns {Promise<any>} - */ module.exports = async function({ body }) { - /** - * Initialize variables - */ const { pull } = body; - const filePath = "./jsonData/docs.json"; - // return null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ if (pull) { - try { - const jsonPages = JSON.parse(fs.readFileSync(filePath, "utf-8")); - for(let i = 0; i < jsonPages.length; i++){ - const page = jsonPages[i]; - const existingPageEntry = await DB_HANDLER(`SELECT id FROM docs_pages WHERE slug = ? AND level = ?`, [ - page.slug, - page.level - ]); - if (existingPageEntry && existingPageEntry[0]) { - let trimmedPage = { - ...page - }; - delete trimmedPage.date_created; - delete trimmedPage.date_created_code; - delete trimmedPage.date_created_timestamp; - delete trimmedPage.date_updated; - delete trimmedPage.date_updated_code; - delete trimmedPage.date_updated_timestamp; - delete trimmedPage.id; - const update = await DB_HANDLER(`UPDATE docs_pages SET ? WHERE slug = '${page.slug}' AND level = '${page.level}'`, trimmedPage); - //////////////////////////////////////// - } else { - //////////////////////////////////////// - let trimmedPage1 = { - ...page - }; - delete trimmedPage1.date_created_timestamp; - delete trimmedPage1.date_updated_timestamp; - const newPage = await DB_HANDLER(`INSERT INTO docs_pages SET ?`, trimmedPage1); - } - } - } catch (error) { - // console.log(error.message); - return null; - } - } else { - const pages = await DB_HANDLER(`SELECT * FROM docs_pages`); - fs.writeFileSync(filePath, JSON.stringify(pages, null, 4), "utf-8"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return true; -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 4108: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_admin_addDocPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1689); -/* harmony import */ var _functions_backend_admin_addDocPage__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_addDocPage__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_admin_deleteDocPage__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6672); -/* harmony import */ var _functions_backend_admin_deleteDocPage__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_deleteDocPage__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_admin_getSnippets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2755); -/* harmony import */ var _functions_backend_admin_getSnippets__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_getSnippets__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_admin_grabChildPages__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5217); -/* harmony import */ var _functions_backend_admin_grabChildPages__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_grabChildPages__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_admin_grabParentPages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5030); -/* harmony import */ var _functions_backend_admin_grabParentPages__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_grabParentPages__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _functions_backend_admin_persistDocs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4751); -/* harmony import */ var _functions_backend_admin_persistDocs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_admin_persistDocs__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_6___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "Unauthorized" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const { action } = req.query; - const reqBody = req.body; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - try { - /** - * Validate Form - * - * @description Check if request body is valid - */ let result; - switch(action){ - case "add-page": - result = await _functions_backend_admin_addDocPage__WEBPACK_IMPORTED_MODULE_0___default()({ - body: reqBody - }); - break; - case "update-page": - result = await _functions_backend_admin_addDocPage__WEBPACK_IMPORTED_MODULE_0___default()({ - body: reqBody, - update: true - }); - break; - case "delete-page": - result = await _functions_backend_admin_deleteDocPage__WEBPACK_IMPORTED_MODULE_1___default()({ - body: reqBody - }); - break; - case "get-snippets": - result = await _functions_backend_admin_getSnippets__WEBPACK_IMPORTED_MODULE_2___default()(); - break; - case "grab-parent-pages": - result = await _functions_backend_admin_grabParentPages__WEBPACK_IMPORTED_MODULE_4___default()({ - body: reqBody - }); - break; - case "get-child-pages": - result = await _functions_backend_admin_grabChildPages__WEBPACK_IMPORTED_MODULE_3___default()({ - body: reqBody - }); - break; - case "persist": - result = await _functions_backend_admin_persistDocs__WEBPACK_IMPORTED_MODULE_5___default()({ - body: reqBody - }); - break; - default: - break; - } - if (!result) throw new Error("Operation failed!"); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true, - result - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (error) { - res.json({ - success: false - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,3017,3403,7547,5886,5338,4432], () => (__webpack_exec__(4108))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2927,e.ids=[2927],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},24296:(e,t,a)=>{a.r(t),a.d(t,{config:()=>v,default:()=>x,routeModule:()=>R});var r={};a.r(r),a.d(r,{default:()=>w});var s=a(89947),l=a(2706),n=a(96762),o=a(77509),d=a.n(o),i=a(73921),u=a.n(i),c=a(29131),p=a.n(c),g=a(30573),_=a.n(g),f=a(6983),E=a.n(f),y=a(46238),m=a.n(y),S=a(19131),h=a.n(S);async function w(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Wrong Method"});let a=await h()(e);if(!a?.logged_in_status)return t.json({success:!1,log:"Unauthorized"});let{action:r}=e.query,s=e.body;try{let e;switch(r){case"add-page":e=await d()({body:s});break;case"update-page":e=await d()({body:s,update:!0});break;case"delete-page":e=await u()({body:s});break;case"get-snippets":e=await p()();break;case"grab-parent-pages":e=await E()({body:s});break;case"get-child-pages":e=await _()({body:s});break;case"persist":e=await m()({body:s})}if(!e)throw Error("Operation failed!");t.json({success:!0,result:e})}catch(e){t.json({success:!1})}}let x=(0,n.M)(r,"default"),v=(0,n.M)(r,"config"),R=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/admin/docs/[action]",pathname:"/api/admin/docs/[action]",bundlePath:"",filename:""},userland:r})},77509:(e,t,a)=>{let r=a(72583),s=a(51348),l=a(47670),n=a(16570);e.exports=async function({body:e,update:t}){let a=e.title.toLowerCase().replace(/ /g,"-").replace(/[^a-z0-9\-]/g,""),o=await async function(){if(t)return null;try{return(await s("SELECT page_order FROM docs_pages ORDER BY page_order DESC LIMIT 1"))[0].page_order}catch(e){return null}}(),d=await l({data:{title:e.title,slug:a,description:r(e.description,n),content:r(e.content,n),text_content:e.text_content,level:e.level,page_order:t?e.page_order:parseInt(o)+1,parent_id:e?.parent_id},tableName:"docs_pages",update:t,duplicateColumnName:"id",duplicateColumnValue:e.id});return d?.insertId?d:t&&d.affectedRows?d:null}},73921:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return await r("DELETE FROM docs_pages WHERE id=?",[e.id])||null}},29131:(e,t,a)=>{let r=a(29021);e.exports=async function(){let e="./components/su/components/RichText/html-presets",t=[];return r.existsSync(e)&&r.readdirSync(e).forEach(a=>{if(a?.endsWith(".html")){let s={};s[a.replace(/\.html$/,"")]=r.readFileSync(`${e}/${a}`,"utf-8"),t.push({...s})}}),t}},30573:(e,t,a)=>{a(29021);let r=a(51348);e.exports=async function({body:e}){let t=await r("SELECT id, title, slug FROM docs_pages WHERE parent_id = ?",[e.pageId]);return t[0]?t:null}},6983:(e,t,a)=>{let r=a(51348);e.exports=async function({body:e}){return e?.currentPageId?await r("SELECT * FROM docs_pages WHERE level = ? AND id != ?",[e.pagesLevel,e.currentPageId]):await r("SELECT * FROM docs_pages WHERE level = ?",[e.pagesLevel])}},46238:(e,t,a)=>{let r=a(29021),s=a(51348);e.exports=async function({body:e}){let{pull:t}=e,a="./jsonData/docs.json";if(t)try{let e=JSON.parse(r.readFileSync(a,"utf-8"));for(let t=0;t<e.length;t++){let a=e[t],r=await s("SELECT id FROM docs_pages WHERE slug = ? AND level = ?",[a.slug,a.level]);if(r&&r[0]){let e={...a};delete e.date_created,delete e.date_created_code,delete e.date_created_timestamp,delete e.date_updated,delete e.date_updated_code,delete e.date_updated_timestamp,delete e.id,await s(`UPDATE docs_pages SET ? WHERE slug = '${a.slug}' AND level = '${a.level}'`,e)}else{let e={...a};delete e.date_created_timestamp,delete e.date_updated_timestamp,await s("INSERT INTO docs_pages SET ?",e)}}}catch(e){return null}else{let e=await s("SELECT * FROM docs_pages");r.writeFileSync(a,JSON.stringify(e,null,4),"utf-8")}return!0}},19131:(e,t,a)=>{let{IncomingMessage:r}=a(81630),s=a(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let t=s(e.cookies.datasquirelSuAdminUserAuthKey);if(!t)return console.log("No user payload found"),null;let a=JSON.parse(t);return a.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):a.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):a}},72907:(e,t,a)=>{let{scryptSync:r,createDecipheriv:s}=a(55511),{Buffer:l}=a(79428);e.exports=e=>{let t=s("aes-192-cbc",r(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let a=t.update(e,"hex","utf8");return a+=t.final("utf8")}catch(e){return null}}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var a=e=>t(t.s=e),r=t.X(0,[4050],()=>a(24296));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json index 7882c12..1f12c8f 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/docs/[action].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/4432.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js index ec34f24..047bb78 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js @@ -1,149 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9987; -exports.ids = [9987]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2372: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=5905,e.ids=[5905],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},62347:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>d,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),l=t(57638),c=t.n(l);t(77538);var i=t(19131),u=t.n(i);async function p(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await u()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:s}=e.query;try{let e=await c()({database:"string"==typeof s?s:"",queryString:`SHOW TABLES FROM ${s}`});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,tables:e.map(e=>Object.values(e)[0])})}catch(e){console.log(e.message),r.json({success:!1})}}t(29021);let d=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/getTablesForUserDatabase",pathname:"/api/admin/getTablesForUserDatabase",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const { database } = req.query; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const result = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: typeof database === "string" ? database : "", - queryString: `SHOW TABLES FROM ${database}` - }); - if (!result) { - return res.json({ - success: false, - msg: "Query Failed!" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - tables: result.map((/** @type {any} */ table)=>Object.values(table)[0]) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a<e.length;a++){let o=e[a],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],a=r?.fields[e];if(t?.match(n))continue;let c=o[t];("number"==typeof c||c)&&a?.encrypted&&c?.match(/./)&&(o[t]=s(c))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,4432], () => (__webpack_exec__(2372))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let c;let i=!!t?.match(/^datasquirel$/),u=i?a:o;try{c=e&&r&&Array.isArray(r)&&r[0]?i?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):i?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((c,i)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62347);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json index 4e0b12d..d333e55 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getTablesForUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/8326.js","../../../chunks/1311.js","../../../chunks/4432.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js index b9ef008..743d33b 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js @@ -1,111 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5485; -exports.ids = [5485]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2235: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const dsqlUser = req.body.user; - const dsqlUserId = dsqlUser.id.toString().replace(/[^0-9]/g, "").replace(/\//g, ""); - const backupFolder = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dsqlUserId}/backups`; - if (!fs.existsSync(backupFolder)) { - fs.mkdirSync(backupFolder); - } - const backups = fs.readdirSync(backupFolder); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true, - backups: backups - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(2235))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=525,e.ids=[525],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},42513:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>c});var o=t(89947),s=t(2706),u=t(96762),i=t(19131),a=t.n(i);let l=t(29021);async function c(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await a()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let n=e.body.user.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/backups`;l.existsSync(o)||l.mkdirSync(o);let s=l.readdirSync(o);r.json({success:!0,backups:s})}let d=(0,u.M)(n,"default"),p=(0,u.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/getUserBackups",pathname:"/api/admin/getUserBackups",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),o=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=o(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:o}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=o("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=42513);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json index 6b22fb4..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserBackups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js index bbc9e11..a759bdf 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js @@ -1,157 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8141; -exports.ids = [8141]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 6450: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check - - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const dsqlUser = req.body.user; - const dsqlUserId = dsqlUser?.id.toString().replace(/[^0-9]/g, "").replace(/\//g, ""); - const userFolder = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${dsqlUserId}`; - /** @type {any[]} */ let userData = []; - /** - * - * @param {object} params - * @param {any[]} params.originArray - * @param {string} params.rootPath - */ function grabFolderContent({ originArray , rootPath }) { - const folderContent = fs.readdirSync(rootPath); - for(let i = 0; i < folderContent.length; i++){ - const fileName = folderContent[i]; - if (fileName?.match(/\..{2,5}$/)) { - originArray.push({ - name: fileName, - type: "file", - root: rootPath - }); - } else { - const newObject = { - name: fileName, - type: "folder", - root: rootPath, - content: [] - }; - grabFolderContent({ - originArray: newObject.content, - rootPath: `${rootPath}/${fileName}` - }); - originArray.push(newObject); - } - } - } - grabFolderContent({ - originArray: userData, - rootPath: userFolder - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** @type {any[]} */ const userDatabases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SHOW databases LIKE 'datasquirel_user_${dsqlUser.id}_%'`); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true, - data: userData, - databases: userDatabases.map((db)=>Object.values(db)[0]) - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,4432], () => (__webpack_exec__(6450))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9664,e.ids=[9664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},29249:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>f,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>d});var n=r(89947),o=r(2706),a=r(96762),u=r(51348),i=r.n(u),l=r(19131),c=r.n(l);let p=r(29021);async function d(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Wrong Method"});let r=await c()(e);if(!r?.logged_in_status)return t.json({success:!1,log:"No Logs"});let s=e.body.user,n=s?.id.toString().replace(/[^0-9]/g,"").replace(/\//g,""),o=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}`,a=[];!function e({originArray:t,rootPath:r}){let s=p.readdirSync(r);for(let n=0;n<s.length;n++){let o=s[n];if(o?.match(/\..{2,5}$/))t.push({name:o,type:"file",root:r});else{let s={name:o,type:"folder",root:r,content:[]};e({originArray:s.content,rootPath:`${r}/${o}`}),t.push(s)}}}({originArray:a,rootPath:o});let u=await i()(`SHOW databases LIKE 'datasquirel_user_${s.id}_%'`);t.json({success:!0,data:a,databases:u.map(e=>Object.values(e)[0])})}let f=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/getUserData",pathname:"/api/admin/getUserData",bundlePath:"",filename:""},userland:s})},19131:(e,t,r)=>{let{IncomingMessage:s}=r(81630),n=r(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let t=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!t)return console.log("No user payload found"),null;let r=JSON.parse(t);return r.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):r.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):r}},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=29249);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json index f0e67cd..d333e55 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/getUserData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/4432.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js index f7416ce..b1c43a8 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js @@ -1,109 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3649; -exports.ids = [3649]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1183: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - success: false, - msg: "Failed" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const backupFolder = "./.tmp/backups"; - if (!fs.existsSync(backupFolder)) { - fs.mkdirSync(backupFolder); - } - const backups = fs.readdirSync(backupFolder); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - backups: backups - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(1183))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2266,e.ids=[2266],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},89995:(e,t,r)=>{r.r(t),r.d(t,{config:()=>p,default:()=>d,routeModule:()=>f});var n={};r.r(n),r.d(n,{default:()=>c});var o=r(89947),s=r(2706),u=r(96762),a=r(19131),i=r.n(a);let l=r(29021);async function c(e,t){if("GET"!==e.method)return t.json({success:!1,msg:"Failed"});let r=await i()(e);if(!r?.logged_in_status)return t.json({success:!1,log:"No Logs"});let n="./.tmp/backups";l.existsSync(n)||l.mkdirSync(n);let o=l.readdirSync(n);t.json({success:!0,backups:o})}let d=(0,u.M)(n,"default"),p=(0,u.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/grabBackups",pathname:"/api/admin/grabBackups",bundlePath:"",filename:""},userland:n})},19131:(e,t,r)=>{let{IncomingMessage:n}=r(81630),o=r(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let t=o(e.cookies.datasquirelSuAdminUserAuthKey);if(!t)return console.log("No user payload found"),null;let r=JSON.parse(t);return r.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):r.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):r}},72907:(e,t,r)=>{let{scryptSync:n,createDecipheriv:o}=r(55511),{Buffer:s}=r(79428);e.exports=e=>{let t=o("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=89995);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json index 6b22fb4..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabBackups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js index 6f47dda..aeed6d4 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js @@ -1,111 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5267; -exports.ids = [5267]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 3360: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - success: false, - msg: "Failed" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ if (!fs.existsSync("./.tmp/error.log")) { - return res.json({ - success: true, - log: "No Logs Yet." - }); - } - const errorLogs = fs.readFileSync("./.tmp/error.log", "utf-8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - log: errorLogs - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(3360))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5120,e.ids=[5120],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22955:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>f});var o={};t.r(o),t.d(o,{default:()=>c});var n=t(89947),s=t(2706),u=t(96762),i=t(19131),l=t.n(i);let a=t(29021);async function c(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed"});let t=await l()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});if(!a.existsSync("./.tmp/error.log"))return r.json({success:!0,log:"No Logs Yet."});let o=a.readFileSync("./.tmp/error.log","utf-8");r.json({success:!0,log:o})}let d=(0,u.M)(o,"default"),p=(0,u.M)(o,"config"),f=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/grabErrorLogs",pathname:"/api/admin/grabErrorLogs",bundlePath:"",filename:""},userland:o})},19131:(e,r,t)=>{let{IncomingMessage:o}=t(81630),n=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:o,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",o(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22955);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json index 6b22fb4..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabErrorLogs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js index 1883148..6927b2d 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js @@ -1,114 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5736; -exports.ids = [5736]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9411: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_0___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const { type , path } = req.body; - const dsqlUser = req.body.user; - if (!path?.match(/^\.\/jsonData\/dbSchemas\/users/)) { - return res.json({ - success: false, - msg: "Invalid Path" - }); - } - const sanitizedPath = path.replace(/\//g, "\\\\"); - let fileContent = fs.readFileSync(sanitizedPath, "utf-8"); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true, - data: fileContent - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(9411))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7375,e.ids=[7375],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},15570:(e,t,r)=>{r.r(t),r.d(t,{config:()=>p,default:()=>d,routeModule:()=>f});var n={};r.r(n),r.d(n,{default:()=>c});var o=r(89947),s=r(2706),u=r(96762),a=r(19131),i=r.n(a);let l=r(29021);async function c(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Wrong Method"});let r=await i()(e);if(!r?.logged_in_status)return t.json({success:!1,log:"No Logs"});let{type:n,path:o}=e.body;if(e.body.user,!o?.match(/^\.\/jsonData\/dbSchemas\/users/))return t.json({success:!1,msg:"Invalid Path"});let s=o.replace(/\//g,"\\\\"),u=l.readFileSync(s,"utf-8");t.json({success:!0,data:u})}let d=(0,u.M)(n,"default"),p=(0,u.M)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/grabFile",pathname:"/api/admin/grabFile",bundlePath:"",filename:""},userland:n})},19131:(e,t,r)=>{let{IncomingMessage:n}=r(81630),o=r(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let t=o(e.cookies.datasquirelSuAdminUserAuthKey);if(!t)return console.log("No user payload found"),null;let r=JSON.parse(t);return r.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):r.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):r}},72907:(e,t,r)=>{let{scryptSync:n,createDecipheriv:o}=r(55511),{Buffer:s}=r(79428);e.exports=e=>{let t=o("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=15570);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json index 6b22fb4..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/grabFile.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js index 5981a9a..ecc2224 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js @@ -1,105 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2094; -exports.ids = [2094]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 9393: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Failed" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const { email , password , authKey } = req.body; - if (false) {} - if (false) {} - if (password !== process.env.DSQL_USER_KEY) return res.json({ - success: false - }); - if (authKey !== process.env.DSQL_SPECIAL_KEY) return res.json({ - success: false - }); - //////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ let encryptedPayload = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify({ - email: email, - password: process.env.DSQL_USER_KEY, - authKey: process.env.DSQL_SPECIAL_KEY, - logged_in_status: true, - date: Date.now() - })); - res.setHeader("Set-Cookie", [ - `datasquirelSuAdminUserAuthKey=${encryptedPayload};samesite=strict;path=/;HttpOnly=true;Secure=true`, - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=5467,e.ids=[5467],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},76386:(e,r,t)=>{t.r(r),t.d(r,{config:()=>c,default:()=>p,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),o=t(2706),i=t(96762),a=t(82703),u=t.n(a);async function l(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Failed"});let{email:t,password:n,authKey:s}=e.body;if(n!==process.env.DSQL_USER_KEY||s!==process.env.DSQL_SPECIAL_KEY)return r.json({success:!1});let o=u()(JSON.stringify({email:t,password:process.env.DSQL_USER_KEY,authKey:process.env.DSQL_SPECIAL_KEY,logged_in_status:!0,date:Date.now()}));r.setHeader("Set-Cookie",[`datasquirelSuAdminUserAuthKey=${o};samesite=strict;path=/;HttpOnly=true;Secure=true`]),r.json({success:!0})}let p=(0,i.M)(n,"default"),c=(0,i.M)(n,"config"),d=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/admin/loginSuUser",pathname:"/api/admin/loginSuUser",bundlePath:"",filename:""},userland:n})},82703:(e,r,t)=>{let{scryptSync:n,createCipheriv:s}=t(55511),{Buffer:o}=t(79428),i=t(48225);e.exports=(e,r,t)=>{let a=s("aes-192-cbc",n(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=a.update(e,"utf8","hex");return r+=a.final("hex")}catch(e){return i({component:"encrypt",message:e.message}),null}}},48225:(e,r,t)=>{let n=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:s}){let o=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let i=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",o),n.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [3017,7547], () => (__webpack_exec__(9393))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=76386);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json index 7653835..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/loginSuUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/3017.js","../../../chunks/7547.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js index 61b9a50..e1225f7 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js @@ -1,165 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6750; -exports.ids = [6750]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4256: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=6799,e.ids=[6799],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},89496:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),l=t(57638),c=t.n(l),u=t(77538),i=t.n(u),d=t(19131),p=t.n(d);async function m(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await p()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});let{database:s,query:n}=e.body;e.body.user;try{if(!n?.match(/^select .* from .*|^show tables$|^show indexes from .*|show columns from .*|^update |^delete from /i)||n?.match(/^create user|INFORMATION_SCHEMA/i))return r.json({success:!1,msg:"Disallowed query"});let e=await c()({database:s,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){console.log(e.message),i()({component:"/api/runUserDbQuery/main-catch-error",message:e.message}),r.json({success:!1})}}t(29021);let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/admin/runUserDbQuery",pathname:"/api/admin/runUserDbQuery",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(n+=` +IP: ${l}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ const { database , query } = req.body; - const dsqlUser = req.body.user; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const allowedQueryRegex = /^select .* from .*|^show tables$|^show indexes from .*|show columns from .*|^update |^delete from /i; - const disAllowedQueryRegex = /^create user|INFORMATION_SCHEMA/i; - if (!query?.match(allowedQueryRegex) || query?.match(disAllowedQueryRegex)) { - return res.json({ - success: false, - msg: "Disallowed query" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const result = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: database, - queryString: query - }); - if (!result) { - return res.json({ - success: false, - msg: "Query Failed!" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - result - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/runUserDbQuery/main-catch-error", - message: error.message - }); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19131:(e,r,t)=>{let{IncomingMessage:s}=t(81630),n=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=n(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a<e.length;a++){let o=e[a],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],a=r?.fields[e];if(t?.match(n))continue;let c=o[t];("number"==typeof c||c)&&a?.encrypted&&c?.match(/./)&&(o[t]=s(c))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,4432], () => (__webpack_exec__(4256))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let c;let u=!!t?.match(/^datasquirel$/),i=u?a:o;try{c=e&&r&&Array.isArray(r)&&r[0]?u?await i(e,r):await i({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await i(e):await i({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(c&&l)try{let e=c;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(c)return c;else return null}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((c,u)=>{let i=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=i?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=89496);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json index 4e0b12d..d333e55 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/runUserDbQuery.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/8326.js","../../../chunks/1311.js","../../../chunks/4432.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js index 9166e7d..7c33cf2 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js @@ -1,148 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1710; -exports.ids = [1710]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6520: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4432); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const { execSync } = __webpack_require__(2081); -const fs = __webpack_require__(7147); - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Wrong Method" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const user = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_1___default()(req); - if (!user?.logged_in_status) { - return res.json({ - success: false, - log: "No Logs" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const envPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(process.cwd(), ".env"); - const envContent = fs.readFileSync(envPath, "utf-8"); - const envRegex = new RegExp(`${lodash__WEBPACK_IMPORTED_MODULE_2___default().escapeRegExp(req.body.key)}=.*`); - const envMatch = envContent.match(envRegex); - const newEnv = envContent.replace(envRegex, `${req.body.key}=${req.body.value}`); - fs.writeFileSync(envPath, newEnv, "utf-8"); - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - console.log("updating Env error =>", error.message); - res.json({ - success: false, - error: error.message - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4432], () => (__webpack_exec__(6520))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5989,e.ids=[5989],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},89106:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>g,routeModule:()=>E});var n={};t.r(n),t.d(n,{default:()=>A});var o=t(89947),s=t(2706),u=t(96762),a=t(33873),i=t.n(a),l=t(19131),c=t.n(l),d=t(27825),p=t.n(d);let{execSync:f}=t(79646),P=t(29021);async function A(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Wrong Method"});let t=await c()(e);if(!t?.logged_in_status)return r.json({success:!1,log:"No Logs"});try{let t=i().join(process.cwd(),".env"),n=P.readFileSync(t,"utf-8"),o=RegExp(`${p().escapeRegExp(e.body.key)}=.*`);n.match(o);let s=n.replace(o,`${e.body.key}=${e.body.value}`);P.writeFileSync(t,s,"utf-8"),r.json({success:!0})}catch(e){console.log("updating Env error =>",e.message),r.json({success:!1,error:e.message})}}let g=(0,u.M)(n,"default"),y=(0,u.M)(n,"config"),E=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/admin/updateEnv",pathname:"/api/admin/updateEnv",bundlePath:"",filename:""},userland:n})},19131:(e,r,t)=>{let{IncomingMessage:n}=t(81630),o=t(72907);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let r=o(e.cookies.datasquirelSuAdminUserAuthKey);if(!r)return console.log("No user payload found"),null;let t=JSON.parse(r);return t.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):t.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):t}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:o}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=o("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=89106);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json index ed2e39c..3ad3e12 100644 --- a/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/admin/updateEnv.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/4432.js","../../../../package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../package.json","../../../../../.env"]} \ No newline at end of file +{"version":1,"files":["../../../../../.env","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js index 18cc5de..97d2c4f 100644 --- a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js @@ -1,153 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5705; -exports.ids = [5705]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 3509: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { userId , password , dbId } = req.body; - /** - * Input Validation - * - * @description Input Validation - */ try { - const validDbId = Boolean(String(dbId).match(/^\d+$/)); - const validUserId = Boolean(String(userId).match(/^\d+$/)); - const invalidPassword = Boolean(String(password).match(/ /)); - if (!validDbId || !validUserId) { - throw new Error("Invalud Parameters!"); - } - if (invalidPassword) { - throw new Error("Invalid Password!"); - } - const targetDb = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_databases WHERE id = ?`, [ - dbId - ]); - const dbFullName = targetDb?.[0]?.db_full_name; - const newPasswordHashed = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: password - }); - const updatePassword = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`UPDATE \`${dbFullName}\`.\`users\` SET password = ? WHERE id = ?`, [ - newPasswordHashed, - userId - ]); - res.json({ - success: true, - msg: "DB user Password Changed!" - }); - } catch (/** @type {any} */ error) { - res.json({ - success: false, - msg: error.message - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(3509))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7963,e.ids=[7963],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},6523:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>P});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),u=t.n(i),c=t(6420),l=t.n(c),d=t(43499),f=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});if(!await l()(e,r,!0))return r.json({success:!1,msg:"Unauthorized"});let{userId:t,password:s,dbId:n}=e.body;try{let e=!!String(n).match(/^\d+$/),a=!!String(t).match(/^\d+$/),o=!!String(s).match(/ /);if(!e||!a)throw Error("Invalud Parameters!");if(o)throw Error("Invalid Password!");let i=await u()("SELECT * FROM user_databases WHERE id = ?",[n]),c=i?.[0]?.db_full_name,l=f()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:s});await u()(`UPDATE \`${c}\`.\`users\` SET password = ? WHERE id = ?`,[l,t]),r.json({success:!0,msg:"DB user Password Changed!"})}catch(e){r.json({success:!1,msg:e.message})}}let S=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),P=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/changeDbUserPassword",pathname:"/api/changeDbUserPassword",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let u=JSON.parse(i);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=6523);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json index 7cbc919..2d2e177 100644 --- a/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/changeDbUserPassword.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js index 007a61d..dd95235 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js @@ -1,160 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9976; -exports.ids = [9976]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; +"use strict";(()=>{var e={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},43634:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>l,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>i});var a=t(89947),n=t(2706),o=t(96762),c=t(57638),u=t.n(c);async function i(e,r){if("GET"!==e.method)return r.json({success:!1,msg:"Failed!"});let{type:t,value:s,tableName:a,dbFullName:n,userId:o,dbId:c,userType:i,database:l}=e.query,p=`SELECT \`${t}\` FROM \`${a}\` WHERE \`${t}\`=?`,d=[s];o&&(p+=" AND user_id=?",d.push(o)),c&&(p+=" AND db_id=?",d.push(c)),i&&(p+=" AND user_type=?",d.push(i)),l&&(p+=" AND `database`=?",d.push(l));let _=await u()({queryString:p,queryValuesArray:d,database:n&&"string"==typeof n?n.replace(/[^a-z0-9_]/g,""):"datasquirel"});r.json({result:!!_&&!!_[0]})}let l=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),d=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:s})},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],c=Object.keys(o);for(let e=0;e<c.length;e++){let t=c[e],n=r?.fields[e];if(t?.match(a))continue;let u=o[t];("number"==typeof u||u)&&n?.encrypted&&u?.match(/./)&&(o[t]=s(u))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }), - -/***/ 2472: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - success: false, - msg: "Failed!" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const sanitizedReqBody = req.query; - const { type , value , tableName , dbFullName , userId , dbId , userType , database , } = sanitizedReqBody; - // if (!email.match(/.*@.*\..*/)) return res.json({ success: false, msg: "Invalid Email" }); - /** - * Add New Rating - * - * @description Check user verification status - */ let queryStr = `SELECT \`${type}\` FROM \`${tableName}\` WHERE \`${type}\`=?`; - let queryArray = [ - value - ]; - if (userId) { - queryStr += " AND user_id=?"; - queryArray.push(userId); - } - if (dbId) { - queryStr += " AND db_id=?"; - queryArray.push(dbId); - } - if (userType) { - queryStr += " AND user_type=?"; - queryArray.push(userType); - } - if (database) { - queryStr += " AND `database`=?"; - queryArray.push(database); - } - const duplicate = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - queryString: queryStr, - queryValuesArray: queryArray, - database: dbFullName && typeof dbFullName == "string" ? dbFullName.replace(/[^a-z0-9_]/g, "") : "datasquirel" - }); - /** - * Add New Rating - * - * @description Check user verification status - */ res.json({ - result: duplicate && duplicate[0] ? true : false - }); -} -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,3017,3403,8326,1311], () => (__webpack_exec__(2472))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:c}){let u;let i=!!t?.match(/^datasquirel$/),l=i?n:o;try{u=e&&r&&Array.isArray(r)&&r[0]?i?await l(e,r):await l({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):i?await l(e):await l({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(u&&c)try{let e=u;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(u)return u;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:c}){try{return new Promise((u,i)=>{let l=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),u(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),u({error:e.message,queryStringGenerated:t,queryValuesGenerated:c,sql:e.sql})}o=l?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),c&&Array.isArray(c)&&c[0]?o.query(t,c).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),u({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=43634);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json index 117ed38..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/checkDuplicateData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js index 17ee795..e9e1aab 100644 --- a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js @@ -1,130 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2407; -exports.ids = [2407]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9668: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { name , folder } = req.query; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - return res.json({ - success: false, - msg: "No Static Path!" - }); - } - const folderPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(STATIC_ROOT, `images/user-images/user-${user.id}/${folder ? folder + "/" : ""}`); - const existingFolderPath = folderPath + name; - const doesFolderExist = fs.existsSync(existingFolderPath); - /** - * Send Response - * - * @description Send a boolean response - */ res.json({ - success: doesFolderExist - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(9668))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6422,e.ids=[6422],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},82651:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>d,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>p});var n=r(89947),i=r(2706),o=r(96762),u=r(33873),a=r.n(u),c=r(6420),l=r.n(c);let f=r(29021);async function p(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let r=await l()(e,t);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{name:s,folder:n}=e.query,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)return console.log("Static File ENV not Found!"),t.json({success:!1,msg:"No Static Path!"});let o=a().join(i,`images/user-images/user-${r.id}/${n?n+"/":""}`),u=f.existsSync(o+s);t.json({success:u})}let d=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/checkExistingFolder",pathname:"/api/checkExistingFolder",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),i=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let u=n(e.cookies.datasquirelAuthKey);if(!u)return null;let a=JSON.parse(u);if(!a.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${a.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${c}/${a.csrf_k}`))return null;if(0==a.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${a.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return a?.date&&Date.now()-a.date>6048e5?null:a}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=82651);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/checkExistingFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js index 10d4333..d174ad9 100644 --- a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js @@ -1,97 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 225; -exports.ids = [225]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 8848: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - /** - * Send Response - * - * @description Send a boolean response - */ res.json({ - user - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(8848))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6237,e.ids=[6237],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},7616:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>l,routeModule:()=>p});var s={};r.r(s),r.d(s,{default:()=>c});var n=r(89947),i=r(2706),o=r(96762),u=r(6420),a=r.n(u);async function c(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await a()(e,t,!0);t.json({user:r})}let l=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/clientSideAuth",pathname:"/api/clientSideAuth",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),i=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let u=n(e.cookies.datasquirelAuthKey);if(!u)return null;let a=JSON.parse(u);if(!a.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${a.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${c}/${a.csrf_k}`))return null;if(0==a.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${a.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return a?.date&&Date.now()-a.date>6048e5?null:a}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=7616);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/clientSideAuth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect.js b/dsql-app/.local_dist/server/pages/api/connect.js index 3f144c8..db8a016 100644 --- a/dsql-app/.local_dist/server/pages/api/connect.js +++ b/dsql-app/.local_dist/server/pages/api/connect.js @@ -1,171 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8607; -exports.ids = [8607]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 8026: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=7539,e.ids=[7539],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},8953:(e,r,t)=>{t.r(r),t.d(r,{config:()=>P,default:()=>_,routeModule:()=>A});var n={};t.r(n),t.d(n,{default:()=>m});var i=t(89947),s=t(2706),a=t(96762),o=t(77538),l=t.n(o),u=t(77619),c=t.n(u),d=t(72907),p=t.n(d),f=t(33873),g=t.n(f);let S=t(29021);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=e.body,{url:n,key:i,database:s,dbSchema:a,type:o}=t;try{let e=c()({key:i,database:s?.db_slug,user_id:t.user_id});if(!e?.user_id)throw Error("Api Credentials invalid!");let n=p()(i),{user_id:a,full_access:o,csrf:l}=n?JSON.parse(n):null;if(!o||!l)return r.json({success:!1,msg:"Unauthorized"});let u=g().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${a}`,"main.json");if(!S.existsSync(u))throw Error("User Shcema data file doesn't exist!");let d=JSON.parse(S.readFileSync(u,"utf-8"));r.json({success:!0,payload:d})}catch(e){console.log("Connect Verification Error, =>",e.message),l()({component:"/api/connect/main-catch-error",message:e.message}),r.json({success:!1,msg:"Connect Verification Operation Failed!"})}}let _=(0,a.M)(n,"default"),P=(0,a.M)(n,"config"),A=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/connect",pathname:"/api/connect",bundlePath:"",filename:""},userland:n})},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||n||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(i+=` +URL: ${s.url}`),s?.body&&(i+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${a.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let l=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",i),n.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ /** @type {import("@/package-shared/types").ApiConnectBody} */ const sanitizedReqBody = req.body; - const { url , key , database , dbSchema , type } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ const authorization = key; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_1___default()({ - key: key, - database: database?.db_slug, - user_id: sanitizedReqBody.user_id - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const userJSON = _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default()(authorization); - const remoteUser = userJSON ? JSON.parse(userJSON) : null; - const { user_id , full_access , csrf } = remoteUser; - if (!full_access || !csrf) return res.json({ - success: false, - msg: "Unauthorized" - }); - const userSchemaPath = path__WEBPACK_IMPORTED_MODULE_3___default().resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${user_id}`, "main.json"); - if (!fs.existsSync(userSchemaPath)) throw new Error("User Shcema data file doesn't exist!"); - const dbSchema1 = JSON.parse(fs.readFileSync(userSchemaPath, "utf-8")); - res.json({ - success: true, - payload: dbSchema1 - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("Connect Verification Error, =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/connect/main-catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Connect Verification Operation Failed!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,1007], () => (__webpack_exec__(8026))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let n=t(29021),i=t(72907);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=i(e),l=JSON.parse(o||""),u=n.existsSync(`${a}/${l.sign}`);if(String(l.user_id)!==String(s)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=8953);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect.js.nft.json index e9cba81..fa090c9 100644 --- a/dsql-app/.local_dist/server/pages/api/connect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2163.js","../../chunks/1007.js","../../../package.json","../../../../package.json","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js index 19fc2f5..5ec5af6 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js @@ -1,179 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7160; -exports.ids = [7160]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7310: -/***/ ((module) => { - -module.exports = require("url"); - -/***/ }), - -/***/ 3837: -/***/ ((module) => { - -module.exports = require("util"); - -/***/ }), - -/***/ 7131: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const utils = __webpack_require__(3837); -const { URL } = __webpack_require__(7310); +"use strict";(()=>{var e={};e.id=964,e.ids=[964],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},85617:(e,t,r)=>{r.r(t),r.d(t,{config:()=>m,default:()=>_,routeModule:()=>g});var s={};r.r(s),r.d(s,{default:()=>S});var n=r(89947),o=r(2706),a=r(96762),i=r(77538),c=r.n(i),l=r(6420),u=r.n(l),p=r(33364),d=r.n(p);r(29021),r(28354);let{URL:f}=r(79551);async function S(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await u()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbId:s}=e.body;try{if(!s)throw Error("No Target Database ID provided");await d()({tableName:"user_databases",data:{remote_connected:0,remote_connection_host:"",remote_connection_key:"",remote_connection_type:"",remote_db_full_name:""},identifierColumnName:"id",identifierValue:s}),t.json({success:!0})}catch(e){console.log("Disconnect Error, =>",e.message),c()({component:"/api/connect/verify/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Operation Failed!"})}}let _=(0,a.M)(s,"default"),m=(0,a.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/disconnect",pathname:"/api/connect/disconnect",bundlePath:"",filename:""},userland:s})},77538:(e,t,r)=>{let s=r(29021),{IncomingMessage:n}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],t=o.headers["x-real-ip"],r=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=r||s||t||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbId } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - if (!dbId) throw new Error("No Target Database ID provided"); - /** - * User auth - * - * @description Authenticate user - */ const updateDb = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_2___default()({ - tableName: "user_databases", - data: { - remote_connected: 0, - remote_connection_host: "", - remote_connection_key: "", - remote_connection_type: "", - remote_db_full_name: "" - }, - identifierColumnName: "id", - identifierValue: dbId - }); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("Disconnect Error, =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/connect/verify/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Operation Failed!" - }); - //////////////////////////////////////// - } -} + +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),o=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let c=JSON.parse(i);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${l}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=a},33364:(e,t,r)=>{let s=r(82703),n=r(72583),o=r(16570),a=r(51348),i=r(21339);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:l,tableSchema:u,identifierColumnName:p,identifierValue:d,encryptionKey:f,encryptionSalt:S}){if(!l||!Object.keys(l).length)return null;let _=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),m=_?a:i,g=Object.keys(l),h=[],y=[];for(let e=0;e<g.length;e++)try{let t=g[e],r=l[t],a=u?u?.fields?.filter(e=>e.fieldName===t):null,i=a&&a[0]?a[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=n(r,o)),i?.encrypted&&(r=s(r,f,S)),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),h.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE ${c} SET ${h.join(",")} WHERE \`${p}\`=?`;return y.push(d),_?await m(D,y):await m({paradigm:t,database:r,queryString:D,queryValues:y})}e.exports=c},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:o}=r(79428),a=r(48225);e.exports=(e,t,r)=>{let i=n("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=i.update(e,"utf8","hex");return t+=i.final("hex")}catch(e){return a({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:n}){let o=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let a=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",o),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886], () => (__webpack_exec__(7131))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${a}`)}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),o=r(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){a.end(),c({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(r,i).then(p).catch(d):a.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=85617);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json index 6acd960..60b3e89 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/disconnect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/7547.js","../../../chunks/5886.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/handshake.js b/dsql-app/.local_dist/server/pages/api/connect/handshake.js index 0c53d08..6f7ad15 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/handshake.js +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js @@ -1,263 +1,28 @@ -(() => { -var exports = {}; -exports.id = 9569; -exports.ids = [9569]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -"use strict"; -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -"use strict"; -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -"use strict"; -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -"use strict"; -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -"use strict"; -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 7310: -/***/ ((module) => { - -"use strict"; -module.exports = require("url"); - -/***/ }), - -/***/ 3837: -/***/ ((module) => { - -"use strict"; -module.exports = require("util"); - -/***/ }), - -/***/ 8518: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -var __webpack_unused_export__; -// @ts-check -const { execSync } = __webpack_require__(2081); -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -// const serverError = require("./serverError"); -/** - * @async - * @param {object} params - * @param {number | string} params.userId - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchema - * @param {string} [params.targetDb] - Eg `datasquirel_user_7_db_name` - * @returns {string} - */ const dbSchemaExec = ({ userId , dbSchema , targetDb })=>{ - const userSchemaPath = path.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${userId}`, "main.json"); - fs.writeFileSync(userSchemaPath, JSON.stringify(dbSchema), "utf-8"); - const targetPath = path.join(process.cwd(), "shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${userId}${targetDb ? " --database " + targetDb : ""}`, { - cwd: targetPath - }); - return `User ${userId} Db Schema Updated => ${dbShellUpdate.toString("utf-8")}`; -}; -/** - * @async - * @param {object} params - * @param {number | string} params.userId - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType} params.dbSchema - New Db Schema for `targetDbFullName` variable - * @param {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type} params.database - Db entry - * @returns {string} - */ const dbSchemaExecDbUpdate = ({ userId , dbSchema , database })=>{ - const userSchemaPath = path.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${userId}`, "main.json"); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userDbSchema = JSON.parse(fs.readFileSync(userSchemaPath, "utf-8")); - const targetDbIndex = userDbSchema.findIndex((db)=>db.dbFullName == database.db_full_name); - if (targetDbIndex < 0) { - throw new Error("Target Database not found in user schema data"); - } - const targetDb = { - ...userDbSchema[targetDbIndex] - }; - userDbSchema[targetDbIndex] = dbSchema; - userDbSchema[targetDbIndex].dbName = targetDb.dbName; - userDbSchema[targetDbIndex].dbFullName = targetDb.dbFullName; - userDbSchema[targetDbIndex].dbSlug = targetDb.dbSlug; - userDbSchema[targetDbIndex].dbImage = targetDb.dbImage; - return dbSchemaExec({ - dbSchema: userDbSchema, - userId, - targetDb: database.db_full_name - }); -}; -__webpack_unused_export__ = dbSchemaExec; -exports.H = dbSchemaExecDbUpdate; - - -/***/ }), - -/***/ 2917: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_dbSchemaExec__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8518); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const utils = __webpack_require__(3837); -const { URL } = __webpack_require__(7310); +"use strict";(()=>{var e={};e.id=4065,e.ids=[4065],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83919:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),i=t(7753),l=t(77538),c=t.n(l),u=t(6420),d=t.n(u),p=t(33364),S=t.n(p);t(29021),t(28354);let{URL:_}=t(79551);async function f(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await d()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:a,dbSchema:o,type:l,remoteDbs:u,targetDb:p}=e.body;try{if(!p?.tables)throw Error("No Target Database");await S()({tableName:"user_databases",data:{remote_connected:1,remote_connection_host:s,remote_connection_key:n,remote_connection_type:l,remote_db_full_name:p.dbFullName},identifierColumnName:"db_full_name",identifierValue:a.db_full_name}),(0,i.e)({dbSchema:p,database:a,userId:t.id}),r.json({success:!0})}catch(e){console.log("Connect Handshake Error, =>",e.message),c()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let m=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/connect/handshake",pathname:"/api/connect/handshake",bundlePath:"",filename:""},userland:s})},7753:(e,r,t)=>{let{execSync:s}=t(79646),n=t(29021),a=t(33873),o=({userId:e,dbSchema:r,targetDb:t})=>{let o=a.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json");n.writeFileSync(o,JSON.stringify(r),"utf-8");let i=s(`node createDbFromSchema.js --user ${e}${t?" --database "+t:""}`,{cwd:a.join(process.cwd(),"shell")});return`User ${e} Db Schema Updated => ${i.toString("utf-8")}`};r.e=({userId:e,dbSchema:r,database:t})=>{let s=a.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${e}`,"main.json"),i=JSON.parse(n.readFileSync(s,"utf-8")),l=i.findIndex(e=>e.dbFullName==t.db_full_name);if(l<0)throw Error("Target Database not found in user schema data");let c={...i[l]};return i[l]=r,i[l].dbName=c.dbName,i[l].dbFullName=c.dbFullName,i[l].dbSlug=c.dbSlug,i[l].dbImage=c.dbImage,o({dbSchema:i,userId:e,targetDb:t.db_full_name})}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - /** @type {import("@/package-shared/types").DbConnectType} */ const { url , key , database , dbSchema , type , remoteDbs , targetDb } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - if (!targetDb?.tables) throw new Error("No Target Database"); - /** - * User auth - * - * @description Authenticate user - */ const updateDb = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - tableName: "user_databases", - // /** @type {DSQL_MYSQL_user_databases_Type} */ - data: { - remote_connected: 1, - remote_connection_host: url, - remote_connection_key: key, - remote_connection_type: type, - remote_db_full_name: targetDb.dbFullName - }, - identifierColumnName: "db_full_name", - identifierValue: database.db_full_name - }); - const update = (0,_functions_backend_dbSchemaExec__WEBPACK_IMPORTED_MODULE_0__/* .dbSchemaExecDbUpdate */ .H)({ - dbSchema: targetDb, - database: database, - userId: user.id - }); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("Connect Handshake Error, =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/connect/verify/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Operation Failed!" - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},33364:(e,r,t)=>{let s=t(82703),n=t(72583),a=t(16570),o=t(51348),i=t(21339);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:c,tableSchema:u,identifierColumnName:d,identifierValue:p,encryptionKey:S,encryptionSalt:_}){if(!c||!Object.keys(c).length)return null;let f=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=f?o:i,h=Object.keys(c),g=[],y=[];for(let e=0;e<h.length;e++)try{let r=h[e],t=c[r],o=u?u?.fields?.filter(e=>e.fieldName===r):null,i=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;i?.richText&&(t=n(t,a)),i?.encrypted&&(t=s(t,S,_)),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),g.push(`\`${r}\`=?`),"number"==typeof t?y.push(String(t)):y.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}g.push(`date_updated='${Date()}'`),g.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE ${l} SET ${g.join(",")} WHERE \`${d}\`=?`;return y.push(p),f?await m(D,y):await m({paradigm:r,database:t,queryString:D,queryValues:y})}e.exports=l},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428),o=t(48225);e.exports=(e,r,t)=>{let i=n("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=i.update(e,"utf8","hex");return r+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886], () => (__webpack_exec__(2917))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83919);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json index 8b53955..8c6602c 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/handshake.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/7547.js","../../../chunks/5886.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../../shell/createDbFromSchema.js","../../../../../shell/deploy.js","../../../../../shell/checkDb.js","../../../../../shell/grantFullPriviledges.js","../../../../../shell/lessWatch.js","../../../../../shell/encodingUpdate.js","../../../../../shell/readImage.js","../../../../../shell/recoverMainJsonFromDb.js","../../../../../shell/resetSQLCredentials.js","../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../shell/setSQLCredentials.js","../../../../../shell/tailwindWatch.js","../../../../../shell/test-external-server.js","../../../../../shell/test.js","../../../../../shell/testSQLEscape.js","../../../../../shell/updateChildrenTablesOnDb.js","../../../../../shell/updateDateTimestamps.js","../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../shell/updateSSLUsers.js","../../../../../shell/utils/createTable.js","../../../../../shell/utils/generateColumnDescription.js","../../../../../shell/utils/dbHandler.js","../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../shell/utils/supplementTable.js","../../../../../shell/utils/updateTable.js","../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../shell/functions/jsonToBase64.js","../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../../shell/checkDb.js","../../../../../shell/createDbFromSchema.js","../../../../../shell/deploy.js","../../../../../shell/encodingUpdate.js","../../../../../shell/functions/jsonToBase64.js","../../../../../shell/grantFullPriviledges.js","../../../../../shell/lessWatch.js","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../../shell/readImage.js","../../../../../shell/recoverMainJsonFromDb.js","../../../../../shell/resetSQLCredentials.js","../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../shell/setSQLCredentials.js","../../../../../shell/tailwindWatch.js","../../../../../shell/test-external-server.js","../../../../../shell/test.js","../../../../../shell/testSQLEscape.js","../../../../../shell/updateChildrenTablesOnDb.js","../../../../../shell/updateDateTimestamps.js","../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../shell/updateSSLUsers.js","../../../../../shell/utils/createTable.js","../../../../../shell/utils/dbHandler.js","../../../../../shell/utils/generateColumnDescription.js","../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../shell/utils/supplementTable.js","../../../../../shell/utils/updateTable.js","../../../../../shell/utils/varDatabaseDbHandler.js","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/verify.js b/dsql-app/.local_dist/server/pages/api/connect/verify.js index 9cff5ee..53761ca 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/verify.js +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js @@ -1,181 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2519; -exports.ids = [2519]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5687: -/***/ ((module) => { - -module.exports = require("https"); - -/***/ }), - -/***/ 7310: -/***/ ((module) => { - -module.exports = require("url"); - -/***/ }), - -/***/ 3837: -/***/ ((module) => { - -module.exports = require("util"); - -/***/ }), - -/***/ 7034: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_httpsRequest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(722); -/* harmony import */ var _functions_backend_httpsRequest__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_httpsRequest__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const utils = __webpack_require__(3837); -const { URL } = __webpack_require__(7310); +"use strict";(()=>{var e={};e.id=3033,e.ids=[3033],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},79551:e=>{e.exports=require("url")},28354:e=>{e.exports=require("util")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},94871:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>h,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),o=t(2706),a=t(96762),i=t(10779),l=t.n(i),c=t(77538),u=t.n(c),p=t(6420),f=t.n(p);t(29021),t(28354);let{URL:d}=t(79551);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await f()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{url:s,key:n,database:o,dbSchema:a,type:i}=e.body;try{let{hostname:e,port:t,protocol:o}=new d(s),a=await l()({scheme:o,headers:{Authorization:n},hostname:e,port:t,path:"/api/connect",method:"POST",body:{url:s,key:n}}),i=JSON.parse(a);if(!i?.success)throw Error(i.msg||"Remote request failed");r.json({success:!0,payload:i.payload})}catch(e){console.log("Connect Verification Initialtor Error, =>",e.message),u()({component:"/api/connect/verify/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Operation Failed!"})}}let h=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/connect/verify",pathname:"/api/connect/verify",bundlePath:"",filename:""},userland:s})},10779:(e,r,t)=>{let s=t(55591),n=t(81630),{URL:o}=t(79551);e.exports=function({url:e,method:r,hostname:t,path:a,headers:i,body:l,port:c,scheme:u}){let p=l?JSON.stringify(l):null,f=e?new o(e):null,d={method:r||"GET",hostname:f?f.hostname:t,port:u?.match(/https/i)?443:f?f.protocol?.match(/https/i)?443:f.port:c?Number(c):80,headers:{}};return a&&(d.path=a),i&&(d.headers=i),l&&(d.headers["Content-Type"]="application/json",d.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,r)=>{let t=(u?.match(/https/i)?s:f?.protocol?.match(/https/i)?s:n).request(d,t=>{var s="";t.on("data",function(e){s+=e}),t.on("end",function(){e(s)}),t.on("error",e=>{console.log("HTTP response error =>",e.message),r(`HTTP response error =>, ${e.message}`)}),t.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&t.write(p),t.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),r(`HTTP request error =>, ${e.message}`)}),t.end()})}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - /** @type {{ url:string, key: string, database: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type, dbSchema: import("@/package-shared/types").DSQL_DatabaseSchemaType, type: "pull" | "push" }} */ const { url , key , database , dbSchema , type } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ const REMOTE_URL = new URL(url); - const { hostname , port , protocol } = REMOTE_URL; - const pingBody = { - url, - key - }; - const pingRemote = await _functions_backend_httpsRequest__WEBPACK_IMPORTED_MODULE_0___default()({ - scheme: protocol, - headers: { - Authorization: key - }, - hostname: hostname, - port: port, - path: "/api/connect", - method: "POST", - body: pingBody - }); - const resultObject = JSON.parse(pingRemote); - if (!resultObject?.success) { - throw new Error(resultObject.msg || "Remote request failed"); - } - res.json({ - success: true, - payload: resultObject.payload - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("Connect Verification Initialtor Error, =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/connect/verify/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Operation Failed!" - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,722], () => (__webpack_exec__(7034))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94871);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json b/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json index 15ed796..d333e55 100644 --- a/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/connect/verify.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../chunks/722.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/contact.js b/dsql-app/.local_dist/server/pages/api/contact.js index ee2d7f2..02d246e 100644 --- a/dsql-app/.local_dist/server/pages/api/contact.js +++ b/dsql-app/.local_dist/server/pages/api/contact.js @@ -1,123 +1,19 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2091; -exports.ids = [2091]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 7221: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { name , email , message } = sanitizedReqBody; - if (!email.match(/.*@.*\..*/)) return res.json({ - success: false, - msg: "Invalid Email" - }); - if (!name.match(/./) || !message.match(/./)) return res.json({ - success: false, - msg: "Please Fill in all Fields" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const mail = await _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default()({ - to: process.env.DSQL_CONTACT_EMAIL, - html: ` - <h2>Message From ${name}, ${email}</h2> - <p>${message}</p> - `, - subject: "Contact Form Submission", - text: `Message from ${name}, ${email}` - }); - //////////////////////////////////////// - if (mail.messageId) { - res.json({ - success: true - }); - } else { - res.json({ - success: false, - msg: "Message Sending Failed" - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/contact/main-catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} +"use strict";(()=>{var e={};e.id=3409,e.ids=[3409],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93987:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>m,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>d});var n=t(89947),a=t(2706),o=t(96762),i=t(79531),l=t.n(i),c=t(77538),u=t.n(c);async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{name:t,email:s,message:n}=e.body;if(!s.match(/.*@.*\..*/))return r.json({success:!1,msg:"Invalid Email"});if(!t.match(/./)||!n.match(/./))return r.json({success:!1,msg:"Please Fill in all Fields"});try{(await l()({to:process.env.DSQL_CONTACT_EMAIL,html:` + <h2>Message From ${t}, ${s}</h2> + <p>${n}</p> + `,subject:"Contact Form Submission",text:`Message from ${t}, ${s}`})).messageId?r.json({success:!0}):r.json({success:!1,msg:"Message Sending Failed"})}catch(e){u()({component:"/api/contact/main-catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let m=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/contact",pathname:"/api/contact",bundlePath:"",filename:""},userland:s})},79531:(e,r,t)=>{let s=t(29021),n=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:a,alias:o}){let i;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(o?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let c=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,o&&(s["replyTo "]=l),s.to=e,s.subject=r,s.text=t,s.html=c,i=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return i}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,6926], () => (__webpack_exec__(7221))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93987);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/contact.js.nft.json b/dsql-app/.local_dist/server/pages/api/contact.js.nft.json index 116c3d3..97c07ce 100644 --- a/dsql-app/.local_dist/server/pages/api/contact.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/contact.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2163.js","../../chunks/6926.js","../../../package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js index 35a85f7..9b1276a 100644 --- a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js @@ -1,301 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2316; -exports.ids = [2316]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4577: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9132); -/* harmony import */ var _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=8893,e.ids=[8893],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},34932:(e,r,t)=>{t.r(r),t.d(r,{config:()=>R,default:()=>g,routeModule:()=>N});var a={};t.r(a),t.d(a,{default:()=>h});var s=t(89947),l=t(2706),n=t(96762),i=t(51348),o=t.n(i),u=t(77538),c=t.n(u),d=t(6420),p=t.n(d),m=t(47670),_=t.n(m),S=t(51926),b=t.n(S);let f=t(29021),E=t(33873),{execSync:D}=t(79646);async function h(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=await o()("SELECT * FROM users WHERE id = ?",[t.id]),s=a?.[0],{db_name:l,db_slug:n,db_description:i,db_image:u,duplicate:d,keepUpdated:m,keepDataUpdated:S}=e.body;if(n.match(/[^a-zA-Z0-9-_]/))return r.json({success:!1,msg:"Input Error"});let h=`datasquirel_user_${t.id}_${n}`,g=await b()(`CREATE DATABASE IF NOT EXISTS \`${h}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`);if(!g?.affectedRows)return r.json({success:!1,msg:"Database Could Not be created!"});let R={user_id:t.id,db_name:l,db_slug:n,db_full_name:h,db_description:i,db_image:u};d&&m&&(R.active_clone="1",R.active_clone_parent_db=d),d&&S&&(R.active_data="1");let N=await _()({dbFullName:"datasquirel",tableName:"user_databases",data:R});if(N.insertId)try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,a=JSON.parse(f.readFileSync(e,"utf8")),o={dbName:l,dbSlug:n,dbFullName:h,dbDescription:i,dbImage:u,tables:[]};if(d)try{let e=a.filter(e=>e.dbFullName===d)[0];o.tables=e.tables,m&&(o.childDatabase=!0,o.childDatabaseDbFullName=d,S&&(o.updateData=!0),e.childrenDatabases?e.childrenDatabases.push({dbFullName:h}):e.childrenDatabases=[{dbFullName:h}]);for(let e=0;e<o.tables.length;e++){let r=o.tables[e];await _()({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:t.id,db_id:N.insertId,db_slug:n,table_name:r.tableFullName,table_slug:r.tableName}})}}catch(e){c()({component:"/api/createUserDatabase/lines-117-159",message:e.message,user:t})}if(a.push(o),f.writeFileSync(`${e}`,JSON.stringify(a),"utf8"),d){let e=E.join(process.cwd(),"/shell");D(`node createDbFromSchema.js --user ${t.id} --database ${h}`,{cwd:e})}let p=await b()(`GRANT ALL PRIVILEGES ON ${h}.* TO '${process.env.DSQL_DB_FULL_ACCESS_USERNAME}'@'${process.env.DSQL_DB_TARGET_IP_ADDRESS||"%"}' WITH GRANT OPTION`);if(p.error)throw Error(p.error);let g=await b()(`GRANT SELECT ON ${h}.* TO '${process.env.DSQL_DB_READ_ONLY_USERNAME}'@'${process.env.DSQL_DB_TARGET_IP_ADDRESS||"%"}'`);if(g.error)throw Error(g.error);s?.mariadb_user&&s?.mariadb_pass&&await b()(`GRANT ALL PRIVILEGES ON ${h}.* TO '${s.mariadb_user}'@'${s.mariadb_host}'`),await b()("FLUSH PRIVILEGES"),r.json({success:!0})}catch(e){c()({component:"/api/createUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}else r.json({success:!1,msg:"Database Could Not Be Recorded!"})}let g=(0,n.M)(a,"default"),R=(0,n.M)(a,"config"),N=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/createUserDatabase",pathname:"/api/createUserDatabase",bundlePath:"",filename:""},userland:a})},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],r=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${n.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const fullUserArray = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM users WHERE id = ?`, [ - user.id, - ]); - const fullUser = fullUserArray?.[0]; - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { db_name , db_slug , db_description , db_image , duplicate , keepUpdated , keepDataUpdated , } = sanitizedReqBody; - if (db_slug.match(/[^a-zA-Z0-9-_]/)) { - return res.json({ - success: false, - msg: "Input Error" - }); - } - const db_full_name = `datasquirel_user_${user.id}_${db_slug}`; - const createDatabaseForUser = await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()(`CREATE DATABASE IF NOT EXISTS \`${db_full_name}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`); - /** - * User auth - * - * @description Authenticate user - */ if (!createDatabaseForUser?.affectedRows) { - return res.json({ - success: false, - msg: "Database Could Not be created!" - }); - } - /** @type {any} */ let newDbData = { - user_id: user.id, - db_name, - db_slug, - db_full_name, - db_description, - db_image - }; - if (duplicate && keepUpdated) { - newDbData["active_clone"] = "1"; - newDbData["active_clone_parent_db"] = duplicate; - } - if (duplicate && keepDataUpdated) { - newDbData["active_data"] = "1"; - } - const newDatabaseEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "user_databases", - data: newDbData - }); - /** - * Send Response - * - * @description Send a boolean response - */ if (newDatabaseEntry.insertId) { - try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - /** @type {any} */ let newDbSchemaObject = { - dbName: db_name, - dbSlug: db_slug, - dbFullName: db_full_name, - dbDescription: db_description, - dbImage: db_image, - tables: [] - }; - if (duplicate) { - try { - const parentDatabase = userSchemaData.filter((db)=>db.dbFullName === duplicate)[0]; - newDbSchemaObject.tables = parentDatabase.tables; - if (keepUpdated) { - newDbSchemaObject["childDatabase"] = true; - newDbSchemaObject["childDatabaseDbFullName"] = duplicate; - if (keepDataUpdated) newDbSchemaObject["updateData"] = true; - if (parentDatabase.childrenDatabases) { - parentDatabase.childrenDatabases.push({ - dbFullName: db_full_name - }); - } else { - parentDatabase.childrenDatabases = [ - { - dbFullName: db_full_name - }, - ]; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - for(let i = 0; i < newDbSchemaObject.tables.length; i++){ - const newDbTable = newDbSchemaObject.tables[i]; - const newDbTableRecord = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: user.id, - db_id: newDatabaseEntry.insertId, - db_slug: db_slug, - table_name: newDbTable.tableFullName, - table_slug: newDbTable.tableName - } - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/createUserDatabase/lines-117-159", - message: error.message, - user: user - }); - } - } - userSchemaData.push(newDbSchemaObject); - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - if (duplicate) { - const targetPath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${user.id} --database ${db_full_name}`, { - cwd: targetPath - }); - } - //////////////////////////////////////// - const grantDbPriviledges = await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()(`GRANT ALL PRIVILEGES ON ${db_full_name}.* TO '${process.env.DSQL_DB_FULL_ACCESS_USERNAME}'@'${process.env.DSQL_DB_TARGET_IP_ADDRESS || "%"}' WITH GRANT OPTION`); - if (grantDbPriviledges.error) { - throw new Error(grantDbPriviledges.error); - } - const grantRead = await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()(`GRANT SELECT ON ${db_full_name}.* TO '${process.env.DSQL_DB_READ_ONLY_USERNAME}'@'${process.env.DSQL_DB_TARGET_IP_ADDRESS || "%"}'`); - if (grantRead.error) { - throw new Error(grantRead.error); - } - if (fullUser?.mariadb_user && fullUser?.mariadb_pass) { - const grantDbPriviledgesToSqlUser = await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()(`GRANT ALL PRIVILEGES ON ${db_full_name}.* TO '${fullUser.mariadb_user}'@'${fullUser.mariadb_host}'`); - } - await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()(`FLUSH PRIVILEGES`); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/createUserDatabase/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } - } else { - res.json({ - success: false, - msg: "Database Could Not Be Recorded!" - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,7487,9132], () => (__webpack_exec__(4577))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72907),l=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=s(e.cookies.datasquirelAuthKey);if(!i)return null;let o=JSON.parse(i);if(!o.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!l.existsSync(`${u}/${o.csrf_k}`))return null;if(0==o.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=n},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:l}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51926:(e,r,t)=>{let a=t(29021),s=t(48225),l=t(45356);e.exports=async function(e){let r;"production".match(/dev/)&&a.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await l(e)}catch(e){s({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},45356:(e,r,t)=>{let a=t(9973),s=t(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:s()}});e.exports=function(...e){try{return new Promise((r,t)=>{l.query(...e).then(e=>{l.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{l.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(34932));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json index 7bce303..d05c20a 100644 --- a/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/createUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/7487.js","../../chunks/9132.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js index 43dddab..7ce5b61 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js @@ -1,189 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6209; -exports.ids = [6209]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 537: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=7015,e.ids=[7015],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},5261:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>E,routeModule:()=>A});var a={};t.r(a),t.d(a,{default:()=>y});var i=t(89947),s=t(2706),n=t(96762),l=t(72907),o=t.n(l),u=t(77538),c=t.n(u),d=t(6420),p=t.n(d);t(47670);var f=t(64122),g=t.n(f),m=t(77619),_=t.n(m);let S=t(29021);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:a,key:i,user_id:s}=e.body;try{let e=process.env.DSQL_API_KEYS_PATH;if(!e)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let s=_()({key:String(o()(i)),user_id:t.id});if(!s?.sign)throw await g()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:a}),Error("API KEY is Invalid");try{let r=`${e}/${s?.sign}`;S.unlinkSync(r)}catch(e){console.log("Error Deleting API key",e.message)}await g()({dbFullName:"datasquirel",tableName:"api_keys",identifierColumnName:"id",identifierValue:a}),r.json({success:!0})}catch(e){console.log(`ERROR Deleting API Key => ${e.message}`),c()({component:"/api/deleteApiKey/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let E=(0,n.M)(a,"default"),h=(0,n.M)(a,"config"),A=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/deleteApiKey",pathname:"/api/deleteApiKey",bundlePath:"",filename:""},userland:a})},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let n=new Date,l=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(i+=` +URL: ${s.url}`),s?.body&&(i+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),l&&(i+=` +IP: ${l}`),i+=` +Date: ${n.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",i),a.appendFileSync("./.tmp/error.log",` - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { id , key , user_id } = req.body; - /** - * Send Response - * - * @description Send a boolean response - */ try { - const allowedKeysPath = process.env.DSQL_API_KEYS_PATH; - if (!allowedKeysPath) throw new Error("process.env.DSQL_API_KEYS_PATH variable not found"); - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_5___default()({ - key: String(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default()(key)), - user_id: user.id - }); - if (!apiCred?.sign) { - await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4___default()({ - dbFullName: "datasquirel", - tableName: "api_keys", - identifierColumnName: "id", - identifierValue: id - }); - throw new Error("API KEY is Invalid"); - } - try { - const unlinkPath = `${allowedKeysPath}/${apiCred?.sign}`; - fs.unlinkSync(unlinkPath); - } catch (/** @type {any} */ error) { - console.log("Error Deleting API key", error.message); - } - /** - * Delete API key from database - */ await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4___default()({ - dbFullName: "datasquirel", - tableName: "api_keys", - identifierColumnName: "id", - identifierValue: id - }); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - console.log(`ERROR Deleting API Key => ${error1.message}`); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteApiKey/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Deletion Failed!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,1007,6147], () => (__webpack_exec__(537))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),i=t(72907),s=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=i(e.cookies.datasquirelAuthKey);if(!l)return null;let o=JSON.parse(l);if(!o.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${u}/${o.csrf_k}`))return null;if(0==o.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=n},77619:(e,r,t)=>{let a=t(29021),i=t(72907);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)return null;try{let n=process.env.DSQL_API_KEYS_PATH;if(!n)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=i(e),o=JSON.parse(l||""),u=a.existsSync(`${n}/${o.sign}`);if(String(o.user_id)!==String(s)||!u)return null;if(!o.target_database)return o;if(!r&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(r));if(c&&!o.target_table)return o;if(c&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,r,t)=>{let a=t(51348),i=t(21339);async function s({dbContext:e,paradigm:r,dbFullName:t,tableName:s,identifierColumnName:n,identifierValue:l}){try{let o=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),u=o?a:i,c=`DELETE FROM ${s} WHERE \`${n}\`=?`;return o?await u(c,[l]):await u({paradigm:r,queryString:c,database:t,queryValues:[l]})}catch(e){return null}}e.exports=s},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(5261));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json index a61a6f3..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteApiKey.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/1007.js","../../chunks/6147.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js index 0ab41a0..e0183b6 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js @@ -1,127 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5395; -exports.ids = [5395]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 8511: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=7081,e.ids=[7081],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},80061:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>d,routeModule:()=>S});var s={};r.r(s),r.d(s,{default:()=>p});var a=r(89947),n=r(2706),o=r(96762),c=r(57638),i=r.n(c),u=r(6420),l=r.n(u);async function p(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await l()(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,userId:s}=e.body;await i()({database:r,queryString:"DELETE FROM users WHERE id = ?",queryValuesArray:[s]}),t.json({success:!0,msg:"User Deleted!"})}r(29021);let d=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteDbUser",pathname:"/api/deleteDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),n=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let c=a(e.cookies.datasquirelAuthKey);if(!c)return null;let i=JSON.parse(c);if(!i.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${u}/${i.csrf_k}`))return null;if(0==i.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,t,r)=>{let s=r(72907),a=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n<e.length;n++){let o=e[n],c=Object.keys(o);for(let e=0;e<c.length;e++){let r=c[e],n=t?.fields[e];if(r?.match(a))continue;let i=o[r];("number"==typeof i||i)&&n?.encrypted&&i?.match(/./)&&(o[r]=s(i))}r.push(o)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Input Validation - * - * @description Input Validation - */ const sanitizedReqBody = req.body; - const { dbFullName , userId } = sanitizedReqBody; - const deleteUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: dbFullName, - queryString: `DELETE FROM users WHERE id = ?`, - queryValuesArray: [ - userId - ] - }); - res.json({ - success: true, - msg: "User Deleted!" - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,8326,1311], () => (__webpack_exec__(8511))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,t,r)=>{r(29021);let s=r(6061),a=r(48225),n=r(51348),o=r(21339);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:c}){let i;let u=!!r?.match(/^datasquirel$/),l=u?n:o;try{i=e&&t&&Array.isArray(t)&&t[0]?u?await l(e,t):await l({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await l(e):await l({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&c)try{let e=i;return await s({unparsedResults:e,tableSchema:c})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:c}){try{return new Promise((i,u)=>{let l=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:c,sql:e.sql})}o=l?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),c&&Array.isArray(c)&&c[0]?o.query(r,c).then(p).catch(d):o.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=80061);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json index ad8e390..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js index 3c8c245..16145d0 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js @@ -1,113 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 593; -exports.ids = [593]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9043: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const deletInvitation = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?`, [ - req.body.id, - user.id - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(9043))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=291,e.ids=[291],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},50667:(e,t,r)=>{r.r(t),r.d(t,{config:()=>p,default:()=>d,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>f});var n=r(89947),i=r(2706),o=r(96762),a=r(51348),u=r.n(a),c=r(6420),l=r.n(c);async function f(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await l()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});await u()("DELETE FROM invitations WHERE id = ? AND inviting_user_id = ?",[e.body.id,r.id]),t.json({success:!0})}let d=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteInvitation",pathname:"/api/deleteInvitation",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),i=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=n(e.cookies.datasquirelAuthKey);if(!a)return null;let u=JSON.parse(a);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=50667);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteInvitation.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js index 0878234..4e6297f 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js @@ -1,193 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 820; -exports.ids = [820]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2562: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=9918,e.ids=[9918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},30976:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),i=t(96762),o=t(51348),l=t.n(o),c=t(77538),u=t.n(c),d=t(6420),p=t.n(d),f=t(33873),S=t.n(f);let m=t(29021);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{folder:s}=e.body;try{async function n({path:e}){try{let r=m.readdirSync(e);for(let t=0;t<r.length;t++){let s=r[t];if(!s.match(/\..{3,4}$/)){await n({path:e+s+"/"});continue}let a=e.replace(/.*user-images\/user-\d+\/|.*jsonData\/dbSchemas\/users\/user-\d+\/media\//,"").replace(/\/+$/,""),i=await l()(`SELECT * FROM user_media WHERE folder=? && media_url LIKE '%${s}'`,[a]);i&&i[0]&&await l()("DELETE FROM user_media WHERE id = ?",[i[0].id]);try{m.unlinkSync(e+s)}catch(r){try{m.rmdirSync(e+s)}catch(e){}}}m.rmdirSync(e)}catch(e){console.log("File cleaning error =>",e.message)}}let e=process.env.DSQL_STATIC_SERVER_DIR;if(!e)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let a=S().join(e,`images/user-images/user-${t.id}/`),i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media/`,o=a+(s?s.replace(/\.| /g,"")+"/":""),c=i+(s?s.replace(/\.| /g,"")+"/":"");await n({path:o}),await n({path:c}),r.json({success:!0})}catch(e){u()({component:"/api/deleteMediaFolder/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}let E=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteMediaFolder",pathname:"/api/deleteMediaFolder",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { folder } = sanitizedReqBody; - try { - /** - * ### Clean Target Folder - * @param {object} params - * @param {string} params.path - */ async function cleanFolder({ path }) { - try { - const folderFiles = fs.readdirSync(path); - for(let i = 0; i < folderFiles.length; i++){ - const fileName = folderFiles[i]; - if (!fileName.match(/\..{3,4}$/)) { - await cleanFolder({ - path: path + fileName + "/" - }); - continue; - } - const targetFolder = path.replace(/.*user-images\/user-\d+\/|.*jsonData\/dbSchemas\/users\/user-\d+\/media\//, "").replace(/\/+$/, ""); - const targetMediaInDb = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_media WHERE folder=? && media_url LIKE '%${fileName}'`, [ - targetFolder - ]); - if (targetMediaInDb && targetMediaInDb[0]) { - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_media WHERE id = ?`, [ - targetMediaInDb[0].id - ]); - } - try { - fs.unlinkSync(path + fileName); - } catch (error1) { - try { - fs.rmdirSync(path + fileName); - } catch (error) {} - } - } - fs.rmdirSync(path); - } catch (/** @type {any} */ error2) { - console.log("File cleaning error =>", error2.message); - } - } - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const folderPath = path__WEBPACK_IMPORTED_MODULE_3___default().join(STATIC_ROOT, `images/user-images/user-${user.id}/`); - const privateFolderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media/`; - const fullFolderPath = folderPath + (folder ? folder.replace(/\.| /g, "") + "/" : ""); - const fullPrivateFolderPath = privateFolderPath + (folder ? folder.replace(/\.| /g, "") + "/" : ""); - await cleanFolder({ - path: fullFolderPath - }); - await cleanFolder({ - path: fullPrivateFolderPath - }); - /** - * Send Response - * - * @description Send a boolean response - */ res.json({ - success: true - }); - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteMediaFolder/main-catch-error", - message: error.message, - user: user - }); - /** - * Send Error Response - * - * @description Send a boolean response - */ res.json({ - success: false - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(2562))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=30976);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json index 19bb3fc..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteMediaFolder.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js index 36c78fa..0a2ecef 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js @@ -1,180 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9745; -exports.ids = [9745]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6970: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8999); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +"use strict";(()=>{var e={};e.id=1658,e.ids=[1658],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},43390:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>m});var a=t(89947),n=t(2706),o=t(96762),i=t(64122),l=t.n(i),u=t(73677),c=t.n(u),d=t(39831),_=t.n(d),p=t(77538),S=t.n(p),f=t(6420),E=t.n(f);async function m(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await E()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,tableName:a,entryId:n,dbSlug:o,dbId:i,delegated:u}=e.body;try{let u=await _()({databaseSlug:o,request:e,user:t,query:e.query});if(!await c()({user:t,confirmedDelegetedUser:u,database:o,table:a,dbId:i,priviledgeRegex:/Delete Entries/i}))return r.json({success:!1,msg:"Unauthorized"});await l()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:s,tableName:a,identifierColumnName:"id",identifierValue:n}),r.json({success:!0})}catch(e){S()({component:"/api/deleteTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let g=(0,o.M)(s,"default"),D=(0,o.M)(s,"config"),y=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteTableEntry",pathname:"/api/deleteTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(77538);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=s(e.cookies[u]);if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbFullName , tableName , entryId , dbSlug , dbId , delegated } = sanitizedReqBody; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default()({ - databaseSlug: dbSlug, - request: req, - user: user, - query: req.query - }); - const checkUserRightsBoolean = await _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default()({ - user: user, - confirmedDelegetedUser: delegatedUser, - database: dbSlug, - table: tableName, - dbId: dbId, - priviledgeRegex: /Delete Entries/i - }); - if (!checkUserRightsBoolean) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const deleteTableEntry = await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: tableName, - identifierColumnName: "id", - identifierValue: entryId - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/deleteTableEntry/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Deletion Failed!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3403,1352,6147,8999], () => (__webpack_exec__(6970))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},64122:(e,r,t)=>{let s=t(51348),a=t(21339);async function n({dbContext:e,paradigm:r,dbFullName:t,tableName:n,identifierColumnName:o,identifierValue:i}){try{let l=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),u=l?s:a,c=`DELETE FROM ${n} WHERE \`${o}\`=?`;return l?await u(c,[i]):await u({paradigm:r,queryString:c,database:t,queryValues:[i]})}catch(e){return null}}e.exports=n},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function _(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(_):o.query(t).then(d).catch(_)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=43390);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json index c6f7fa7..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3403.js","../../chunks/1352.js","../../chunks/6147.js","../../chunks/8999.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUser.js b/dsql-app/.local_dist/server/pages/api/deleteUser.js index e8e7383..b6810cc 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js @@ -1,265 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4739; -exports.ids = [4739]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4512: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {{ - * rootFolderPath: string, - * }} params - params - * - * @returns {boolean} operation successful or not - */ module.exports = function deleteFolderRecursively({ rootFolderPath }) { - try { - /** - * Recursive Copy Function - * - * @description Recursive Copy Function - * @param {string} srcPath - */ function deleteFiles(srcPath) { - try { - const files = fs.readdirSync(srcPath); - for(let i = 0; i < files.length; i++){ - const file = files[i]; - if (file?.match(/\..{2,5}$/)) { - fs.unlinkSync(`${srcPath}/${file}`); - } else { - deleteFiles(`${srcPath}/${file}`); - } - } - fs.rmdirSync(`${srcPath}`); - } catch (error) { - try { - fs.unlinkSync(srcPath); - } catch (err) {} - } - } - deleteFiles(rootFolderPath); - fs.rmSync(`${rootFolderPath}`, { - recursive: true, - force: true - }); - return true; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log("ERROR in deleteFolderRecursively.js function =>", error.message); - return false; - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - - -/***/ }), - -/***/ 3456: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_deleteFolderRecursively__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4512); -/* harmony import */ var _functions_backend_deleteFolderRecursively__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_deleteFolderRecursively__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); +"use strict";(()=>{var e={};e.id=2735,e.ids=[2735],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},21734:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>m,routeModule:()=>$});var s={};t.r(s),t.d(s,{default:()=>R});var i=t(89947),n=t(2706),a=t(96762),o=t(51348),u=t.n(o),l=t(83743),c=t.n(l),d=t(77538),E=t.n(d),_=t(6420),S=t.n(_);let f=t(29021),p=t(33873);async function R(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await S()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});"production".match(/prod/i);try{await u()(`DELETE FROM users WHERE id='${t.id}'`),await u()(`DELETE FROM user_users WHERE invited_user_id='${t.id}' OR user_id='${t.id}'`),await u()(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${t.id}' OR root_user_id='${t.id}'`),await u()(`DELETE FROM user_databases WHERE user_id='${t.id}'`),await u()(`DELETE FROM user_database_tables WHERE user_id='${t.id}'`),await u()(`DELETE FROM user_media WHERE user_id='${t.id}'`),await u()(`DELETE FROM delegated_users WHERE user_id='${t.id}' OR delegated_user_id='${t.id}'`),await u()(`DELETE FROM unsubscribes WHERE user_id='${t.id}'`),await u()(`DELETE FROM notifications WHERE user_id='${t.id}'`),await u()(`DELETE FROM api_keys WHERE user_id='${t.id}'`),await u()(`DELETE FROM invitations WHERE inviting_user_id='${t.id}' OR invited_user_email='${t.email}'`);let e=await u()("SELECT * FROM mariadb_users WHERE user_id = ?",[t.id]);for(let r=0;r<e.length;r++){let{username:t,host:s}=e[r];await u()(`DROP USER IF EXISTS '${t}'@'${s}'`)}let s=await u()(`SHOW databases LIKE 'datasquirel_user_${t.id}_%'`);for(let e=0;e<s.length;e++){let r=s[e],t=Object.values(r);await u()(`DROP database IF EXISTS ${t}`)}let i=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`;f.existsSync(i)&&f.unlinkSync(i);let n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let a=p.join(n,`images/user-images/user-${t.id}`);f.existsSync(a)&&c()({rootFolderPath:a}),r.json({success:!0})}catch(e){E()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"User could not be deleted!"})}}let m=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),$=new i.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUser",pathname:"/api/deleteUser",bundlePath:"",filename:""},userland:s})},83743:(e,r,t)=>{let s=t(29021);e.exports=function({rootFolderPath:e}){try{return function e(r){try{let t=s.readdirSync(r);for(let i=0;i<t.length;i++){let n=t[i];n?.match(/\..{2,5}$/)?s.unlinkSync(`${r}/${n}`):e(`${r}/${n}`)}s.rmdirSync(`${r}`)}catch(e){try{s.unlinkSync(r)}catch(e){}}}(e),s.rmSync(`${e}`,{recursive:!0,force:!0}),!0}catch(e){return console.log("ERROR in deleteFolderRecursively.js function =>",e.message),!1}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(i+=` +URL: ${n.url}`),n?.body&&(i+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let u=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const isProduction = "production".match(/prod/i); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const deleteUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM users WHERE id='${user.id}'`); - const deleteUserUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_users WHERE invited_user_id='${user.id}' OR user_id='${user.id}'`); - const deleteDelegatedUserTables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM delegated_user_tables WHERE delegated_user_id='${user.id}' OR root_user_id='${user.id}'`); - const deleteUserDatabases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_databases WHERE user_id='${user.id}'`); - const deleteUserDatabaseTables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_database_tables WHERE user_id='${user.id}'`); - const deleteUserMedia = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_media WHERE user_id='${user.id}'`); - const deleteDelegatedUsers = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM delegated_users WHERE user_id='${user.id}' OR delegated_user_id='${user.id}'`); - const deleteUnsubscribes = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM unsubscribes WHERE user_id='${user.id}'`); - const deleteNotifications = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM notifications WHERE user_id='${user.id}'`); - const deleteApiKeys = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM api_keys WHERE user_id='${user.id}'`); - const deleteInvitations = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM invitations WHERE inviting_user_id='${user.id}' OR invited_user_email='${user.email}'`); - const mariadbUsersArray = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM mariadb_users WHERE user_id = ?`, [ - user.id - ]); - for(let i = 0; i < mariadbUsersArray.length; i++){ - const mariadbUser = mariadbUsersArray[i]; - const { username , host } = mariadbUser; - const deleteMariadbUsers = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DROP USER IF EXISTS '${username}'@'${host}'`); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const userDatabases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SHOW databases LIKE 'datasquirel_user_${user.id}_%'`); - for(let i1 = 0; i1 < userDatabases.length; i1++){ - const dbObj = userDatabases[i1]; - const dbName = Object.values(dbObj); - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DROP database IF EXISTS ${dbName}`); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - const userSchemaPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - if (fs.existsSync(userSchemaPath)) fs.unlinkSync(userSchemaPath); - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const userMediaFolder = path.join(STATIC_ROOT, `images/user-images/user-${user.id}`); - if (fs.existsSync(userMediaFolder)) _functions_backend_deleteFolderRecursively__WEBPACK_IMPORTED_MODULE_1___default()({ - rootFolderPath: userMediaFolder - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/addApiKey/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "User could not be deleted!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(3456))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72907),n=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),i=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function a(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=21734);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json index 19bb3fc..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js index 4ddf141..13a11d5 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js @@ -1,163 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8937; -exports.ids = [8937]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2005: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9132); -/* harmony import */ var _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=3e3,e.ids=[3e3],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},47389:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>D,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),a=t(2706),i=t(96762),o=t(51348),l=t.n(o),c=t(77538),u=t.n(c),d=t(6420),p=t.n(d),f=t(51926),S=t.n(f);let m=t(29021);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s,db_slug:n,db_full_name:a}=e.body;if(!a.match(`user_${t.id}_`))throw Error("Database doesn't belong to user");await S()(`DROP DATABASE \`${a}\``),await l()("DELETE FROM user_databases WHERE id = ?",[s]),await l()("DELETE FROM user_users WHERE user_id = ? AND `database` = ?",[t.id,n]);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,n=JSON.parse(m.readFileSync(s,"utf8")),i=n.filter((r,t)=>{if(r.dbFullName===a)return e=t,!0});if(i[0].childDatabase){let e=n.filter(e=>e.dbFullName===i[0].childDatabaseDbFullName)[0],r=e.childrenDatabases?.findIndex(e=>e.dbFullName===i[0].childDatabaseDbFullName);e.childrenDatabases&&"number"==typeof r&&e.childrenDatabases.splice(r,1)}n.splice(e,1),m.writeFileSync(`${s}`,JSON.stringify(n),"utf8"),r.json({success:!0})}catch(e){u()({component:"/api/deleteUserDatabase/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"File Updates Failed"})}}let D=(0,i.M)(s,"default"),E=(0,i.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/deleteUserDatabase",pathname:"/api/deleteUserDatabase",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { id , db_slug , db_full_name } = sanitizedReqBody; - if (!db_full_name.match(`user_${user.id}_`)) { - throw new Error("Database doesn't belong to user"); - } - await _package_shared_functions_backend_noDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()(`DROP DATABASE \`${db_full_name}\``); - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_databases WHERE id = ?`, [ - id - ]); - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_users WHERE user_id = ? AND \`database\` = ?`, [ - user.id, - db_slug - ]); - try { - /** - * Send Response - * - * @description Send a boolean response - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - /** @type {any} */ let targetDatabaseIndex; - let targetDatabase = userSchemaData.filter((databaseObject, index)=>{ - if (databaseObject.dbFullName === db_full_name) { - targetDatabaseIndex = index; - return true; - } - }); - if (targetDatabase[0].childDatabase) { - const parentDb = userSchemaData.filter((db)=>db.dbFullName === targetDatabase[0].childDatabaseDbFullName)[0]; - const targetChildIndex = parentDb.childrenDatabases?.findIndex((val)=>val.dbFullName === targetDatabase[0].childDatabaseDbFullName); - if (parentDb.childrenDatabases && typeof targetChildIndex == "number") { - parentDb.childrenDatabases.splice(targetChildIndex, 1); - } - } - userSchemaData.splice(targetDatabaseIndex, 1); - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteUserDatabase/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "File Updates Failed" - }); - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51926:(e,r,t)=>{let s=t(29021),n=t(48225),a=t(45356);e.exports=async function(e){let r;"production".match(/dev/)&&s.appendFileSync("./.tmp/sqlQuery.sql",e+"\n"+Date()+"\n\n\n","utf8");try{r=await a(e)}catch(e){n({component:"noDatabaseDbHandler",message:e.message}),console.log("ERROR in noDatabaseDbHandler =>",e.message)}return r||null}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,7487,9132], () => (__webpack_exec__(2005))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},45356:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function(...e){try{return new Promise((r,t)=>{a.query(...e).then(e=>{a.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=47389);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json index 87151f5..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/7487.js","../../chunks/9132.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js index 8309436..762e87d 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js @@ -1,185 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 551; -exports.ids = [551]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4316: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6715); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=8105,e.ids=[8105],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},71405:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>h,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>D});var n=t(89947),o=t(2706),a=t(96762),i=t(33873),c=t.n(i),l=t(77538),u=t.n(l),d=t(6420),S=t.n(d),p=t(48227),_=t.n(p),f=t(64122),m=t.n(f);let E=t(29021);async function D(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await S()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body,{media_name:n,media_url:o,media_thumbnail_url:a,media_path:i,media_thumbnail_path:l,folder:d}=s;"production".match(/production/);try{let e=s?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let n=_()({isPrivate:e,user:t,folder:s.folder?s.folder+"/":"",video:!!s.media_type?.match(/video/i)});if(!n)throw Error("Couldn't grab paths!");let{fileRootPath:i,urlRootPath:l,relativePath:u}=n;d?.match(/./);let S=o.match(/[^\/]+$/)[0],p=a.match(/[^\/]+$/)[0],f=c().normalize(i+S),D=c().normalize(i+p);E.unlinkSync(f);try{E.unlinkSync(D)}catch(e){}await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:s.id}),r.json({success:!0})}catch(e){console.log("ERROR in deleting user media =>",e.message),u()({component:"/api/deleteUserMedia/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,a.M)(s,"default"),y=(0,a.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/deleteUserMedia",pathname:"/api/deleteUserMedia",bundlePath:"",filename:""},userland:s})},48227:(e,r,t)=>{let s=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:o,pathOnly:a}){"production".match(/production/);let i=r?.id||r?.user_id,c=process.env.DSQL_STATIC_SERVER_DIR;if(!c)return console.log("Static File ENV not Found!"),null;let l=e?`@/${o?"videos":"media"}/${t?t+"/":""}`:o?`/videos/user-videos/user-${i}/${t?t+"/":""}`:`/images/user-images/user-${i}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/media/${t?t+"/":""}`:n.join(c,l);return s.existsSync(u)||a||s.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${l}`,relativePath:l}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const mediaObject = req.body; - const { media_name , media_url , media_thumbnail_url , media_path , media_thumbnail_path , folder , } = mediaObject; - const isProduction = "production".match(/production/); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const isPrivate = mediaObject?.private == 1 ? true : false; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const grabedPaths = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_3___default()({ - isPrivate: isPrivate, - user: user, - folder: mediaObject.folder ? mediaObject.folder + "/" : "", - video: mediaObject.media_type?.match(/video/i) ? true : false - }); - if (!grabedPaths) { - throw new Error("Couldn't grab paths!"); - } - const { fileRootPath , urlRootPath , relativePath } = grabedPaths; - const rootFolder = fileRootPath; - const mediaFolder = folder?.match(/./) ? "/" + folder + "/" : "/"; - const fileName = media_url.match(/[^\/]+$/)[0]; - const fileThumbnailName = media_thumbnail_url.match(/[^\/]+$/)[0]; - const filePath = path__WEBPACK_IMPORTED_MODULE_0___default().normalize(rootFolder + fileName); - const fileThumbnailPath = path__WEBPACK_IMPORTED_MODULE_0___default().normalize(rootFolder + fileThumbnailName); - fs.unlinkSync(filePath); - try { - fs.unlinkSync(fileThumbnailPath); - } catch (error) { - // console.log("ERROR in deleting user media =>", error.message); - } - await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_4___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - identifierColumnName: "id", - identifierValue: mediaObject.id - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - console.log("ERROR in deleting user media =>", error1.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteUserMedia/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3403,6147,6715], () => (__webpack_exec__(4316))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let c=JSON.parse(i);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${l}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=a},64122:(e,r,t)=>{let s=t(51348),n=t(21339);async function o({dbContext:e,paradigm:r,dbFullName:t,tableName:o,identifierColumnName:a,identifierValue:i}){try{let c=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),l=c?s:n,u=`DELETE FROM ${o} WHERE \`${a}\`=?`;return c?await l(u,[i]):await l({paradigm:r,queryString:u,database:t,queryValues:[i]})}catch(e){return null}}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),o=t(21580),a=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:o()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((c,l)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){a.end(),c(JSON.parse(JSON.stringify(e)))}function S(e){a.end(),c({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}a=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:o()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:o()}}),i&&Array.isArray(i)&&i[0]?a.query(t,i).then(d).catch(S):a.query(t).then(d).catch(S)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=71405);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json index 8db41a7..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3403.js","../../chunks/6147.js","../../chunks/6715.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js index fc89151..f849f9e 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js @@ -1,218 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 590; -exports.ids = [590]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6772: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=5757,e.ids=[5757],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},77379:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>D,routeModule:()=>E});var s={};r.r(s),r.d(s,{default:()=>S});var a=r(89947),n=r(2706),l=r(96762),i=r(57638),o=r.n(i),c=r(77538),u=r.n(c),d=r(6420),p=r.n(d),_=r(51348),f=r.n(_);let m=r(29021);async function S(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await p()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let s=e.body,{id:a,user_id:n,table_name:l,table_slug:i,table_description:c}=s.table,{db_full_name:d}=s.database;await o()({database:d,queryString:`DROP TABLE \`${i}\``});let _=a?[a]:[i,r.id,s.database.id];await f()(a?"DELETE FROM user_database_tables WHERE id=?":"DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?",_);try{let e;let s=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`,a=JSON.parse(m.readFileSync(s,"utf8")),n=a.filter((e,t)=>{if(e.dbFullName===d)return!0}),l=n[0].tables.filter((t,r)=>{if(t?.tableName===i)return e=r,!0});if(l[0].childTable){let e;let t=a.filter(e=>e.dbFullName===l[0].childTableDbFullName)[0].tables.filter(e=>{if(e.tableName===l[0].childTableName)return!0})[0];t.childrenTables?.filter((t,r)=>{t.tableName===i&&(e=r)}),"number"==typeof e&&t.childrenTables?.splice(e,1)}if(n[0].tables.splice(e,1),n[0].childrenDatabases)for(let e=0;e<n[0].childrenDatabases.length;e++){let t=n[0].childrenDatabases[e];try{let e=a.filter(e=>e.dbFullName===t.dbFullName)[0];e.tables=n[0].tables,await f()("DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?",[i,r.id,e.dbSlug])}catch(e){u()({component:"/api/deleteUserTable/lines-125-128",message:e.message,user:r})}}m.writeFileSync(`${s}`,JSON.stringify(a),"utf8"),t.json({success:!0})}catch(e){u()({component:"/api/deleteUserTable/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"File Updates Failed"})}}let D=(0,l.M)(s,"default"),b=(0,l.M)(s,"config"),E=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/deleteUserTable",pathname:"/api/deleteUserTable",bundlePath:"",filename:""},userland:s})},77538:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${l.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { id , user_id , table_name , table_slug , table_description } = sanitizedReqBody.table; - const { db_full_name } = sanitizedReqBody.database; - await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: db_full_name, - queryString: `DROP TABLE \`${table_slug}\`` - }); - const deleteTableQuery = id ? `DELETE FROM user_database_tables WHERE id=?` : `DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_id=?`; - const deleteTableQueryValues = id ? [ - id - ] : [ - table_slug, - user.id, - sanitizedReqBody.database.id - ]; - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(deleteTableQuery, deleteTableQueryValues); - try { - /** - * Send Response - * - * @description Send a boolean response - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - let targetDatabaseIndex; - let targetDatabase = userSchemaData.filter((databaseObject, index)=>{ - if (databaseObject.dbFullName === db_full_name) { - targetDatabaseIndex = index; - return true; - } - }); - /** @type {any} */ let targetTableIndex; - let targetTable = targetDatabase[0].tables.filter((tableObject, index)=>{ - if (tableObject?.tableName === table_slug) { - targetTableIndex = index; - return true; - } - }); - if (targetTable[0].childTable) { - const parentDb = userSchemaData.filter((db)=>db.dbFullName === targetTable[0].childTableDbFullName)[0]; - const parentTableObject = parentDb.tables.filter((table)=>{ - if (table.tableName === targetTable[0].childTableName) { - return true; - } - })[0]; - let targetChildIndex; - const parentTableChildObject = parentTableObject.childrenTables?.filter((childTable, index)=>{ - if (childTable.tableName === table_slug) { - targetChildIndex = index; - } - }); - if (typeof targetChildIndex === "number") parentTableObject.childrenTables?.splice(targetChildIndex, 1); - } - targetDatabase[0].tables.splice(targetTableIndex, 1); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Check Children Databases - * - * @description Check Children Databases - */ if (targetDatabase[0].childrenDatabases) { - for(let i = 0; i < targetDatabase[0].childrenDatabases.length; i++){ - const childDb = targetDatabase[0].childrenDatabases[i]; - try { - const targetChild = userSchemaData.filter((db)=>db.dbFullName === childDb.dbFullName)[0]; - targetChild.tables = targetDatabase[0].tables; - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`DELETE FROM user_database_tables WHERE table_slug=? AND user_id=? AND db_slug=?`, [ - table_slug, - user.id, - targetChild.dbSlug - ]); - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteUserTable/lines-125-128", - message: error.message, - user: user - }); - } - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/deleteUserTable/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "File Updates Failed" - }); - } -} +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),n=r(29021);async function l(e,t,r,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let o=JSON.parse(i);if(!o.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${c}/${o.csrf_k}`))return null;if(0==o.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=l},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,t,r)=>{let s=r(72907),a=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n<e.length;n++){let l=e[n],i=Object.keys(l);for(let e=0;e<i.length;e++){let r=i[e],n=t?.fields[e];if(r?.match(a))continue;let o=l[r];("number"==typeof o||o)&&n?.encrypted&&o?.match(/./)&&(l[r]=s(o))}r.push(l)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311], () => (__webpack_exec__(6772))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}},57638:(e,t,r)=>{r(29021);let s=r(6061),a=r(48225),n=r(51348),l=r(21339);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i}){let o;let c=!!r?.match(/^datasquirel$/),u=c?n:l;try{o=e&&t&&Array.isArray(t)&&t[0]?c?await u(e,t):await u({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):c?await u(e):await u({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&i)try{let e=o;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function l(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((o,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function p(e){l.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}l=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(r,i).then(d).catch(p):l.query(r).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=77379);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json index 9b5b845..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js index 60651c4..9a94665 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js @@ -1,127 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3857; -exports.ids = [3857]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 4229: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Input Validation - * - * @description Input Validation - */ const sanitizedReqBody = req.body; - const { user_type , user_id , email , invited_user_id } = sanitizedReqBody; - const deleteUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_users WHERE id=?`, [ - sanitizedReqBody.id, - ]); - if (user_type?.match(/admin/i)) { - const deleteUserInvitation = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - user.id, - email - ]); - const deleteUserDelegatedTables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?`, [ - invited_user_id, - user.id - ]); - } - // fs.unlinkSync() - res.json({ - success: true, - msg: "User Deleted!" - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(4229))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3462,e.ids=[3462],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},83246:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>_,routeModule:()=>p});var s={};r.r(s),r.d(s,{default:()=>d});var n=r(89947),i=r(2706),a=r(96762),o=r(51348),u=r.n(o),c=r(6420),l=r.n(c);async function d(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await l()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let s=e.body,{user_type:n,user_id:i,email:a,invited_user_id:o}=s;await u()("DELETE FROM user_users WHERE id=?",[s.id]),n?.match(/admin/i)&&(await u()("DELETE FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[r.id,a]),await u()("DELETE FROM delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[o,r.id])),t.json({success:!0,msg:"User Deleted!"})}r(29021);let _=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/deleteUserUser",pathname:"/api/deleteUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),i=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=a},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=83246);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/deleteUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js index eadb993..1597512 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js @@ -1,151 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7896; -exports.ids = [7896]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 711: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4194); -/* harmony import */ var _functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { dbName } = req.query; - /** - * Input Validation - * - * @description Input Validation - */ try { - const schemaPath = path.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${user.id}/main.json`); - if (!fs.existsSync(schemaPath)) { - return res.end(); - } - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const schemaData = JSON.parse(fs.readFileSync(schemaPath, "utf-8")); - const targetSchema = schemaData.find((schema)=>schema.dbFullName == dbName); - if (!targetSchema) throw new Error("Database not found!"); - const targetWritePath = path.resolve(process.cwd(), "./.tmp/_tmp.json"); - fs.writeFileSync(targetWritePath, JSON.stringify(targetSchema), "utf-8"); - const fileStream = fs.createReadStream(targetWritePath); - fileStream.pipe(res); - fileStream.on("close", ()=>{ - fs.unlinkSync(targetWritePath); - }); - } catch (error) { - console.log(error); - return res.end(); - } -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=7317,e.ids=[7317],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3535:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>d,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762);t(17029);var i=t(6420),l=t.n(i);let c=t(29021),u=t(33873);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;try{let e=u.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!c.existsSync(e))return r.end();let n=JSON.parse(c.readFileSync(e,"utf-8")).find(e=>e.dbFullName==s);if(!n)throw Error("Database not found!");let o=u.resolve(process.cwd(),"./.tmp/_tmp.json");c.writeFileSync(o,JSON.stringify(n),"utf-8");let a=c.createReadStream(o);a.pipe(r),a.on("close",()=>{c.unlinkSync(o)})}catch(e){return console.log(e),r.end()}}let d=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/downloadDatabaseSchema",pathname:"/api/downloadDatabaseSchema",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),a=t(77538),{ServerResponse:i}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let i=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let a={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(a.shell="bash.exe");let c=`${i} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${c}`),o(c,a),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){a({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,4194], () => (__webpack_exec__(711))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3535);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json index fc39904..2ba5a3f 100644 --- a/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/downloadDatabaseSchema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/4194.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportDatabase.js b/dsql-app/.local_dist/server/pages/api/exportDatabase.js index 1d76842..6592fbf 100644 --- a/dsql-app/.local_dist/server/pages/api/exportDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js @@ -1,129 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9470; -exports.ids = [9470]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 8507: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4194); -/* harmony import */ var _functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { dbName } = req.query; - /** - * Input Validation - * - * @description Input Validation - */ const file = await _functions_backend_exportDb__WEBPACK_IMPORTED_MODULE_0___default()({ - dbName: dbName?.toString() || "", - res: res, - user: user - }); -// res.json({ success: true, text: file }); -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=7402,e.ids=[7402],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},46897:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),o=t(2706),a=t(96762),i=t(17029),l=t.n(i),u=t(6420),c=t.n(u);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbName:s}=e.query;await l()({dbName:s?.toString()||"",res:r,user:t})}let d=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/exportDatabase",pathname:"/api/exportDatabase",bundlePath:"",filename:""},userland:s})},17029:(e,r,t)=>{let s=t(29021),n=t(21820),{execSync:o}=t(79646),a=t(77538),{ServerResponse:i}=t(81630);e.exports=async function({dbName:e,user:r,res:t}){let i=n.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{let a={cwd:process.cwd()},l=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/export.sql`;n.platform().match(/win/i)&&(a.shell="bash.exe");let u=`${i} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${e} > ${l}`;console.log(`exportDb.js exe => ${u}`),o(u,a),t.setHeader("Content-Type","application/zip"),t.setHeader("Content-Disposition","attachment; filename=export.sql"),s.createReadStream(l).pipe(t)}catch(e){a({component:"/functions/backend/exportDb/lines-30-46",message:e.message,user:r})}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let a=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,4194], () => (__webpack_exec__(8507))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=46897);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json index adb94aa..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/exportDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/4194.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportTableData.js b/dsql-app/.local_dist/server/pages/api/exportTableData.js index dd2fb88..fef6067 100644 --- a/dsql-app/.local_dist/server/pages/api/exportTableData.js +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js @@ -1,162 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3368; -exports.ids = [3368]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5856: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_importExportTableDataFn__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2630); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -const config = { - api: { - responseLimit: "1mb", - bodyParser: { - sizeLimit: "200mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { paradigm , dbName , tableName , payload } = req.body; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - const exportData = await (0,_functions_backend_importExportTableDataFn__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)({ - dbName, - paradigm, - payload, - tableName, - userId: user.id, - payloadType: "base64" - }); - if (!exportData) { - return res.json({ - success: false, - msg: "Operation Failed!" - }); - } - res.json({ - success: true, - msg: "Success!", - data: exportData?.tableData - }); - } catch (/** @type {any} */ error) { - res.json({ - success: false, - msg: error.message - }); - } -} +"use strict";(()=>{var e={};e.id=4727,e.ids=[4727],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},724:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>p,routeModule:()=>m});var a={};t.r(a),t.d(a,{config:()=>c,default:()=>d});var s=t(89947),i=t(2706),l=t(96762),n=t(6420),o=t.n(n),u=t(27444);let c={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function d(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await o()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:a,dbName:s,tableName:i,payload:l}=e.body;try{let e=await (0,u.A)({dbName:s,paradigm:a,payload:l,tableName:i,userId:t.id,payloadType:"base64"});if(!e)return r.json({success:!1,msg:"Operation Failed!"});r.json({success:!0,msg:"Success!",data:e?.tableData})}catch(e){r.json({success:!1,msg:e.message})}}let p=(0,l.M)(a,"default"),f=(0,l.M)(a,"config"),m=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/exportTableData",pathname:"/api/exportTableData",bundlePath:"",filename:""},userland:a})},27444:(e,r,t)=>{t.d(r,{A:()=>n});var a=t(47670),s=t.n(a);let i=t(77538),l=t(51348);async function n({paradigm:e,userId:r,dbName:t,tableName:a,payload:n,payloadType:o}){let u={};try{let i=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let c=await l(`SELECT * FROM \`${i}\`.\`${a}\``);u.tableData=c;break;case"import":let d="base64"==o?Buffer.from(n,"base64").toString():n,p="object"===o?n:JSON.parse(d);for(let e=0;e<p.length;e++){let r=p[e],t=await s()({data:r,dbFullName:i,tableName:a,dbContext:"Dsql User",paradigm:"Full Access",duplicateColumnName:"id",duplicateColumnValue:r?.id,update:!0});if(t.error)throw Error(t.error)}break;default:return null}return u}catch(e){return i({component:"/functions/backend/importExportTableDataFn",message:e.message}),null}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:i}){let l=new Date,n=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||i.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(s+=` +URL: ${i.url}`),i?.body&&(s+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),n&&(s+=` +IP: ${n}`),s+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,2630], () => (__webpack_exec__(5856))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72907),i=t(29021);async function l(e,r,t,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let n=s(e.cookies.datasquirelAuthKey);if(!n)return null;let o=JSON.parse(n);if(!o.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${u}/${o.csrf_k}`))return null;if(0==o.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=l},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(724));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json b/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json index 9d85bed..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/exportTableData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/2630.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js index 352e13c..e0cfa60 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js @@ -1,180 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8362; -exports.ids = [8362]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1118: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const checkUserRights = __webpack_require__(8999); -const grabDelegatedUserFromCookie = __webpack_require__(1352); -const serverError = __webpack_require__(2163); -const userAuth = __webpack_require__(6825); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} FetchEntriesBasicBody - * @property {string} tableName - * @property {string} dbSlug - * @property {number} dbId - * @property {boolean} [isTitle] - * @property {boolean} [isSlug] - * @property {boolean} [isFullName] - * @property {string} [defaultField] - */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await userAuth(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "User Auth Failed" - }); - } - /** - * User auth - * - * @description Authenticate user - */ /** @type {FetchEntriesBasicBody} */ const { tableName , dbSlug , dbId , isTitle , isSlug , isFullName , defaultField , } = req.body; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await grabDelegatedUserFromCookie({ - databaseSlug: dbSlug, - request: req, - user: user, - query: req.query - }); - const checkUserRightsBoolean = await checkUserRights({ - user: user, - confirmedDelegetedUser: delegatedUser, - database: dbSlug, - table: tableName, - dbId: dbId, - priviledgeRegex: /Update Entries/i - }); - if (!checkUserRightsBoolean) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const dbFullName = delegatedUser?.rootUserId ? `datasquirel_user_${delegatedUser.rootUserId}_${dbSlug}` : `datasquirel_user_${user.id}_${dbSlug}`; - const queryString = `SELECT id${isTitle ? ",title" : isSlug ? ",slug" : isFullName ? ",CONCAT(first_name, ' ', last_name) AS full_name" : defaultField ? "," + defaultField : ""} FROM ${tableName}`; - const entries = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: dbFullName, - queryString: queryString - }); - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ //////////////////////////////////////// - res.json({ - success: true, - entries - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - serverError({ - component: "/api/addTableEntry/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!", - err: error.message - }); - //////////////////////////////////////// - } -} +"use strict";(()=>{var e={};e.id=3319,e.ids=[3319],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},62229:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>S,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762),l=t(57638),i=t.n(l);let c=t(73677),u=t(39831),d=t(77538),p=t(6420);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p(e,r,!0);if(!t)return r.json({success:!1,msg:"User Auth Failed"});let{tableName:s,dbSlug:a,dbId:n,isTitle:o,isSlug:l,isFullName:_,defaultField:S}=e.body;try{let d=await u({databaseSlug:a,request:e,user:t,query:e.query});if(!await c({user:t,confirmedDelegetedUser:d,database:a,table:s,dbId:n,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let p=d?.rootUserId?`datasquirel_user_${d.rootUserId}_${a}`:`datasquirel_user_${t.id}_${a}`,m=`SELECT id${o?",title":l?",slug":_?",CONCAT(first_name, ' ', last_name) AS full_name":S?","+S:""} FROM ${s}`,f=await i()({database:p,queryString:m});r.json({success:!0,entries:f})}catch(e){d({component:"/api/addTableEntry/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let S=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/fetch-entries-basic",pathname:"/api/fetch-entries-basic",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(77538);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:l}){let i,c;try{r?.delegated?(i=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),c=i[0]?.priviledge?.match(o)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,l]),c=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!i&&!!i[0]&&!!c}},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=s(e.cookies[c]);if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311,1352,8999], () => (__webpack_exec__(1118))); -module.exports = __webpack_exports__; +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let i=JSON.parse(l);if(!i.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${c}/${i.csrf_k}`))return null;if(0==i.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],n=r?.fields[e];if(t?.match(a))continue;let i=o[t];("number"==typeof i||i)&&n?.encrypted&&i?.match(/./)&&(o[t]=s(i))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -})(); \ No newline at end of file + + + +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let i;let c=!!t?.match(/^datasquirel$/),u=c?n:o;try{i=e&&r&&Array.isArray(r)&&r[0]?c?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&l)try{let e=i;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62229);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json index 689eb25..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/fetch-entries-basic.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../chunks/1352.js","../../chunks/8999.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-media.js b/dsql-app/.local_dist/server/pages/api/fetch-media.js index 8439aac..34e849e 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-media.js +++ b/dsql-app/.local_dist/server/pages/api/fetch-media.js @@ -1,82 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1460; -exports.ids = [1460]; -exports.modules = { - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 184: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7147); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check - - -const config = { - api: { - responseLimit: "1mb", - bodyParser: { - sizeLimit: "200mb" - } - } -}; -/** - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - const mediaUrl = req.query.url; - const mediaPath = String(mediaUrl).replace(process.env.DSQL_STATIC_HOST || "", ""); - const mediaStoragePath = path__WEBPACK_IMPORTED_MODULE_1___default().join(process.env.DSQL_STATIC_SERVER_DIR || "", "/", mediaPath); - if (fs__WEBPACK_IMPORTED_MODULE_0___default().existsSync(mediaStoragePath)) { - console.log("mediaStoragePath", mediaStoragePath); - const readStream = fs__WEBPACK_IMPORTED_MODULE_0___default().createReadStream(mediaStoragePath); - readStream.pipe(res); - } else { - return res.json({ - success: false - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(184)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2310,e.ids=[2310],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},56750:(e,t,r)=>{r.r(t),r.d(t,{config:()=>l,default:()=>P,routeModule:()=>A});var n={};r.r(n),r.d(n,{config:()=>c,default:()=>f});var i=r(89947),o=r(2706),a=r(96762),s=r(29021),u=r.n(s),d=r(33873),p=r.n(d);let c={api:{responseLimit:"1mb",bodyParser:{sizeLimit:"200mb"}}};async function f(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let r=String(e.query.url).replace(process.env.DSQL_STATIC_HOST||"",""),n=p().join(process.env.DSQL_STATIC_SERVER_DIR||"","/",r);if(!u().existsSync(n))return t.json({success:!1});console.log("mediaStoragePath",n),u().createReadStream(n).pipe(t)}let P=(0,a.M)(n,"default"),l=(0,a.M)(n,"config"),A=new i.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/fetch-media",pathname:"/api/fetch-media",bundlePath:"",filename:""},userland:n})},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=56750);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json b/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json index b8438e2..c6872c3 100644 --- a/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/fetch-media.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../../package.json","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js index 4a4c820..6f5f085 100644 --- a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js @@ -1,209 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7072; -exports.ids = [7072]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7840: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8164); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=3040,e.ids=[3040],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},0:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>E,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(49827),l=t(77538),u=t.n(l),c=t(6420),d=t.n(c),f=t(27825),p=t.n(f),S=t(51348),_=t.n(S);t(29021),t(33873);let{execSync:m}=t(79646);async function g(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await d()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbUserId;e.query.delegated;try{if(!s)throw Error("No Root user Id Found!");let e=await _()("SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?",[String(t.id),String(s)]),n=(0,i.default)({userId:String(s)});if(!n)throw Error("Root user schema not found!");let a=[];e.forEach(e=>{let r=a.findIndex(r=>r.dbSlug===e.database),t=n.find(r=>r.dbSlug===e.database);if(t){let s=a[r]?a[r]:{...t,tables:[]},n=p().cloneDeep(t.tables).find(r=>r.tableName===e.table);n&&a[r]?a[r]={...s,tables:[...a[r].tables,n]}:n&&!a[r]&&a.push({...t,tables:[n]})}}),r.json({success:!0,payload:a})}catch(e){console.log("ERROR:",e.message),u()({component:"/api/get-authorized-databases",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let E=(0,o.M)(s,"default"),h=(0,o.M)(s,"config"),y=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/get-authorized-databases",pathname:"/api/get-authorized-databases",bundlePath:"",filename:""},userland:s})},49827:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});let s=t(77538),n=t(29021),a=t(33873);function o({userId:e}){try{let r=a.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(n.readFileSync(r,"utf-8"))}catch(e){return s({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} SyncTableBodySrcDstObject - * @property {string} db - * @property {string} table - */ /** - * @typedef {object} SyncTableBody - * @property {"Pull" | "Push"} paradigm - * @property {SyncTableBodySrcDstObject} src - * @property {SyncTableBodySrcDstObject} dst - * @property {any} [delegated] - */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const dbUserId = req.query.dbUserId; - const delegated = req.query.delegated; - /** - * Send Response - * - * @description Send a boolean response - */ try { - if (!dbUserId) { - throw new Error("No Root user Id Found!"); - } - /** @type {import("@/package-shared/types").MYSQL_delegated_user_tables_table_def[]} */ const delegatedTables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_4___default()(`SELECT * FROM datasquirel.delegated_user_tables WHERE delegated_user_id=? AND root_user_id=?`, [ - String(user.id), - String(dbUserId) - ]); - const rootUserDbSchema = (0,_functions_backend_grabUserSchemaData__WEBPACK_IMPORTED_MODULE_0__["default"])({ - userId: String(dbUserId) - }); - if (!rootUserDbSchema) { - throw new Error("Root user schema not found!"); - } - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const filteredDbSchema = []; - delegatedTables.forEach((tblObj)=>{ - const existingDbIndex = filteredDbSchema.findIndex((db)=>db.dbSlug === tblObj.database); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ const targetDb = rootUserDbSchema.find((db)=>db.dbSlug === tblObj.database); - if (targetDb) { - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType} */ const finalDb = filteredDbSchema[existingDbIndex] ? filteredDbSchema[existingDbIndex] : { - ...targetDb, - tables: [] - }; - const targetDbTbls = lodash__WEBPACK_IMPORTED_MODULE_3___default().cloneDeep(targetDb.tables); - const targetTable = targetDbTbls.find((tbl)=>tbl.tableName === tblObj.table); - if (targetTable && filteredDbSchema[existingDbIndex]) { - filteredDbSchema[existingDbIndex] = { - ...finalDb, - tables: [ - ...filteredDbSchema[existingDbIndex].tables, - targetTable, - ] - }; - } else if (targetTable && !filteredDbSchema[existingDbIndex]) { - filteredDbSchema.push({ - ...targetDb, - tables: [ - targetTable - ] - }); - } - } - }); - //////////////////////////////////////// - res.json({ - success: true, - payload: filteredDbSchema - }); - } catch (/** @type {any} */ error) { - console.log("ERROR:", error.message); - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/get-authorized-databases", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,8164], () => (__webpack_exec__(7840))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=0);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json index 30ab777..4f6979a 100644 --- a/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/get-authorized-databases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/8164.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js index e2a479e..3c57287 100644 --- a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js @@ -1,156 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2747; -exports.ids = [2747]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 3284: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=245,e.ids=[245],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},34029:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>_,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),i=t(96762),o=t(6420),l=t.n(o),u=t(77538),c=t.n(u),d=t(51348),f=t.n(d);async function p(e,r){if("GET"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.dbSlug,a=e.query.dbOwnerId,n=e.query.delegatedUserId;try{let e=await f()("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[a,s]);if(!e||!e[0])return r.json({success:!1,msg:"Database not found"});let t=await f()("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[a,e[0].id]),i=await f()("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[a,n]);r.json({success:!0,tables:t,accessed_tables:i})}catch(e){c()({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let _=(0,i.M)(s,"default"),S=(0,i.M)(s,"config"),E=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ // const { dbSlug, dbOwnerId, delegatedUserId } = req.query; - const dbSlug = req.query.dbSlug; - const dbOwnerId = req.query.dbOwnerId; - const delegatedUserId = req.query.delegatedUserId; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const targetDbData = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT id FROM user_databases WHERE user_id=? AND db_slug=?`, [ - dbOwnerId, - dbSlug - ]); - if (!targetDbData || !targetDbData[0]) return res.json({ - success: false, - msg: "Database not found" - }); - const tables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?`, [ - dbOwnerId, - targetDbData[0].id - ]); - const accessed_tables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`SELECT \`database\`,\`table\` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?`, [ - dbOwnerId, - delegatedUserId - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - tables: tables, - accessed_tables: accessed_tables - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/getDatabaseTables/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(3284))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function i(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34029);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json index 19bb3fc..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDatabaseTables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js index 4ec8c79..fa8030e 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js @@ -1,174 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1146; -exports.ids = [1146]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5989: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +"use strict";(()=>{var e={};e.id=8282,e.ids=[8282],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},94057:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var a=t(89947),n=t(2706),o=t(96762),i=t(51348),l=t.n(i),u=t(82703),c=t.n(u),d=t(77538),p=t.n(d),_=t(6420),f=t.n(_);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await f()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.rootUserId,a=e.body.priviledges,n=e.body.database;try{let e=await l()("SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)",[s,t.id,n]);if(!e||!e[0])throw Error(`user with id ${t.id} has no access to ${n} database belonging to user ${s}`);let o=(await l()("SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=?",[s,t.id,n])).map(e=>e.table),i=await l()("SELECT * FROM users WHERE id=?",[s]),u={rootUserId:s,rootUserName:`${i[0].first_name} ${i[0].last_name}`,rootUserEmail:i[0].email,rootUserImage:i[0].image_thumbnail,delegatedUserId:t.id,databaseFullName:`datasquirel_user_${s}_${n}`,databaseSlug:n,allowedTables:o,priviledges:a,dateCreated:Date.now()},d=c()(JSON.stringify(u)),p=`${process.env.DSQL_USER_DB_PREFIX}${u.rootUserId}_${n}`,_=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${p}`;r.setHeader("Set-Cookie",[`${_}=${d};path=/`]),r.json({success:!0,msg:"Processed Successfully"})}catch(e){return console.log("ERROR:",e.message),p()({component:"/api/getDelegatedDatabaseToken/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Unauthorized"})}}let m=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDelegatedDatabaseToken",pathname:"/api/getDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ // const { rootUserId, priviledges, database } = req.body; - const rootUserId = req.body.rootUserId; - const priviledges = req.body.priviledges; - const database = req.body.database; - /** - * Input Validation - * - * @description Input Validation - */ try { - const foundUserUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_users WHERE user_id=? AND invited_user_id=? AND MATCH(database_access) AGAINST(?)`, [ - rootUserId, - user.id, - database - ]); - if (!foundUserUser || !foundUserUser[0]) throw new Error(`user with id ${user.id} has no access to ${database} database belonging to user ${rootUserId}`); - const foundUserTables = (await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND \`database\`=?`, [ - rootUserId, - user.id, - database - ])).map((/** @type {any} */ tableObject)=>{ - return tableObject.table; - }); - const rootUserinfo = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM users WHERE id=?`, [ - rootUserId - ]); - const payload = { - rootUserId: rootUserId, - rootUserName: `${rootUserinfo[0].first_name} ${rootUserinfo[0].last_name}`, - rootUserEmail: rootUserinfo[0].email, - rootUserImage: rootUserinfo[0].image_thumbnail, - delegatedUserId: user.id, - databaseFullName: `datasquirel_user_${rootUserId}_${database}`, - databaseSlug: database, - allowedTables: foundUserTables, - priviledges: priviledges, - dateCreated: Date.now() - }; - const encryptedPayload = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1___default()(JSON.stringify(payload)); - const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${payload.rootUserId}_${database}`; - const tokenName = `${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${dbFullName}`; - res.setHeader("Set-Cookie", [ - `${tokenName}=${encryptedPayload};path=/`, - ]); - res.json({ - success: true, - msg: "Processed Successfully" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log("ERROR:", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/getDelegatedDatabaseToken/main-catch-error", - message: error.message, - user: user - }); - return res.json({ - success: false, - msg: "Unauthorized" - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:a}=t(55511),{Buffer:n}=t(79428),o=t(48225);e.exports=(e,r,t)=>{let i=a("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=i.update(e,"utf8","hex");return r+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,7547], () => (__webpack_exec__(5989))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=94057);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json index 35db970..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabaseToken.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/7547.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js index 0eb327e..c93e57a 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js @@ -1,144 +1,8 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4265; -exports.ids = [4265]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 3990: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const delegetedDbAccess = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(` - SELECT - user_users.user_id,user_users.database_access,user_users.user_id,user_users.user_priviledge,users.first_name,users.last_name,users.email,users.image_thumbnail - FROM - user_users JOIN users ON user_users.user_id=users.id - WHERE - user_users.invited_user_id='${user.id}' - `); - let databasesArray = []; - if (delegetedDbAccess && delegetedDbAccess[0]) { - for(let i = 0; i < delegetedDbAccess.length; i++){ - const deleDbAccessObject = delegetedDbAccess[i]; - const { database_access , user_id , user_priviledge } = deleDbAccessObject; - if (!database_access?.match(/./)) continue; - const delegetedDbs = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_databases WHERE (${database_access.split("|").map((/** @type {string} */ db)=>`db_slug='${db}'`).join(" OR ")}) AND user_id=${user_id}`); - for(let j = 0; j < delegetedDbs.length; j++){ - const delegetedDb = delegetedDbs[j]; - databasesArray.push({ - id: delegetedDb.id, - user_id: deleDbAccessObject.user_id, - first_name: deleDbAccessObject.first_name, - last_name: deleDbAccessObject.last_name, - email: deleDbAccessObject.email, - image_thumbnail: deleDbAccessObject.image_thumbnail, - db_name: delegetedDb.db_name, - db_slug: delegetedDb.db_slug, - db_full_name: delegetedDb.db_full_name, - db_image: delegetedDb.db_image, - db_description: delegetedDb.db_description, - date_created: delegetedDb.date_created, - user_priviledge: user_priviledge - }); - } - } - } - //////////////////////////////////////// - res.json({ - success: true, - databases: databasesArray - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(3990))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7258,e.ids=[7258],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,s)=>{Object.defineProperty(s,"M",{enumerable:!0,get:function(){return function e(s,r){return r in s?s[r]:"then"in s&&"function"==typeof s.then?s.then(s=>e(s,r)):"function"==typeof s&&"default"===r?s:void 0}}})},1199:(e,s,r)=>{r.r(s),r.d(s,{config:()=>f,default:()=>d,routeModule:()=>p});var t={};r.r(t),r.d(t,{default:()=>c});var a=r(89947),i=r(2706),n=r(96762),u=r(51348),l=r.n(u),o=r(6420),_=r.n(o);async function c(e,s){if("GET"!==e.method)return s.json({msg:"Failed!"});let r=await _()(e,s);if(!r)return s.json({success:!1,msg:"Unauthorized"});let t=await l()(` + SELECT + user_users.user_id,user_users.database_access,user_users.user_id,user_users.user_priviledge,users.first_name,users.last_name,users.email,users.image_thumbnail + FROM + user_users JOIN users ON user_users.user_id=users.id + WHERE + user_users.invited_user_id='${r.id}' + `),a=[];if(t&&t[0])for(let e=0;e<t.length;e++){let s=t[e],{database_access:r,user_id:i,user_priviledge:n}=s;if(!r?.match(/./))continue;let u=await l()(`SELECT * FROM user_databases WHERE (${r.split("|").map(e=>`db_slug='${e}'`).join(" OR ")}) AND user_id=${i}`);for(let e=0;e<u.length;e++){let r=u[e];a.push({id:r.id,user_id:s.user_id,first_name:s.first_name,last_name:s.last_name,email:s.email,image_thumbnail:s.image_thumbnail,db_name:r.db_name,db_slug:r.db_slug,db_full_name:r.db_full_name,db_image:r.db_image,db_description:r.db_description,date_created:r.date_created,user_priviledge:n})}}s.json({success:!0,databases:a})}let d=(0,n.M)(t,"default"),f=(0,n.M)(t,"config"),p=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getDelegatedDatabases",pathname:"/api/getDelegatedDatabases",bundlePath:"",filename:""},userland:t})},6420:(e,s,r)=>{r(81630);let t=r(51348),a=r(72907),i=r(29021);async function n(e,s,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let u=a(e.cookies.datasquirelAuthKey);if(!u)return null;let l=JSON.parse(u);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let o=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!o)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${o}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await t(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&s.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},72907:(e,s,r)=>{let{scryptSync:t,createDecipheriv:a}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let s=a("aes-192-cbc",t(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=s.update(e,"hex","utf8");return r+=s.final("utf8")}catch(e){return null}}},51348:(e,s,r)=>{let t=r(9973),a=r(21580),i=t({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function n(...e){try{let s=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(s))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,s,r)=>{let t=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let s=`${e}/ca-cert.pem`;if(!t.existsSync(s)){console.log(`${s} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,s)=>{var r;Object.defineProperty(s,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,s,r)=>{e.exports=r(75600)}};var s=require("../../webpack-api-runtime.js");s.C(e);var r=s(s.s=1199);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDelegatedDatabases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js index 8b8c339..94b6863 100644 --- a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js @@ -1,236 +1,22 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1659; -exports.ids = [1659]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7918: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=2139,e.ids=[2139],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},12155:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>g,routeModule:()=>h});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),i=t(2706),a=t(96762),o=t(51348),c=t.n(o),l=t(77538),u=t.n(l),d=t(6420),p=t.n(d);let m=t(29021),S=t(33873),{execSync:f}=t(79646);async function _(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{"production".match(/production/);let e=(await c()(` + SELECT table_schema, + SUM((data_length+index_length)/1024/1024) AS "mb" from + information_schema.tables + where table_schema like ? + group by table_schema + `,[`datasquirel_user_${t.id}%`])).reduce((e,r,t)=>e?.mb?e.mb+r.mb:e+r.mb,0),n=0,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");i||m.existsSync(i)||m.mkdirSync(i,{recursive:!0});let a=S.join(i,`images/user-images/user-${t.id}`);m.existsSync(a)||m.mkdirSync(a,{recursive:!0});let o=S.join(i,`images/user-images/user-${t.id}`),l=S.join(i,`videos/user-videos/user-${t.id}`);async function s(e){try{let r=m.readdirSync(e);for(let t=0;t<r.length;t++){let a=r[t],o=e+"/"+a;if(!a.match(/\..{3,4}$/)){await s(o);continue}if(m.existsSync(o)){let e=m.statSync(o);n+=e.size/1024/1024}else{if("production".match(/production/),!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let e=o.replace(i,process.env.DSQL_STATIC_HOST||""),r=o.replace(i,"");await c()("DELETE FROM user_media WHERE media_path = ? OR media_thumbnail_path = ? OR media_url=? OR media_thumbnail_url=?",[r,r,e,e]),console.log(`MEDIA => ${e} DELETED FROM DATABASE`)}}}catch(e){console.log("ERROR in getDiskUsage API route =>",e.message),u()({component:"/api/getDiskUsage/lines-93-101",message:e.message})}}m.existsSync(l)||m.mkdirSync(l,{recursive:!0}),await s(o),await s(l);let d=n+e;r.json({success:!0,total:d})}catch(e){u()({component:"/api/getDiskUsage/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Disk Usage Calculation Error!"})}}let g=(0,a.M)(s,"default"),E=(0,a.M)(s,"config"),h=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getDiskUsage",pathname:"/api/getDiskUsage",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(n+=` +URL: ${i.url}`),i?.body&&(n+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let c=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const isProduction = "production".match(/production/); - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const diskUsageDb = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(` - SELECT table_schema, - SUM((data_length+index_length)/1024/1024) AS "mb" from - information_schema.tables - where table_schema like ? - group by table_schema - `, [ - `datasquirel_user_${user.id}%` - ]); - const totalDbDiskUsageInMb = diskUsageDb.reduce((/** @type {any} */ prev, /** @type {any} */ current, /** @type {Number} */ currentIndex)=>{ - if (prev?.mb) { - return prev.mb + current.mb; - } else { - return prev + current.mb; - } - }, 0); - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ let totalFileUsageInMb = 0; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - if (!STATIC_ROOT && !fs.existsSync(STATIC_ROOT)) { - fs.mkdirSync(STATIC_ROOT, { - recursive: true - }); - } - const USER_STATIC_DIR = path.join(STATIC_ROOT, `images/user-images/user-${user.id}`); - if (!fs.existsSync(USER_STATIC_DIR)) { - fs.mkdirSync(USER_STATIC_DIR, { - recursive: true - }); - } - const userMediaFilePath = path.join(STATIC_ROOT, `images/user-images/user-${user.id}`); - const userVideosPath = path.join(STATIC_ROOT, `videos/user-videos/user-${user.id}`); - if (!fs.existsSync(userVideosPath)) { - fs.mkdirSync(userVideosPath, { - recursive: true - }); - } - async function readFolders(/** @type {String} */ path) { - try { - const userMediaFiles = fs.readdirSync(path); - for(let i = 0; i < userMediaFiles.length; i++){ - const file = userMediaFiles[i]; - const fileFullPath = path + "/" + file; - if (!file.match(/\..{3,4}$/)) { - await readFolders(fileFullPath); - continue; - } - if (fs.existsSync(fileFullPath)) { - const fileSize = fs.statSync(fileFullPath); - totalFileUsageInMb += fileSize.size / 1024 / 1024; - } else { - const isProduction = "production".match(/production/); - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const userMediaUrl = fileFullPath.replace(STATIC_ROOT, process.env.DSQL_STATIC_HOST || ""); - const userMediaPath = fileFullPath.replace(STATIC_ROOT, ""); - const deleteMedia = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM user_media WHERE media_path = ? OR media_thumbnail_path = ? OR media_url=? OR media_thumbnail_url=?`, [ - userMediaPath, - userMediaPath, - userMediaUrl, - userMediaUrl, - ]); - console.log(`MEDIA => ${userMediaUrl} DELETED FROM DATABASE`); - } - } - } catch (/** @type {any} */ error) { - console.log("ERROR in getDiskUsage API route =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/getDiskUsage/lines-93-101", - message: error.message - }); - } - } - await readFolders(userMediaFilePath); - await readFolders(userVideosPath); - const totalUsageInMb = totalFileUsageInMb + totalDbDiskUsageInMb; - res.json({ - success: true, - total: totalUsageInMb - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/getDiskUsage/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Disk Usage Calculation Error!" - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(7918))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${c}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),i=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let c=JSON.parse(o);if(!c.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${l}/${c.csrf_k}`))return null;if(0==c.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=12155);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json index 19bb3fc..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getDiskUsage.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js index 6fa7048..89306ee 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js @@ -1,130 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 399; -exports.ids = [399]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7500: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** # MODULE TRACE -====================================================================== - * No imports found for this Module -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const tables = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${user.id}' AND db_id='${req.query.dbId}'`); - //////////////////////////////////////// - res.json({ - success: true, - tables - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(7500))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2312,e.ids=[2312],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},34132:(e,t,r)=>{r.r(t),r.d(t,{config:()=>_,default:()=>p,routeModule:()=>S});var s={};r.r(s),r.d(s,{default:()=>f});var n=r(89947),a=r(2706),i=r(96762),o=r(51348),u=r.n(o),c=r(6420),l=r.n(c);r(29021),r(33873);let{execSync:d}=r(79646);async function f(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let r=await l()(e,t);if(!r)return t.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT id, table_name, table_slug FROM user_database_tables WHERE user_id='${r.id}' AND db_id='${e.query.dbId}'`);t.json({success:!0,tables:s})}let p=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getUserDatabaseTables",pathname:"/api/getUserDatabaseTables",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),a=r(29021);async function i(e,t,r,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=34132);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabaseTables.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js index 0842c3c..ff8e54c 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js @@ -1,130 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3167; -exports.ids = [3167]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4995: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** # MODULE TRACE -====================================================================== - * No imports found for this Module -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const databases = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${user.id}'`); - //////////////////////////////////////// - res.json({ - success: true, - databases - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(4995))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2,e.ids=[2],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},31829:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>d,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),a=t(2706),i=t(96762),o=t(51348),u=t.n(o),c=t(6420),l=t.n(c);t(29021),t(33873);let{execSync:f}=t(79646);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT id,db_name,db_slug,db_full_name FROM user_databases WHERE user_id='${t.id}'`);r.json({success:!0,databases:s})}let d=(0,i.M)(s,"default"),_=(0,i.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/getUserDatabases",pathname:"/api/getUserDatabases",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=31829);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserDatabases.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserMedia.js b/dsql-app/.local_dist/server/pages/api/getUserMedia.js index 2dc78db..546c2c3 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserMedia.js +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js @@ -1,108 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1086; -exports.ids = [1086]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 6692: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Fetch Media - * - * @description Fetch Media - */ const userMedia = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_media WHERE user_id=${user.id} ORDER BY id DESC`); - res.json({ - media: userMedia - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(6692))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7664,e.ids=[7664],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},77148:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>d,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),i=t(2706),a=t(96762),o=t(51348),u=t.n(o),c=t(6420),l=t.n(c);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await l()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=await u()(`SELECT * FROM user_media WHERE user_id=${t.id} ORDER BY id DESC`);r.json({media:s})}let d=(0,a.M)(s,"default"),p=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/getUserMedia",pathname:"/api/getUserMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),i=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=77148);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js index f39d157..61bb5b1 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js @@ -1,142 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9226; -exports.ids = [9226]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9274: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=2221,e.ids=[2221],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},58301:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>_});var s={};t.r(s),t.d(s,{default:()=>p});var a=t(89947),n=t(2706),o=t(96762);t(39831);var i=t(77538),l=t.n(i),u=t(6420),c=t.n(u);let d=t(29021);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`,s=JSON.parse(d.readFileSync(e,"utf8"));r.json({success:!0,schemaData:s})}catch(e){l()({component:"/api/getUserSchemaData/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Couldn't read schema data"})}}let f=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),_=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getUserSchemaData",pathname:"/api/getUserSchemaData",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=s(e.cookies[u]);if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ // const { delegated, dbSlug } = req.query; - // const delegatedUser = await grabDelegatedUserFromCookie({ - // request: req, - // user: user, - // databaseSlug: dbSlug, - // query: { delegated }, - // }); - // console.log("delegated =>", delegated); - // console.log(delegatedUser); - // const userId = delegatedUser?.rootUserId ? delegatedUser.rootUserId : user.id; - const userSchemaPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - const userSchemaArray = JSON.parse(fs.readFileSync(userSchemaPath, "utf8")); - res.json({ - success: true, - schemaData: userSchemaArray - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/getUserSchemaData/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Couldn't read schema data" - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,1352], () => (__webpack_exec__(9274))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=58301);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json index 63839ce..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/getUserSchemaData.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/1352.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/healthcheck.js b/dsql-app/.local_dist/server/pages/api/healthcheck.js index affc3fd..a748b75 100644 --- a/dsql-app/.local_dist/server/pages/api/healthcheck.js +++ b/dsql-app/.local_dist/server/pages/api/healthcheck.js @@ -1,50 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8428; -exports.ids = [8428]; -exports.modules = { - -/***/ 9551: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - res.json({ - success: true - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(9551)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9163,e.ids=[9163],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},94253:(e,t,n)=>{n.r(t),n.d(t,{config:()=>P,default:()=>d,routeModule:()=>s});var r={};n.r(r),n.d(r,{default:()=>o});var i=n(89947),u=n(2706),a=n(96762);async function o(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});t.json({success:!0})}let d=(0,a.M)(r,"default"),P=(0,a.M)(r,"config"),s=new i.PagesAPIRouteModule({definition:{kind:u.A.PAGES_API,page:"/api/healthcheck",pathname:"/api/healthcheck",bundlePath:"",filename:""},userland:r})},2706:(e,t)=>{var n;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(n||(n={}))},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var n=t(t.s=94253);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json b/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json index b8438e2..c6872c3 100644 --- a/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/healthcheck.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../../package.json","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabase.js b/dsql-app/.local_dist/server/pages/api/importDatabase.js index deaa8db..849acec 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js @@ -1,372 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2488; -exports.ids = [2488]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6345: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const varDatabaseDbHandler = __webpack_require__(1311); -const slugToCamelTitle = __webpack_require__(4885); -const { default: grabUserSchemaData } = __webpack_require__(8164); -const { default: setUserSchemaData } = __webpack_require__(7638); -const addDbEntry = __webpack_require__(5338); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Grab Schema - * - * @description Grab Schema - * - * @param {{ - * userId: number|string, - * database: import("@/package-shared/types").DSQL_MYSQL_user_databases_Type - * }} params - */ module.exports = async function createDbSchemaFromDb({ userId , database }) { - try { - if (!userId) { - console.log("No user Id provided"); - return; - } - /** - * Initialize - * - * @description Initialize - */ const userSchemaData = grabUserSchemaData({ - userId - }); - if (!userSchemaData) throw new Error("User schema data not found!"); - /** @type {{ tables: object[] }} */ const targetDb = userSchemaData.filter((dbObject)=>dbObject.dbFullName === database.db_full_name)[0]; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Add Tables - * - * @description Add Tables - */ const existingTables = await varDatabaseDbHandler({ - database: database.db_full_name, - queryString: `SHOW TABLES` - }); - if (!existingTables) throw new Error("No Existing Tables"); - for(let i = 0; i < existingTables.length; i++){ - const table = existingTables[i]; - const tableName = Object.values(table)[0]; - const tableInsert = await addDbEntry({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: userId, - db_id: database.id, - db_slug: database.db_slug, - table_name: slugToCamelTitle(tableName), - table_slug: tableName - } - }); - //////////////////////////////////////////////// - /** @type {import("@/package-shared/types").DSQL_TableSchemaType} */ const tableObject = { - tableName: tableName, - tableFullName: slugToCamelTitle(tableName) || "", - fields: [], - indexes: [] - }; - //////////////////////////////////////////////// - const tableColumns = await varDatabaseDbHandler({ - database: database.db_full_name, - queryString: `SHOW COLUMNS FROM ${tableName}` - }); - if (tableColumns) { - for(let k = 0; k < tableColumns.length; k++){ - const tableColumn = tableColumns[k]; - const { Field , Type , Null , Key , Default , Extra } = tableColumn; - /** @type {import("@/package-shared/types").DSQL_FieldSchemaType} */ const fieldObject = { - fieldName: Field, - dataType: Type.toUpperCase() - }; - if (Null?.match(/^no$/i)) fieldObject.notNullValue = true; - if (Key?.match(/^pri$/i)) fieldObject.primaryKey = true; - if (Default?.toString()?.match(/./)) fieldObject.defaultValue = Default; - if (Default?.toString()?.match(/timestamp/i)) { - delete fieldObject.defaultValue; - fieldObject.defaultValueLiteral = Default; - } - if (Extra?.toString()?.match(/auto_increment/i)) fieldObject.autoIncrement = true; - tableObject.fields.push(fieldObject); - } - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Add Indexes - * - * @description Add Indexes - */ const tableIndexes = await varDatabaseDbHandler({ - database: database.db_full_name, - queryString: `SHOW INDEXES FROM ${tableName}` - }); - if (tableIndexes) { - for(let m = 0; m < tableIndexes.length; m++){ - const indexObject = tableIndexes[m]; - const { Table , Key_name , Column_name , Null: Null1 , Index_type , Index_comment , } = indexObject; - //////////////////////////////////////////////// - if (!Index_comment?.match(/^schema_index$/)) continue; - //////////////////////////////////////////////// - /** @type {import("@/package-shared/types").DSQL_IndexSchemaType} */ const indexNewObject = { - indexType: Index_type?.match(/fulltext/i) ? "fullText" : "regular", - indexName: Key_name, - indexTableFields: [] - }; - const targetTableFieldObject = tableColumns?.filter((/** @type {any} */ col)=>col.Field === Column_name)[0]; - const existingIndexField = tableObject.indexes?.filter((indx)=>indx.indexName == Key_name); - if (existingIndexField && existingIndexField[0]) { - existingIndexField[0].indexTableFields?.push({ - value: Column_name, - dataType: targetTableFieldObject.Type.toUpperCase() - }); - } else { - //////////////////////////////////////////////// - indexNewObject.indexTableFields = [ - { - value: Column_name, - dataType: targetTableFieldObject.Type.toUpperCase() - }, - ]; - tableObject.indexes?.push(indexNewObject); - } - } - } - //////////////////////////////////////////////// - targetDb.tables.push(tableObject); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Update User Specific Database - * - * @description Update User Specific Database - */ setUserSchemaData({ - schemaData: userSchemaData, - userId - }); - return true; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (error) { - console.log(error); - return false; - } -}; - - -/***/ }), - -/***/ 2369: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_createDbSchemaFromDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6345); -/* harmony import */ var _functions_backend_createDbSchemaFromDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_createDbSchemaFromDb__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const os = __webpack_require__(2037); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=8675,e.ids=[8675],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},75588:(e,t,r)=>{r.r(t),r.d(t,{config:()=>g,default:()=>S,routeModule:()=>b});var a={};r.r(a),r.d(a,{default:()=>h});var s=r(89947),l=r(2706),n=r(96762),i=r(72350),o=r.n(i),u=r(77538),c=r.n(u),d=r(6420),p=r.n(d);let m=r(29021),f=r(21820),{execSync:_}=r(79646);async function h(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await p()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{database:a,fileBase64:s}=e.body;a?.db_full_name?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});try{let e=`user-${r.id}-temp-sql`,l=f.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql";m.writeFileSync(`./.tmp/${e}.sql`,s,"base64");let n={cwd:process.cwd()};f.platform().match(/win/i)&&(n.shell="bash.exe"),_(`${l} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${a.db_full_name} < .tmp/${e}.sql`,n);let i=await o()({database:a,userId:r.id});t.json({success:!!i})}catch(e){console.log(e),c()({component:"/api/importDatabase/catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Import Failed!"})}}let S=(0,n.M)(a,"default"),g=(0,n.M)(a,"config"),b=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/importDatabase",pathname:"/api/importDatabase",bundlePath:"",filename:""},userland:a})},72350:(e,t,r)=>{let a=r(57638),s=r(41709),{default:l}=r(49827),{default:n}=r(19857),i=r(47670);e.exports=async function({userId:e,database:t}){try{if(!e){console.log("No user Id provided");return}let r=l({userId:e});if(!r)throw Error("User schema data not found!");let o=r.filter(e=>e.dbFullName===t.db_full_name)[0],u=await a({database:t.db_full_name,queryString:"SHOW TABLES"});if(!u)throw Error("No Existing Tables");for(let r=0;r<u.length;r++){let l=u[r],n=Object.values(l)[0];await i({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:t.id,db_slug:t.db_slug,table_name:s(n),table_slug:n}});let c={tableName:n,tableFullName:s(n)||"",fields:[],indexes:[]},d=await a({database:t.db_full_name,queryString:`SHOW COLUMNS FROM ${n}`});if(d)for(let e=0;e<d.length;e++){let{Field:t,Type:r,Null:a,Key:s,Default:l,Extra:n}=d[e],i={fieldName:t,dataType:r.toUpperCase()};a?.match(/^no$/i)&&(i.notNullValue=!0),s?.match(/^pri$/i)&&(i.primaryKey=!0),l?.toString()?.match(/./)&&(i.defaultValue=l),l?.toString()?.match(/timestamp/i)&&(delete i.defaultValue,i.defaultValueLiteral=l),n?.toString()?.match(/auto_increment/i)&&(i.autoIncrement=!0),c.fields.push(i)}let p=await a({database:t.db_full_name,queryString:`SHOW INDEXES FROM ${n}`});if(p)for(let e=0;e<p.length;e++){let{Table:t,Key_name:r,Column_name:a,Null:s,Index_type:l,Index_comment:n}=p[e];if(!n?.match(/^schema_index$/))continue;let i={indexType:l?.match(/fulltext/i)?"fullText":"regular",indexName:r,indexTableFields:[]},o=d?.filter(e=>e.Field===a)[0],u=c.indexes?.filter(e=>e.indexName==r);u&&u[0]?u[0].indexTableFields?.push({value:a,dataType:o.Type.toUpperCase()}):(i.indexTableFields=[{value:a,dataType:o.Type.toUpperCase()}],c.indexes?.push(i))}o.tables.push(c)}return n({schemaData:r,userId:e}),!0}catch(e){return console.log(e),!1}}},49827:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(77538),s=r(29021),l=r(33873);function n({userId:e}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(t,"utf-8"))}catch(e){return a({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},77538:(e,t,r)=>{let a=r(29021),{IncomingMessage:s}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:s,req:l}){let n=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],t=l.headers["x-real-ip"],r=l.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=r||a||t||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${n.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { database , fileBase64 } = sanitizedReqBody; - if (!database?.db_full_name?.match(/datasquirel_user_.*/)) { - res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const sqlName = `user-${user.id}-temp-sql`; - const mysqlPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe" + "'" : "mysql"; - fs.writeFileSync(`./.tmp/${sqlName}.sql`, fileBase64, "base64"); - /** @type {import("child_process").ExecOptions} */ let execSyncOptions = { - cwd: process.cwd() - }; - if (os.platform().match(/win/i)) execSyncOptions.shell = "bash.exe"; - const importToNewDb = execSync(`${mysqlPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${database.db_full_name} < .tmp/${sqlName}.sql`, execSyncOptions); - const updateSchema = await _functions_backend_createDbSchemaFromDb__WEBPACK_IMPORTED_MODULE_0___default()({ - database: database, - userId: user.id - }); - res.json({ - success: updateSchema ? true : false - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log(error); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/importDatabase/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Import Failed!" - }); - //////////////////////////////////////// - } -} - -/***/ }), - -/***/ 4885: -/***/ ((module) => { - -// @ts-check - -module.exports = function slugToCamelTitle(/** @type {String} */ text) { - if (text) { - let addArray = text.split("-").filter((item)=>item !== ""); - let camelArray = addArray.map((item)=>{ - return item.substr(0, 1).toUpperCase() + item.substr(1).toLowerCase(); - }); - let parsedAddress = camelArray.join(" "); - return parsedAddress; - } else { - return null; - } -}; - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,8326,1311,8164,7638], () => (__webpack_exec__(2369))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19857:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});let a=r(77538),s=r(29021),l=r(33873);function n({userId:e,schemaData:t}){try{let r=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return s.writeFileSync(r,JSON.stringify(t),"utf8"),!0}catch(e){return a({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},6420:(e,t,r)=>{r(81630);let a=r(51348),s=r(72907),l=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=s(e.cookies.datasquirelAuthKey);if(!i)return null;let o=JSON.parse(i);if(!o.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!l.existsSync(`${u}/${o.csrf_k}`))return null;if(0==o.verification_status&&!r){let e=await a(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=n},72907:(e,t,r)=>{let{scryptSync:a,createDecipheriv:s}=r(55511),{Buffer:l}=r(79428);e.exports=e=>{let t=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,t,r)=>{let a=r(72907),s=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let l=0;l<e.length;l++){let n=e[l],i=Object.keys(n);for(let e=0;e<i.length;e++){let r=i[e],l=t?.fields[e];if(r?.match(s))continue;let o=n[r];("number"==typeof o||o)&&l?.encrypted&&o?.match(/./)&&(n[r]=a(o))}r.push(n)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},57638:(e,t,r)=>{r(29021);let a=r(6061),s=r(48225),l=r(51348),n=r(21339);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i}){let o;let u=!!r?.match(/^datasquirel$/),c=u?l:n;try{o=e&&t&&Array.isArray(t)&&t[0]?u?await c(e,t):await c({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):u?await c(e):await c({paradigm:"Full Access",database:r,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&i)try{let e=o;return await a({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},41709:e=>{e.exports=function(e){return e?e.split("-").filter(e=>""!==e).map(e=>e.substr(0,1).toUpperCase()+e.substr(1).toLowerCase()).join(" "):null}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4050],()=>r(75588));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json index 65d7616..57ce120 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/importDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/8326.js","../../chunks/1311.js","../../chunks/8164.js","../../chunks/7638.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js index bca329e..7e5ca25 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js @@ -1,178 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2289; -exports.ids = [2289]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6779: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const os = __webpack_require__(2037); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=3382,e.ids=[3382],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},56807:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(77538),l=t.n(i),u=t(6420),c=t.n(u);let d=t(29021),f=t(33873);t(21820);let{execSync:p}=t(79646);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await c()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,fileBase64:n}=e.body;s?.db_full_name?.match(/datasquirel_user_.*/)||r.json({success:!1,msg:"Unauthorized"});try{let e=Buffer.from(n,"base64").toString("utf-8"),a=JSON.parse(e),o=f.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${t.id}/main.json`);if(!d.existsSync(o))return r.end();let i=JSON.parse(d.readFileSync(o,"utf-8")),l=i.find(e=>e.dbFullName==s.db_full_name);if(!l)throw Error("Database not found!");l.tables=a.tables,d.writeFileSync(o,JSON.stringify(i),"utf-8");let u=f.join(process.cwd(),"/shell");p(`node createDbFromSchema.js --user ${t.id} --database ${s.db_full_name}`,{cwd:u}),r.json({success:!0})}catch(e){console.log("JSON import ERROR =>",e.message),l()({component:"/api/importDatabase/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Import Failed!"})}}let m=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/importDatabaseSchema",pathname:"/api/importDatabaseSchema",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - /** @type { {database:import("@/package-shared/types").DSQL_MYSQL_user_databases_Type, fileBase64: string} } */ const { database , fileBase64 } = sanitizedReqBody; - if (!database?.db_full_name?.match(/datasquirel_user_.*/)) { - res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const dbSchemaJSON = Buffer.from(fileBase64, "base64").toString("utf-8"); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType} */ const dbSchema = JSON.parse(dbSchemaJSON); - const schemaPath = path.resolve(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${user.id}/main.json`); - if (!fs.existsSync(schemaPath)) { - return res.end(); - } - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const schemaData = JSON.parse(fs.readFileSync(schemaPath, "utf-8")); - const targetSchema = schemaData.find((schema)=>schema.dbFullName == database.db_full_name); - if (!targetSchema) throw new Error("Database not found!"); - targetSchema.tables = dbSchema.tables; - fs.writeFileSync(schemaPath, JSON.stringify(schemaData), "utf-8"); - const shellUpdatePath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${user.id} --database ${database.db_full_name}`, { - cwd: shellUpdatePath - }); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("JSON import ERROR =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/importDatabase/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Import Failed!" - }); - //////////////////////////////////////// - } -} -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(6779))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=56807);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json index 289c32e..caf914c 100644 --- a/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/importDatabaseSchema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js index 4a50646..177201f 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js @@ -1,195 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5450; -exports.ids = [5450]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1090: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=8932,e.ids=[8932],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},22790:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>f});var a=t(89947),n=t(2706),o=t(96762),l=t(6420),i=t.n(l),c=t(77538),u=t.n(c);t(27825);var d=t(39831),p=t.n(d),S=t(57638),_=t.n(S);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await i()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body;try{let a=await p()({databaseSlug:s.dbName,request:e,user:t,query:e.query}),n=a?a?.rootUserId?a.rootUserId:a.dbUserId:null;if(!n)throw Error("User not Found!");let o=`datasquirel_user_${n}_${s.dbName}`,l=s.tableName,i=s.page,c=20*i,u=`SELECT * FROM ${l}`,d=[];s.search&&s.searchField&&(u+=` WHERE LOWER(\`${s.searchField.toLowerCase().replace(/ /g,"_")}\`) LIKE ?`,d.push(`%${s.search.toLowerCase()}%`)),u+=` ORDER BY id DESC LIMIT 20 OFFSET ${c}`;let S=await _()({database:o,queryString:u,queryValuesArray:d,tableSchema:s.tableSchema}),f={success:!0,data:S,page:Number(i)+1};r.json(f)}catch(e){u()({component:"/api/infiniteScroll/catch-error",message:e.message,user:t}),r.json({success:!1,data:null})}}t(29021);let m=(0,o.M)(s,"default"),E=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/infiniteScroll",pathname:"/api/infiniteScroll",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,c=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[c])throw Error("Cookie not present");let t=s(e.cookies[c]);if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} InfiniteScrollBodyObject - * @property {string} dbName - * @property {import("@/package-shared/types").DSQL_TableSchemaType} tableSchema - * @property {string} tableName - * @property {number} page - * @property {boolean} delegated - * @property {string} [search] - * @property {string} [searchField] - */ /** - * @typedef {object} InfiniteScrollAPIRes - * @property {boolean} success - * @property {any[] | null} [data] - * @property {number} [page] - */ const BATCH_NO = 20; -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** @type {InfiniteScrollBodyObject} */ const body = req.body; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const delegatedUser = await _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_3___default()({ - databaseSlug: body.dbName, - request: req, - user: user, - query: req.query - }); - const finalUserId = delegatedUser ? delegatedUser?.rootUserId ? delegatedUser.rootUserId : delegatedUser.dbUserId : null; - if (!finalUserId) throw new Error("User not Found!"); - const dbNameFull = `datasquirel_user_${finalUserId}_${body.dbName}`; - const tableName = body.tableName; - const page = body.page; - const offset = BATCH_NO * page; - let query = `SELECT * FROM ${tableName}`; - let queryValues = []; - if (body.search && body.searchField) { - query += ` WHERE LOWER(\`${body.searchField.toLowerCase().replace(/ /g, "_")}\`) LIKE ?`; - queryValues.push(`%${body.search.toLowerCase()}%`); - } - query += ` ORDER BY id DESC LIMIT ${BATCH_NO} OFFSET ${offset}`; - const tableEntries = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_4___default()({ - database: dbNameFull, - queryString: query, - queryValuesArray: queryValues, - tableSchema: body.tableSchema - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** @type {InfiniteScrollAPIRes} */ const resObject = { - success: true, - data: tableEntries, - page: Number(page) + 1 - }; - res.json(resObject); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/infiniteScroll/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - data: null - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let i=JSON.parse(l);if(!i.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${c}/${i.csrf_k}`))return null;if(0==i.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],n=r?.fields[e];if(t?.match(a))continue;let i=o[t];("number"==typeof i||i)&&n?.encrypted&&i?.match(/./)&&(o[t]=s(i))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311,1352], () => (__webpack_exec__(1090))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let i;let c=!!t?.match(/^datasquirel$/),u=c?n:o;try{i=e&&r&&Array.isArray(r)&&r[0]?c?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&l)try{let e=i;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=22790);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json index 711cb6e..a31c801 100644 --- a/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/infiniteScroll.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../chunks/1352.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/loginUser.js b/dsql-app/.local_dist/server/pages/api/loginUser.js index e2b6298..28b3ca1 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js @@ -1,310 +1,19 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6134; -exports.ids = [6134]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9842: -/***/ ((module) => { - -// @ts-check -/** - * Delay async function - * - * @param {number} [milliseconds] - * - * @returns {Promise<boolean>} new user auth object payload - */ -module.exports = async function delay(milliseconds) { - await new Promise((resolve, reject)=>{ - setTimeout(()=>{ - resolve(true); - }, milliseconds || 1000); - }); - return true; -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// +"use strict";(()=>{var e={};e.id=3303,e.ids=[3303],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},95122:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>v,routeModule:()=>w});var s={};t.r(s),t.d(s,{default:()=>L});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),l=t.n(o),u=t(98968),d=t.n(u),m=t(77538),_=t.n(m),c=t(79531),p=t.n(c),g=t(91766),f=t.n(g),h=t(43499),S=t.n(h);let E=t(29021),y=t(82703);async function L(e,r){if("POST"===e.method){let t=e.body,s=t.email,i=t.password,a=t.query;if(s.match(/ /))return r.json({user:null,msg:"Invalid Email"});try{let t=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!t)throw Error("loginUser error: process.env.DSQL_USER_LOGIN_KEYS_PATH not present");E.existsSync(t)||E.mkdirSync(t,{recursive:!0});let n=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,o=process.env.DSQL_HOST||"https://datasquirel.com",u=S()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:i});if(i?.match(/ /)||s?.match(/ /))return r.json({msg:"Failed!",user:null});let m=await l()("SELECT * FROM users WHERE email=? OR username=?",[s,s]);if(!m||!m[0])return r.json({msg:"No user found",user:null});let _=!1;if(m&&m[0]&&(_=u===m[0].password),!_)return await f()(),p()({to:process.env.DSQL_CONTACT_EMAIL,subject:`Failed Login from ${s}`,html:`<h1><u>${s}</u> tried to login with a wrong password</h1><p><b>${s}</b> attempted a login on ${o} from ${n} with a wrong password.</p>`}),r.json({msg:"Wrong Password, Wrong Social Media Credentials",user:null});let c=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),g={id:m[0].id,stripe_id:m[0].stripe_id||"",first_name:m[0].first_name,last_name:m[0].last_name,username:m[0].username,email:m[0].email,social_id:m[0].social_id,image:m[0].image,image_thumbnail:m[0].image_thumbnail,verification_status:m[0].verification_status,social_login:m[0].social_login,social_platform:m[0].social_platform,csrf_k:c,logged_in_status:!0,date:Date.now()},h=y(JSON.stringify(g));r.setHeader("Set-Cookie",[`datasquirelAuthKey=${h};samesite=strict;path=/;HttpOnly=true;Secure=true`,`csrf=${c};samesite=strict;path=/;HttpOnly=true`]),E.appendFile("./.tmp/userLoginLogs.log",`${m[0].first_name} ${m[0].last_name} Logged in from ${m[0].social_login?m[0].social_platform:"Regular Email Login"} at ${Date()} -/***/ }), - -/***/ 4150: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(613); -/* harmony import */ var _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_delay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(9842); -/* harmony import */ var _functions_backend_delay__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_delay__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +`,"utf8",e=>{e&&console.log("Loging log write error")}),E.writeFileSync(`${t}/${c}`,JSON.stringify(g)),a?.invite&&d()({query:a,user:{...g,phone:m[0].phone}}),await f()(),p()({to:process.env.DSQL_CONTACT_EMAIL,subject:`${s} Logged in successfully`,html:`<h1><u>${s}</u> successfully logged in</h1><p><b>${s}</b> successfully logged in on ${o} from ${n} on ${Date().substring(0,16)}.</p>`}),r.json({msg:"User Found",user:{auth:!0,userid:m[0].id,csrf_k:c,stripe_id:m[0].stripe_id||""},userPayload:g})}catch(e){console.log("Login Error =>",e.message),_()({component:"/api/loginUser/main-catch-error",message:e.message,user:{email:s}})}}else r.json({msg:"Oops ..."})}let v=(0,n.M)(s,"default"),A=(0,n.M)(s,"config"),w=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/loginUser",pathname:"/api/loginUser",bundlePath:"",filename:""},userland:s})},98968:(e,r,t)=>{t(29021),t(28187);let s=t(77538),i=t(51348),a=t(47670);e.exports=async function({query:e,user:r}){try{let{invite:t,database_access:s,priviledge:n,email:o}=e,l=await i("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,o]);if(!l||!l[0])throw Error("No Invitation Found");let u=await i("SELECT first_name,last_name,email FROM users WHERE id=?",[t]);if(u?.[0]){let e=await i("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[t,r.id,o]);if(e?.[0])console.log("User already added");else{a({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t,invited_user_id:r.id,database_access:s,first_name:r.first_name,last_name:r.last_name,phone:r.phone,email:r.email,username:r.username,user_type:"admin",user_priviledge:n,image:r.image,image_thumbnail:r.image_thumbnail}});let e=await i("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t,o]);if(await i("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t,r.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e<s.length;e++){let[i,o]=s[e].split("-");await a({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:r.id,root_user_id:t,database:i,table:o,priviledge:n}})}}}await i("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t,o])}}catch(e){s({component:"addAdminUserOnLogin",message:e.message,user:r})}}},91766:e=>{e.exports=async function(e){return await new Promise((r,t)=>{setTimeout(()=>{r(!0)},e||1e3)}),!0}},79531:(e,r,t)=>{let s=t(29021),i=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:a,alias:n}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let u=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,n&&(s["replyTo "]=l),s.to=e,s.subject=r,s.text=t,s.html=u,o=await i.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||s||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(i+=` +URL: ${a.url}`),a?.body&&(i+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${n.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` - - -const encrypt = __webpack_require__(7547); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - if (req.method === "POST") { - /** ********************* Get Page Data */ const sanitizedReqBody = req.body; - // let { email, password, query } = reqBody; - let email = sanitizedReqBody.email; - let password = sanitizedReqBody.password; - let query = sanitizedReqBody.query; - if (email.match(/ /)) return res.json({ - user: null, - msg: "Invalid Email" - }); - try { - const allowedAuthKeysPath = process.env.DSQL_USER_LOGIN_KEYS_PATH; - if (!allowedAuthKeysPath) throw new Error("loginUser error: process.env.DSQL_USER_LOGIN_KEYS_PATH not present"); - if (!fs.existsSync(allowedAuthKeysPath)) { - fs.mkdirSync(allowedAuthKeysPath, { - recursive: true - }); - } - const ip = req.headers["x-real-ip"] || req.headers["x-forwarded-for"] || req.connection.remoteAddress; - const site = process.env.DSQL_HOST || "https://datasquirel.com"; - let hashedPassword = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_5___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: password - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (password?.match(/ /) || email?.match(/ /)) { - return res.json({ - msg: "Failed!", - user: null - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - let foundUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM users WHERE email=? OR username=?`, [ - email, - email - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (!foundUser || !foundUser[0]) { - return res.json({ - msg: "No user found", - user: null - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - let isPasswordCorrect = false; - if (foundUser && foundUser[0]) isPasswordCorrect = hashedPassword === foundUser[0].password; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (!isPasswordCorrect) { - await _functions_backend_delay__WEBPACK_IMPORTED_MODULE_4___default()(); - if (true) { - _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3___default()({ - to: process.env.DSQL_CONTACT_EMAIL, - subject: `Failed Login from ${email}`, - html: `<h1><u>${email}</u> tried to login with a wrong password</h1><p><b>${email}</b> attempted a login on ${site} from ${ip} with a wrong password.</p>` - }); - } - return res.json({ - msg: "Wrong Password, Wrong Social Media Credentials", - user: null - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2); - let userPayload = { - id: foundUser[0].id, - stripe_id: foundUser[0].stripe_id || "", - first_name: foundUser[0].first_name, - last_name: foundUser[0].last_name, - username: foundUser[0].username, - email: foundUser[0].email, - social_id: foundUser[0].social_id, - image: foundUser[0].image, - image_thumbnail: foundUser[0].image_thumbnail, - verification_status: foundUser[0].verification_status, - social_login: foundUser[0].social_login, - social_platform: foundUser[0].social_platform, - csrf_k: csrfKey, - logged_in_status: true, - date: Date.now() - }; - let encryptedPayload = encrypt(JSON.stringify(userPayload)); - res.setHeader("Set-Cookie", [ - `datasquirelAuthKey=${encryptedPayload};samesite=strict;path=/;HttpOnly=true;Secure=true`, - `csrf=${csrfKey};samesite=strict;path=/;HttpOnly=true`, - ]); - fs.appendFile("./.tmp/userLoginLogs.log", `${foundUser[0].first_name} ${foundUser[0].last_name} Logged in from ${foundUser[0].social_login ? foundUser[0].social_platform : "Regular Email Login"} at ${Date()} \n\n\n`, "utf8", (err)=>{ - if (err) console.log(`Loging log write error`); - }); - fs.writeFileSync(`${allowedAuthKeysPath}/${csrfKey}`, JSON.stringify(userPayload)); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (query?.invite) { - _functions_backend_addAdminUserOnLogin__WEBPACK_IMPORTED_MODULE_1___default()({ - query: query, - user: { - ...userPayload, - phone: foundUser[0].phone - } - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - await _functions_backend_delay__WEBPACK_IMPORTED_MODULE_4___default()(); - if (true) { - _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3___default()({ - to: process.env.DSQL_CONTACT_EMAIL, - subject: `${email} Logged in successfully`, - html: `<h1><u>${email}</u> successfully logged in</h1><p><b>${email}</b> successfully logged in on ${site} from ${ip} on ${Date().substring(0, 16)}.</p>` - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** ********************* Send Response */ res.json({ - msg: "User Found", - user: { - auth: true, - userid: foundUser[0].id, - csrf_k: csrfKey, - stripe_id: foundUser[0].stripe_id || "" - }, - userPayload - }); - } catch (/** @type {any} */ error) { - console.log("Login Error =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/loginUser/main-catch-error", - message: error.message, - user: { - email: email - } - }); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } else { - res.json({ - msg: "Oops ..." - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,6926,613], () => (__webpack_exec__(4150))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050],()=>t(95122));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json index aca95ae..2d9dd4e 100644 --- a/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/loginUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/6926.js","../../chunks/613.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/datasquirel/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/datasquirel/utils/get.js","../../../../node_modules/datasquirel/utils/post.js","../../../../node_modules/datasquirel/utils/get-schema.js","../../../../node_modules/datasquirel/utils/upload-image.js","../../../../node_modules/datasquirel/utils/upload-file.js","../../../../node_modules/datasquirel/utils/delete-file.js","../../../../node_modules/datasquirel/users/add-user.js","../../../../node_modules/datasquirel/users/update-user.js","../../../../node_modules/datasquirel/users/login-user.js","../../../../node_modules/datasquirel/users/send-email-code.js","../../../../node_modules/datasquirel/users/reauth-user.js","../../../../node_modules/datasquirel/users/user-auth.js","../../../../node_modules/datasquirel/users/logout-user.js","../../../../node_modules/datasquirel/users/get-token.js","../../../../node_modules/datasquirel/users/get-user.js","../../../../node_modules/datasquirel/users/validate-token.js","../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../node_modules/mysql/index.js","../../../../node_modules/datasquirel/functions/decrypt.js","../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/datasquirel/functions/encrypt.js","../../../../node_modules/mysql/package.json","../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../node_modules/datasquirel/engine/query/post.js","../../../../node_modules/datasquirel/engine/query/get.js","../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/logoutUser.js b/dsql-app/.local_dist/server/pages/api/logoutUser.js index 289fe90..7e7998a 100644 --- a/dsql-app/.local_dist/server/pages/api/logoutUser.js +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js @@ -1,97 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3204; -exports.ids = [3204]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 6807: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** - * - * Imports - * ------------------------------------------------------------------------------ - */ /** ********************* Node Core Imports */ const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** ********************* Functions and Other API Imports */ //////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** - * API handler - * ------------------------------------------------------------------------------ - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - if (req.method === "GET") { - res.setHeader("Set-Cookie", [ - `datasquirelAuthKey=null;samesite=strict;path=/;HttpOnly=true;Secure:true`, - ]); - res.json({ - msg: "Logged Out" - }); - } else { - return res.json({ - msg: "Logout Error" - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(6807))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=528,e.ids=[528],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},22380:(e,t,r)=>{r.r(t),r.d(t,{config:()=>c,default:()=>a,routeModule:()=>l});var s={};r.r(s),r.d(s,{default:()=>i});var n=r(89947),o=r(2706),u=r(96762);async function i(e,t){if("GET"!==e.method)return t.json({msg:"Logout Error"});t.setHeader("Set-Cookie",["datasquirelAuthKey=null;samesite=strict;path=/;HttpOnly=true;Secure:true"]),t.json({msg:"Logged Out"})}r(6420),r(29021);let a=(0,u.M)(s,"default"),c=(0,u.M)(s,"config"),l=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/logoutUser",pathname:"/api/logoutUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),o=r(29021);async function u(e,t,r,u){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let a=JSON.parse(i);if(!a.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${a.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${c}/${a.csrf_k}`))return null;if(0==a.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${a.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return a?.date&&Date.now()-a.date>6048e5?null:a}e.exports=u},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function u(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=u},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=22380);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/logoutUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js index 47c8e97..f4a4ae3 100644 --- a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js @@ -1,263 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8373; -exports.ids = [8373]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9643: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check - - - -/** - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const datasquirel = __webpack_require__(9538); -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * addPrivateMedia API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - Next API handler - */ async function handler(req, res) { - /** - * Check method - * ========================================= - * @description Check if the request method is correct - */ if (req.method !== "POST") { - return res.json({ - success: false, - msg: "Failed!" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User auth - * ========================================= - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Grab request data - * ========================================= - * @description Grab data from the request - * @type {any} - */ const requestBody = datasquirel.sanitizeSql(req.body, null); - if (requestBody.media_url?.match(/\.\./) || requestBody.folder?.match(/\.\./) || requestBody.id?.toString()?.match(/\.\./)) { - return res.json({ - success: false, - msg: "Error!", - error: "Invalid url" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Send Response - * ========================================= - * @description Send a response to the client - */ try { - /** - * Handle request logic here - */ const isPrivate = requestBody?.private == 1 ? true : false; - const mediaMatchedPath = isPrivate ? requestBody?.media_path?.replace(/\@\/media/i, "") || requestBody?.media_url.replace(/\@\/media/i, "") : requestBody?.media_path?.match(/\/user-images\/user-.*/) || requestBody?.media_url?.match(/\/user-images\/user-.*/); - /** @type {string} */ const folder = requestBody.folder ? `/${requestBody.folder}` : ""; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const publicRootPath = path__WEBPACK_IMPORTED_MODULE_2___default().join(STATIC_ROOT, `images`); - const publicUrlPathRoot = `${process.env.DSQL_STATIC_HOST}/images/user-images/user-${user.id}`; - const publicRelativePathRoot = `/images/user-images/user-${user.id}`; - const mediaRelPathRoot = isPrivate ? `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media` : publicRootPath; - const mediaRelPath = mediaRelPathRoot + mediaMatchedPath; - const destinationPath = isPrivate ? `${publicRootPath}/user-images/user-${user.id}` : `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/media`; - if (!fs.existsSync(destinationPath)) { - try { - fs.mkdirSync(destinationPath, { - recursive: true - }); - } catch (/** @type {any} */ error) { - console.log("LINE 88 error:", error.message); - } - } - if (folder) { - folder.split("/").reduce((prev, curr)=>{ - const currFolder = prev?.match(/./) ? `${prev}/${curr}` : destinationPath; - 7; - if (!fs.existsSync(currFolder)) { - fs.mkdirSync(currFolder, { - recursive: true - }); - } - return currFolder; - }, ""); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * construct new file name - */ const fileNameWithExtension = mediaRelPath?.match(/[^\/]+$/)?.[0]; - if (!fileNameWithExtension) { - throw new Error("No File Name Detected!"); - } - const fileName = fileNameWithExtension.split(".")[0]; - const fileExtension = fileNameWithExtension.split(".")[1]; - const newFileNameInDb = isPrivate ? `${publicUrlPathRoot}${folder ? folder + "/" : "/"}${fileNameWithExtension}` : `@/media${folder ? folder + "/" : "/"}${fileNameWithExtension}`; - const newRelativeFileNameInDb = isPrivate ? `${publicRelativePathRoot}${folder ? folder + "/" : "/"}${fileNameWithExtension}` : `@/media${folder ? folder + "/" : "/"}${fileNameWithExtension}`; - // if (isPrivate) { - // const dstPathFinal = destinationPath + folder + "/" + fileNameWithExtension; - // fs.copyFileSync(dstPathFinal, mediaRelPath); - // fs.unlinkSync(dstPathFinal); - // } else { - // } - fs.copyFileSync(mediaRelPath, destinationPath + folder + "/" + fileNameWithExtension); - fs.unlinkSync(mediaRelPath); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Construct new File Thumbnail name - */ const thumbnailNameWithExtension = fileName + "_thumbnail." + fileExtension; - const thumbnailSourcePath = mediaRelPath.replace(fileNameWithExtension, thumbnailNameWithExtension); - const newFileThumbnailNameInDb = isPrivate ? `${publicUrlPathRoot}${folder ? folder + "/" : "/"}${thumbnailNameWithExtension}` : `@/media${folder ? folder + "/" : "/"}${thumbnailNameWithExtension}`; - const newRelativeThumbnailNameInDb = isPrivate ? `${publicRelativePathRoot}${folder ? folder + "/" : "/"}${thumbnailNameWithExtension}` : `@/media${folder ? folder + "/" : "/"}${thumbnailNameWithExtension}`; - // if (isPrivate) { - // const dstPathFinal = destinationPath + folder + "/" + thumbnailNameWithExtension; - // fs.copyFileSync(dstPathFinal, thumbnailSourcePath); - // fs.unlinkSync(dstPathFinal); - // } else { - // } - try { - fs.copyFileSync(thumbnailSourcePath, destinationPath + folder + "/" + thumbnailNameWithExtension); - fs.unlinkSync(thumbnailSourcePath); - } catch (error1) {} - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const updateDb = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?`, [ - isPrivate ? 0 : 1, - newFileNameInDb, - newFileThumbnailNameInDb, - newRelativeFileNameInDb, - newRelativeThumbnailNameInDb, - requestBody.id, - ]); - /** - * Response data - */ res.json({ - success: true, - msg: "Success!" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error2) { - /** - * Handle error - * ========================================= - * @description Handle errors that occur during - * the request - */ console.log(error2.message); - res.json({ - success: false, - msg: "Error!", - error: error2 - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(9643))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2678,e.ids=[2678],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},10304:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>f,routeModule:()=>E});var s={};t.r(s),t.d(s,{default:()=>S});var i=t(89947),a=t(2706),n=t(96762),o=t(51348),u=t.n(o),c=t(6420),l=t.n(c),d=t(33873),m=t.n(d);let p=t(29021),_=t(28187);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=_.sanitizeSql(e.body,null);if(s.media_url?.match(/\.\./)||s.folder?.match(/\.\./)||s.id?.toString()?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});try{let e=s?.private==1,i=e?s?.media_path?.replace(/\@\/media/i,"")||s?.media_url.replace(/\@\/media/i,""):s?.media_path?.match(/\/user-images\/user-.*/)||s?.media_url?.match(/\/user-images\/user-.*/),a=s.folder?`/${s.folder}`:"",n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=m().join(n,"images"),c=`${process.env.DSQL_STATIC_HOST}/images/user-images/user-${t.id}`,l=`/images/user-images/user-${t.id}`,d=(e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`:o)+i,_=e?`${o}/user-images/user-${t.id}`:`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/media`;if(!p.existsSync(_))try{p.mkdirSync(_,{recursive:!0})}catch(e){console.log("LINE 88 error:",e.message)}a&&a.split("/").reduce((e,r)=>{let t=e?.match(/./)?`${e}/${r}`:_;return p.existsSync(t)||p.mkdirSync(t,{recursive:!0}),t},"");let S=d?.match(/[^\/]+$/)?.[0];if(!S)throw Error("No File Name Detected!");let f=S.split(".")[0],h=S.split(".")[1],E=e?`${c}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`,$=e?`${l}${a?a+"/":"/"}${S}`:`@/media${a?a+"/":"/"}${S}`;p.copyFileSync(d,_+a+"/"+S),p.unlinkSync(d);let P=f+"_thumbnail."+h,v=d.replace(S,P),A=e?`${c}${a?a+"/":"/"}${P}`:`@/media${a?a+"/":"/"}${P}`,g=e?`${l}${a?a+"/":"/"}${P}`:`@/media${a?a+"/":"/"}${P}`;try{p.copyFileSync(v,_+a+"/"+P),p.unlinkSync(v)}catch(e){}await u()("UPDATE user_media SET private = ?, media_url= ?, media_thumbnail_url= ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[e?0:1,E,A,$,g,s.id]),r.json({success:!0,msg:"Success!"})}catch(e){console.log(e.message),r.json({success:!1,msg:"Error!",error:e})}}let f=(0,n.M)(s,"default"),h=(0,n.M)(s,"config"),E=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/media/addPrivateMedia",pathname:"/api/media/addPrivateMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),i=t(72907),a=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:i}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),i=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=10304);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json index d5c1130..8bec23a 100644 --- a/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/media/addPrivateMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/6825.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/datasquirel/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/datasquirel/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../node_modules/datasquirel/utils/get.js","../../../../../node_modules/datasquirel/utils/post.js","../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../node_modules/datasquirel/users/add-user.js","../../../../../node_modules/datasquirel/users/update-user.js","../../../../../node_modules/datasquirel/users/login-user.js","../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../node_modules/datasquirel/users/get-token.js","../../../../../node_modules/datasquirel/users/get-user.js","../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/mysql/index.js","../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js index c5dcebb..c9e53e9 100644 --- a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js @@ -1,163 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3876; -exports.ids = [3876]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1635: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const datasquirel = __webpack_require__(9538); -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -//////////////////////////////////////////////////////////////////////////////// -/** - * addPrivateMedia API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - Next API handler - */ async function handler(req, res) { - /** - * Check method - * ========================================= - * @description Check if the request method is correct - */ if (req.method !== "POST") { - return res.json({ - success: false, - msg: "Failed!" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User auth - * ========================================= - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Send Response - * ========================================= - * @description Send a response to the client - */ try { - /** - * Grab request data - * ========================================= - * @description Grab data from the request - */ const filePath = JSON.parse(req.body).path.replace(/ /g, "").replace(/\.\./g, ""); - if (filePath?.match(/\.\./)) { - return res.json({ - success: false, - msg: "Error!", - error: "Invalid url" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle request logic here - */ const rootFolder = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id.toString().replace(/\//g, "")}`; - const rootPath = filePath.replace(/\@/, rootFolder); - const fileStream = fs.createReadStream(rootPath); - /** - * Response data - */ fileStream.pipe(res); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - /** - * Handle error - * ========================================= - * @description Handle errors that occur during - * the request - */ console.log("ERROR in getPrivateMedia api route:", error.message); - res.json({ - success: false, - msg: "Error!", - error: error - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(1635))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=2127,e.ids=[2127],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},97243:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>p,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>l});var n=t(89947),a=t(2706),i=t(96762),o=t(6420),u=t.n(o);let c=t(29021);async function l(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});try{let s=JSON.parse(e.body).path.replace(/ /g,"").replace(/\.\./g,"");if(s?.match(/\.\./))return r.json({success:!1,msg:"Error!",error:"Invalid url"});let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id.toString().replace(/\//g,"")}`,a=s.replace(/\@/,n);c.createReadStream(a).pipe(r)}catch(e){console.log("ERROR in getPrivateMedia api route:",e.message),r.json({success:!1,msg:"Error!",error:e})}}t(28187);let p=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),f=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/media/getPrivateMedia",pathname:"/api/media/getPrivateMedia",bundlePath:"",filename:""},userland:s})},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=97243);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json index d5c1130..8bec23a 100644 --- a/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/media/getPrivateMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/6825.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/datasquirel/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/datasquirel/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../node_modules/datasquirel/utils/get.js","../../../../../node_modules/datasquirel/utils/post.js","../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../node_modules/datasquirel/users/add-user.js","../../../../../node_modules/datasquirel/users/update-user.js","../../../../../node_modules/datasquirel/users/login-user.js","../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../node_modules/datasquirel/users/get-token.js","../../../../../node_modules/datasquirel/users/get-user.js","../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/mysql/index.js","../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/purgeDb.js b/dsql-app/.local_dist/server/pages/api/purgeDb.js index 36dd6af..e530245 100644 --- a/dsql-app/.local_dist/server/pages/api/purgeDb.js +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js @@ -1,161 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5730; -exports.ids = [5730]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9102: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7147); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { paradigm , payload } = sanitizedReqBody; - let response; - try { - console.log("Deleting media =>", payload.id); - const mediaUrl = payload.media_url; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - const STATIC_HOST = process.env.DSQL_STATIC_HOST; - if (!STATIC_ROOT) { - console.log("No Static Root Path"); - res.json({ - success: false, - msg: "No Static Root Path" - }); - return; - } - const relativePath = mediaUrl.replace(STATIC_HOST, ""); - const filePath = path__WEBPACK_IMPORTED_MODULE_3___default().join(STATIC_ROOT, relativePath); - const fileExist = fs__WEBPACK_IMPORTED_MODULE_0___default().existsSync(filePath); - console.log("relativePath", relativePath); - console.log("STATIC_ROOT", STATIC_ROOT); - console.log("STATIC_HOST", STATIC_HOST); - console.log("filePath", filePath); - console.log("fileExist", fileExist); - if (fileExist) { - res.json({ - success: false - }); - return; - } - } catch (/** @type {any} */ error) { - console.log("File verification Error =>", error.message); - console.log("File Truly doesn't exist, cotinuing ..."); - } - switch(paradigm){ - case "user_media": - response = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1___default()(`DELETE FROM user_media WHERE id='${payload.id}'`); - break; - default: - break; - } - res.json({ - success: true - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(9102))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3338,e.ids=[3338],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},97447:(e,t,r)=>{r.r(t),r.d(t,{config:()=>E,default:()=>P,routeModule:()=>A});var s={};r.r(s),r.d(s,{default:()=>_});var n=r(89947),o=r(2706),i=r(96762),a=r(29021),u=r.n(a),c=r(51348),l=r.n(c),f=r(6420),p=r.n(f),d=r(33873),S=r.n(d);async function _(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await p()(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{paradigm:r,payload:s}=e.body;try{console.log("Deleting media =>",s.id);let e=s.media_url,r=process.env.DSQL_STATIC_SERVER_DIR,n=process.env.DSQL_STATIC_HOST;if(!r){console.log("No Static Root Path"),t.json({success:!1,msg:"No Static Root Path"});return}let o=e.replace(n,""),i=S().join(r,o),a=u().existsSync(i);if(console.log("relativePath",o),console.log("STATIC_ROOT",r),console.log("STATIC_HOST",n),console.log("filePath",i),console.log("fileExist",a),a){t.json({success:!1});return}}catch(e){console.log("File verification Error =>",e.message),console.log("File Truly doesn't exist, cotinuing ...")}"user_media"===r&&await l()(`DELETE FROM user_media WHERE id='${s.id}'`),t.json({success:!0})}let P=(0,i.M)(s,"default"),E=(0,i.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/purgeDb",pathname:"/api/purgeDb",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),o=r(29021);async function i(e,t,r,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=n(e.cookies.datasquirelAuthKey);if(!a)return null;let u=JSON.parse(a);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=i},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=97447);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json b/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/purgeDb.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js index dd9da59..0b14b37 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js @@ -1,281 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7503; -exports.ids = [7503]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7441: -/***/ ((module) => { - -module.exports = require("sharp"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 7674: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5910); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6715); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_7__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=2562,e.ids=[2562],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},82453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>x,routeModule:()=>b});var a={};t.r(a),t.d(a,{config:()=>$,default:()=>v});var i=t(89947),s=t(2706),l=t(96762),n=t(33873),o=t.n(n),u=t(47670),d=t.n(u),c=t(64122),m=t.n(c);t(72907),t(10701);var p=t(48227),f=t.n(p),g=t(77538),S=t.n(g),_=t(77619),h=t.n(_);let y=t(29021),$={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=h()({key:t,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=a;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{fileData:l,fileName:n,mimeType:u,folder:c,isPrivate:p}=e.body,g=process.env.DSQL_STATIC_SERVER_DIR;if(!g)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(c){let e=o().join(g,`images/user-images/user-${i}/${c?.toString().replace(/\.\./g,"")}`);y.existsSync(e)||y.mkdirSync(e,{recursive:!0})}let S=f()({folder:c,isPrivate:p,user:a});if(!S)throw Error("Couldn't Grab Image URLs");let{fileRootPath:_,urlRootPath:$}=S,v=u?.match(/csv/i)?".csv":u?.match(/pdf/i)?".pdf":u?.match(/xlsx/)?".xlsx":u?.match(/json/i)?".json":".txt",x=$+n+v;y.writeFileSync(_+n+v,l,"base64"),await m()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:x}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:n,media_url:x,media_thumbnail_url:x,folder:c||"",media_type:"file",private:p?"1":null}}),r.json({success:!0,payload:{urlPath:x}})}catch(t){console.log("File write error:",t),S()({component:"/api/query/add-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Add File Error!",error:t.message})}}let x=(0,l.M)(a,"default"),E=(0,l.M)(a,"config"),b=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-file",pathname:"/api/query/[user_id]/add-file",bundlePath:"",filename:""},userland:a})},10701:(e,r,t)=>{let a=t(9288),i=t(77538),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:l,thumbnailSize:n,folder:o,isPrivate:u}){try{let i=Buffer.from(e,"base64"),d=n?parseInt(n.toString()):400,c=a(i),m=a(i),p=s({isPrivate:u,user:t,folder:o});if(!p)return null;let{fileRootPath:f,urlRootPath:g,relativePath:S}=p,{width:_,height:h,format:y}=await c.metadata(),$=l||y;_&&h&&_>1800&&c.resize(1800,Math.round(1800/_*h),{fit:"cover"}),c.toFormat($,{quality:80}),await c.metadata();let v=`${r}.${$}`;if(await c.toFile(f+v),_&&h&&_>d){let e=d/_;m.resize(d,Math.round(h*e),{fit:"cover"})}else _&&h&&m.resize(150,Math.round(150/_*h),{fit:"cover"});m.toFormat($,{quality:80});let x=`${r}_thumbnail.${$}`;return await m.toFile(f+x),{urlPath:g+v,urlThumbnailPath:g+x,urlRelativePath:S+v,urlThumbnailRelativePath:S+x}}catch(e){return console.log("Write Image to Disk error =>",e.message),i({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let a=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:l}){"production".match(/production/);let n=r?.id||r?.user_id,o=process.env.DSQL_STATIC_SERVER_DIR;if(!o)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${n}/${t?t+"/":""}`:`/images/user-images/user-${n}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/${t?t+"/":""}`:i.join(o,u);return a.existsSync(d)||l||a.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let l=new Date,n=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(i+=` +URL: ${s.url}`),s?.body&&(i+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),n&&(i+=` +IP: ${n}`),i+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let o=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",i),a.appendFileSync("./.tmp/error.log",` - - - - -/** ****************************************************************************** */ const config = { - api: { - bodyParser: { - sizeLimit: "50mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - /** - * User auth - * - * @description Authenticate user - */ const authorization = req.headers.authorization; - if (!authorization) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_7___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ let { fileData , fileName , mimeType , folder , isPrivate } = req.body; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - if (folder) { - const folderPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(STATIC_ROOT, `images/user-images/user-${user_id}/${folder?.toString().replace(/\.\./g, "")}`); - const folderExists = fs.existsSync(folderPath); - if (!folderExists) { - fs.mkdirSync(folderPath, { - recursive: true - }); - } - } - /** - * Input Validation - * - * @description Input Validation - */ const grabedPaths = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_5___default()({ - folder: folder, - isPrivate: isPrivate, - user: apiCred - }); - if (!grabedPaths) { - throw new Error("Couldn't Grab Image URLs"); - } - const { fileRootPath , urlRootPath } = grabedPaths; - const extension = (()=>{ - if (mimeType?.match(/csv/i)) return ".csv"; - if (mimeType?.match(/pdf/i)) return ".pdf"; - if (mimeType?.match(/xlsx/)) return ".xlsx"; - if (mimeType?.match(/json/i)) return ".json"; - return ".txt"; - })(); - const urlPath = urlRootPath + fileName + extension; - const writePath = fileRootPath + fileName + extension; - fs.writeFileSync(writePath, fileData, "base64"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const removeDuplicateMedia = await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - identifierColumnName: "media_url", - identifierValue: urlPath - }); - let newMediaEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - data: { - user_id: user_id, - media_name: fileName, - media_url: urlPath, - media_thumbnail_url: urlPath, - folder: folder ? folder : "", - media_type: "file", - private: isPrivate ? "1" : null - } - }); - //////////////////////////////////////// - res.json({ - success: true, - payload: { - urlPath - } - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("File write error:", error); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_6___default()({ - component: "/api/query/add-file/main-catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Add File Error!", - error: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,1007,6147,6715,5910], () => (__webpack_exec__(7674))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let a=t(29021),i=t(72907);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)return null;try{let l=process.env.DSQL_API_KEYS_PATH;if(!l)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let n=i(e),o=JSON.parse(n||""),u=a.existsSync(`${l}/${o.sign}`);if(String(o.user_id)!==String(s)||!u)return null;if(!o.target_database)return o;if(!r&&o.target_database)return null;let d=o.target_database?.split(",").includes(String(r));if(d&&!o.target_table)return o;if(d&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,r,t)=>{let a=t(51348),i=t(21339);async function s({dbContext:e,paradigm:r,dbFullName:t,tableName:s,identifierColumnName:l,identifierValue:n}){try{let o=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),u=o?a:i,d=`DELETE FROM ${s} WHERE \`${l}\`=?`;return o?await u(d,[n]):await u({paradigm:r,queryString:d,database:t,queryValues:[n]})}catch(e){return null}}e.exports=s},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(82453));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json index 4ebfeef..ab1ee0e 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/1007.js","../../../../chunks/6147.js","../../../../chunks/6715.js","../../../../chunks/5910.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../../../node_modules/sharp/node_modules/semver/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/color/node_modules/color-convert/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/color/node_modules/color-convert/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/color/node_modules/color-convert/route.js","../../../../../../node_modules/color/node_modules/color-convert/conversions.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/color/node_modules/color-name/package.json","../../../../../../node_modules/color/node_modules/color-name/index.js","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../../../../../../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../../../../../../node_modules/@img/sharp-libvips-linux-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../../../../../../node_modules/@img/sharp-linux-x64/LICENSE","../../../../../../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../../../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../../../node_modules/color-convert/conversions.js","../../../../../../node_modules/color-convert/index.js","../../../../../../node_modules/color-convert/package.json","../../../../../../node_modules/color-convert/route.js","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../../../node_modules/sharp/node_modules/semver/internal/lrucache.js","../../../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../../../node_modules/sharp/node_modules/semver/package.json","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js index 5e6aba7..80f6a5a 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js @@ -1,269 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8494; -exports.ids = [8494]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7441: -/***/ ((module) => { - -module.exports = require("sharp"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 441: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5910); -/* harmony import */ var _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=5319,e.ids=[5319],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},19582:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>E,routeModule:()=>R});var a={};t.r(a),t.d(a,{config:()=>$,default:()=>v});var i=t(89947),s=t(2706),n=t(96762),o=t(33873),l=t.n(o),u=t(47670),d=t.n(u),m=t(64122),c=t.n(m);t(72907);var p=t(10701),g=t.n(p),f=t(77538),h=t.n(f),S=t(77619),_=t.n(S);let y=t(29021),$={api:{bodyParser:{sizeLimit:"50mb"}}};async function v(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)throw Error("No Authorization Found!");let a=_()({key:t,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");let{user_id:i,full_access:s}=a;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{imageData:n,imageName:o,mimeType:u,thumbnailSize:m,folder:p,isPrivate:f}=e.body,h=process.env.DSQL_STATIC_SERVER_DIR;if(!h)throw console.log("Static File ENV not Found!"),Error("No Static Path!");if(p){let e=l().join(h,`images/user-images/user-${i}/${p}`);y.existsSync(e)||y.mkdirSync(e,{recursive:!0})}let S=u?.match(/jpeg/i)?"jpeg":u?.match(/png/i)?"png":u?.match(/webp/i)?"webp":u?.match(/svg/i)?"svg":"jpg",$=await g()({imageName:o,imageSourceBase64:n,user:{id:i},mimeType:S,thumbnailSize:m,folder:p,isPrivate:f});if(!$)throw Error("Write Image Failed in add-media API route");let{urlPath:v,urlThumbnailPath:E}=$;await c()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"media_url",identifierValue:v}),await d()({dbFullName:"datasquirel",tableName:"user_media",data:{user_id:i,media_name:o,media_url:v,media_thumbnail_url:E,folder:p||""}}),r.json({success:!0,payload:{urlPath:v,urlThumbnailPath:E}})}catch(t){h()({component:"/api/query/add-image/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Add Image Error!",error:t.message})}}let E=(0,n.M)(a,"default"),b=(0,n.M)(a,"config"),R=new i.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/add-image",pathname:"/api/query/[user_id]/add-image",bundlePath:"",filename:""},userland:a})},10701:(e,r,t)=>{let a=t(9288),i=t(77538),s=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:n,thumbnailSize:o,folder:l,isPrivate:u}){try{let i=Buffer.from(e,"base64"),d=o?parseInt(o.toString()):400,m=a(i),c=a(i),p=s({isPrivate:u,user:t,folder:l});if(!p)return null;let{fileRootPath:g,urlRootPath:f,relativePath:h}=p,{width:S,height:_,format:y}=await m.metadata(),$=n||y;S&&_&&S>1800&&m.resize(1800,Math.round(1800/S*_),{fit:"cover"}),m.toFormat($,{quality:80}),await m.metadata();let v=`${r}.${$}`;if(await m.toFile(g+v),S&&_&&S>d){let e=d/S;c.resize(d,Math.round(_*e),{fit:"cover"})}else S&&_&&c.resize(150,Math.round(150/S*_),{fit:"cover"});c.toFormat($,{quality:80});let E=`${r}_thumbnail.${$}`;return await c.toFile(g+E),{urlPath:f+v,urlThumbnailPath:f+E,urlRelativePath:h+v,urlThumbnailRelativePath:h+E}}catch(e){return console.log("Write Image to Disk error =>",e.message),i({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},48227:(e,r,t)=>{let a=t(29021),i=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:n}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,d=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:i.join(l,u);return a.existsSync(d)||n||a.mkdirSync(d,{recursive:!0}),{fileRootPath:d,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:i}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:i,req:s}){let n=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],i=t||a||r||s.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(i+=` +URL: ${s.url}`),s?.body&&(i+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${n.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let l=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",i),a.appendFileSync("./.tmp/error.log",` - - - -/** ****************************************************************************** */ const config = { - api: { - bodyParser: { - sizeLimit: "50mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - const authorization = req.headers.authorization; - if (!authorization) throw new Error("No Authorization Found!"); - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ let { imageData , imageName , mimeType , thumbnailSize , folder , isPrivate , } = req.body; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - if (folder) { - const folderPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(STATIC_ROOT, `images/user-images/user-${user_id}/${folder}`); - const folderExists = fs.existsSync(folderPath); - if (!folderExists) { - fs.mkdirSync(folderPath, { - recursive: true - }); - } - } - /** - * Input Validation - * - * @description Input Validation - */ const imageType = (()=>{ - if (mimeType?.match(/jpeg/i)) return "jpeg"; - if (mimeType?.match(/png/i)) return "png"; - if (mimeType?.match(/webp/i)) return "webp"; - if (mimeType?.match(/svg/i)) return "svg"; - return "jpg"; - })(); - const writeImage = await _functions_backend_fsWriteImageToDiskFromBase64__WEBPACK_IMPORTED_MODULE_4___default()({ - imageName: imageName, - imageSourceBase64: imageData, - user: { - id: user_id - }, - mimeType: imageType, - thumbnailSize: thumbnailSize, - folder, - isPrivate - }); - if (!writeImage) throw new Error("Write Image Failed in add-media API route"); - const { urlPath , urlThumbnailPath } = writeImage; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const removeDuplicateMedia = await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_2___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - identifierColumnName: "media_url", - identifierValue: urlPath - }); - let newMediaEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - data: { - user_id: user_id, - media_name: imageName, - media_url: urlPath, - media_thumbnail_url: urlThumbnailPath, - folder: folder ? folder : "" - } - }); - //////////////////////////////////////// - res.json({ - success: true, - payload: { - urlPath, - urlThumbnailPath - } - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_5___default()({ - component: "/api/query/add-image/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Add Image Error!", - error: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,1007,6147,6715,5910], () => (__webpack_exec__(441))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let a=t(29021),i=t(72907);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)return null;try{let n=process.env.DSQL_API_KEYS_PATH;if(!n)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=i(e),l=JSON.parse(o||""),u=a.existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(s)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let d=l.target_database?.split(",").includes(String(r));if(d&&!l.target_table)return l;if(d&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,r,t)=>{let a=t(51348),i=t(21339);async function s({dbContext:e,paradigm:r,dbFullName:t,tableName:s,identifierColumnName:n,identifierValue:o}){try{let l=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),u=l?a:i,d=`DELETE FROM ${s} WHERE \`${n}\`=?`;return l?await u(d,[o]):await u({paradigm:r,queryString:d,database:t,queryValues:[o]})}catch(e){return null}}e.exports=s},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:i}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=i("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(19582));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json index 4ebfeef..ab1ee0e 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/add-image.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/1007.js","../../../../chunks/6147.js","../../../../chunks/6715.js","../../../../chunks/5910.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../../../node_modules/sharp/node_modules/semver/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/color/node_modules/color-convert/index.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/color/node_modules/color-convert/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/color/node_modules/color-convert/route.js","../../../../../../node_modules/color/node_modules/color-convert/conversions.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/color/node_modules/color-name/package.json","../../../../../../node_modules/color/node_modules/color-name/index.js","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../../../../../../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../../../../../../node_modules/@img/sharp-libvips-linux-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../../../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../../../../../../node_modules/@img/sharp-linux-x64/LICENSE","../../../../../../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../../../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../../../node_modules/color-convert/conversions.js","../../../../../../node_modules/color-convert/index.js","../../../../../../node_modules/color-convert/package.json","../../../../../../node_modules/color-convert/route.js","../../../../../../node_modules/color-name/index.js","../../../../../../node_modules/color-name/package.json","../../../../../../node_modules/color-string/index.js","../../../../../../node_modules/color-string/package.json","../../../../../../node_modules/color/index.js","../../../../../../node_modules/color/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../../../node_modules/detect-libc/lib/filesystem.js","../../../../../../node_modules/detect-libc/lib/process.js","../../../../../../node_modules/detect-libc/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sharp/lib/channel.js","../../../../../../node_modules/sharp/lib/colour.js","../../../../../../node_modules/sharp/lib/composite.js","../../../../../../node_modules/sharp/lib/constructor.js","../../../../../../node_modules/sharp/lib/index.js","../../../../../../node_modules/sharp/lib/input.js","../../../../../../node_modules/sharp/lib/is.js","../../../../../../node_modules/sharp/lib/libvips.js","../../../../../../node_modules/sharp/lib/operation.js","../../../../../../node_modules/sharp/lib/output.js","../../../../../../node_modules/sharp/lib/resize.js","../../../../../../node_modules/sharp/lib/sharp.js","../../../../../../node_modules/sharp/lib/utility.js","../../../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../../../node_modules/sharp/node_modules/semver/internal/lrucache.js","../../../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../../../node_modules/sharp/node_modules/semver/package.json","../../../../../../node_modules/sharp/package.json","../../../../../../node_modules/simple-swizzle/index.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../../../node_modules/simple-swizzle/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js index 3dd443e..ea3847a 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js @@ -1,246 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9244; -exports.ids = [9244]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 2169: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6147); -/* harmony import */ var _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=7918,e.ids=[7918],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},50145:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>D});var s={};t.r(s),t.d(s,{config:()=>m,default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(51348),l=t.n(i),u=t(64122),c=t.n(u);t(72907);var d=t(77538),p=t.n(d),S=t(77619),_=t.n(S);let f=t(29021),m={api:{bodyParser:{sizeLimit:"50mb"}}};async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=_()({key:t,user_id:String(e.query.user_id)});if(!s?.user_id)throw Error("Api Credentials invalid!");let{user_id:n,full_access:a}=s;if(!a)return r.json({success:!1,msg:"Unauthorized"});let{url:o}=e.body,i=await l()("SELECT * FROM user_media WHERE media_url = ?",[o]);if(!i?.length)return r.json({success:!1,msg:"Media not found!"});let{id:u,folder:d,media_url:p,media_thumbnail_url:S,media_type:m}=i[0],g=process.env.DSQL_STATIC_SERVER_DIR;if(!g)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let E=e=>!e||e?.match(/\.\./)?"":e?.match(/^\@/)?e.replace(/@\/media\//,`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${n}/media/`):e.replace(process.env.DSQL_STATIC_HOST||"",g),y=E(p),D=E(S);if(!y?.match(/./))return r.json({success:!1,msg:"Invalid path!"});try{f.unlinkSync(y),f.unlinkSync(D),await c()({dbFullName:"datasquirel",tableName:"user_media",identifierColumnName:"id",identifierValue:u}),r.json({success:!0,payload:{url:o}})}catch(e){console.log("File delete error:",e.message),r.json({success:!1,payload:{url:o},error:e.message})}}catch(t){console.log("File write error:",t),p()({component:"/api/query/delete-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Delete File Error!",error:t.message})}}let E=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),D=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/delete-file",pathname:"/api/query/[user_id]/delete-file",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ const config = { - api: { - bodyParser: { - sizeLimit: "50mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - const authorization = req.headers.authorization; - if (!authorization) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ let { url } = req.body; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const existingMedia = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT * FROM user_media WHERE media_url = ?`, [ - url - ]); - if (!existingMedia?.length) { - return res.json({ - success: false, - msg: "Media not found!" - }); - } - const { id , folder , media_url , media_thumbnail_url , media_type } = existingMedia[0]; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - /** - * - * @param {string | null | undefined} path - * @returns {string} - */ const formPath = (path)=>{ - if (!path) return ""; - if (path?.match(/\.\./)) return ""; - if (path?.match(/^\@/)) { - return path.replace(/@\/media\//, `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user_id}/media/`); - } - return path.replace(process.env.DSQL_STATIC_HOST || "", STATIC_ROOT); - }; - const deletePath = formPath(media_url); - const deleteThumbnailPath = formPath(media_thumbnail_url); - if (!deletePath?.match(/./)) { - return res.json({ - success: false, - msg: "Invalid path!" - }); - } - try { - fs.unlinkSync(deletePath); - fs.unlinkSync(deleteThumbnailPath); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const removeDuplicateMedia = await _package_shared_functions_backend_db_deleteDbEntry__WEBPACK_IMPORTED_MODULE_1___default()({ - dbFullName: "datasquirel", - tableName: "user_media", - identifierColumnName: "id", - identifierValue: id - }); - //////////////////////////////////////// - res.json({ - success: true, - payload: { - url - } - }); - } catch (/** @type {any} */ error) { - console.log("File delete error:", error.message); - //////////////////////////////////////// - res.json({ - success: false, - payload: { - url - }, - error: error.message - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - console.log("File write error:", error1); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/delete-file/main-catch-error", - message: error1.message - }); - res.json({ - success: false, - msg: "Delete File Error!", - error: error1.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3403,1007,6147], () => (__webpack_exec__(2169))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),n=t(72907);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=n(e),l=JSON.parse(i||""),u=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},64122:(e,r,t)=>{let s=t(51348),n=t(21339);async function a({dbContext:e,paradigm:r,dbFullName:t,tableName:a,identifierColumnName:o,identifierValue:i}){try{let l=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),u=l?s:n,c=`DELETE FROM ${a} WHERE \`${o}\`=?`;return l?await u(c,[i]):await u({paradigm:r,queryString:c,database:t,queryValues:[i]})}catch(e){return null}}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=c?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=50145);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json index 3a4e706..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/delete-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3403.js","../../../../chunks/1007.js","../../../../chunks/6147.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js index fc37e96..fca9773 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js @@ -1,204 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7554; -exports.ids = [7554]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 4985: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6715); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=5287,e.ids=[5287],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},48069:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>P,routeModule:()=>A});var i={};t.r(i),t.d(i,{config:()=>S,default:()=>_});var n=t(89947),s=t(2706),a=t(96762),o=t(33873),l=t.n(o);t(72907);var u=t(48227),c=t.n(u),d=t(77538),p=t.n(d),f=t(77619),g=t.n(f);let m=t(29021),S={api:{bodyParser:{sizeLimit:"100mb"}}};async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let i=g()({key:t,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:n,full_access:s}=i;if(!s)return r.json({success:!1,msg:"Unauthorized"});let{folder:a,fileName:o,downloadType:u}=e.body,d=c()({folder:a,isPrivate:!0,user:i});if(!d)throw Error("Couldn't Grab Image URLs");let{fileRootPath:p}=d,f=l().join(p,o);if(u?.match(/raw/i)){let e=m.readFileSync(f,"utf-8");return r.json({success:!0,data:e})}if(u?.match(/base64/i)){let e=m.readFileSync(f,"base64");return r.json({success:!0,data:e})}m.createReadStream(f).pipe(r)}catch(t){console.log("Get Private File Error:",t),p()({component:"/api/query/get-private-file/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Get Private File Error!",error:t.message})}}let P=(0,a.M)(i,"default"),y=(0,a.M)(i,"config"),A=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/query/[user_id]/get-private-file",pathname:"/api/query/[user_id]/get-private-file",bundlePath:"",filename:""},userland:i})},48227:(e,r,t)=>{let i=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:a}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,c=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:n.join(l,u);return i.existsSync(c)||a||i.mkdirSync(c,{recursive:!0}),{fileRootPath:c,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77538:(e,r,t)=>{let i=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:s}){let a=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],i=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||i||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${a.toDateString()} +========================================`,i.existsSync("./.tmp/error.log")||i.writeFileSync("./.tmp/error.log","","utf-8");let l=i.readFileSync("./.tmp/error.log","utf-8");i.writeFileSync("./.tmp/error.log",n),i.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ const config = { - api: { - bodyParser: { - sizeLimit: "100mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - const authorization = req.headers.authorization; - if (!authorization) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ let { folder , fileName , downloadType } = req.body; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Input Validation - * - * @description Input Validation - */ const grabedPaths = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_2___default()({ - folder: folder, - isPrivate: true, - user: apiCred - }); - if (!grabedPaths) { - throw new Error("Couldn't Grab Image URLs"); - } - const { fileRootPath } = grabedPaths; - const filePath = path__WEBPACK_IMPORTED_MODULE_0___default().join(fileRootPath, fileName); - if (downloadType?.match(/raw/i)) { - const fileData = fs.readFileSync(filePath, "utf-8"); - return res.json({ - success: true, - data: fileData - }); - } else if (downloadType?.match(/base64/i)) { - const fileData1 = fs.readFileSync(filePath, "base64"); - return res.json({ - success: true, - data: fileData1 - }); - } else { - const fileStream = fs.createReadStream(filePath); - fileStream.pipe(res); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("Get Private File Error:", error); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/get-private-file/main-catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Get Private File Error!", - error: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,1007,6715], () => (__webpack_exec__(4985))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let i=t(29021),n=t(72907);e.exports=({key:e,database:r,table:t,user_id:s})=>{if(!e||!s)return null;try{let a=process.env.DSQL_API_KEYS_PATH;if(!a)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=n(e),l=JSON.parse(o||""),u=i.existsSync(`${a}/${l.sign}`);if(String(l.user_id)!==String(s)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:i,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",i(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=48069);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json index 94879f7..50ebe60 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-private-file.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2163.js","../../../../chunks/1007.js","../../../../chunks/6715.js","../../../../../package.json","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js index b8e5756..3b61ae4 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js @@ -1,207 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 750; -exports.ids = [750]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 7982: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); +"use strict";(()=>{var e={};e.id=6562,e.ids=[6562],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},3267:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>g,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),i=t(96762);t(72907);var l=t(77538),o=t.n(l),u=t(77619),c=t.n(u);let d=t(29021),p=t(33873);async function f(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});console.log("Getting DB schema");try{let{database:t,table:n,field:s}=e.query,a=e.headers.authorization;if(!a)return r.json({success:!1,msg:"Unauthorized"});let i=c()({key:a,database:t,table:n,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");let{user_id:l,full_access:u}=i;if(!u)return r.json({success:!1,msg:"Unauthorized"});try{let e=t&&"string"==typeof t?`datasquirel_user_${l}_${t?.toLowerCase().replace(/[^a-z0-9\_]/g,"")}`:null,a=p.join(String(process.env.DSQL_USER_DB_SCHEMA_PATH),`user-${l.toString().replace(/\//g,"")}`,"main.json"),i=JSON.parse(d.readFileSync(a,"utf8")),o=e?i.find(r=>r.dbFullName==e):null;if(n&&t&&o?.tables?.[0]){let e=o.tables.find(e=>e.tableName==n);if(s&&e?.fields?.[0]){let t=e.fields.find(e=>e.fieldName===s);return r.json({success:!!t,payload:t})}if(s&&!e?.fields?.[0])throw Error("Target Table Not Found!");return r.json({success:!!e,payload:e})}if(n&&!o?.tables?.[0])throw Error("Target Database Not Found!");t?r.json({success:!!o,payload:o}):r.json({success:!0,payload:i})}catch(e){o()({component:"/api/query/get-schema/lines-132-142",message:e.message}),r.json({success:!1,payload:null,error:e.message})}}catch(t){o()({component:"/api/query/get-schema/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Wrong Credentials"})}}let g=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/get-schema",pathname:"/api/query/[user_id]/get-schema",bundlePath:"",filename:""},userland:n})},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let i=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${i.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let o=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",s),n.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - console.log("Getting DB schema"); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - /** @type {import("@/package-shared/types").GetSchemaRequestQuery} */ // @ts-ignore - const reqQuery = req.query; - let { database , table , field } = reqQuery; - const authorization = req.headers.authorization; - if (!authorization) return res.json({ - success: false, - msg: "Unauthorized" - }); - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2___default()({ - key: authorization, - database: database, - table: table, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ try { - const dbFullName = database && typeof database == "string" ? `datasquirel_user_${user_id}_${database?.toLowerCase().replace(/[^a-z0-9\_]/g, "")}` : null; - /** @type {string} */ const dbSchemaPath = path.join(String(process.env.DSQL_USER_DB_SCHEMA_PATH), `user-${user_id.toString().replace(/\//g, "")}`, "main.json"); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchema = JSON.parse(fs.readFileSync(dbSchemaPath, "utf8")); - const targetDbSchema = dbFullName ? dbSchema.find((db)=>db.dbFullName == dbFullName) : null; - if (table && database && targetDbSchema?.tables?.[0]) { - const targetTable = targetDbSchema.tables.find((tbl)=>tbl.tableName == table); - if (field && targetTable?.fields?.[0]) { - const targetField = targetTable.fields.find((fld)=>fld.fieldName === field); - return res.json({ - success: Boolean(targetField), - payload: targetField - }); - } else if (field && !targetTable?.fields?.[0]) { - throw new Error("Target Table Not Found!"); - } - return res.json({ - success: Boolean(targetTable), - payload: targetTable - }); - } else if (table && !targetDbSchema?.tables?.[0]) { - throw new Error("Target Database Not Found!"); - } - if (database) { - res.json({ - success: Boolean(targetDbSchema), - payload: targetDbSchema - }); - } else { - res.json({ - success: true, - payload: dbSchema - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/query/get-schema/lines-132-142", - message: error.message - }); - //////////////////////////////////////// - res.json({ - success: false, - payload: null, - error: error.message - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/query/get-schema/main-catch-error", - message: error1.message - }); - res.json({ - success: false, - payload: null, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,1007], () => (__webpack_exec__(7982))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let n=t(29021),s=t(72907);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=s(e),o=JSON.parse(l||""),u=n.existsSync(`${i}/${o.sign}`);if(String(o.user_id)!==String(a)||!u)return null;if(!o.target_database)return o;if(!r&&o.target_database)return null;let c=o.target_database?.split(",").includes(String(r));if(c&&!o.target_table)return o;if(c&&!t&&o.target_table)return null;if(o.target_table?.split(",").includes(String(t)))return o;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=3267);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json index b0d7027..50ebe60 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get-schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2163.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js index 403691d..5f6a18f 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js @@ -1,238 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6456; -exports.ids = [6456]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5687: -/***/ ((module) => { - -module.exports = require("https"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5830: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8499); -/* harmony import */ var _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ /** @type {import("@/package-shared/types").GetReqQueryObject} */ // @ts-ignore - const reqQueryObject = req.query; - const { query , db } = reqQueryObject; - /** @type {string | undefined } */ const tableName = reqQueryObject?.tableName ? String(reqQueryObject.tableName) : undefined; - const authorization = req.headers.authorization; - if (!authorization) return res.json({ - success: false, - msg: "Unauthorized" - }); - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - database: db, - table: tableName, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id } = apiCred; - /** @type {string[] | undefined } */ let queryValues; - if (reqQueryObject?.queryValues && typeof reqQueryObject?.queryValues === "string") { - try { - queryValues = JSON.parse(reqQueryObject.queryValues); - } catch (error) {} - } - const dbFullName = `datasquirel_user_${user_id}_${db}`; - /** - * Input Validation - * - * @description Input Validation - */ if (typeof query == "string" && (query.match(/^alter|^delete|information_schema|databases|^create/i) || !query.match(/^select/i))) { - return res.json({ - success: false, - msg: "Wrong Input" - }); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ let results; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ let dbSchema; - const targetDbSchemaPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user_id.toString().replace(/\//g, "")}/main.json`; - if (fs.existsSync(targetDbSchemaPath)) { - try { - dbSchema = JSON.parse(fs.readFileSync(targetDbSchemaPath, "utf8")).filter((/** @type {any} */ db)=>db.dbFullName === dbFullName)[0]; - } catch (_err) {} - } - try { - let { result , error: error1 } = await _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1___default()({ - dbFullName: dbFullName, - query: query, - queryValuesArray: queryValues, - readOnly: true, - dbSchema, - tableName - }); - /** @type {import("@/package-shared/types").DSQL_TableSchemaType | undefined} */ let tableSchema; - if (dbSchema) { - const targetTable = dbSchema.tables.find((table)=>table.tableName === tableName); - if (targetTable) { - const clonedTargetTable = lodash__WEBPACK_IMPORTED_MODULE_0___default().cloneDeep(targetTable); - delete clonedTargetTable.childTable; - delete clonedTargetTable.childTableDbFullName; - delete clonedTargetTable.childTableName; - delete clonedTargetTable.childrenTables; - delete clonedTargetTable.updateData; - delete clonedTargetTable.tableNameOld; - delete clonedTargetTable.indexes; - tableSchema = clonedTargetTable; - } - } - if (error1) throw error1; - if (result.error) throw new Error(result.error); - results = result; - /** @type {import("@/package-shared/types").GetReturn} */ const resObject = { - success: true, - payload: results, - schema: tableName && tableSchema ? tableSchema : undefined - }; - res.json(resObject); - //////////////////////////////////////// - } catch (/** @type {any} */ error2) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/get/lines-85-94", - message: error2.message - }); - res.json({ - success: false, - payload: null, - error: error2.message - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error3) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/get/main-catch-error", - message: error3.message - }); - res.json({ - success: false, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1007,6147,4733], () => (__webpack_exec__(5830))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8446,e.ids=[8446],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},7671:(e,r,t)=>{t.r(r),t.d(r,{config:()=>q,default:()=>g,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>y});var a=t(89947),i=t(2706),l=t(96762),u=t(27825),n=t.n(u),o=t(8238),d=t.n(o);t(72907);var c=t(77538),p=t.n(c),m=t(77619),f=t.n(m);let h=t(29021);async function y(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t,s;let a=e.query,{query:i,db:l}=a,u=a?.tableName?String(a.tableName):void 0,o=e.headers.authorization;if(!o)return r.json({success:!1,msg:"Unauthorized"});let c=f()({key:o,database:l,table:u,user_id:String(e.query.user_id)});if(!c?.user_id)throw Error("Api Credentials invalid!");let{user_id:m}=c;if(a?.queryValues&&"string"==typeof a?.queryValues)try{t=JSON.parse(a.queryValues)}catch(e){}let y=`datasquirel_user_${m}_${l}`;if("string"==typeof i&&(i.match(/^alter|^delete|information_schema|databases|^create/i)||!i.match(/^select/i)))return r.json({success:!1,msg:"Wrong Input"});let g=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${m.toString().replace(/\//g,"")}/main.json`;if(h.existsSync(g))try{s=JSON.parse(h.readFileSync(g,"utf8")).filter(e=>e.dbFullName===y)[0]}catch(e){}try{let e,{result:a,error:l}=await d()({dbFullName:y,query:i,queryValuesArray:t,readOnly:!0,dbSchema:s,tableName:u});if(s){let r=s.tables.find(e=>e.tableName===u);if(r){let t=n().cloneDeep(r);delete t.childTable,delete t.childTableDbFullName,delete t.childTableName,delete t.childrenTables,delete t.updateData,delete t.tableNameOld,delete t.indexes,e=t}}if(l)throw l;if(a.error)throw Error(a.error);let o={success:!0,payload:a,schema:u&&e?e:void 0};r.json(o)}catch(e){p()({component:"/api/query/get/lines-85-94",message:e.message}),r.json({success:!1,payload:null,error:e.message})}}catch(t){p()({component:"/api/query/get/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let g=(0,l.M)(s,"default"),q=(0,l.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/query/[user_id]/get",pathname:"/api/query/[user_id]/get",bundlePath:"",filename:""},userland:s})}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050,4237],()=>t(7671));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json index 51b4a8f..1f12c8f 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/get.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/8326.js","../../../../chunks/1007.js","../../../../chunks/6147.js","../../../../chunks/4733.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js index 65e9dd9..cf43152 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js @@ -1,254 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7430; -exports.ids = [7430]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5687: -/***/ ((module) => { - -module.exports = require("https"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9022: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "config": () => (/* binding */ config), -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8499); -/* harmony import */ var _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); - - - - - -/** ****************************************************************************** */ const config = { - api: { - bodyParser: { - sizeLimit: "50mb" - } - } -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - /** - * User auth - * - * @description Authenticate user - */ /** - * Grab Body - */ let { query , database , tableName , queryValues } = req.body; - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - database: database, - table: tableName, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - const dbFullName = `datasquirel_user_${user_id}_${database}`; - /** - * Input Validation - * - * @description Input Validation - */ if (typeof query === "string" && query?.match(/^create |^alter |^drop /i)) { - return res.json({ - success: false, - msg: "Wrong Input" - }); - } - if (typeof query === "object" && query?.action?.match(/^create |^alter |^drop /i)) { - return res.json({ - success: false, - msg: "Wrong Input" - }); - } - /** - * Grab db Schema - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ let dbSchema; - const targetDbSchemaPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user_id.toString().replace(/\//g, "")}/main.json`; - if (fs.existsSync(targetDbSchemaPath)) { - try { - dbSchema = JSON.parse(fs.readFileSync(targetDbSchemaPath, "utf8")).filter((/** @type {any} */ db)=>db.dbFullName === dbFullName)[0]; - } catch (_err) {} - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ try { - let { result , error } = await _package_shared_functions_backend_db_runQuery__WEBPACK_IMPORTED_MODULE_1___default()({ - dbFullName: dbFullName, - query: query, - dbSchema: dbSchema, - queryValuesArray: queryValues, - tableName - }); - results = result; - if (error) throw error; - /** @type {import("@/package-shared/types").DSQL_TableSchemaType | undefined} */ let tableSchema; - if (dbSchema) { - const targetTable = dbSchema.tables.find((table)=>table.tableName === tableName); - if (targetTable) { - const clonedTargetTable = lodash__WEBPACK_IMPORTED_MODULE_0___default().cloneDeep(targetTable); - delete clonedTargetTable.childTable; - delete clonedTargetTable.childTableDbFullName; - delete clonedTargetTable.childTableName; - delete clonedTargetTable.childrenTables; - delete clonedTargetTable.updateData; - delete clonedTargetTable.tableNameOld; - delete clonedTargetTable.indexes; - tableSchema = clonedTargetTable; - } - } - res.json({ - success: true, - payload: results, - error: error, - schema: tableName && tableSchema ? tableSchema : undefined - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/post/lines-132-142", - message: error1.message - }); - //////////////////////////////////////// - res.json({ - success: false, - payload: results, - error: error1.message - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error2) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/query/post/main-catch-error", - message: error2.message - }); - res.json({ - success: false, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1007,6147,4733], () => (__webpack_exec__(9022))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4112,e.ids=[4112],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},63831:(e,r,t)=>{t.r(r),t.d(r,{config:()=>x,default:()=>b,routeModule:()=>_});var s={};t.r(s),t.d(s,{config:()=>q,default:()=>g});var a=t(89947),i=t(2706),o=t(96762),l=t(27825),d=t.n(l),u=t(8238),n=t.n(u);t(72907);var p=t(77538),c=t.n(p),m=t(77619),h=t.n(m);let f=t(29021);t(33873);let{execSync:y}=t(79646),q={api:{bodyParser:{sizeLimit:"50mb"}}};async function g(e,r){let t;if("POST"!==e.method)return r.json({msg:"Failed!"});try{let s,{query:a,database:i,tableName:o,queryValues:l}=e.body,u=e.headers.authorization,p=h()({key:u,database:i,table:o,user_id:String(e.query.user_id)});if(!p?.user_id)throw Error("Api Credentials invalid!");let{user_id:m,full_access:y}=p;if(!y)return r.json({success:!1,msg:"Unauthorized"});let q=`datasquirel_user_${m}_${i}`;if("string"==typeof a&&a?.match(/^create |^alter |^drop /i)||"object"==typeof a&&a?.action?.match(/^create |^alter |^drop /i))return r.json({success:!1,msg:"Wrong Input"});let g=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${m.toString().replace(/\//g,"")}/main.json`;if(f.existsSync(g))try{s=JSON.parse(f.readFileSync(g,"utf8")).filter(e=>e.dbFullName===q)[0]}catch(e){}try{let e,{result:i,error:u}=await n()({dbFullName:q,query:a,dbSchema:s,queryValuesArray:l,tableName:o});if(t=i,u)throw u;if(s){let r=s.tables.find(e=>e.tableName===o);if(r){let t=d().cloneDeep(r);delete t.childTable,delete t.childTableDbFullName,delete t.childTableName,delete t.childrenTables,delete t.updateData,delete t.tableNameOld,delete t.indexes,e=t}}r.json({success:!0,payload:t,error:u,schema:o&&e?e:void 0})}catch(e){c()({component:"/api/query/post/lines-132-142",message:e.message}),r.json({success:!1,payload:t,error:e.message})}}catch(t){c()({component:"/api/query/post/main-catch-error",message:t.message,req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}let b=(0,o.M)(s,"default"),x=(0,o.M)(s,"config"),_=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/query/[user_id]/post",pathname:"/api/query/[user_id]/post",bundlePath:"",filename:""},userland:s})}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[4050,4237],()=>t(63831));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json index 51b4a8f..1f12c8f 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/post.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/8326.js","../../../../chunks/1007.js","../../../../chunks/6147.js","../../../../chunks/4733.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js index 9715475..db1423c 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js @@ -1,194 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5473; -exports.ids = [5473]; -exports.modules = { - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 4423: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); +"use strict";(()=>{var e={};e.id=4133,e.ids=[4133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},87854:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>g,routeModule:()=>_});var n={};t.r(n),t.d(n,{default:()=>m});var s=t(89947),a=t(2706),i=t(96762),l=t(79646);t(72907);var u=t(77538),o=t.n(u),c=t(77619),d=t.n(c);let p=t(29021),f=t(33873);async function m(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization;if(!t)return r.json({success:!1,msg:"Unauthorized"});let n=d()({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");let{user_id:s,full_access:a}=n;if(!a)return r.json({success:!1,msg:"Unauthorized"});let i=e.query.schema,u=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${s.toString().replace(/\//g,"")}/main.json`,o=JSON.parse(p.readFileSync(u,"utf8")),c=o.findIndex(e=>e.dbFullName==i?.dbFullName);if(i?.dbFullName&&o.find(e=>e.dbFullName==i.dbFullName),c<0)return r.json({success:!1,payload:null});o[c]=i,p.writeFileSync(u,JSON.stringify(o,null,4),"utf8");let m=f.resolve(process.cwd(),"./shell");(0,l.execSync)(`node createDbFromSchema.js --user ${s.toString().replace(/\/| /g,"")} --database ${o[c].dbFullName}`,{cwd:m}),r.json({success:!0,payload:"Success!"})}catch(t){o()({component:"/api/query/update-schema-from-single-database/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"Something went wrong"})}}let g=(0,i.M)(n,"default"),S=(0,i.M)(n,"config"),_=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/query/[user_id]/update-schema-from-single-database",pathname:"/api/query/[user_id]/update-schema-from-single-database",bundlePath:"",filename:""},userland:n})},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let i=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${i.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let u=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",s),n.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ let results; - try { - /** - * User auth - * - * @description Authenticate user - */ const authorization = req.headers.authorization; - if (!authorization) return res.json({ - success: false, - msg: "Unauthorized" - }); - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - const { user_id , full_access } = apiCred; - if (!full_access) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * Grab the database schema - * @note This is only for one database - * @type {import("@/package-shared/types").DSQL_DatabaseSchemaType} - */ //@ts-ignore - const schema = req.query.schema; - /** @type {string} */ const dbSchemaPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user_id.toString().replace(/\//g, "")}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const dbSchema = JSON.parse(fs.readFileSync(dbSchemaPath, "utf8")); - const targetDbSchemaIndex = dbSchema.findIndex((db)=>db.dbFullName == schema?.dbFullName); - const targetDbSchema = schema?.dbFullName ? dbSchema.find((db)=>db.dbFullName == schema.dbFullName) : null; - if (targetDbSchemaIndex < 0) { - return res.json({ - success: false, - payload: null - }); - } - dbSchema[targetDbSchemaIndex] = schema; - fs.writeFileSync(dbSchemaPath, JSON.stringify(dbSchema, null, 4), "utf8"); - const targetPath = path.resolve(process.cwd(), "./shell"); - const dbShellUpdate = (0,child_process__WEBPACK_IMPORTED_MODULE_0__.execSync)(`node createDbFromSchema.js --user ${user_id.toString().replace(/\/| /g, "")} --database ${dbSchema[targetDbSchemaIndex].dbFullName}`, { - cwd: targetPath - }); - res.json({ - success: true, - payload: "Success!" - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/query/update-schema-from-single-database/main-catch-error", - message: error.message - }); - res.json({ - success: false, - payload: null, - msg: "Something went wrong" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,1007], () => (__webpack_exec__(4423))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let n=t(29021),s=t(72907);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=s(e),u=JSON.parse(l||""),o=n.existsSync(`${i}/${u.sign}`);if(String(u.user_id)!==String(a)||!o)return null;if(!u.target_database)return u;if(!r&&u.target_database)return null;let c=u.target_database?.split(",").includes(String(r));if(c&&!u.target_table)return u;if(c&&!t&&u.target_table)return null;if(u.target_table?.split(",").includes(String(t)))return u;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=87854);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json index 8adbd4e..076ac82 100644 --- a/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/query/[user_id]/update-schema-from-single-database.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2163.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../package.json","../../../../../../shell/mariadb-users/handleGrants.js","../../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../../shell/mariadb-users/users/create-user.js","../../../../../../shell/mariadb-users/users/new-user.json","../../../../../../shell/mariadb-users/users/update-user.js","../../../../../../shell/mariadb-users/users/update-user.json","../../../../../../shell/createDbFromSchema.js","../../../../../../shell/deploy.js","../../../../../../shell/checkDb.js","../../../../../../shell/grantFullPriviledges.js","../../../../../../shell/lessWatch.js","../../../../../../shell/encodingUpdate.js","../../../../../../shell/readImage.js","../../../../../../shell/recoverMainJsonFromDb.js","../../../../../../shell/resetSQLCredentials.js","../../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../../shell/setSQLCredentials.js","../../../../../../shell/tailwindWatch.js","../../../../../../shell/test-external-server.js","../../../../../../shell/test.js","../../../../../../shell/testSQLEscape.js","../../../../../../shell/updateChildrenTablesOnDb.js","../../../../../../shell/updateDateTimestamps.js","../../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../../shell/updateSSLUsers.js","../../../../../../shell/utils/createTable.js","../../../../../../shell/utils/generateColumnDescription.js","../../../../../../shell/utils/dbHandler.js","../../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../../shell/utils/supplementTable.js","../../../../../../shell/utils/updateTable.js","../../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../../shell/functions/jsonToBase64.js"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../../shell/checkDb.js","../../../../../../shell/createDbFromSchema.js","../../../../../../shell/deploy.js","../../../../../../shell/encodingUpdate.js","../../../../../../shell/functions/jsonToBase64.js","../../../../../../shell/grantFullPriviledges.js","../../../../../../shell/lessWatch.js","../../../../../../shell/mariadb-users/handleGrants.js","../../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../../shell/mariadb-users/users/create-user.js","../../../../../../shell/mariadb-users/users/new-user.json","../../../../../../shell/mariadb-users/users/update-user.js","../../../../../../shell/mariadb-users/users/update-user.json","../../../../../../shell/readImage.js","../../../../../../shell/recoverMainJsonFromDb.js","../../../../../../shell/resetSQLCredentials.js","../../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../../shell/setSQLCredentials.js","../../../../../../shell/tailwindWatch.js","../../../../../../shell/test-external-server.js","../../../../../../shell/test.js","../../../../../../shell/testSQLEscape.js","../../../../../../shell/updateChildrenTablesOnDb.js","../../../../../../shell/updateDateTimestamps.js","../../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../../shell/updateSSLUsers.js","../../../../../../shell/utils/createTable.js","../../../../../../shell/utils/dbHandler.js","../../../../../../shell/utils/generateColumnDescription.js","../../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../../shell/utils/supplementTable.js","../../../../../../shell/utils/updateTable.js","../../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js index 37203d4..f270c47 100644 --- a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js @@ -1,162 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9715; -exports.ids = [9715]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6836: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +"use strict";(()=>{var e={};e.id=2101,e.ids=[2101],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},57164:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>_,routeModule:()=>f});var s={};t.r(s),t.d(s,{default:()=>S});var a=t(89947),n=t(2706),o=t(96762),i=t(77538),l=t.n(i),c=t(6420),u=t.n(c),p=t(57638),d=t.n(p);async function S(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.query.table,a=e.query.db,n=e.query.field,o=String(e.query.term),i=e.query.operator;try{let e=`SELECT * FROM \`${s}\` WHERE LOWER(\`${n}\`) ${i?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,t=[i?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],l=await d()({database:a?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e,queryValuesArray:t}),c=await d()({database:a?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:t});r.json({success:!0,result:l,count:c?.[0]?.count})}catch(e){l()({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let _=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),f=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ // const { table, db, field, term, operator } = req.query; - const table = req.query.table; - const db = req.query.db; - const field = req.query.field; - const term = String(req.query.term); - const operator = req.query.operator; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const query = `SELECT * FROM \`${table}\` WHERE LOWER(\`${field}\`) ${operator?.toString()?.match(/equal/i) ? "=" : " LIKE "}? ORDER BY id DESC LIMIT 20`; - const queryArray = [ - operator?.toString()?.match(/equal/i) ? term.toLowerCase() : "%" + term.toLowerCase() + "%", - ]; - const result = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - database: db?.toString()?.replace(/[^a-z0-9_]/g, ""), - queryString: query, - queryValuesArray: queryArray - }); - const count = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - database: db?.toString()?.replace(/[^a-z0-9_]/g, ""), - queryString: query.replace(/\*/, "COUNT(id) AS count").replace(/ ORDER BY .*/, ""), - queryValuesArray: queryArray - }); - //////////////////////////////////////// - res.json({ - success: true, - result: result, - count: count?.[0]?.count - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_0___default()({ - component: "/api/queryEntriesSearchTerm/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Failed!" - }); - //////////////////////////////////////// - } -} -/***/ }) +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e],n=r?.fields[e];if(t?.match(a))continue;let l=o[t];("number"==typeof l||l)&&n?.encrypted&&l?.match(/./)&&(o[t]=s(l))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311], () => (__webpack_exec__(6836))); -module.exports = __webpack_exports__; -})(); \ No newline at end of file + +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i}){let l;let c=!!t?.match(/^datasquirel$/),u=c?n:o;try{l=e&&r&&Array.isArray(r)&&r[0]?c?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&i)try{let e=l;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57164);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json index 9b5b845..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/queryEntriesSearchTerm.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js index d569d12..8685e72 100644 --- a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js @@ -1,240 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9662; -exports.ids = [9662]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2148: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -const serverError = __webpack_require__(2163); -const { ServerResponse } = __webpack_require__(3685); -const DB_HANDLER = __webpack_require__(2224); -const encrypt = __webpack_require__(7547); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {object} params - * @param {number} params.userId - user id - * @param {string} params.csrf - * @param {import("next").NextApiResponse} params.res - response object - * - * @returns {Promise<import("@/package-shared/types").UserType | null>} new user auth object payload - */ module.exports = async function reAuthUser({ userId , res , csrf }) { - try { - const allowedAuthKeysPath = process.env.DSQL_USER_LOGIN_KEYS_PATH; - if (!allowedAuthKeysPath) { - console.log(`DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable.`); - return null; - } - /** - * Fetch user - * - * @description Fetch user from db - */ let refreshedUser = await DB_HANDLER(`SELECT * FROM users WHERE id=?`, [ - userId, - ]); - fs.unlinkSync(`${allowedAuthKeysPath}/${csrf}`); - /** - * Generate csrf - * - * @description Generate csrf - */ let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Construct new user payload - * - * @description Construct new user payload - * @type {import("@/package-shared/types").UserType} - */ let newUserPayload = { - id: refreshedUser[0].id, - stripe_id: refreshedUser[0].stripe_id || "", - first_name: refreshedUser[0].first_name, - last_name: refreshedUser[0].last_name, - email: refreshedUser[0].email, - social_id: refreshedUser[0].social_id, - image: refreshedUser[0].image, - image_thumbnail: refreshedUser[0].image_thumbnail, - verification_status: refreshedUser[0].verification_status, - social_login: refreshedUser[0].social_login, - social_platform: refreshedUser[0].social_platform, - csrf_k: csrfKey, - logged_in_status: true, - date: Date.now() - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Encrypt payload - * - * @description Encrypt new user payload - */ let encryptedPayload = encrypt(JSON.stringify(newUserPayload)); - fs.writeFileSync(`${allowedAuthKeysPath}/${csrfKey}`, JSON.stringify(newUserPayload)); - /** - * Update header - * - * @description Update header response with new payload - */ res.setHeader("Set-Cookie", [ - `datasquirelAuthKey=${encryptedPayload};samesite=strict;path=/;HttpOnly=true;Secure=true`, - `csrf=${csrfKey};samesite=strict;path=/;HttpOnly=true;Secure=true`, - `user_refresh=1`, - ]); - // =============================================================================== - // ============================ End User Refresh ================================= - // =============================================================================== - /** - * Return payload - * - * @description return new user object payload - */ return newUserPayload; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {*} */ error) { - serverError({ - component: "reAuthUser", - message: error.message, - user: { - id: userId - } - }); - return null; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// +"use strict";(()=>{var e={};e.id=2998,e.ids=[2998],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},96499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>d});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),i=t(2706),a=t(96762),o=t(6420),l=t.n(o),u=t(56129),c=t.n(u);async function p(e,r){"POST"!==e.method&&r.json({msg:"Failed!"});let t=await l()(e,r,!0);if(!t){console.log("No user Found"),r.redirect(307,"/logout");return}let s=await c()({userId:t.id,res:r,csrf:t.csrf_k}),n={status:!!s,csrf:s?.csrf_k,user:s};r.json(n)}let f=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),d=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/reAuthenticateUser",pathname:"/api/reAuthenticateUser",bundlePath:"",filename:""},userland:s})},56129:(e,r,t)=>{let s=t(29021),n=t(77538),{ServerResponse:i}=t(81630),a=t(51348),o=t(82703);e.exports=async function({userId:e,res:r,csrf:t}){try{let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;let i=await a("SELECT * FROM users WHERE id=?",[e]);s.unlinkSync(`${n}/${t}`);let l=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),u={id:i[0].id,stripe_id:i[0].stripe_id||"",first_name:i[0].first_name,last_name:i[0].last_name,email:i[0].email,social_id:i[0].social_id,image:i[0].image,image_thumbnail:i[0].image_thumbnail,verification_status:i[0].verification_status,social_login:i[0].social_login,social_platform:i[0].social_platform,csrf_k:l,logged_in_status:!0,date:Date.now()},c=o(JSON.stringify(u));return s.writeFileSync(`${n}/${l}`,JSON.stringify(u)),r.setHeader("Set-Cookie",[`datasquirelAuthKey=${c};samesite=strict;path=/;HttpOnly=true;Secure=true`,`csrf=${l};samesite=strict;path=/;HttpOnly=true;Secure=true`,"user_refresh=1"]),u}catch(r){return n({component:"reAuthUser",message:r.message,user:{id:e}}),null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(n+=` +URL: ${i.url}`),i?.body&&(n+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }), - -/***/ 8251: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_reAuthUser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2148); -/* harmony import */ var _functions_backend_reAuthUser__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_reAuthUser__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} reAuthenticateUserResponse - * @property {boolean} status - Response Status - * @property {string | null} [csrf] - CSRF String - * @property {import("@/package-shared/types").UserType | null} user - Authenticated User - */ /** - * ============================================================================== - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ let user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - console.log("No user Found"); - res.redirect(307, "/logout"); - return; - } - /** - * Re Authenticate User - * - * @description re authenticate user - */ let reAuthenticatedUser = await _functions_backend_reAuthUser__WEBPACK_IMPORTED_MODULE_1___default()({ - userId: user.id, - res, - csrf: user.csrf_k - }); - /** - * Send Response - * - * @description Send a boolean response - */ /** @type {reAuthenticateUserResponse} */ const resObj = { - status: reAuthenticatedUser ? true : false, - csrf: reAuthenticatedUser?.csrf_k, - user: reAuthenticatedUser - }; - res.json(resObj); -} -/***/ }) +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),i=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:i}=t(79428),a=t(48225);e.exports=(e,r,t)=>{let o=n("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=o.update(e,"utf8","hex");return r+=o.final("hex")}catch(e){return a({component:"encrypt",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let i=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let a=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,7547], () => (__webpack_exec__(8251))); -module.exports = __webpack_exports__; -})(); \ No newline at end of file + +${a}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=96499);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json index 35db970..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/reAuthenticateUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/7547.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/refreshEntry.js b/dsql-app/.local_dist/server/pages/api/refreshEntry.js index 4bfc245..bd91e11 100644 --- a/dsql-app/.local_dist/server/pages/api/refreshEntry.js +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js @@ -1,174 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9279; -exports.ids = [9279]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7281: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +"use strict";(()=>{var e={};e.id=2896,e.ids=[2896],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},57237:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>_,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>m});var n=t(89947),a=t(2706),o=t(96762),i=t(57638),l=t.n(i),c=t(77538),u=t.n(c),d=t(6420),p=t.n(d),f=t(72907),S=t.n(f);async function m(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{table:s,db:n,id:a}=e.query,o=e.query.schema;try{let e=`SELECT * FROM \`${s}\` WHERE id=?`,t=[a?.toString()||""],i=await l()({database:n?.toString()||"",queryString:e,queryValuesArray:t});if(!i||!i[0])return r.json({success:!1,msg:"Entry not found"});let c=JSON.parse(o||"{}");try{for(let e=0;e<c.fields.length;e++){let r=c.fields[e];r.encrypted&&r.fieldName&&(i[0][r.fieldName]=S()(i[0][r.fieldName]))}}catch(e){console.log("Error in parsing and decrypting fields in 'UpdateDbEntry' API ROute =>",e.message)}r.json({success:!0,entry:i[0]})}catch(e){u()({component:"/api/refreshEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Deletion Failed!"})}}let _=(0,o.M)(s,"default"),y=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/refreshEntry",pathname:"/api/refreshEntry",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { table , db , id } = req.query; - /** @type {string | undefined} */ // @ts-ignore - const schemaJSONString = req.query.schema; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const query = `SELECT * FROM \`${table}\` WHERE id=?`; - const queryArray = [ - id?.toString() || "" - ]; - const entry = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_0___default()({ - database: db?.toString() || "", - queryString: query, - queryValuesArray: queryArray - }); - if (!entry || !entry[0]) { - return res.json({ - success: false, - msg: "Entry not found" - }); - } - //////////////////////////////////////// - /** @type {import("@/package-shared/types").DSQL_TableSchemaType} */ const tableSchema = JSON.parse(schemaJSONString || "{}"); - try { - for(let i = 0; i < tableSchema.fields.length; i++){ - const field = tableSchema.fields[i]; - if (field.encrypted && field.fieldName) { - entry[0][field.fieldName] = _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_3___default()(entry[0][field.fieldName]); - } - } - } catch (/** @type {any} */ error) { - console.log("Error in parsing and decrypting fields in 'UpdateDbEntry' API ROute =>", error.message); - } - //////////////////////////////////////// - res.json({ - success: true, - entry: entry[0] - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/refreshEntry/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Deletion Failed!" - }); - //////////////////////////////////////// - } -} + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a<e.length;a++){let o=e[a],i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e],a=r?.fields[e];if(t?.match(n))continue;let l=o[t];("number"==typeof l||l)&&a?.encrypted&&l?.match(/./)&&(o[t]=s(l))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311], () => (__webpack_exec__(7281))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i}){let l;let c=!!t?.match(/^datasquirel$/),u=c?a:o;try{l=e&&r&&Array.isArray(r)&&r[0]?c?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&i)try{let e=l;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57237);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json index 9b5b845..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/refreshEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/registerUser.js b/dsql-app/.local_dist/server/pages/api/registerUser.js index 65e82cb..ca07266 100644 --- a/dsql-app/.local_dist/server/pages/api/registerUser.js +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js @@ -1,410 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2121; -exports.ids = [2121]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6142: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_addMariadbUser__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4294); -/* harmony import */ var _package_shared_functions_backend_addMariadbUser__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_addMariadbUser__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_9__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=3953,e.ids=[3953],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},3641:(e,r,s)=>{s.r(r),s.d(r,{config:()=>w,default:()=>x,routeModule:()=>$});var t={};s.r(t),s.d(t,{default:()=>R});var i=s(89947),a=s(2706),n=s(96762),l=s(82703),o=s.n(l),d=s(79531),u=s.n(d),c=s(43499),m=s.n(c),p=s(77538),_=s.n(p),g=s(33873),S=s.n(g),f=s(79646),E=s(5194),h=s.n(E),v=s(51348),y=s.n(v),b=s(47670),I=s.n(b),D=s(33364),A=s.n(D);let L=s(29021);async function R(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let s=e.body,{inviteObject:t}=s,i=s.first_name,a=s.last_name,n=s.email,l=s.password,d=s.username;if(!n.match(/.*@.*\..*/))return r.json({user:null,msg:"Invalid Email"});if(!i.match(/^[a-zA-Z]+$/)||!a.match(/^[a-zA-Z]+$/))return r.json({user:null,msg:"Invalid Name"});if(l?.match(/ /))return r.json({user:null,msg:"Invalid Password"});if(d?.match(/ /))return r.json({user:null,msg:"Invalid Username"});try{let e=m()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:l}),s=await y()(`SELECT * FROM users WHERE email='${n}'`);if(s&&s[0])return r.json({user:null,msg:"User Already Exists"});let c=await I()({dbFullName:"datasquirel",tableName:"users",data:{first_name:i,last_name:a,email:n,password:e,username:d}});if(!c?.insertId)return r.json({user:null,msg:"Adding User to Database failed"});await h()({userId:c.insertId});let p=o()(JSON.stringify({id:c.insertId,email:n,dateCode:Date.now()}));u()({to:n,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:L.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,process.env.DSQL_HOST||"").replace(/{{token}}/,p||"")}).then(e=>{}),"production".match(/production/),c.insertId,c.insertId;let _=process.env.DSQL_STATIC_SERVER_DIR;if(!_)throw console.log("Static File ENV not Found!"),Error("No Static Path");let g=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${c.insertId}`,E=S().join(_,`images/user-images/user-${c.insertId}`);L.mkdirSync(g,{recursive:!0}),L.mkdirSync(E,{recursive:!0}),L.writeFileSync(`${g}/main.json`,JSON.stringify([]),"utf8");let v=S().join(_,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile.jpg`),b=S().join(_,`images/user-images/user-${c.insertId}/user-${c.insertId}-profile-thumbnail.jpg`),D=v.replace(_,process.env.DSQL_STATIC_HOST||""),R=b.replace(_,process.env.DSQL_STATIC_HOST||"");if(L.copyFileSync("./public/images/user-preset.png",v),L.copyFileSync("./public/images/user-preset-thumbnail.png",b),(0,f.execSync)(`chmod 644 ${v} ${b}`),await A()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:c.insertId,data:{image:D,image_thumbnail:R}}),t){let e=await I()({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:t.invite,invited_user_id:c.insertId,database_access:t.database_access,user_priviledge:t.priviledge,user_type:"admin",first_name:i,last_name:a,email:n,username:d,image:D,image_thumbnail:R}});await y()("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);let r=await y()("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[t.invite,n]);if(await y()("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[t.invite,e.insertId]),r&&r[0]){let s=r[0].db_tables_data.split("|");for(let r=0;r<s.length;r++){let[i,a]=s[r].split("-");await I()({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:e.insertId,root_user_id:t.invite,database:i,table:a,priviledge:t.priviledge}})}}}r.json(c)}catch(e){console.log(`Error in creating user => ${e.message}`),_()({component:"/api/registerUser/main-catch-error",message:e.message,user:{first_name:i,last_name:a,email:n}}),r.json({user:null})}}let x=(0,n.M)(t,"default"),w=(0,n.M)(t,"config"),$=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/registerUser",pathname:"/api/registerUser",bundlePath:"",filename:""},userland:t})},79531:(e,r,s)=>{let t=s(29021),i=s(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:s,html:a,alias:n}){let l;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let o=(n?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!t.existsSync("./email/index.html"))return;let d=t.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let t={};t.from=`"Datasquirel" <${o}>`,t.sender=o,n&&(t["replyTo "]=o),t.to=e,t.subject=r,t.text=s,t.html=d,l=await i.sendMail(t)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return l}},77538:(e,r,s)=>{let t=s(29021),{IncomingMessage:i}=s(81630);e.exports=async function({user:e,message:r,component:s,noMail:i,req:a}){let n=new Date,l=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],s=a.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],i=s||t||r||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${s}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(i+=` +URL: ${a.url}`),a?.body&&(i+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),l&&(i+=` +IP: ${l}`),i+=` +Date: ${n.toDateString()} +========================================`,t.existsSync("./.tmp/error.log")||t.writeFileSync("./.tmp/error.log","","utf-8");let o=t.readFileSync("./.tmp/error.log","utf-8");t.writeFileSync("./.tmp/error.log",i),t.appendFileSync("./.tmp/error.log",` - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const sanitizedReqBody = req.body; - const { inviteObject } = sanitizedReqBody; - const first_name = sanitizedReqBody.first_name; - const last_name = sanitizedReqBody.last_name; - const email = sanitizedReqBody.email; - const password = sanitizedReqBody.password; - const username = sanitizedReqBody.username; - if (!email.match(/.*@.*\..*/)) return res.json({ - user: null, - msg: "Invalid Email" - }); - if (!first_name.match(/^[a-zA-Z]+$/) || !last_name.match(/^[a-zA-Z]+$/)) return res.json({ - user: null, - msg: "Invalid Name" - }); - if (password?.match(/ /)) return res.json({ - user: null, - msg: "Invalid Password" - }); - if (username?.match(/ /)) return res.json({ - user: null, - msg: "Invalid Username" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - /** ********************* Hash Password */ let hashedPassword = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_2___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: password - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let existingUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7___default()(`SELECT * FROM users WHERE email='${email}'`); - if (existingUser && existingUser[0]) return res.json({ - user: null, - msg: "User Already Exists" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const newUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8___default()({ - dbFullName: "datasquirel", - tableName: "users", - data: { - first_name, - last_name, - email, - password: hashedPassword, - username - } - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - // console.log(response); - if (!newUser?.insertId) return res.json({ - user: null, - msg: "Adding User to Database failed" - }); - /** - * Add a Mariadb User for this User - */ await _package_shared_functions_backend_addMariadbUser__WEBPACK_IMPORTED_MODULE_6___default()({ - userId: newUser.insertId - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Create new Stripe customer - * - * @description Create a new stripe customer - */ // let newStripeCustomer = await handlePayments( - // "create_customer", - // { - // email: email, - // name: first_name + " " + last_name, - // description: "Agent user", - // }, - // { - // id: newUser.insertId, - // email: email, - // first_name: first_name, - // user_type: "agents", - // } - // ); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Send email Verification - * - * @description Send verification email to newly created agent - */ let generatedToken = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_0___default()(JSON.stringify({ - id: newUser.insertId, - email: email, - dateCode: Date.now() - })); - _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_1___default()({ - to: email, - subject: "Verify Email Address", - text: "Please click the link to verify your email address", - html: fs.readFileSync("./email/send-email-verification-link.html", "utf8").replace(/{{host}}/, process.env.DSQL_HOST || "").replace(/{{token}}/, generatedToken || "") - }).then((mail)=>{ - // console.log("User verification email =>", mail); - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const isProduction = "production".match(/production/); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let userImageName = `users_${newUser.insertId}.jpg`; - let userImageTnumbnailName = `users_${newUser.insertId}_thumbnail.jpg`; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path"); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ let newUserSchemaFolderPath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${newUser.insertId}`; - let newUserMediaFolderPath = path__WEBPACK_IMPORTED_MODULE_4___default().join(STATIC_ROOT, `images/user-images/user-${newUser.insertId}`); - fs.mkdirSync(newUserSchemaFolderPath, { - recursive: true - }); - fs.mkdirSync(newUserMediaFolderPath, { - recursive: true - }); - fs.writeFileSync(`${newUserSchemaFolderPath}/main.json`, JSON.stringify([]), "utf8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let imagePath = path__WEBPACK_IMPORTED_MODULE_4___default().join(STATIC_ROOT, `images/user-images/user-${newUser.insertId}/user-${newUser.insertId}-profile.jpg`); - let imageThumbnailPath = path__WEBPACK_IMPORTED_MODULE_4___default().join(STATIC_ROOT, `images/user-images/user-${newUser.insertId}/user-${newUser.insertId}-profile-thumbnail.jpg`); - let prodImageUrl = imagePath.replace(STATIC_ROOT, process.env.DSQL_STATIC_HOST || ""); - let prodImageThumbnailUrl = imageThumbnailPath.replace(STATIC_ROOT, process.env.DSQL_STATIC_HOST || ""); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - fs.copyFileSync("./public/images/user-preset.png", imagePath); - fs.copyFileSync("./public/images/user-preset-thumbnail.png", imageThumbnailPath); - (0,child_process__WEBPACK_IMPORTED_MODULE_5__.execSync)(`chmod 644 ${imagePath} ${imageThumbnailPath}`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const updateImages = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_9___default()({ - dbFullName: "datasquirel", - tableName: "users", - identifierColumnName: "id", - identifierValue: newUser.insertId, - data: { - image: prodImageUrl, - image_thumbnail: prodImageThumbnailUrl - } - }); - // await global.DB_HANDLER(` - // UPDATE - // users - // SET - // image='${isProduction ? prodImageUrl : imagePath.replace(/^\.\/public/, "")}', - // image_thumbnail='${isProduction ? prodImageThumbnailUrl : imageThumbnailPath.replace(/^\.\/public/, "")}' - // WHERE - // id='${newUser.insertId}' - // `); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (inviteObject) { - const newUserUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8___default()({ - dbFullName: "datasquirel", - tableName: "user_users", - data: { - user_id: inviteObject.invite, - invited_user_id: newUser.insertId, - database_access: inviteObject.database_access, - user_priviledge: inviteObject.priviledge, - user_type: "admin", - first_name, - last_name, - email, - username, - image: prodImageUrl, - image_thumbnail: prodImageThumbnailUrl - } - }); - const inviteAccepted = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7___default()(`UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?`, [ - inviteObject.invite, - email - ]); - const dbTableData = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7___default()(`SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - inviteObject.invite, - email - ]); - const clearEntries = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_7___default()(`DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?`, [ - inviteObject.invite, - newUserUser.insertId - ]); - if (dbTableData && dbTableData[0]) { - const dbTableEntries = dbTableData[0].db_tables_data.split("|"); - for(let i = 0; i < dbTableEntries.length; i++){ - const dbTableEntry = dbTableEntries[i]; - const dbTableEntryArray = dbTableEntry.split("-"); - const [db_slug, table_slug] = dbTableEntryArray; - const newEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_8___default()({ - dbFullName: "datasquirel", - tableName: "delegated_user_tables", - data: { - delegated_user_id: newUserUser.insertId, - root_user_id: inviteObject.invite, - database: db_slug, - table: table_slug, - priviledge: inviteObject.priviledge - } - }); - } - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json(newUser); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(`Error in creating user => ${error.message}`); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/registerUser/main-catch-error", - message: error.message, - user: { - first_name, - last_name, - email - } - }); - res.json({ - user: null - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,6926,7487,4294], () => (__webpack_exec__(6142))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},5194:(e,r,s)=>{let t=s(47795),i=s(51348),a=s(45356),n=s(82703),l=s(47670);e.exports=async function({userId:e}){try{let r=process.env.DSQL_DB_HOST||"127.0.0.1",s=`dsql_user_${e}`,o=t.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),d=n(o);await a(`CREATE USER IF NOT EXISTS '${s}'@'127.0.0.1' IDENTIFIED BY '${o}' REQUIRE SSL`),await i("UPDATE users SET mariadb_user = ?, mariadb_host = '127.0.0.1', mariadb_pass = ? WHERE id = ?",[s,d,e]),await l({tableName:"mariadb_users",data:{user_id:e,username:s,host:r,password:d,primary:"1",grants:'[{"database":"*","table":"*","privileges":["ALL"]}]'},dbContext:"Master"}),console.log(`User ${e} SQL credentials successfully added.`)}catch(e){console.log("Error in adding SQL user in 'addMariadbUser' function =>",e.message)}}},45356:(e,r,s)=>{let t=s(9973),i=s(21580),a=t({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,charset:"utf8mb4",ssl:i()}});e.exports=function(...e){try{return new Promise((r,s)=>{a.query(...e).then(e=>{a.end(),r(JSON.parse(JSON.stringify(e)))}).catch(e=>{a.end(),r({error:e.message,sql:e.sql})})})}catch(e){return{success:!1,error:e.message}}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050],()=>s(3641));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json index 68ecb4a..ffe0a68 100644 --- a/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/registerUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/6926.js","../../chunks/7487.js","../../chunks/4294.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/generate-password/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/generate-password/main.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/generate-password/main.js","../../../../node_modules/generate-password/package.json","../../../../node_modules/generate-password/src/generate.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/renameMedia.js b/dsql-app/.local_dist/server/pages/api/renameMedia.js index 5515e4a..5ed7b13 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js @@ -1,213 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5146; -exports.ids = [5146]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6354: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6715); -/* harmony import */ var _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=8103,e.ids=[8103],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17499:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>$,routeModule:()=>y});var a={};t.r(a),t.d(a,{default:()=>E});var n=t(89947),s=t(2706),i=t(96762),o=t(6420),l=t.n(o),u=t(77538),c=t.n(u),d=t(51348),m=t.n(d);t(33873);var p=t(48227),_=t.n(p),f=t(27825),S=t.n(f);let h=t(29021);async function E(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body.mediaObject,n=e.body.newName,s=e.body.newThumbnailName,i=e.body.replace;try{"production".match(/production/);let e=a.media_url.match(/\..{3,4}$/)[0],o=a?.private==1;if(!process.env.DSQL_STATIC_SERVER_DIR)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let l=_()({isPrivate:o,user:t,folder:a.folder?a.folder+"/":"",video:!!a.media_type?.match(/video/i)});if(!l)throw Error("Couldn't grab paths!");let{fileRootPath:u,urlRootPath:c,relativePath:d}=l,p=`${u}${a.media_name}${e}`,f=`${u}${n}${e}`,E=`${u}${a.media_name}_thumbnail${e}`,$=`${u}${n}_thumbnail${e}`,g=new RegExp(S().escapeRegExp(`${a.media_name}`)),y=a.media_url.replace(g,n),P=a.media_url.replace(g,n+"_thumbnail"),v=a.media_path?a.media_path.replace(g,n):`${d}${n}`,R=a.media_thumbnail_path?a.media_thumbnail_path.replace(g,n):`${d}${s}`;if(h.existsSync(f)&&!i)return r.json({success:!1,msg:"File already exists"});h.renameSync(p,f);try{h.renameSync(E,$)}catch(e){}await m()("UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?",[n,y,P,v,R,a.id]),r.json({success:!0})}catch(e){console.log("Error in renaming media =>",e.message),c()({component:"/api/renameMedia/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Renaming failed. Please try again."})}}let $=(0,i.M)(a,"default"),g=(0,i.M)(a,"config"),y=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/renameMedia",pathname:"/api/renameMedia",bundlePath:"",filename:""},userland:a})},48227:(e,r,t)=>{let a=t(29021),n=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:s,pathOnly:i}){"production".match(/production/);let o=r?.id||r?.user_id,l=process.env.DSQL_STATIC_SERVER_DIR;if(!l)return console.log("Static File ENV not Found!"),null;let u=e?`@/${s?"videos":"media"}/${t?t+"/":""}`:s?`/videos/user-videos/user-${o}/${t?t+"/":""}`:`/images/user-images/user-${o}/${t?t+"/":""}`,c=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/media/${t?t+"/":""}`:n.join(l,u);return a.existsSync(c)||i||a.mkdirSync(c,{recursive:!0}),{fileRootPath:c,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${u}`,relativePath:u}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:s}){let i=new Date,o=(()=>{if(!s)return null;try{let e=s.headers["x-forwarded-for"],r=s.headers["x-real-ip"],t=s.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||a||r||s.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),s?.url&&(n+=` +URL: ${s.url}`),s?.body&&(n+=` +Request Body: ${JSON.stringify(s.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${i.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let l=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",n),a.appendFileSync("./.tmp/error.log",` - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ // const { mediaObject, newName, replace } = req.body; - const mediaObject = req.body.mediaObject; - const newName = req.body.newName; - const newThumbnailName = req.body.newThumbnailName; - const replace = req.body.replace; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const isProduction = "production".match(/production/); - const fileExtension = mediaObject.media_url.match(/\..{3,4}$/)[0]; - const isPrivate = mediaObject?.private == 1 ? true : false; - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - const grabedPaths = _functions_backend_grabPaths__WEBPACK_IMPORTED_MODULE_4___default()({ - isPrivate: isPrivate, - user: user, - folder: mediaObject.folder ? mediaObject.folder + "/" : "", - video: mediaObject.media_type?.match(/video/i) ? true : false - }); - if (!grabedPaths) { - throw new Error("Couldn't grab paths!"); - } - const { fileRootPath , urlRootPath , relativePath } = grabedPaths; - const rootFolder = fileRootPath; - let imagePath = rootFolder; - const oldNamePath = `${imagePath}${mediaObject.media_name}${fileExtension}`; - const newNamePath = `${imagePath}${newName}${fileExtension}`; - const oldNameThumbnailPath = `${imagePath}${mediaObject.media_name}_thumbnail${fileExtension}`; - const newNameThumbnailPath = `${imagePath}${newName}_thumbnail${fileExtension}`; - const mediaNameRegex = new RegExp(lodash__WEBPACK_IMPORTED_MODULE_5___default().escapeRegExp(`${mediaObject.media_name}`)); - const newUrl = mediaObject.media_url.replace(mediaNameRegex, newName); - const newThumbnailUrl = mediaObject.media_url.replace(mediaNameRegex, newName + "_thumbnail"); - const newPath = mediaObject.media_path ? mediaObject.media_path.replace(mediaNameRegex, newName) : `${relativePath}${newName}`; - const newThumbnailPath = mediaObject.media_thumbnail_path ? mediaObject.media_thumbnail_path.replace(mediaNameRegex, newName) : `${relativePath}${newThumbnailName}`; - if (fs.existsSync(newNamePath) && !replace) { - return res.json({ - success: false, - msg: "File already exists" - }); - } - fs.renameSync(oldNamePath, newNamePath); - try { - fs.renameSync(oldNameThumbnailPath, newNameThumbnailPath); - } catch (error) { - // console.log(`ERROR in 'renameMedia' API route => ${error.message}`); - } - const updateMediaName = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_2___default()(`UPDATE user_media SET media_name = ?, media_url = ?, media_thumbnail_url = ?, media_path = ?, media_thumbnail_path = ? WHERE id = ?`, [ - newName, - newUrl, - newThumbnailUrl, - newPath, - newThumbnailPath, - mediaObject.id, - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - console.log("Error in renaming media =>", error1.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/renameMedia/catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Renaming failed. Please try again." - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,6715], () => (__webpack_exec__(6354))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),n=t(72907),s=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!s.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:n}=t(55511),{Buffer:s}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),s.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let a=t(9973),n=t(21580),s=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await s.query(...e);return await s.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let a=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=17499);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json b/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json index d7341a3..a31c801 100644 --- a/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/renameMedia.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/6715.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js index f8439ae..e7dc744 100644 --- a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js @@ -1,113 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2095; -exports.ids = [2095]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5339: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const { userId , dbSlug } = req.body; - /** - * Input Validation - * - * @description Input Validation - */ const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${userId}_${dbSlug}`; - const tokenName = `${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${dbFullName}`; - res.setHeader("Set-Cookie", [ - `${tokenName}=null;path=/;max-age=0` - ]); - res.json({ - success: true, - msg: "Processed Successfully" - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825], () => (__webpack_exec__(5339))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9659,e.ids=[9659],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},55961:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>l,routeModule:()=>p});var s={};r.r(s),r.d(s,{default:()=>c});var n=r(89947),o=r(2706),a=r(96762),i=r(6420),u=r.n(i);async function c(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await u()(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{userId:r,dbSlug:s}=e.body,n=`${process.env.DSQL_USER_DB_PREFIX}${r}_${s}`,o=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;t.setHeader("Set-Cookie",[`${o}=null;path=/;max-age=0`]),t.json({success:!0,msg:"Processed Successfully"})}let l=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetDelegatedDatabaseToken",pathname:"/api/resetDelegatedDatabaseToken",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),o=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let u=JSON.parse(i);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${c}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=a},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=55961);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json index e892de1..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/resetDelegatedDatabaseToken.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetPassword.js b/dsql-app/.local_dist/server/pages/api/resetPassword.js index 641b87f..9416077 100644 --- a/dsql-app/.local_dist/server/pages/api/resetPassword.js +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js @@ -1,89 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6559; -exports.ids = [6559]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 2434: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - if (req.method === "GET") { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const { email , password } = req.query; - const hashedPassword = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_1___default()({ - encryptionKey: process.env.DSQL_ENCRYPTION_PASSWORD || "", - password: String(password) - }); - const updatePassword = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`UPDATE users SET password='${hashedPassword}' WHERE email='${email}'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: updatePassword?.affectedRows ? true : false - }); - } else { - return res.json({ - msg: "UNauthorized" - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224], () => (__webpack_exec__(2434))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9971,e.ids=[9971],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,s){return s in r?r[s]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,s)):"function"==typeof r&&"default"===s?r:void 0}}})},24127:(e,r,s)=>{s.r(r),s.d(r,{config:()=>P,default:()=>l,routeModule:()=>f});var t={};s.r(t),s.d(t,{default:()=>p});var n=s(89947),o=s(2706),a=s(96762),i=s(51348),u=s.n(i),c=s(43499),d=s.n(c);async function p(e,r){if("GET"!==e.method)return r.json({msg:"UNauthorized"});{let{email:s,password:t}=e.query,n=d()({encryptionKey:process.env.DSQL_ENCRYPTION_PASSWORD||"",password:String(t)}),o=await u()(`UPDATE users SET password='${n}' WHERE email='${s}'`);r.json({success:!!o?.affectedRows})}}s(29021);let l=(0,a.M)(t,"default"),P=(0,a.M)(t,"config"),f=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/resetPassword",pathname:"/api/resetPassword",bundlePath:"",filename:""},userland:t})},51348:(e,r,s)=>{let t=s(9973),n=s(21580),o=t({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,s)=>{let t=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!t.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:t.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var s;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},89947:(e,r,s)=>{e.exports=s(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=r(r.s=24127);module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json b/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json index 623013f..2d2e177 100644 --- a/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/resetPassword.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/datasquirel/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js index 9a75bc3..948796d 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js @@ -1,165 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5774; -exports.ids = [5774]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6297: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=8563,e.ids=[8563],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},83469:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>_,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>f});var n=t(89947),a=t(2706),o=t(96762),i=t(6420),l=t.n(i),c=t(77538),u=t.n(c),d=t(57638),p=t.n(d);async function f(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{database:s,query:n,tables:a}=e.body;try{if(!n?.match(/^select .* from .*|^show tables$|^show indexes from .*|show columns from .*|^update |^delete from /i)||n?.match(/^create user|INFORMATION_SCHEMA/i))return r.json({success:!1,msg:"Disallowed query"});let e=await p()({database:`datasquirel_user_${t.id}_${s}`,queryString:n});if(!e)return r.json({success:!1,msg:"Query Failed!"});r.json({success:!0,result:e})}catch(e){u()({component:"/api/runUserDbQuery/main-catch-error",message:e.message,user:t}),r.json({success:!1})}}t(29021);let _=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/runUserDbQuery",pathname:"/api/runUserDbQuery",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ const sanitizedReqBody = req.body; - const { database , query , tables } = sanitizedReqBody; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const allowedQueryRegex = /^select .* from .*|^show tables$|^show indexes from .*|show columns from .*|^update |^delete from /i; - const disAllowedQueryRegex = /^create user|INFORMATION_SCHEMA/i; - if (!query?.match(allowedQueryRegex) || query?.match(disAllowedQueryRegex)) { - return res.json({ - success: false, - msg: "Disallowed query" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const result = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - database: `datasquirel_user_${user.id}_${database}`, - queryString: query - }); - if (!result) { - return res.json({ - success: false, - msg: "Query Failed!" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - result - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/runUserDbQuery/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} + +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),n=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let a=0;a<e.length;a++){let o=e[a],i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e],a=r?.fields[e];if(t?.match(n))continue;let l=o[t];("number"==typeof l||l)&&a?.encrypted&&l?.match(/./)&&(o[t]=s(l))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,8326,1311], () => (__webpack_exec__(6297))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),n=t(48225),a=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i}){let l;let c=!!t?.match(/^datasquirel$/),u=c?a:o;try{l=e&&r&&Array.isArray(r)&&r[0]?c?await u(e,r):await u({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):c?await u(e):await u({paradigm:"Full Access",database:t,queryString:e})}catch(e){n({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&i)try{let e=l;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),n({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=u?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=83469);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json index 9b5b845..51cfb6c 100644 --- a/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/runUserDbQuery.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js index b974db9..6e389ab 100644 --- a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js @@ -1,121 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5110; -exports.ids = [5110]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 4991: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -const handleNodemailer = __webpack_require__(6926); -const encrypt = __webpack_require__(7547); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - if (req.method === "GET") { - /** ********************* User Auth */ let user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res); - if (!user) return res.redirect(307, "/logout"); - // return; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let generatedToken = encrypt(JSON.stringify({ - id: user.id, - email: user.email, - dateCode: Date.now() - })); - let host = process.env.DSQL_HOST; - let mail = await handleNodemailer({ - to: user.email, - subject: "Verify Email Address", - text: "Please click the link to verify your email address", - html: fs.readFileSync("./email/send-email-verification-link.html", "utf8").replace(/{{host}}/, host || "").replace(/{{token}}/, generatedToken || "") - }); - //////////////////////////////////////// - if (!mail) return res.json({ - success: false - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); - } -} +"use strict";(()=>{var e={};e.id=7714,e.ids=[7714],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},11074:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>d,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>f});var n=r(89947),i=r(2706),a=r(96762),o=r(6420),l=r.n(o);let c=r(29021),u=r(79531),p=r(82703);async function f(e,t){if("GET"===e.method){let r=await l()(e,t);if(!r)return t.redirect(307,"/logout");let s=p(JSON.stringify({id:r.id,email:r.email,dateCode:Date.now()})),n=process.env.DSQL_HOST;if(!await u({to:r.email,subject:"Verify Email Address",text:"Please click the link to verify your email address",html:c.readFileSync("./email/send-email-verification-link.html","utf8").replace(/{{host}}/,n||"").replace(/{{token}}/,s||"")}))return t.json({success:!1});t.json({success:!0})}}let d=(0,a.M)(s,"default"),S=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sendEmailVerificationLink",pathname:"/api/sendEmailVerificationLink",bundlePath:"",filename:""},userland:s})},79531:(e,t,r)=>{let s=r(29021),n=r(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:t,text:r,html:i,alias:a}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let c=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,i||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,a&&(s["replyTo "]=l),s.to=e,s.subject=t,s.text=r,s.html=c,o=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),i=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:i}=r(79428),a=r(48225);e.exports=(e,t,r)=>{let o=n("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=o.update(e,"utf8","hex");return t+=o.final("hex")}catch(e){return a({component:"encrypt",message:e.message}),null}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:n}){let i=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let a=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,7547,6926], () => (__webpack_exec__(4991))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${a}`)}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=11074);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json index 9e6ca40..bdcac26 100644 --- a/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sendEmailVerificationLink.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/7547.js","../../chunks/6926.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js index 8fcd93d..a38c98b 100644 --- a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js @@ -1,159 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8426; -exports.ids = [8426]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9842: -/***/ ((module) => { - -// @ts-check -/** - * Delay async function - * - * @param {number} [milliseconds] - * - * @returns {Promise<boolean>} new user auth object payload - */ -module.exports = async function delay(milliseconds) { - await new Promise((resolve, reject)=>{ - setTimeout(()=>{ - resolve(true); - }, milliseconds || 1000); - }); - return true; -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// +"use strict";(()=>{var e={};e.id=2655,e.ids=[2655],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},67136:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>S,routeModule:()=>_});var s={};r.r(s),r.d(s,{default:()=>d});var n=r(89947),o=r(2706),a=r(96762),i=r(91766),l=r.n(i);r(6420);let c=r(29021),u=r(79531),p=r(82703);async function d(e,t){if("GET"===e.method){let r=p(JSON.stringify({email:e.query.email,dateCode:Date.now()})),s=process.env.DSQL_HOST,n=e.query.email;if(!String(n).match(/.*@.*\..*/))return t.json({user:null,msg:"Invalid Email"});let o=e.headers["x-real-ip"]||e.headers["x-forwarded-for"]||e.connection.remoteAddress,a=process.env.DSQL_HOST||"https://datasquirel.com",i=await u({to:e.query.email?.toString()||process.env.DSQL_CONTACT_EMAIL,subject:"Reset Your Password",text:"Please click the link to reset your password",html:c.readFileSync("./email/send-password-reset-link.html","utf8").replace(/{{host}}/,s||"").replace(/{{ip}}/,String(o)).replace(/{{token}}/,r||""),alias:"Support"});if(await l()(),u({to:process.env.DSQL_CONTACT_EMAIL,subject:`Password Reset Attempt for ${n}`,html:`<h1><u>${n}</u> tried to reset password</h1><p><b>${n}</b> attempted a password reset on ${a} from ${o} with a wrong password.</p>`}),!i)return t.json({success:!1});t.json({success:!0})}}let S=(0,a.M)(s,"default"),f=(0,a.M)(s,"config"),_=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sendPasswordResetLink",pathname:"/api/sendPasswordResetLink",bundlePath:"",filename:""},userland:s})},91766:e=>{e.exports=async function(e){return await new Promise((t,r)=>{setTimeout(()=>{t(!0)},e||1e3)}),!0}},79531:(e,t,r)=>{let s=r(29021),n=r(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:t,text:r,html:o,alias:a}){let i;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(a?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let c=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,o||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,a&&(s["replyTo "]=l),s.to=e,s.subject=t,s.text=r,s.html=c,i=await n.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return i}},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),o=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:o}=r(79428),a=r(48225);e.exports=(e,t,r)=>{let i=n("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=i.update(e,"utf8","hex");return t+=i.final("hex")}catch(e){return a({component:"encrypt",message:e.message}),null}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:n}){let o=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let a=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",o),s.appendFileSync("./.tmp/error.log",` -/***/ }), - -/***/ 8647: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_delay__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9842); -/* harmony import */ var _functions_backend_delay__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_delay__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -const handleNodemailer = __webpack_require__(6926); -const encrypt = __webpack_require__(7547); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - if (req.method === "GET") { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let generatedToken = encrypt(JSON.stringify({ - email: req.query.email, - dateCode: Date.now() - })); - let host = process.env.DSQL_HOST; - const email = req.query.email; - if (!String(email).match(/.*@.*\..*/)) return res.json({ - user: null, - msg: "Invalid Email" - }); - const ip = req.headers["x-real-ip"] || req.headers["x-forwarded-for"] || req.connection.remoteAddress; - const site = process.env.DSQL_HOST || "https://datasquirel.com"; - let mail = await handleNodemailer({ - to: req.query.email?.toString() || process.env.DSQL_CONTACT_EMAIL, - subject: "Reset Your Password", - text: "Please click the link to reset your password", - html: fs.readFileSync("./email/send-password-reset-link.html", "utf8").replace(/{{host}}/, host || "").replace(/{{ip}}/, String(ip)).replace(/{{token}}/, generatedToken || ""), - alias: "Support" - }); - await _functions_backend_delay__WEBPACK_IMPORTED_MODULE_0___default()(); - handleNodemailer({ - to: process.env.DSQL_CONTACT_EMAIL, - subject: `Password Reset Attempt for ${email}`, - html: `<h1><u>${email}</u> tried to reset password</h1><p><b>${email}</b> attempted a password reset on ${site} from ${ip} with a wrong password.</p>` - }); - //////////////////////////////////////// - if (!mail) return res.json({ - success: false - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,7547,6926], () => (__webpack_exec__(8647))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${a}`)}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=67136);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json index 9e6ca40..bdcac26 100644 --- a/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sendPasswordResetLink.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/7547.js","../../chunks/6926.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js index b165160..74aab28 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js @@ -1,197 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1799; -exports.ids = [1799]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3107: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7839); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * User auth - * - * @description Authenticate user - */ const { facebookUserId , facebookUserImage , facebookUserFullName , facebookUserFirstName , facebookUserLastName , facebookUserEmail , supEmail , } = req.body; - const { invite } = req.query; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const loggedInFacebookUser = await _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default()({ - email: facebookUserEmail, - payload: { - email: facebookUserEmail, - first_name: facebookUserFirstName, - last_name: facebookUserLastName, - social_id: facebookUserId, - social_platform: "facebook", - image: facebookUserImage, - image_thumbnail: facebookUserImage, - username: `facebook-user-${facebookUserId}` - }, - social_platform: "facebook", - res: res, - social_id: facebookUserId, - invitation: invite, - supEmail: supEmail - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json(loggedInFacebookUser); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - console.log(error.message); - // serverError({ - // component: "/api/social-login/github-auth/catch-error", - // message: error.message, - // user: user, - // }); - res.json({ - success: false, - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,6926,7487,613,4294,6968], () => (__webpack_exec__(3107))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=8464,e.ids=[8464],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},62914:(e,r,a)=>{a.r(r),a.d(r,{config:()=>d,default:()=>p,routeModule:()=>m});var i={};a.r(i),a.d(i,{default:()=>n});var o=a(89947),s=a(2706),t=a(96762),l=a(36946),u=a.n(l);async function n(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{facebookUserId:a,facebookUserImage:i,facebookUserFullName:o,facebookUserFirstName:s,facebookUserLastName:t,facebookUserEmail:l,supEmail:n}=e.body,{invite:p}=e.query;try{let e=await u()({email:l,payload:{email:l,first_name:s,last_name:t,social_id:a,social_platform:"facebook",image:i,image_thumbnail:i,username:`facebook-user-${a}`},social_platform:"facebook",res:r,social_id:a,invitation:p,supEmail:n});r.json(e)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}let p=(0,t.M)(i,"default"),d=(0,t.M)(i,"config"),m=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/social-login/facebook-auth",pathname:"/api/social-login/facebook-auth",bundlePath:"",filename:""},userland:i})}};var r=require("../../../webpack-api-runtime.js");r.C(e);var a=e=>r(r.s=e),i=r.X(0,[4050,6946],()=>a(62914));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json index 7d9706b..ba9d597 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/facebook-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/7547.js","../../../chunks/5886.js","../../../chunks/5338.js","../../../chunks/8326.js","../../../chunks/1311.js","../../../chunks/6926.js","../../../chunks/7487.js","../../../chunks/613.js","../../../chunks/4294.js","../../../chunks/6968.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/datasquirel/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/datasquirel/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../node_modules/datasquirel/utils/get.js","../../../../../node_modules/datasquirel/utils/post.js","../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../node_modules/datasquirel/users/add-user.js","../../../../../node_modules/datasquirel/users/update-user.js","../../../../../node_modules/datasquirel/users/login-user.js","../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../node_modules/datasquirel/users/get-token.js","../../../../../node_modules/datasquirel/users/get-user.js","../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/mysql/index.js","../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js index 57f92ca..bf69921 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js @@ -1,231 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3115; -exports.ids = [3115]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5687: -/***/ ((module) => { - -module.exports = require("https"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7310: -/***/ ((module) => { - -module.exports = require("url"); - -/***/ }), - -/***/ 5389: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7839); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2127); -/* harmony import */ var _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check - - -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const githubLogin = __webpack_require__(6069); -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * User auth - * - * @description Authenticate user - */ const { code , email , invite } = req.query; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const gitHubUser = await githubLogin({ - code: code?.toString() || "", - clientId: process.env.DSQL_GITHUB_ID || "", - clientSecret: process.env.DSQL_GITHUB_SECRET || "" - }); - if (!gitHubUser) { - return res.json({ - success: false, - msg: "No github user returned" - }); - } - if (!gitHubUser?.email && !email) { - return res.json({ - success: false, - msg: "Github User Email not present" - }); - } - const loggedInGithubUser = await _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default()({ - email: gitHubUser.email, - payload: { - email: gitHubUser.email, - first_name: _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_1___default()(gitHubUser.login)?.split(" ")[0], - last_name: _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_1___default()(gitHubUser.login)?.split(" ")[1], - social_id: gitHubUser.id, - social_platform: "github", - image: gitHubUser.avatar_url, - image_thumbnail: gitHubUser.avatar_url, - username: "github-user-" + gitHubUser.name - }, - social_platform: "github", - invitation: invite, - res: res, - social_id: gitHubUser.id, - supEmail: email ? email.toString() : undefined - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json(loggedInGithubUser); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - console.log("ERROR in 'github-auth' API route =>", error.message); - // serverError({ - // component: "/api/social-login/github-auth/catch-error", - // message: error.message, - // user: user, - // }); - res.json({ - success: false, - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,6926,7487,613,4294,6968,722,9971], () => (__webpack_exec__(5389))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7551,e.ids=[7551],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},13337:(e,t,r)=>{r.r(t),r.d(t,{config:()=>d,default:()=>m,routeModule:()=>g});var s={};r.r(s),r.d(s,{default:()=>h});var o=r(89947),i=r(2706),a=r(96762),n=r(36946),l=r.n(n),u=r(17549),c=r.n(u);let p=r(59777);async function h(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});let{code:r,email:s,invite:o}=e.query;try{let e=await p({code:r?.toString()||"",clientId:process.env.DSQL_GITHUB_ID||"",clientSecret:process.env.DSQL_GITHUB_SECRET||""});if(!e)return t.json({success:!1,msg:"No github user returned"});if(!e?.email&&!s)return t.json({success:!1,msg:"Github User Email not present"});let i=await l()({email:e.email,payload:{email:e.email,first_name:c()(e.login)?.split(" ")[0],last_name:c()(e.login)?.split(" ")[1],social_id:e.id,social_platform:"github",image:e.avatar_url,image_thumbnail:e.avatar_url,username:"github-user-"+e.name},social_platform:"github",invitation:o,res:t,social_id:e.id,supEmail:s?s.toString():void 0});t.json(i)}catch(e){console.log("ERROR in 'github-auth' API route =>",e.message),t.json({success:!1,msg:"Failed!"})}}let m=(0,a.M)(s,"default"),d=(0,a.M)(s,"config"),g=new o.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/github-auth",pathname:"/api/social-login/github-auth",bundlePath:"",filename:""},userland:s})},10779:(e,t,r)=>{let s=r(55591),o=r(81630),{URL:i}=r(79551);e.exports=function({url:e,method:t,hostname:r,path:a,headers:n,body:l,port:u,scheme:c}){let p=l?JSON.stringify(l):null,h=e?new i(e):null,m={method:t||"GET",hostname:h?h.hostname:r,port:c?.match(/https/i)?443:h?h.protocol?.match(/https/i)?443:h.port:u?Number(u):80,headers:{}};return a&&(m.path=a),n&&(m.headers=n),l&&(m.headers["Content-Type"]="application/json",m.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?s:h?.protocol?.match(/https/i)?s:o).request(m,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}},59777:(e,t,r)=>{r(29021);let{hashPassword:s}=r(18481);r(77538);let o=r(10779),i=r(51348);e.exports=async function({code:e,clientId:t,clientSecret:r}){let s;try{let a=await o({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),n=JSON.parse(a);if(!n?.access_token)return s;let l=await o({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${n.access_token}`,"User-Agent":"*"},scheme:"https"});if(s=JSON.parse(l),!s?.email&&s){let e=await i(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${s.id}'`);e&&e[0]&&(s.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.js backend function =>",e.message)}return s}},18481:(e,t,r)=>{let{createHmac:s}=r(55511);t.hashPassword=function(e){let t=s("sha512",process.env.DSQL_ENCRYPTION_PASSWORD||"");return t.update(e),t.digest("base64")}},17549:e=>{e.exports=function(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e<t.length;e++){let s=t[e];0!==e&&s.match(/[A-Z]/)&&r.push(e)}let s=[`${t[0].toUpperCase()}${e.substring(1,r[0])}`];for(let o=0;o<r.length;o++){let i=r[o];if(0===i)continue;let a=i+1,n=r[o+1];s.push(`${t[i].toUpperCase()}${e.substring(a,n)}`)}return s.join(" ")}}}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[4050,6946],()=>r(13337));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json index 9a4efb6..ba9d597 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/github-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/7547.js","../../../chunks/5886.js","../../../chunks/5338.js","../../../chunks/8326.js","../../../chunks/1311.js","../../../chunks/6926.js","../../../chunks/7487.js","../../../chunks/613.js","../../../chunks/4294.js","../../../chunks/6968.js","../../../chunks/722.js","../../../chunks/9971.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/datasquirel/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/datasquirel/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../node_modules/datasquirel/utils/get.js","../../../../../node_modules/datasquirel/utils/post.js","../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../node_modules/datasquirel/users/add-user.js","../../../../../node_modules/datasquirel/users/update-user.js","../../../../../node_modules/datasquirel/users/login-user.js","../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../node_modules/datasquirel/users/get-token.js","../../../../../node_modules/datasquirel/users/get-user.js","../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/mysql/index.js","../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js index 1e70ca5..2af49c4 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js @@ -1,265 +1 @@ -(() => { -var exports = {}; -exports.id = 5288; -exports.ids = [5288]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -"use strict"; -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -"use strict"; -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6781: -/***/ ((module) => { - -"use strict"; -module.exports = require("google-auth-library"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -"use strict"; -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -"use strict"; -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -"use strict"; -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -"use strict"; -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -"use strict"; -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -"use strict"; -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 5382: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -// @ts-check -const { createHmac } = __webpack_require__(6113); -// -/** - * # Password Hash function - * @param {string} password - * @returns - */ function hashPassword(password) { - const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD || ""); - hmac.update(password); - let hashed = hmac.digest("base64"); - return hashed; -} -exports.hashPassword = hashPassword; // export const comparePasswords = async (password) => { - // const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD); - // hmac.update(password); - // let hashed = hmac.digest("base64"); - // let dbPass = await global.DB_HANDLER(`SELECT * FROM users WHERE password = '${hashed}'`); - // console.log(dbPass); - // return dbPass; - // }; - - -/***/ }), - -/***/ 2666: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7839); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const { OAuth2Client } = __webpack_require__(6781); -const { hashPassword , } = __webpack_require__(5382); -const serverError = __webpack_require__(2163); - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * User auth - * - * @description Authenticate user - */ const reqBody = req.body; - const { invite } = req.query; - const { token } = reqBody; - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Send Response - * - * @description Send a boolean response - */ try { - const client = new OAuth2Client(""); - const ticket = await client.verifyIdToken({ - idToken: token, - audience: "" - }); - const payload = ticket.getPayload(); - if (!payload || !payload.email_verified) { - res.json({ - user: null, - msg: "Invalid Credentials" - }); - return; - } - const { given_name , family_name , email , sub , picture , email_verified } = payload; - if (!email) throw new Error("No Email"); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const loggedInGoogleUser = await _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_0___default()({ - email: email, - payload: { - email: email, - first_name: given_name, - last_name: family_name, - social_id: sub, - social_platform: "google", - image: picture, - image_thumbnail: picture, - username: `google-user-${sub}` - }, - social_platform: "google", - res: res, - social_id: sub, - invitation: invite - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json(loggedInGoogleUser); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - console.log(error.message); - // serverError({ - // component: "/api/social-login/github-auth/catch-error", - // message: error.message, - // user: user, - // }); - res.json({ - success: false, - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,6926,7487,613,4294,6968], () => (__webpack_exec__(2666))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7867,e.ids=[7867],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},47795:e=>{e.exports=require("generate-password")},76154:e=>{e.exports=require("google-auth-library")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},50293:(e,r,a)=>{a.r(r),a.d(r,{config:()=>m,default:()=>g,routeModule:()=>c});var i={};a.r(i),a.d(i,{default:()=>p});var o=a(89947),s=a(2706),t=a(96762),l=a(36946),u=a.n(l);let{OAuth2Client:n}=a(76154),{hashPassword:d}=a(18481);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let a=e.body,{invite:i}=e.query,{token:o}=a;try{let e=new n(""),a=(await e.verifyIdToken({idToken:o,audience:""})).getPayload();if(!a||!a.email_verified){r.json({user:null,msg:"Invalid Credentials"});return}let{given_name:s,family_name:t,email:l,sub:d,picture:p,email_verified:g}=a;if(!l)throw Error("No Email");let m=await u()({email:l,payload:{email:l,first_name:s,last_name:t,social_id:d,social_platform:"google",image:p,image_thumbnail:p,username:`google-user-${d}`},social_platform:"google",res:r,social_id:d,invitation:i});r.json(m)}catch(e){console.log(e.message),r.json({success:!1,msg:"Failed!"})}}a(77538);let g=(0,t.M)(i,"default"),m=(0,t.M)(i,"config"),c=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/social-login/google-auth",pathname:"/api/social-login/google-auth",bundlePath:"",filename:""},userland:i})},18481:(e,r,a)=>{let{createHmac:i}=a(55511);r.hashPassword=function(e){let r=i("sha512",process.env.DSQL_ENCRYPTION_PASSWORD||"");return r.update(e),r.digest("base64")}}};var r=require("../../../webpack-api-runtime.js");r.C(e);var a=e=>r(r.s=e),i=r.X(0,[4050,6946],()=>a(50293));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json index 8046b64..5f7b34f 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/google-auth.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/3017.js","../../../chunks/3403.js","../../../chunks/7547.js","../../../chunks/5886.js","../../../chunks/5338.js","../../../chunks/8326.js","../../../chunks/1311.js","../../../chunks/6926.js","../../../chunks/7487.js","../../../chunks/613.js","../../../chunks/4294.js","../../../chunks/6968.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/datasquirel/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/node-fetch/package.json","../../../../../node_modules/google-auth-library/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/datasquirel/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/node-fetch/lib/index.js","../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../node_modules/datasquirel/utils/get.js","../../../../../node_modules/datasquirel/utils/post.js","../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../node_modules/datasquirel/users/add-user.js","../../../../../node_modules/datasquirel/users/update-user.js","../../../../../node_modules/datasquirel/users/login-user.js","../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../node_modules/datasquirel/users/get-token.js","../../../../../node_modules/datasquirel/users/get-user.js","../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/mysql/index.js","../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../node_modules/whatwg-url/package.json","../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/debug/package.json","../../../../../node_modules/debug/src/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../node_modules/jws/package.json","../../../../../node_modules/jws/index.js","../../../../../node_modules/lru-cache/package.json","../../../../../node_modules/lru-cache/index.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/arrify/index.js","../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../node_modules/gaxios/package.json","../../../../../node_modules/gaxios/build/src/index.js","../../../../../node_modules/gcp-metadata/package.json","../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../node_modules/gtoken/package.json","../../../../../node_modules/gtoken/build/src/index.js","../../../../../node_modules/arrify/package.json","../../../../../node_modules/debug/src/browser.js","../../../../../node_modules/debug/src/node.js","../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/jws/lib/sign-stream.js","../../../../../node_modules/jws/lib/verify-stream.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../node_modules/debug/src/common.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../node_modules/gaxios/build/src/common.js","../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/yallist/package.json","../../../../../node_modules/yallist/yallist.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/jws/lib/data-stream.js","../../../../../node_modules/jws/lib/tostring.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/tr46/package.json","../../../../../node_modules/tr46/index.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/webidl-conversions/package.json","../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../node_modules/fast-text-encoding/package.json","../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../node_modules/gaxios/build/src/retry.js","../../../../../node_modules/base64-js/package.json","../../../../../node_modules/base64-js/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/supports-color/index.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/supports-color/package.json","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/json-bigint/package.json","../../../../../node_modules/json-bigint/index.js","../../../../../node_modules/yallist/iterator.js","../../../../../node_modules/google-p12-pem/package.json","../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../node_modules/ms/package.json","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/jwa/package.json","../../../../../node_modules/jwa/index.js","../../../../../node_modules/ms/index.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/extend/package.json","../../../../../node_modules/is-stream/index.js","../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../node_modules/json-bigint/lib/parse.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/extend/index.js","../../../../../node_modules/https-proxy-agent/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../node_modules/is-stream/package.json","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/has-flag/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/has-flag/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../node_modules/node-forge/package.json","../../../../../node_modules/node-forge/lib/index.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/node-forge/lib/aes.js","../../../../../node_modules/node-forge/lib/forge.js","../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../node_modules/node-forge/lib/cipher.js","../../../../../node_modules/node-forge/lib/asn1.js","../../../../../node_modules/node-forge/lib/des.js","../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../node_modules/node-forge/lib/hmac.js","../../../../../node_modules/node-forge/lib/kem.js","../../../../../node_modules/node-forge/lib/log.js","../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../node_modules/node-forge/lib/md.all.js","../../../../../node_modules/node-forge/lib/pem.js","../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../node_modules/node-forge/lib/pki.js","../../../../../node_modules/node-forge/lib/prime.js","../../../../../node_modules/node-forge/lib/prng.js","../../../../../node_modules/node-forge/lib/pss.js","../../../../../node_modules/node-forge/lib/random.js","../../../../../node_modules/node-forge/lib/rc2.js","../../../../../node_modules/node-forge/lib/ssh.js","../../../../../node_modules/node-forge/lib/tls.js","../../../../../node_modules/node-forge/lib/util.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/agent-base/package.json","../../../../../node_modules/agent-base/dist/src/index.js","../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../node_modules/node-forge/lib/oids.js","../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../node_modules/node-forge/lib/sha512.js","../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../node_modules/node-forge/lib/md.js","../../../../../node_modules/node-forge/lib/sha1.js","../../../../../node_modules/node-forge/lib/sha256.js","../../../../../node_modules/node-forge/lib/md5.js","../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../node_modules/node-forge/lib/pbe.js","../../../../../node_modules/node-forge/lib/rsa.js","../../../../../node_modules/node-forge/lib/x509.js","../../../../../node_modules/node-forge/lib/baseN.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/node-forge/lib/mgf.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../node_modules/agent-base/dist/src/index.js","../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../node_modules/agent-base/package.json","../../../../../node_modules/arrify/index.js","../../../../../node_modules/arrify/package.json","../../../../../node_modules/base64-js/index.js","../../../../../node_modules/base64-js/package.json","../../../../../node_modules/bignumber.js/bignumber.js","../../../../../node_modules/bignumber.js/package.json","../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/debug/package.json","../../../../../node_modules/debug/src/browser.js","../../../../../node_modules/debug/src/common.js","../../../../../node_modules/debug/src/index.js","../../../../../node_modules/debug/src/node.js","../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../node_modules/deepmerge/package.json","../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../node_modules/dom-serializer/lib/index.js","../../../../../node_modules/dom-serializer/package.json","../../../../../node_modules/domelementtype/lib/index.js","../../../../../node_modules/domelementtype/package.json","../../../../../node_modules/domhandler/lib/index.js","../../../../../node_modules/domhandler/lib/node.js","../../../../../node_modules/domhandler/package.json","../../../../../node_modules/domutils/lib/feeds.js","../../../../../node_modules/domutils/lib/helpers.js","../../../../../node_modules/domutils/lib/index.js","../../../../../node_modules/domutils/lib/legacy.js","../../../../../node_modules/domutils/lib/manipulation.js","../../../../../node_modules/domutils/lib/querying.js","../../../../../node_modules/domutils/lib/stringify.js","../../../../../node_modules/domutils/lib/traversal.js","../../../../../node_modules/domutils/package.json","../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../node_modules/entities/lib/decode.js","../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../node_modules/entities/lib/encode.js","../../../../../node_modules/entities/lib/escape.js","../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../node_modules/entities/lib/index.js","../../../../../node_modules/entities/package.json","../../../../../node_modules/escape-string-regexp/index.js","../../../../../node_modules/escape-string-regexp/package.json","../../../../../node_modules/extend/index.js","../../../../../node_modules/extend/package.json","../../../../../node_modules/fast-text-encoding/package.json","../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../node_modules/gaxios/build/src/common.js","../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../node_modules/gaxios/build/src/index.js","../../../../../node_modules/gaxios/build/src/retry.js","../../../../../node_modules/gaxios/package.json","../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../node_modules/gcp-metadata/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../node_modules/google-auth-library/package.json","../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../node_modules/google-p12-pem/package.json","../../../../../node_modules/gtoken/build/src/index.js","../../../../../node_modules/gtoken/package.json","../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../node_modules/htmlparser2/lib/index.js","../../../../../node_modules/htmlparser2/package.json","../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../node_modules/https-proxy-agent/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../node_modules/is-plain-object/package.json","../../../../../node_modules/is-stream/index.js","../../../../../node_modules/is-stream/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/json-bigint/index.js","../../../../../node_modules/json-bigint/lib/parse.js","../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../node_modules/json-bigint/package.json","../../../../../node_modules/jwa/index.js","../../../../../node_modules/jwa/package.json","../../../../../node_modules/jws/index.js","../../../../../node_modules/jws/lib/data-stream.js","../../../../../node_modules/jws/lib/sign-stream.js","../../../../../node_modules/jws/lib/tostring.js","../../../../../node_modules/jws/lib/verify-stream.js","../../../../../node_modules/jws/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/lru-cache/index.js","../../../../../node_modules/lru-cache/package.json","../../../../../node_modules/ms/index.js","../../../../../node_modules/ms/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../node_modules/nanoid/non-secure/package.json","../../../../../node_modules/nanoid/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/node-fetch/lib/index.js","../../../../../node_modules/node-fetch/package.json","../../../../../node_modules/node-forge/lib/aes.js","../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../node_modules/node-forge/lib/asn1.js","../../../../../node_modules/node-forge/lib/baseN.js","../../../../../node_modules/node-forge/lib/cipher.js","../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../node_modules/node-forge/lib/des.js","../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../node_modules/node-forge/lib/forge.js","../../../../../node_modules/node-forge/lib/hmac.js","../../../../../node_modules/node-forge/lib/index.js","../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../node_modules/node-forge/lib/kem.js","../../../../../node_modules/node-forge/lib/log.js","../../../../../node_modules/node-forge/lib/md.all.js","../../../../../node_modules/node-forge/lib/md.js","../../../../../node_modules/node-forge/lib/md5.js","../../../../../node_modules/node-forge/lib/mgf.js","../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../node_modules/node-forge/lib/oids.js","../../../../../node_modules/node-forge/lib/pbe.js","../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../node_modules/node-forge/lib/pem.js","../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../node_modules/node-forge/lib/pki.js","../../../../../node_modules/node-forge/lib/prime.js","../../../../../node_modules/node-forge/lib/prng.js","../../../../../node_modules/node-forge/lib/pss.js","../../../../../node_modules/node-forge/lib/random.js","../../../../../node_modules/node-forge/lib/rc2.js","../../../../../node_modules/node-forge/lib/rsa.js","../../../../../node_modules/node-forge/lib/sha1.js","../../../../../node_modules/node-forge/lib/sha256.js","../../../../../node_modules/node-forge/lib/sha512.js","../../../../../node_modules/node-forge/lib/ssh.js","../../../../../node_modules/node-forge/lib/tls.js","../../../../../node_modules/node-forge/lib/util.js","../../../../../node_modules/node-forge/lib/x509.js","../../../../../node_modules/node-forge/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/parse-srcset/package.json","../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../node_modules/picocolors/package.json","../../../../../node_modules/picocolors/picocolors.js","../../../../../node_modules/postcss/lib/at-rule.js","../../../../../node_modules/postcss/lib/comment.js","../../../../../node_modules/postcss/lib/container.js","../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../node_modules/postcss/lib/declaration.js","../../../../../node_modules/postcss/lib/document.js","../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../node_modules/postcss/lib/input.js","../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../node_modules/postcss/lib/list.js","../../../../../node_modules/postcss/lib/map-generator.js","../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../node_modules/postcss/lib/node.js","../../../../../node_modules/postcss/lib/parse.js","../../../../../node_modules/postcss/lib/parser.js","../../../../../node_modules/postcss/lib/postcss.js","../../../../../node_modules/postcss/lib/previous-map.js","../../../../../node_modules/postcss/lib/processor.js","../../../../../node_modules/postcss/lib/result.js","../../../../../node_modules/postcss/lib/root.js","../../../../../node_modules/postcss/lib/rule.js","../../../../../node_modules/postcss/lib/stringifier.js","../../../../../node_modules/postcss/lib/stringify.js","../../../../../node_modules/postcss/lib/symbols.js","../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../node_modules/postcss/lib/tokenize.js","../../../../../node_modules/postcss/lib/warn-once.js","../../../../../node_modules/postcss/lib/warning.js","../../../../../node_modules/postcss/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/safe-buffer/index.js","../../../../../node_modules/safe-buffer/package.json","../../../../../node_modules/sanitize-html/index.js","../../../../../node_modules/sanitize-html/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../node_modules/source-map-js/lib/base64.js","../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../node_modules/source-map-js/lib/util.js","../../../../../node_modules/source-map-js/package.json","../../../../../node_modules/source-map-js/source-map.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/tr46/index.js","../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../node_modules/tr46/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../node_modules/webidl-conversions/package.json","../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../node_modules/whatwg-url/package.json","../../../../../node_modules/yallist/iterator.js","../../../../../node_modules/yallist/package.json","../../../../../node_modules/yallist/yallist.js","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js index 1964d16..6fbd660 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js @@ -1,102 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6267; -exports.ids = [6267]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 9986: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ if (!req.query?.email?.toString()?.match(/^\S+$/)) { - res.json({ - email: null - }); - } - let email = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT email FROM users WHERE email=?`, [ - req.query.email, - ]); - if (email && email[0]) { - res.json({ - email: email - }); - } else { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - email: null - }); - } -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224], () => (__webpack_exec__(9986))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=151,e.ids=[151],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},73147:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>c,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>l});var s=t(89947),i=t(2706),o=t(96762),a=t(51348),u=t.n(a);async function l(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});e.query?.email?.toString()?.match(/^\S+$/)||r.json({email:null});let t=await u()("SELECT email FROM users WHERE email=?",[e.query.email]);t&&t[0]?r.json({email:t}):r.json({email:null})}let c=(0,o.M)(n,"default"),p=(0,o.M)(n,"config"),d=new s.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/social-login/utils/checkEmail",pathname:"/api/social-login/utils/checkEmail",bundlePath:"",filename:""},userland:n})},51348:(e,r,t)=>{let n=t(9973),s=t(21580),i=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()}});async function o(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let n=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!n.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:n.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=73147);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json index 3d6066b..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkEmail.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js index 7ecc17e..3ab3859 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js @@ -1,100 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5445; -exports.ids = [5445]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 8740: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ const sanitizedReqBody = req.query; - const { social_id , social_platform } = sanitizedReqBody; - let socialId = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT social_id FROM users WHERE social_id=? AND social_platform=?`, [ - social_id, - social_platform - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (social_id && social_id[0]) { - res.json({ - social_id: socialId - }); - } else { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - social_id: null - }); - } -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224], () => (__webpack_exec__(8740))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7007,e.ids=[7007],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},30317:(e,r,t)=>{t.r(r),t.d(r,{config:()=>d,default:()=>l,routeModule:()=>p});var s={};t.r(s),t.d(s,{default:()=>u});var n=t(89947),o=t(2706),i=t(96762),a=t(51348),c=t.n(a);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:t,social_platform:s}=e.query,n=await c()("SELECT social_id FROM users WHERE social_id=? AND social_platform=?",[t,s]);t&&t[0]?r.json({social_id:n}):r.json({social_id:null})}let l=(0,i.M)(s,"default"),d=(0,i.M)(s,"config"),p=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/checkSocialId",pathname:"/api/social-login/utils/checkSocialId",bundlePath:"",filename:""},userland:s})},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=30317);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json index 3d6066b..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/checkSocialId.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js index 4a56391..9884457 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js @@ -1,100 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4828; -exports.ids = [4828]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 6750: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ const sanitizedReqBody = req.query; - const { social_id , social_platform } = sanitizedReqBody; - let email = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT email FROM users WHERE social_id=? AND social_platform=?`, [ - social_id, - social_platform - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (email && email[0]) { - res.json({ - email: email[0].email - }); - } else { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - email: null - }); - } -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224], () => (__webpack_exec__(6750))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3589,e.ids=[3589],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},80960:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>c,routeModule:()=>d});var n={};t.r(n),t.d(n,{default:()=>u});var s=t(89947),o=t(2706),i=t(96762),a=t(51348),l=t.n(a);async function u(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});let{social_id:t,social_platform:n}=e.query,s=await l()("SELECT email FROM users WHERE social_id=? AND social_platform=?",[t,n]);s&&s[0]?r.json({email:s[0].email}):r.json({email:null})}let c=(0,i.M)(n,"default"),p=(0,i.M)(n,"config"),d=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/social-login/utils/getEmailFromSocialId",pathname:"/api/social-login/utils/getEmailFromSocialId",bundlePath:"",filename:""},userland:n})},51348:(e,r,t)=>{let n=t(9973),s=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let n=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!n.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:n.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=80960);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json index 3d6066b..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/social-login/utils/getEmailFromSocialId.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/create.js b/dsql-app/.local_dist/server/pages/api/sql-users/create.js index 4fdadb2..0d0f9a7 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/create.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js @@ -1,236 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3363; -exports.ids = [3363]; -exports.modules = { - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 8210: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -const fs = __webpack_require__(7147); -const generator = __webpack_require__(3785); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=7889,e.ids=[7889],e.modules={47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},66650:(e,r,t)=>{t.r(r),t.d(r,{config:()=>R,default:()=>y,routeModule:()=>A});var s={};t.r(s),t.d(s,{default:()=>g});var n=t(89947),a=t(2706),o=t(96762),i=t(6420),l=t.n(i),c=t(77538),u=t.n(c);t(27825);var p=t(33873),d=t.n(p),f=t(79646),m=t(51348),S=t.n(m),h=t(82703),E=t.n(h);t(29021);let _=t(47795);async function g(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{data:s,edit:n,grants:a}=e.body;try{let e=process.env.DSQL_DB_HOST||"127.0.0.1",n=`dsql_user_${t.id}`,{host:o,password:i}=s;if(!o.match(/./))throw Error("Invalid host");if(o.match(/^%$/))throw Error("Cannot set a catch-all host for this user.");let l=String(o).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,""),c=i?.match(/./)?i:_.generate({length:16,numbers:!0,symbols:!0,uppercase:!0,exclude:"*#.'`\""}),u=await S()("SELECT * FROM mysql.user WHERE User = ? AND (Host = ? OR Host = ?)",[n,l,e]);if(u?.[0]?.User)throw Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts.");if(l.match(/^%$/))throw Error("Can't create a catch-all host for this username. Catch-all host is only allowed on the primary user.");let p=await S()("SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?",[t.id]);if(p?.[0]?.["COUNT(*)"]>=10)throw Error("User limit reached");let m=E()(c),h=await S()("INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)",[t.id,n,l,m,JSON.stringify(a)]);if(!h?.insertId)throw Error("Error in adding SQL user");let g=d().resolve(process.cwd(),"./shell/mariadb-users");(0,f.execSync)(`node refreshUsersAndGrants.js --userId ${t.id} --username ${n} --host ${l}`,{cwd:g}),r.json({success:!0})}catch(e){console.log("Create MariaDB user ERROR:",e.message),u()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}let y=(0,o.M)(s,"default"),R=(0,o.M)(s,"config"),A=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/sql-users/create",pathname:"/api/sql-users/create",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),a=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!a.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428),o=t(48225);e.exports=(e,r,t)=>{let i=n("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=i.update(e,"utf8","hex");return r+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ const { data , edit , grants } = req.body; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const defaultMariadbUserHost = process.env.DSQL_DB_HOST || "127.0.0.1"; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const username = `dsql_user_${user.id}`; - const { host , password } = data; - if (!host.match(/./)) { - throw new Error("Invalid host"); - } - if (host.match(/^%$/)) { - throw new Error("Cannot set a catch-all host for this user."); - } - const sanitizedNewHost = String(host).replace(/[^a-zA-Z0-9-\.\:\/\%]/g, ""); - const finPassword = password?.match(/./) ? password : generator.generate({ - length: 16, - numbers: true, - symbols: true, - uppercase: true, - exclude: "*#.'`\"" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const existinSQLUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM mysql.user WHERE User = ? AND (Host = ? OR Host = ?)`, [ - username, - sanitizedNewHost, - defaultMariadbUserHost - ]); - const doesSQLUserExist = Boolean(existinSQLUser?.[0]?.User); - if (doesSQLUserExist) { - throw new Error("SQL User already exists. Remember if you have the '%' host on your primary user, it catches all other hosts."); - } - const absoluteHost = Boolean(sanitizedNewHost.match(/^%$/)); - if (absoluteHost) { - throw new Error("Can't create a catch-all host for this username. Catch-all host is only allowed on the primary user."); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const existingUsersCount = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT COUNT(*) FROM mariadb_users WHERE user_id = ?`, [ - user.id - ]); - if (existingUsersCount?.[0]?.["COUNT(*)"] >= 10) { - throw new Error("User limit reached"); - } - const encryptedPassword = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6___default()(finPassword); - const newMariaDBUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`INSERT INTO mariadb_users (user_id, username, host, password, grants) VALUES (?, ?, ?, ?, ?)`, [ - user.id, - username, - sanitizedNewHost, - encryptedPassword, - JSON.stringify(grants), - ]); - if (!newMariaDBUser?.insertId) { - throw new Error("Error in adding SQL user"); - } - const execPath = path__WEBPACK_IMPORTED_MODULE_3___default().resolve(process.cwd(), "./shell/mariadb-users"); - const execSQLUserScript = (0,child_process__WEBPACK_IMPORTED_MODULE_4__.execSync)(`node refreshUsersAndGrants.js --userId ${user.id} --username ${username} --host ${sanitizedNewHost}`, { - cwd: execPath - }); - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log("Create MariaDB user ERROR:", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/acceptUserInvitation/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Error in adding SQL user =>" + error.message, - err: error.message - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,7547], () => (__webpack_exec__(8210))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=66650);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json index 23c9bbe..3e9de43 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/create.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../chunks/3017.js","../../../chunks/7547.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/generate-password/main.js","../../../../../node_modules/generate-password/package.json","../../../../../node_modules/generate-password/src/generate.js","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js index 09d17e1..e1c8b4a 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js @@ -1,168 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7049; -exports.ids = [7049]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 9577: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=536,e.ids=[536],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36968:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>p});var n=t(89947),i=t(2706),a=t(96762),o=t(6420),u=t.n(o),l=t(77538),c=t.n(l);t(27825);var d=t(51348),f=t.n(d);async function p(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{id:s}=e.body;try{let e=await f()("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[s,t.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");if(String(n.primary)?.match(/1/))throw Error("Cannot Delete Primary User");let i=`dsql_user_${t.id}`,a=n.host;await f()("DELETE FROM mariadb_users WHERE user_id = ? AND id = ?",[t.id,n.id]),await f()(`DROP USER '${i}'@'${a}'`),r.json({success:!0})}catch(e){c()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}t(29021);let S=(0,a.M)(s,"default"),_=(0,a.M)(s,"config"),m=new n.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/sql-users/delete",pathname:"/api/sql-users/delete",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:i}){let a=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],r=i.headers["x-real-ip"],t=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||i.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(n+=` +URL: ${i.url}`),i?.body&&(n+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(n+=` +IP: ${o}`),n+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let u=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ const { id } = req.body; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - const existingMariaDBUserArray = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?`, [ - id, - user.id - ]); - /** - * @type {import("@/package-shared/types").MYSQL_mariadb_users_table_def | undefined} - */ const activeMariadbUserObject = existingMariaDBUserArray?.[0]; - if (!activeMariadbUserObject?.id) { - throw new Error("Active User couldn't be verified"); - } - const isPrimary = String(activeMariadbUserObject.primary)?.match(/1/) ? true : false; - if (isPrimary) { - throw new Error("Cannot Delete Primary User"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const username = `dsql_user_${user.id}`; - const host = activeMariadbUserObject.host; - const deleteUserFromDatasquirelDb = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`DELETE FROM mariadb_users WHERE user_id = ? AND id = ?`, [ - user.id, - activeMariadbUserObject.id - ]); - const deleteSQLUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`DROP USER '${username}'@'${host}'`); - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/acceptUserInvitation/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Error in adding SQL user =>" + error.message, - err: error.message - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(9577))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),i=t(29021);async function a(e,r,t,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=n(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!i.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=a},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:i}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function a(...e){try{let r=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36968);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json index 2800882..2620715 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/delete.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/update.js b/dsql-app/.local_dist/server/pages/api/sql-users/update.js index 6428bb1..50eccd9 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/update.js +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js @@ -1,219 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9685; -exports.ids = [9685]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2287: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=2350,e.ids=[2350],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},46849:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>g,routeModule:()=>R});var s={};t.r(s),t.d(s,{default:()=>_});var n=t(89947),o=t(2706),i=t(96762),a=t(6420),l=t.n(a),u=t(77538),c=t.n(u);t(27825);var d=t(51348),p=t.n(d),f=t(33873),S=t.n(f),m=t(79646),E=t(82703),h=t.n(E);async function _(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{data:s,edit:n,prev:o,grants:i}=e.body;try{if(!o?.id)throw Error("Invalid existing DB entry");let e=await p()("SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?",[o.id,t.id]),n=e?.[0];if(!n?.id)throw Error("Active User couldn't be verified");let a=`dsql_user_${t.id}`,{host:l,password:u}=s;if(!l)throw Error("No host provided");if(l.match(/^%$/))throw Error("Cannot set a catch-all host for this user.");let c=String(l).replace(/[^a-zA-Z0-9-\.\:\/\%]/g,"");if(n.host!=s.host){let e=await p()("SELECT * FROM mariadb_users WHERE user_id = ? AND host = ?",[t.id,c]);if(e?.[0]?.id)throw Error("User already exists with this host. Please choose another host.");await p()(`RENAME USER '${a}'@'${n.host}' TO '${a}'@'${c}'`)}let d=h()(u),f=d==n.password?n.password:d;await p()("UPDATE mariadb_users SET host = ?, password = ?, grants = ? WHERE id = ?",[c,f,JSON.stringify(i),n.id]),await p()(`SET PASSWORD FOR '${a}'@'${c}' = PASSWORD('${u}');`);let E=S().resolve(process.cwd(),"./shell/mariadb-users");(0,m.execSync)(`node refreshUsersAndGrants.js --userId ${t.id} --username ${a} --host ${c} --sql-user-id ${n.id}}`,{cwd:E}),r.json({success:!0})}catch(e){c()({component:"/api/acceptUserInvitation/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Error in adding SQL user =>"+e.message,err:e.message})}}t(29021);let g=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),R=new n.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sql-users/update",pathname:"/api/sql-users/update",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:o}){let i=new Date,a=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||o.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(n+=` +URL: ${o.url}`),o?.body&&(n+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),a&&(n+=` +IP: ${a}`),n+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),n=t(72907),o=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=n(e.cookies.datasquirelAuthKey);if(!a)return null;let l=JSON.parse(a);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:o}=t(79428),i=t(48225);e.exports=(e,r,t)=>{let a=n("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=a.update(e,"utf8","hex");return r+=a.final("hex")}catch(e){return i({component:"encrypt",message:e.message}),null}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let o=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",o),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ const { data , edit , prev , grants } = req.body; - /** - * @type {import("@/package-shared/types").MYSQL_mariadb_users_table_def | undefined} - */ const existingMariaDBUser = prev; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - if (!existingMariaDBUser?.id) { - throw new Error("Invalid existing DB entry"); - } - const existingMariaDBUserArray = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT * FROM mariadb_users WHERE id = ? AND user_id = ?`, [ - existingMariaDBUser.id, - user.id - ]); - /** - * @type {import("@/package-shared/types").MYSQL_mariadb_users_table_def | undefined} - */ const activeMariadbUserObject = existingMariaDBUserArray?.[0]; - if (!activeMariadbUserObject?.id) { - throw new Error("Active User couldn't be verified"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const username = `dsql_user_${user.id}`; - const { host , password } = data; - if (!host) { - throw new Error("No host provided"); - } - if (host.match(/^%$/)) { - throw new Error("Cannot set a catch-all host for this user."); - } - const sanitizedNewHost = String(host).replace(/[^a-zA-Z0-9-\.\:\/\%]/g, ""); - if (activeMariadbUserObject.host != data.host) { - const existinUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT * FROM mariadb_users WHERE user_id = ? AND host = ?`, [ - user.id, - sanitizedNewHost - ]); - if (!existinUser?.[0]?.id) { - const renameUser = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`RENAME USER '${username}'@'${activeMariadbUserObject.host}' TO '${username}'@'${sanitizedNewHost}'`); - } else { - throw new Error("User already exists with this host. Please choose another host."); - } - } - const encryptedPassword = _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_6___default()(password); - const finalPassword = encryptedPassword == activeMariadbUserObject.password ? activeMariadbUserObject.password : encryptedPassword; - const updateUserEntry = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`UPDATE mariadb_users SET host = ?, password = ?, grants = ? WHERE id = ?`, [ - sanitizedNewHost, - finalPassword, - JSON.stringify(grants), - activeMariadbUserObject.id, - ]); - const updateSQLUserPassword = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SET PASSWORD FOR '${username}'@'${sanitizedNewHost}' = PASSWORD('${password}');`); - const execPath = path__WEBPACK_IMPORTED_MODULE_4___default().resolve(process.cwd(), "./shell/mariadb-users"); - const execSQLUserScript = (0,child_process__WEBPACK_IMPORTED_MODULE_5__.execSync)(`node refreshUsersAndGrants.js --userId ${user.id} --username ${username} --host ${sanitizedNewHost} --sql-user-id ${activeMariadbUserObject.id}}`, { - cwd: execPath - }); - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/acceptUserInvitation/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Error in adding SQL user =>" + error.message, - err: error.message - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,7547], () => (__webpack_exec__(2287))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function i(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=46849);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json b/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json index 411e269..bba4859 100644 --- a/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sql-users/update.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../chunks/3017.js","../../../chunks/7547.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/stream/[path].js b/dsql-app/.local_dist/server/pages/api/stream/[path].js index 89a66e4..e1f11e7 100644 --- a/dsql-app/.local_dist/server/pages/api/stream/[path].js +++ b/dsql-app/.local_dist/server/pages/api/stream/[path].js @@ -1,83 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3620; -exports.ids = [3620]; -exports.modules = { - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2288: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Invalid Request" - }); - const videoDir = path__WEBPACK_IMPORTED_MODULE_0___default().resolve(process.cwd(), "./public/videos"); - const videoName = req.query.name; - if (!videoName || typeof videoName !== "string") { - res.status(400).end("No video name provided"); - return; - } - const videoPath = path__WEBPACK_IMPORTED_MODULE_0___default().join(videoDir, videoName); - if (!fs.existsSync(videoPath)) { - res.status(400).end("Video not found"); - return; - } - const stat = fs.statSync(videoPath); - const fileSize = stat.size; - const range = req.headers.range; - const videoReadStream = fs.createReadStream(videoPath); - videoReadStream.pipe(res); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(2288)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5141,e.ids=[5141],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,n){return n in t?t[n]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,n)):"function"==typeof t&&"default"===n?t:void 0}}})},33921:(e,t,n)=>{n.r(t),n.d(t,{config:()=>P,default:()=>f,routeModule:()=>c});var r={};n.r(r),n.d(r,{default:()=>p});var i=n(89947),a=n(2706),o=n(96762),u=n(33873),s=n.n(u);let d=n(29021);async function p(e,t){if("GET"!==e.method)return t.json({msg:"Invalid Request"});let n=s().resolve(process.cwd(),"./public/videos"),r=e.query.name;if(!r||"string"!=typeof r){t.status(400).end("No video name provided");return}let i=s().join(n,r);if(!d.existsSync(i)){t.status(400).end("Video not found");return}d.statSync(i).size,e.headers.range,d.createReadStream(i).pipe(t)}let f=(0,o.M)(r,"default"),P=(0,o.M)(r,"config"),c=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/stream/[path]",pathname:"/api/stream/[path]",bundlePath:"",filename:""},userland:r})},2706:(e,t)=>{var n;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return n}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(n||(n={}))},89947:(e,t,n)=>{e.exports=n(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var n=t(t.s=33921);module.exports=n})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json b/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json index cb5da74..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/stream/[path].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sync-table-data.js b/dsql-app/.local_dist/server/pages/api/sync-table-data.js index cda2d31..2e8a329 100644 --- a/dsql-app/.local_dist/server/pages/api/sync-table-data.js +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js @@ -1,357 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4266; -exports.ids = [4266]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7441: -/***/ ((module) => { - -module.exports = require("sharp"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6339: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ handler) -}); - -// EXTERNAL MODULE: ./package-shared/functions/backend/encrypt.js -var encrypt = __webpack_require__(7547); -// EXTERNAL MODULE: ./functions/backend/fsWriteImageToDiskFromBase64.js -var fsWriteImageToDiskFromBase64 = __webpack_require__(5910); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2163); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(6825); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(2224); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/importExportTableDataFn.js -var importExportTableDataFn = __webpack_require__(2630); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(1352); -;// CONCATENATED MODULE: ./functions/backend/delegatedUser.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const http = __webpack_require__(3685); -const delegatedUser_serverError = __webpack_require__(2163); -const delegatedUser_DB_HANDLER = __webpack_require__(2224); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} delegatedUserTableObject - * @property {string} db - * @property {string} table - */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @async - * - * @param {object} params - * @param {delegatedUserTableObject[]} params.tbls - Database name slug - * @param {{ id: number, first_name: string, last_name: string }} params.user - user object - * @param {any} params.query - query params - * - * @returns {Promise<{ - * isPriviledged: boolean, - * rootUserId?: number, - * error?: string, - * }>} new user auth object payload - */ async function delegatedUser({ tbls , user , query }) { - /** - * Fetch user - * - * @description Fetch user from db - */ let rootUserId; - if (!query?.delegated) { - return { - isPriviledged: true, - rootUserId: user.id - }; - } - try { - for(let i = 0; i < tbls.length; i++){ - const obj = tbls[i]; - const check = await delegatedUser_DB_HANDLER(`SELECT * FROM delegated_user_tables WHERE delegated_user_id='${user.id}' AND \`database\`='${obj.db}' AND \`table\`='${obj.table}'`); - if (!check?.[0]?.root_user_id) throw new Error("Unauthorized!"); - const delegateObj = check[0]; - if (!rootUserId) rootUserId = delegateObj.root_user_id; - } - return { - isPriviledged: true, - rootUserId - }; - } catch (/** @type {any} */ error) { - return { - isPriviledged: false, - rootUserId, - error: error.message - }; - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(8164); -;// CONCATENATED MODULE: ./pages/api/sync-table-data.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=538,e.ids=[538],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},41848:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>y,routeModule:()=>R});var a={};t.r(a),t.d(a,{default:()=>h});var s=t(89947),o=t(2706),l=t(96762);t(82703),t(10701);var i=t(77538),n=t.n(i),d=t(6420),u=t.n(d),c=t(27825),m=t.n(c),p=t(51348),f=t.n(p),b=t(27444);t(39831),t(81630),t(77538);let _=t(51348);async function S({tbls:e,user:r,query:t}){let a;if(!t?.delegated)return{isPriviledged:!0,rootUserId:r.id};try{for(let t=0;t<e.length;t++){let s=e[t],o=await _(`SELECT * FROM delegated_user_tables WHERE delegated_user_id='${r.id}' AND \`database\`='${s.db}' AND \`table\`='${s.table}'`);if(!o?.[0]?.root_user_id)throw Error("Unauthorized!");let l=o[0];a||(a=l.root_user_id)}return{isPriviledged:!0,rootUserId:a}}catch(e){return{isPriviledged:!1,rootUserId:a,error:e.message}}}var g=t(49827);t(29021),t(33873);let{execSync:E}=t(79646);async function h(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await u()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{paradigm:a,src:s,dst:o}=e.body;try{let l=await S({tbls:[{db:s.db,table:s.table},{db:o.db,table:o.table}],user:t,query:e.query});if(!l.rootUserId||!l.isPriviledged)throw Error(l.error||"Unauthorized!");let i=(0,g.default)({userId:l.rootUserId});if(!i)throw Error("User Schema Data not Found!");let n=`${process.env.DSQL_USER_DB_PREFIX}${l.rootUserId}_${o.db}`,d=`${process.env.DSQL_USER_DB_PREFIX}${l.rootUserId}_${s.db}`,u=i.find(e=>e.dbFullName==n),c=i.find(e=>e.dbFullName==d),p=u?.tables.find(e=>e.tableName==o.table),_=c?.tables.find(e=>e.tableName==s.table);if(!p||!_)throw Error("Operation Failed! Tables Schemas not present.");if(!m().isEqual(_.fields,p.fields))throw Error("Tables incompatible");switch(a){case"Push":let E=await f()(`SELECT * FROM ${d}.${s.table}`),h=await (0,b.A)({dbName:o.db,paradigm:"import",payload:E,tableName:o.table,userId:l.rootUserId,payloadType:"object"});return await $({dbName:o.db,tableName:o.table,data:E,userId:l.rootUserId}),r.json({success:!0,payload:h});case"Pull":let y=await f()(`SELECT * FROM ${n}.${o.table}`),v=await (0,b.A)({dbName:s.db,paradigm:"import",payload:y,tableName:s.table,userId:l.rootUserId,payloadType:"object"});return await $({dbName:s.db,tableName:s.table,data:y,userId:l.rootUserId}),r.json({success:!0,payload:v})}r.json({success:!1})}catch(e){console.log(e.message),n()({component:"/api/sync-table-data",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}async function $({dbName:e,tableName:r,data:t,userId:a}){let s=`${process.env.DSQL_USER_DB_PREFIX}${a}_${e.replace(/ /g,"")}`,o=t.map(e=>e.id),l=`DELETE FROM ${s}.${r}`;o?.[0]&&(l+=` WHERE id NOT IN (${o.join(",")})`),await f()(l)}let y=(0,l.M)(a,"default"),v=(0,l.M)(a,"config"),R=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/sync-table-data",pathname:"/api/sync-table-data",bundlePath:"",filename:""},userland:a})},10701:(e,r,t)=>{let a=t(9288),s=t(77538),o=t(48227);e.exports=async function({imageSourceBase64:e,imageName:r,user:t,mimeType:l,thumbnailSize:i,folder:n,isPrivate:d}){try{let s=Buffer.from(e,"base64"),u=i?parseInt(i.toString()):400,c=a(s),m=a(s),p=o({isPrivate:d,user:t,folder:n});if(!p)return null;let{fileRootPath:f,urlRootPath:b,relativePath:_}=p,{width:S,height:g,format:E}=await c.metadata(),h=l||E;S&&g&&S>1800&&c.resize(1800,Math.round(1800/S*g),{fit:"cover"}),c.toFormat(h,{quality:80}),await c.metadata();let $=`${r}.${h}`;if(await c.toFile(f+$),S&&g&&S>u){let e=u/S;m.resize(u,Math.round(g*e),{fit:"cover"})}else S&&g&&m.resize(150,Math.round(150/S*g),{fit:"cover"});m.toFormat(h,{quality:80});let y=`${r}_thumbnail.${h}`;return await m.toFile(f+y),{urlPath:b+$,urlThumbnailPath:b+y,urlRelativePath:_+$,urlThumbnailRelativePath:_+y}}catch(e){return console.log("Write Image to Disk error =>",e.message),s({component:"functions/backend/fsWriteImageToDiskFromBase64",message:e.message}),null}}},39831:(e,r,t)=>{t(81630);let a=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,l=null;if(!s?.delegated)return{dbUserId:o};let i=s.dbUserId,n=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,d=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${n}`;try{if(!e.cookies?.[d])throw Error("Cookie not present");let t=a(e.cookies[d]);if(!t)throw Error("Invalid Token");if((l=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},48227:(e,r,t)=>{let a=t(29021),s=t(33873);e.exports=function({isPrivate:e,user:r,folder:t,video:o,pathOnly:l}){"production".match(/production/);let i=r?.id||r?.user_id,n=process.env.DSQL_STATIC_SERVER_DIR;if(!n)return console.log("Static File ENV not Found!"),null;let d=e?`@/${o?"videos":"media"}/${t?t+"/":""}`:o?`/videos/user-videos/user-${i}/${t?t+"/":""}`:`/images/user-images/user-${i}/${t?t+"/":""}`,u=e?`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${i}/media/${t?t+"/":""}`:s.join(n,d);return a.existsSync(u)||l||a.mkdirSync(u,{recursive:!0}),{fileRootPath:u,urlRootPath:e?`@/media/${t?t+"/":""}`:`${process.env.DSQL_STATIC_HOST}${d}`,relativePath:d}}},49827:(e,r,t)=>{t.r(r),t.d(r,{default:()=>l});let a=t(77538),s=t(29021),o=t(33873);function l({userId:e}){try{let r=o.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(r,"utf-8"))}catch(e){return a({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},27444:(e,r,t)=>{t.d(r,{A:()=>i});var a=t(47670),s=t.n(a);let o=t(77538),l=t(51348);async function i({paradigm:e,userId:r,dbName:t,tableName:a,payload:i,payloadType:n}){let d={};try{let o=`${process.env.DSQL_USER_DB_PREFIX}${r}_${t.replace(/ /g,"")}`;switch(e){case"export":let u=await l(`SELECT * FROM \`${o}\`.\`${a}\``);d.tableData=u;break;case"import":let c="base64"==n?Buffer.from(i,"base64").toString():i,m="object"===n?i:JSON.parse(c);for(let e=0;e<m.length;e++){let r=m[e],t=await s()({data:r,dbFullName:o,tableName:a,dbContext:"Dsql User",paradigm:"Full Access",duplicateColumnName:"id",duplicateColumnValue:r?.id,update:!0});if(t.error)throw Error(t.error)}break;default:return null}return d}catch(e){return o({component:"/functions/backend/importExportTableDataFn",message:e.message}),null}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:o}){let l=new Date,i=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${l.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let n=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} SyncTableBodySrcDstObject - * @property {string} db - * @property {string} table - */ /** - * @typedef {object} SyncTableBody - * @property {"Pull" | "Push"} paradigm - * @property {SyncTableBodySrcDstObject} src - * @property {SyncTableBodySrcDstObject} dst - * @property {any} [delegated] - */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await userAuth_default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * @type {SyncTableBody} - */ const { paradigm , src , dst } = req.body; - /** - * Send Response - * - * @description Send a boolean response - */ try { - const delegatedUserObj = await delegatedUser({ - tbls: [ - { - db: src.db, - table: src.table - }, - { - db: dst.db, - table: dst.table - }, - ], - user, - query: req.query - }); - if (!delegatedUserObj.rootUserId || !delegatedUserObj.isPriviledged) throw new Error(delegatedUserObj.error || "Unauthorized!"); - const userDbSchemaData = (0,grabUserSchemaData["default"])({ - userId: delegatedUserObj.rootUserId - }); - if (!userDbSchemaData) throw new Error("User Schema Data not Found!"); - const dstDbName = `${process.env.DSQL_USER_DB_PREFIX}${delegatedUserObj.rootUserId}_${dst.db}`; - const srcDbName = `${process.env.DSQL_USER_DB_PREFIX}${delegatedUserObj.rootUserId}_${src.db}`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ const dstDbSchema = userDbSchemaData.find((db)=>db.dbFullName == dstDbName); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType | undefined} */ const srcDbSchema = userDbSchemaData.find((db)=>db.dbFullName == srcDbName); - const dstTableSchema = dstDbSchema?.tables.find((tbl)=>tbl.tableName == dst.table); - const srcTableSchema = srcDbSchema?.tables.find((tbl)=>tbl.tableName == src.table); - if (!dstTableSchema || !srcTableSchema) throw new Error("Operation Failed! Tables Schemas not present."); - const isEqual = external_lodash_default().isEqual(srcTableSchema.fields, dstTableSchema.fields); - if (!isEqual) throw new Error("Tables incompatible"); - switch(paradigm){ - case "Push": - const srcData = await DB_HANDLER_default()(`SELECT * FROM ${srcDbName}.${src.table}`); - const pushData = await (0,importExportTableDataFn/* default */.Z)({ - dbName: dst.db, - paradigm: "import", - payload: srcData, - tableName: dst.table, - userId: delegatedUserObj.rootUserId, - payloadType: "object" - }); - await pruneTable({ - dbName: dst.db, - tableName: dst.table, - data: srcData, - userId: delegatedUserObj.rootUserId - }); - return res.json({ - success: true, - payload: pushData - }); - case "Pull": - const dstData = await DB_HANDLER_default()(`SELECT * FROM ${dstDbName}.${dst.table}`); - const pullData = await (0,importExportTableDataFn/* default */.Z)({ - dbName: src.db, - paradigm: "import", - payload: dstData, - tableName: src.table, - userId: delegatedUserObj.rootUserId, - payloadType: "object" - }); - await pruneTable({ - dbName: src.db, - tableName: src.table, - data: dstData, - userId: delegatedUserObj.rootUserId - }); - return res.json({ - success: true, - payload: pullData - }); - default: - break; - } - res.json({ - success: false - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - //////////////////////////////////////// - serverError_default()({ - component: "/api/sync-table-data", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: error.message - }); - //////////////////////////////////////// - } -} -/** - * - * @param {object} param0 - * @param {string | number} param0.userId - * @param {string} param0.dbName - * @param {string} param0.tableName - * @param {any[]} param0.data - */ async function pruneTable({ dbName , tableName , data , userId }) { - const dbFullName = `${process.env.DSQL_USER_DB_PREFIX}${userId}_${dbName.replace(/ /g, "")}`; - const ids = data.map((dt)=>dt.id); - let query = `DELETE FROM ${dbFullName}.${tableName}`; - if (ids?.[0]) query += ` WHERE id NOT IN (${ids.join(",")})`; - const prune = await DB_HANDLER_default()(query); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,5338,1352,6715,8164,5910,2630], () => (__webpack_exec__(6339))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72907),o=t(29021);async function l(e,r,t,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=s(e.cookies.datasquirelAuthKey);if(!i)return null;let n=JSON.parse(i);if(!n.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${n.csrf_k}`)))return null;let d=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!d)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${d}/${n.csrf_k}`))return null;if(0==n.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${n.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return n?.date&&Date.now()-n.date>6048e5?null:n}e.exports=l},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=e=>r(r.s=e),a=r.X(0,[4050],()=>t(41848));module.exports=a})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json b/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json index 838f33b..ab50327 100644 --- a/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/sync-table-data.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../chunks/1352.js","../../chunks/6715.js","../../chunks/8164.js","../../chunks/5910.js","../../chunks/2630.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/lru-cache/package.json","../../../../node_modules/lru-cache/index.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/color/index.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/color/package.json","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/yallist/package.json","../../../../node_modules/yallist/yallist.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/yallist/iterator.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/color/node_modules/color-convert/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/color/node_modules/color-convert/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/color-string/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/color-string/package.json","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/color/node_modules/color-convert/route.js","../../../../node_modules/color/node_modules/color-convert/conversions.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/color/node_modules/color-name/package.json","../../../../node_modules/color/node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../../../../node_modules/@img/sharp-linux-x64/LICENSE","../../../../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/internal/lrucache.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/cors.js b/dsql-app/.local_dist/server/pages/api/test/cors.js index 727b2f0..ac14536 100644 --- a/dsql-app/.local_dist/server/pages/api/test/cors.js +++ b/dsql-app/.local_dist/server/pages/api/test/cors.js @@ -1,57 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3148; -exports.ids = [3148]; -exports.modules = { - -/***/ 1319: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @type {import("../../../node_modules/next/dist/shared/lib/utils").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ res.setHeader("Access-Control-Allow-Credentials", "true"); - res.setHeader("Access-Control-Allow-Origin", "*"); - res.setHeader("Access-Control-Allow-Methods", "*"); - res.setHeader("Access-Control-Allow-Headers", "*"); - res.status(200).json({ - title: "Hello There", - message: "General Kenobi" - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(1319)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7885,e.ids=[7885],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},76142:(e,t,r)=>{r.r(t),r.d(t,{config:()=>u,default:()=>l,routeModule:()=>d});var n={};r.r(n),r.d(n,{default:()=>a});var o=r(89947),s=r(2706),i=r(96762);async function a(e,t){if("GET"!==e.method)return t.json({msg:"Failed!"});t.setHeader("Access-Control-Allow-Credentials","true"),t.setHeader("Access-Control-Allow-Origin","*"),t.setHeader("Access-Control-Allow-Methods","*"),t.setHeader("Access-Control-Allow-Headers","*"),t.status(200).json({title:"Hello There",message:"General Kenobi"})}let l=(0,i.M)(n,"default"),u=(0,i.M)(n,"config"),d=new o.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/test/cors",pathname:"/api/test/cors",bundlePath:"",filename:""},userland:n})},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=76142);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json b/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json index cb5da74..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/test/cors.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/mail.js b/dsql-app/.local_dist/server/pages/api/test/mail.js index 9628f78..9487002 100644 --- a/dsql-app/.local_dist/server/pages/api/test/mail.js +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js @@ -1,100 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4914; -exports.ids = [4914]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 6871: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "GET") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const mail = await _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_0___default()({ - alias: "support", - html: "<h1>Test Mail</h1><p>Hi there DSQL. Firing up on all systems now.</p>", - subject: "Test Mail", - text: "Test Mail", - to: "dexomediaorg@gmail.com" - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/addUserMedia/catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} +"use strict";(()=>{var e={};e.id=5116,e.ids=[5116],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},57646:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>d,routeModule:()=>f});var n={};t.r(n),t.d(n,{default:()=>p});var s=t(89947),a=t(2706),i=t(96762),o=t(79531),l=t.n(o),u=t(77538),c=t.n(u);async function p(e,r){if("GET"!==e.method)return r.json({msg:"Failed!"});try{await l()({alias:"support",html:"<h1>Test Mail</h1><p>Hi there DSQL. Firing up on all systems now.</p>",subject:"Test Mail",text:"Test Mail",to:"dexomediaorg@gmail.com"}),r.json({success:!0})}catch(e){c()({component:"/api/addUserMedia/catch-error",message:e.message}),r.json({success:!1,msg:"Database Files could not be written!"})}}let d=(0,i.M)(n,"default"),m=(0,i.M)(n,"config"),f=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/test/mail",pathname:"/api/test/mail",bundlePath:"",filename:""},userland:n})},79531:(e,r,t)=>{let n=t(29021),s=t(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:r,text:t,html:a,alias:i}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!n.existsSync("./email/index.html"))return;let u=n.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,a||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let n={};n.from=`"Datasquirel" <${l}>`,n.sender=l,i&&(n["replyTo "]=l),n.to=e,n.subject=r,n.text=t,n.html=u,o=await s.sendMail(n)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` +Date: ${i.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let l=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",s),n.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,6926], () => (__webpack_exec__(6871))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=57646);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json b/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json index bc70171..ecf2b2e 100644 --- a/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/test/mail.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2163.js","../../../chunks/6926.js","../../../../package.json","../../../../../node_modules/nodemailer/package.json","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../node_modules/nodemailer/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/unsubscribe.js b/dsql-app/.local_dist/server/pages/api/unsubscribe.js index c52453a..cffc60c 100644 --- a/dsql-app/.local_dist/server/pages/api/unsubscribe.js +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js @@ -1,135 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7048; -exports.ids = [7048]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3553: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Validate Form - * - * @description Check if request body is valid - */ const sanitizedReqBody = req.body; - const { email , alerts , userId } = sanitizedReqBody; - if (!alerts) { - let existingAlert = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1___default()(`SELECT email FROM unsubscribes WHERE email=? AND type='alerts'`, [ - email - ]); - if (!existingAlert || !existingAlert[0]) { - await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "unsubscribes", - data: { - email: email, - type: "alerts", - user_id: userId ? userId : null - } - }); - } - } else if (alerts) { - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_1___default()(`DELETE FROM unsubscribes WHERE email=? AND type='alerts'`, [ - email - ]); - } - /** - * Send Response - * - * @description Send a boolean response - */ res.json({ - success: true - }); -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,3017,3403,7547,5886,5338], () => (__webpack_exec__(3553))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6298,e.ids=[6298],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},10031:(e,r,s)=>{s.r(r),s.d(r,{config:()=>b,default:()=>m,routeModule:()=>c});var i={};s.r(i),s.d(i,{default:()=>p});var a=s(89947),t=s(2706),u=s(96762),l=s(47670),n=s.n(l),o=s(51348),d=s.n(o);async function p(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let{email:s,alerts:i,userId:a}=e.body;if(i)i&&await d()("DELETE FROM unsubscribes WHERE email=? AND type='alerts'",[s]);else{let e=await d()("SELECT email FROM unsubscribes WHERE email=? AND type='alerts'",[s]);e&&e[0]||await n()({dbFullName:"datasquirel",tableName:"unsubscribes",data:{email:s,type:"alerts",user_id:a||null}})}r.json({success:!0})}let m=(0,u.M)(i,"default"),b=(0,u.M)(i,"config"),c=new a.PagesAPIRouteModule({definition:{kind:t.A.PAGES_API,page:"/api/unsubscribe",pathname:"/api/unsubscribe",bundlePath:"",filename:""},userland:i})}};var r=require("../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),i=r.X(0,[4050],()=>s(10031));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json b/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json index 42eb2d4..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/unsubscribe.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js index 30cb94a..2877d43 100644 --- a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js @@ -1,172 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5461; -exports.ids = [5461]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5611: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Sanitize body - * - * @description remove all potential injections - */ const sanitizedReqBody = req.body; - const { userObject , database_access , user_priviledge , db_tables , inv_user_id , } = sanitizedReqBody; - const updateUserAccess = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?`, [ - database_access, - user_priviledge, - user.id, - userObject.email - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const dbTableEntries = db_tables.split("|"); - const clearEntries = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`DELETE FROM delegated_user_tables WHERE root_user_id='${user.id}' AND delegated_user_id='${inv_user_id}'`); - for(let i = 0; i < dbTableEntries.length; i++){ - const dbTableEntry = dbTableEntries[i]; - const dbTableEntryArray = dbTableEntry.split("-"); - const [db_slug, table_slug] = dbTableEntryArray; - // const existingEntry = await DB_HANDLER(`SELECT * FROM delegated_user_tables WHERE database='${db_slug}' AND table='${table_slug}' AND root_user_id='${user.id}' AND delegated_user_id='${inv_user_id}'`); - const newEntry = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_2___default()({ - dbFullName: "datasquirel", - tableName: "delegated_user_tables", - data: { - delegated_user_id: inv_user_id, - root_user_id: user.id, - database: db_slug, - table: table_slug, - priviledge: user_priviledge - } - }); - } - //////////////////////////////////////// - res.json({ - success: updateUserAccess?.affectedRows ? true : false - }); -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,7547,5886,5338], () => (__webpack_exec__(5611))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=294,e.ids=[294],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},98397:(e,t,r)=>{r.r(t),r.d(t,{config:()=>h,default:()=>E,routeModule:()=>m});var s={};r.r(s),r.d(s,{default:()=>f});var a=r(89947),i=r(2706),u=r(96762),l=r(51348),d=r.n(l),n=r(6420),o=r.n(n),c=r(47670),p=r.n(c);r(29021),r(33873);let{execSync:_}=r(79646);async function f(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await o()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{userObject:s,database_access:a,user_priviledge:i,db_tables:u,inv_user_id:l}=e.body,n=await d()("UPDATE user_users SET database_access = ? ,user_priviledge = ? WHERE user_id = ? AND email = ?",[a,i,r.id,s.email]),c=u.split("|");await d()(`DELETE FROM delegated_user_tables WHERE root_user_id='${r.id}' AND delegated_user_id='${l}'`);for(let e=0;e<c.length;e++){let[t,s]=c[e].split("-");await p()({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:l,root_user_id:r.id,database:t,table:s,priviledge:i}})}t.json({success:!!n?.affectedRows})}let E=(0,u.M)(s,"default"),h=(0,u.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/updateAdminUserAccess",pathname:"/api/updateAdminUserAccess",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),i=r(29021);async function u(e,t,r,u){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let d=JSON.parse(l);if(!d.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${d.csrf_k}`)))return null;let n=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!n)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${n}/${d.csrf_k}`))return null;if(0==d.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${d.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return d?.date&&Date.now()-d.date>6048e5?null:d}e.exports=u},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[4050],()=>r(98397));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json index d0ae289..dbf79a7 100644 --- a/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateAdminUserAccess.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/5338.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js index ef6efb1..91f2a82 100644 --- a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js @@ -1,176 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2114; -exports.ids = [2114]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1724: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=3133,e.ids=[3133],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},47095:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>g,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),o=t(2706),n=t(96762),l=t(39831),i=t.n(l),u=t(77538),c=t.n(u),d=t(6420),p=t.n(d);let f=t(29021),S=t(33873),{execSync:m}=t(79646);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await p()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{tableData:s}=e.body,a=e.body.database,o=e.body.dbSlug;e.body.delegated;let n=a.replace(/[^a-z\_0-9]/g,"");try{let l=await i()({request:e,user:t,databaseSlug:o,query:e.query}),u=l?.rootUserId?l.rootUserId:t.id,c=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${u}/main.json`,d=JSON.parse(f.readFileSync(c,"utf-8")),p=d.findIndex(e=>e.dbFullName===a),_=d[p].tables.findIndex(e=>e.childTable&&e.childTableDbFullName===s.childTableDbFullName&&e.childTableName===s.childTableName&&e.tableName===s.tableName);d[p].tables[_]=s,f.writeFileSync(`${c}`,JSON.stringify(d),"utf8");let g=S.join(process.cwd(),"/shell");m(`node createDbFromSchema.js --user ${u} --database ${n}`,{cwd:g}),r.json({success:!0})}catch(e){console.log(e.message),c()({component:"/api/addApiKey/catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Foreign Key update Failed."})}}let g=(0,n.M)(s,"default"),b=(0,n.M)(s,"config"),y=new a.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateClonedTableForeignKeys",pathname:"/api/updateClonedTableForeignKeys",bundlePath:"",filename:""},userland:s})},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let o=t.id,n=null;if(!a?.delegated)return{dbUserId:o};let l=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=s(e.cookies[u]);if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:o}){let n=new Date,l=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||o.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(a+=` +URL: ${o.url}`),o?.body&&(a+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${n.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { tableData } = req.body; - const database = req.body.database; - const dbSlug = req.body.dbSlug; - const delegated = req.body.delegated; - const dbFullName = database.replace(/[^a-z\_0-9]/g, ""); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const delegatedUser = await _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_0___default()({ - request: req, - user: user, - databaseSlug: dbSlug, - query: req.query - }); - const userId = delegatedUser?.rootUserId ? delegatedUser.rootUserId : user.id; - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const userSchemaObject = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf-8")); - const targetDbIndex = userSchemaObject.findIndex((db)=>db.dbFullName === database); - const targetTableIndex = userSchemaObject[targetDbIndex].tables.findIndex((tb)=>tb.childTable && tb.childTableDbFullName === tableData.childTableDbFullName && tb.childTableName === tableData.childTableName && tb.tableName === tableData.tableName); - userSchemaObject[targetDbIndex].tables[targetTableIndex] = tableData; - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaObject), "utf8"); - const targetPath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${userId} --database ${dbFullName}`, { - cwd: targetPath - }); - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - console.log(error.message); - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/addApiKey/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Foreign Key update Failed." - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,1352], () => (__webpack_exec__(1724))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),o=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=a(e.cookies.datasquirelAuthKey);if(!l)return null;let i=JSON.parse(l);if(!i.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${u}/${i.csrf_k}`))return null;if(0==i.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=n},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=47095);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json index a92c89b..0756f92 100644 --- a/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateClonedTableForeignKeys.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/1352.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js index b5d2c17..7ae120a 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js @@ -1,455 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2873; -exports.ids = [2873]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 188: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ handler) -}); - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(2224); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./functions/backend/grabDelegatedUserFromCookie.js -var grabDelegatedUserFromCookie = __webpack_require__(1352); -var grabDelegatedUserFromCookie_default = /*#__PURE__*/__webpack_require__.n(grabDelegatedUserFromCookie); -// EXTERNAL MODULE: ./functions/backend/serverError.js -var serverError = __webpack_require__(2163); -var serverError_default = /*#__PURE__*/__webpack_require__.n(serverError); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(6825); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./functions/backend/grabUserSchemaData.js -var grabUserSchemaData = __webpack_require__(8164); -// EXTERNAL MODULE: external "fs" -var external_fs_ = __webpack_require__(7147); -var external_fs_default = /*#__PURE__*/__webpack_require__.n(external_fs_); -// EXTERNAL MODULE: external "lodash" -var external_lodash_ = __webpack_require__(6517); -var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_); -;// CONCATENATED MODULE: ./functions/backend/cleanUpSchemaData.js -// @ts-check - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} updateSchemaDataReturn - */ /** - * @param {object} params - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchemaData - Existing Schema - * @param {string} params.dbFullName - Target Database full name - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - New Table Schema Data - * @param {number} params.userId - * - * @return {import("@/package-shared/types").DSQL_DatabaseSchemaType[] | null} - */ function cleanUpSchemaData({ dbSchemaData , dbFullName , table , userId , }) { - try { - let newDbSchemaData = _.cloneDeep(dbSchemaData); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Check For Expired Child Tables - * - * @description Check For Expired Child Tables - */ newDbSchemaData.forEach((db, index)=>{ - db.tables.forEach((tableObject, _index)=>{ - if (tableObject.childrenTables) { - tableObject.childrenTables.forEach((childTable, __index)=>{ - try { - const childDbTest = newDbSchemaData.filter((_db)=>_db.dbFullName === childTable.dbNameFull); - if (!childDbTest?.[0]) { - tableObject.childrenTables?.splice(__index, 1); - return; - } - const childTableObjectTest = db.tables.filter((_table)=>_table.tableName === childTable.tableName); - if (!childTableObjectTest || !childTableObjectTest[0]) { - tableObject.childrenTables?.splice(__index, 1); - return; - } - } catch (/** @type {any} */ error) {} - }); - } - }); - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Start process - * ========================================================= - * @description Analyze existing schema data and parse/update - */ const dbIndex = newDbSchemaData.findIndex((db)=>db.dbFullName === dbFullName); - const targetDb = newDbSchemaData[dbIndex]; - const targetTableIndex = targetDb.tables.findIndex((_table)=>_table.tableName === table.tableName); - const targetTable = targetDb.tables[targetTableIndex]; - if (targetTable.childrenTables) { - targetTable.childrenTables.forEach((childTable, index)=>{ - try { - const childDbTest = newDbSchemaData.filter((db)=>db.dbFullName === childTable.dbNameFull); - if (!childDbTest || !childDbTest[0]) { - targetTable.childrenTables?.splice(index, 1); - return; - } - const childDb = childDbTest[0]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const childTableObjectTest = childDb.tables.filter((tb)=>tb.tableName === childTable.tableName); - if (!childTableObjectTest || !childTableObjectTest[0]) { - targetTable.childrenTables?.splice(index, 1); - return; - } - const childTableObject = childTableObjectTest[0]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const originChildTableFieldsClone = _.cloneDeep(targetTable.fields); - // const originChildTableFields = [...targetTable.fields]; - const originChildTableIndexesClone = _.cloneDeep(targetTable.indexes); - // const originChildTableIndexes = [...targetTable.indexes]; - childTableObject.fields = originChildTableFieldsClone; - childTableObject.indexes = originChildTableIndexesClone; - childTableObject.fields.forEach((childFieldObject, index)=>{ - const targetParentField = targetTable.fields[index]; - if (targetParentField?.foreignKey) { - const foreignKeyTable = childDb.tables.filter((tbl)=>tbl.tableName === targetParentField.foreignKey?.destinationTableName); - if (foreignKeyTable && foreignKeyTable[0]) { - const foreignKeyField = foreignKeyTable[0].fields.filter((fld)=>fld.fieldName === targetParentField?.foreignKey?.destinationTableColumnName); - if (foreignKeyField && foreignKeyField[0]) { - childFieldObject.foreignKey = { - ...targetParentField.foreignKey - }; - childFieldObject.foreignKey.foreignKeyName = childFieldObject.foreignKey.foreignKeyName?.replace(/dsql_\d+_[^_]+_/, `dsql_${userId}_${childDb.dbSlug}_`); - childFieldObject.dataType = foreignKeyField[0].dataType; - } else { - delete childFieldObject.foreignKey; - } - } else { - delete childFieldObject.foreignKey; - } - } else { - delete childFieldObject.foreignKey; - } - }); - } catch (/** @type {any} */ error) { - targetTable.childrenTables?.splice(index, 1); - } - }); - } - if (targetDb.childrenDatabases) { - targetDb.childrenDatabases.forEach((childDb, index)=>{ - try { - const { dbFullName } = childDb; - const targetChildDb = newDbSchemaData.filter((db)=>db.dbFullName === dbFullName)[0]; - if (!targetChildDb || !targetChildDb.tables) { - targetDb.childrenDatabases?.splice(index, 1); - return; - } - targetChildDb.tables = targetDb.tables; - } catch (/** @type {any} */ error) {} - }); - } - return newDbSchemaData; - } catch (error) { - return null; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./functions/backend/updateSchemaData.js -// @ts-check +"use strict";(()=>{var e={};e.id=861,e.ids=[861],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},23249:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>v,routeModule:()=>P});var a={};t.r(a),t.d(a,{default:()=>y});var s=t(89947),o=t(2706),n=t(96762),l=t(51348),i=t.n(l),u=t(39831),d=t.n(u),c=t(77538),f=t.n(c),p=t(6420),m=t.n(p),b=t(49827),S=t(29021),_=t.n(S),h=t(27825),E=t.n(h);t(29021);let g=t(33873),{execSync:D}=t(79646);async function y(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await m()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let a=e.body.schema,s=e.body.database,o=e.body.table;e.body.delegated;try{let n;let l=await d()({request:e,user:t,databaseSlug:s,query:e.query}),u=l?.rootUserId?l.rootUserId:t.id,c=`datasquirel_user_${u}_${s}`.replace(/[^a-z\_0-9]/g,"");if(l?.delegated){let e=await i()("SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'",[t.id,l.rootUserId]);e&&e[0]&&(n=!0)}else n=!0;if(!n)return r.json({success:!1,msg:"Unauthorized"});let f=(0,b.default)({userId:u});if(!f)throw Error("Database schema not found!");if(!function({dbSchemaData:e,delegatedUser:r,dbFullName:t,schema:a,table:s,userId:o}){let n=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${o}/main.json`;try{if(!e)throw Error("Database schema not found!");let o=E().cloneDeep(e),l=o.find(e=>e.dbFullName==t);if(!l)throw Error("Old Database schema not found!");let i=o.findIndex(e=>e.dbFullName==t);if(i<0)throw Error("Target Database index not found!");let u=a.find(e=>e.dbFullName===t);if(!u)throw Error("New Database schema not found!");if(r?.delegated&&(r.priviledges?.match(/create.?table/i),!r.priviledges?.match(/edit.?table/i)))throw Error("Unauthorized!");let d=u.tables.find(e=>e.tableName==s.tableName);if(!d)throw Error("Table schema not found!");let c=l.tables.findIndex(e=>e.tableName==s.tableName);d&&(o[i].tables[c]=d);let f=l?.childrenDatabases;f?.forEach(e=>{let r=o.findIndex(r=>r.dbFullName===e.dbFullName);o[r]&&l&&(o[r].tables=l.tables.map(e=>{let r=E().cloneDeep(e);return delete r.childrenTables,r}))});let p=o?.[i]?.tables?.[c]?.childrenTables;return p&&p.forEach(e=>{let r=o.findIndex(r=>r.dbFullName==e.dbNameFull),t=o[r]?.tables?.findIndex(r=>r.tableName===e.tableName);o[r]?.tables[t]&&(o[r].tables[t].fields=E().cloneDeep(d.fields),o[r].tables[t].indexes=E().cloneDeep(d.indexes))}),_().writeFileSync(`${n}`,JSON.stringify(o),"utf8"),!0}catch(e){return console.log("updateSchemaData.js ERROR: ",e.message),!1}}({dbFullName:c,dbSchemaData:f,delegatedUser:l,schema:a,table:o,userId:u}))throw Error("Update Failed!");let p=g.join(process.cwd(),"/shell");D(`node createDbFromSchema.js --user ${u} --database ${c}`,{cwd:p}),r.json({success:!0})}catch(e){console.log("updateDbSchemaDataForUser ERROR:",e.message),f()({component:"/api/updateDbSchemaDataForUser/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:e.message})}}let v=(0,n.M)(a,"default"),A=(0,n.M)(a,"config"),P=new s.PagesAPIRouteModule({definition:{kind:o.A.PAGES_API,page:"/api/updateDbSchemaDataForUser",pathname:"/api/updateDbSchemaDataForUser",bundlePath:"",filename:""},userland:a})},39831:(e,r,t)=>{t(81630);let a=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:s}){try{let o=t.id,n=null;if(!s?.delegated)return{dbUserId:o};let l=s.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${l}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=a(e.cookies[u]);if(!t)throw Error("Invalid Token");if((n=JSON.parse(t)).databaseSlug===r)return{dbUserId:o=n.rootUserId,rootUserId:n.rootUserId,rootUserName:n.rootUserName,rootUserEmail:n.rootUserEmail,rootUserImage:n.rootUserImage,databaseFullName:n.databaseFullName,databaseSlug:n.databaseSlug,allowedTables:n.allowedTables,priviledges:n.priviledges,database:n.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:o}}catch(e){return null}}},49827:(e,r,t)=>{t.r(r),t.d(r,{default:()=>n});let a=t(77538),s=t(29021),o=t(33873);function n({userId:e}){try{let r=o.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(r,"utf-8"))}catch(e){return a({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},77538:(e,r,t)=>{let a=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:o}){let n=new Date,l=(()=>{if(!o)return null;try{let e=o.headers["x-forwarded-for"],r=o.headers["x-real-ip"],t=o.headers["cf-connecting-ip"],a=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||a||r||o.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),o?.url&&(s+=` +URL: ${o.url}`),o?.body&&(s+=` +Request Body: ${JSON.stringify(o.body,null,4)}`),l&&(s+=` +IP: ${l}`),s+=` +Date: ${n.toDateString()} +========================================`,a.existsSync("./.tmp/error.log")||a.writeFileSync("./.tmp/error.log","","utf-8");let i=a.readFileSync("./.tmp/error.log","utf-8");a.writeFileSync("./.tmp/error.log",s),a.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @typedef {object} updateSchemaDataReturn - */ /** - * @param {object} params - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.dbSchemaData - Existing Schema - * @param {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} params.schema - New Schema (Partial) - * @param {string} params.dbFullName - Target Database full name - * @param {import("./grabDelegatedUserFromCookie").grabDelegatedUserFromCookieReturn | null} params.delegatedUser - * @param {import("@/package-shared/types").DSQL_TableSchemaType} params.table - New Table Schema Data - * @param {number} params.userId - * - * @returns {boolean} - */ function updateSchemaData({ dbSchemaData , delegatedUser , dbFullName , schema , table , userId , }) { - const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`; - try { - if (!dbSchemaData) throw new Error("Database schema not found!"); - let newDbSchemaData = external_lodash_default().cloneDeep(dbSchemaData); - let targetDatabase = newDbSchemaData.find((db)=>db.dbFullName == dbFullName); - if (!targetDatabase) throw new Error("Old Database schema not found!"); - let targetDatabaseIndex = newDbSchemaData.findIndex((db)=>db.dbFullName == dbFullName); - if (targetDatabaseIndex < 0) throw new Error("Target Database index not found!"); - const newSchemaDatabase = schema.find((db)=>db.dbFullName === dbFullName); - if (!newSchemaDatabase) throw new Error("New Database schema not found!"); - if (delegatedUser?.delegated) { - const createTablePriviledge = Boolean(delegatedUser.priviledges?.match(/create.?table/i)); - const editTablePriviledge = Boolean(delegatedUser.priviledges?.match(/edit.?table/i)); - if (!editTablePriviledge) { - throw new Error("Unauthorized!"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } - const schemaTable = newSchemaDatabase.tables.find((tbl)=>tbl.tableName == table.tableName); - if (!schemaTable) throw new Error("Table schema not found!"); - const targetTableIndex = targetDatabase.tables.findIndex((tbl)=>tbl.tableName == table.tableName); - if (schemaTable) { - newDbSchemaData[targetDatabaseIndex].tables[targetTableIndex] = schemaTable; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const childrenDatabases = targetDatabase?.childrenDatabases; - childrenDatabases?.forEach((chDb)=>{ - const chDbIndex = newDbSchemaData.findIndex((db)=>db.dbFullName === chDb.dbFullName); - if (newDbSchemaData[chDbIndex] && targetDatabase) { - newDbSchemaData[chDbIndex].tables = targetDatabase.tables.map((tbl)=>{ - const newTbl = external_lodash_default().cloneDeep(tbl); - delete newTbl.childrenTables; - return newTbl; - }); - } - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const childrenTables = newDbSchemaData?.[targetDatabaseIndex]?.tables?.[targetTableIndex]?.childrenTables; - if (childrenTables) { - childrenTables.forEach((childTbl)=>{ - const childTblDbindex = newDbSchemaData.findIndex((db)=>db.dbFullName == childTbl.dbNameFull); - const childTblDbTblIndex = newDbSchemaData[childTblDbindex]?.tables?.findIndex((tbl)=>tbl.tableName === childTbl.tableName); - const childTblDbTbl = newDbSchemaData[childTblDbindex]?.tables[childTblDbTblIndex]; - if (childTblDbTbl) { - newDbSchemaData[childTblDbindex].tables[childTblDbTblIndex].fields = external_lodash_default().cloneDeep(schemaTable.fields); - newDbSchemaData[childTblDbindex].tables[childTblDbTblIndex].indexes = external_lodash_default().cloneDeep(schemaTable.indexes); - } - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - external_fs_default().writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(newDbSchemaData), "utf8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - return true; - } catch (/** @type {any} */ error) { - console.log("updateSchemaData.js ERROR: ", error.message); - return false; - } -} //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - -;// CONCATENATED MODULE: ./pages/api/updateDbSchemaDataForUser.js -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await userAuth_default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const schema = req.body.schema; - const database = req.body.database; - /** @type {import("@/package-shared/types").DSQL_TableSchemaType} */ const table = req.body.table; - const delegated = req.body.delegated; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await grabDelegatedUserFromCookie_default()({ - request: req, - user: user, - databaseSlug: database, - query: req.query - }); - const userId = delegatedUser?.rootUserId ? delegatedUser.rootUserId : user.id; - const dbFullName = `datasquirel_user_${userId}_${database}`.replace(/[^a-z\_0-9]/g, ""); - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ let confirm; - if (delegatedUser?.delegated) { - const checkDelegatedUser = await DB_HANDLER_default()(`SELECT * FROM user_users WHERE invited_user_id=? AND user_id=? AND user_priviledge LIKE '%Edit Tables%'`, [ - user.id, - delegatedUser.rootUserId - ]); - if (checkDelegatedUser && checkDelegatedUser[0]) confirm = true; - } else { - confirm = true; - } - if (!confirm) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const dbSchemaData = (0,grabUserSchemaData["default"])({ - userId: userId - }); - if (!dbSchemaData) throw new Error("Database schema not found!"); - const updateDbSchema = updateSchemaData({ - dbFullName, - dbSchemaData, - delegatedUser, - schema, - table, - userId - }); - if (!updateDbSchema) { - throw new Error("Update Failed!"); - } - //////////////////////////////////////// - const targetPath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${userId} --database ${dbFullName}`, { - cwd: targetPath - }); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("updateDbSchemaDataForUser ERROR:", error.message); - serverError_default()({ - component: "/api/updateDbSchemaDataForUser/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: error.message - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,1352,8164], () => (__webpack_exec__(188))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let a=t(51348),s=t(72907),o=t(29021);async function n(e,r,t,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let l=s(e.cookies.datasquirelAuthKey);if(!l)return null;let i=JSON.parse(l);if(!i.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!o.existsSync(`${u}/${i.csrf_k}`))return null;if(0==i.verification_status&&!t){let e=await a(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=n},72907:(e,r,t)=>{let{scryptSync:a,createDecipheriv:s}=t(55511),{Buffer:o}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",a(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let a=t(9973),s=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:s()}});async function n(...e){try{let r=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},21580:(e,r,t)=>{let a=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!a.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:a.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=23249);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json index 8ba1feb..6a3f2f0 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateDbSchemaDataForUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/1352.js","../../chunks/8164.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lodash/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lodash/lodash.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js","../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/lodash/lodash.js","../../../../node_modules/lodash/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbUser.js b/dsql-app/.local_dist/server/pages/api/updateDbUser.js index 38325c3..7bd0cd9 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js @@ -1,155 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2900; -exports.ids = [2900]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 2751: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbFullName , payload } = sanitizedReqBody; - /** - * Input Validation - * - * @description Input Validation - */ const data = (()=>{ - const reqBodyKeys = Object.keys(payload); - /** @type {any} */ const finalData = {}; - reqBodyKeys.forEach((key)=>{ - if (key?.match(/user_type|priviledge|database_access|databases?|confirm/)) return; - if (key?.match(/databases|confirm/)) return; - finalData[key] = payload[key]; - }); - return finalData; - })(); - /** - * Input Validation - * - * @description Input Validation - */ /** @type {any} */ const updatedUser = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: dbFullName, - tableName: "users", - identifierColumnName: "id", - identifierValue: payload.id, - data: { - ...data - }, - dbContext: "Dsql User", - paradigm: "Full Access" - }); - res.json({ - success: updatedUser?.affectedRows ? true : false, - msg: updatedUser?.affectedRows ? "User Updated" : updatedUser - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=3683,e.ids=[3683],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},96016:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};r.r(s),r.d(s,{default:()=>p});var n=r(89947),a=r(2706),o=r(96762),i=r(33364),c=r.n(i),u=r(6420),l=r.n(u);async function p(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await l()(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:r,payload:s}=e.body,n=(()=>{let e=Object.keys(s),t={};return e.forEach(e=>{!e?.match(/user_type|priviledge|database_access|databases?|confirm/)&&(e?.match(/databases|confirm/)||(t[e]=s[e]))}),t})(),a=await c()({dbFullName:r,tableName:"users",identifierColumnName:"id",identifierValue:s.id,data:{...n},dbContext:"Dsql User",paradigm:"Full Access"});t.json({success:!!a?.affectedRows,msg:a?.affectedRows?"User Updated":a})}let d=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateDbUser",pathname:"/api/updateDbUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),a=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let c=JSON.parse(i);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${u}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=o},33364:(e,t,r)=>{let s=r(82703),n=r(72583),a=r(16570),o=r(51348),i=r(21339);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:l,identifierColumnName:p,identifierValue:d,encryptionKey:f,encryptionSalt:S}){if(!u||!Object.keys(u).length)return null;let _=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=_?o:i,m=Object.keys(u),D=[],g=[];for(let e=0;e<m.length;e++)try{let t=m[e],r=u[t],o=l?l?.fields?.filter(e=>e.fieldName===t):null,i=o&&o[0]?o[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=n(r,a)),i?.encrypted&&(r=s(r,f,S)),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),D.push(`\`${t}\`=?`),"number"==typeof r?g.push(String(r)):g.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE ${c} SET ${D.join(",")} WHERE \`${p}\`=?`;return g.push(d),_?await h(y,g):await h({paradigm:t,database:r,queryString:y,queryValues:g})}e.exports=c},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428),o=r(48225);e.exports=(e,t,r)=>{let i=n("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=i.update(e,"utf8","hex");return t+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,7547,5886], () => (__webpack_exec__(2751))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((c,u)=>{let l=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),c({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}o=l?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(r,i).then(p).catch(d):o.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=96016);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json index c9ca41a..b89cd9a 100644 --- a/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateDbUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js index a90f9ed..f9ef066 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js @@ -1,222 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1351; -exports.ids = [1351]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 8560: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(766); -/* harmony import */ var _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8999); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ +"use strict";(()=>{var e={};e.id=1132,e.ids=[1132],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},82595:(e,r,t)=>{t.r(r),t.d(r,{config:()=>D,default:()=>y,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>h});var a=t(89947),n=t(2706),o=t(96762),i=t(96771),l=t.n(i),u=t(73677),d=t.n(u),c=t(39831),p=t.n(c),_=t(77538),S=t.n(_),f=t(6420),m=t.n(f),g=t(33364),E=t.n(g);async function h(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});let t=await m()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let{dbSlug:s,tableName:a,payload:n,entryId:o,tableSchema:i,delegated:u,dbId:c}=e.body;delete n.id,delete n.uuid,delete n.date_created,delete n.date_created_code,delete n.date_created_timestamp,delete n.date_updated,delete n.date_updated_code,delete n.date_updated_timestamp;try{let u=await p()({databaseSlug:s,request:e,user:t,query:e.query}),_=u?.rootUserId?`datasquirel_user_${u.rootUserId}_${s}`:`datasquirel_user_${t.id}_${s}`;if(!await d()({user:t,confirmedDelegetedUser:u,database:s,table:a,dbId:c,priviledgeRegex:/Update Entries/i}))return r.json({success:!1,msg:"Unauthorized"});let S=await E()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:_,tableName:a,identifierColumnName:"id",identifierValue:o,data:n,tableSchema:i});if(S?.error)throw Error(S.error);if(!S)throw Error("No result returned!");await l()({dbName:_,entryId:o,entryOrder:n.order,tableName:a,tableSchema:i}),r.json({success:!0,payload:S})}catch(e){S()({component:"/api/updateTableEntry/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Database Files could not be written!",err:e.message})}}let y=(0,o.M)(s,"default"),D=(0,o.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateTableEntry",pathname:"/api/updateTableEntry",bundlePath:"",filename:""},userland:s})},73677:(e,r,t)=>{let s=t(51348),a=t(77538);e.exports=async function({user:e,confirmedDelegetedUser:r,database:t,table:n,priviledgeRegex:o,dbId:i}){let l,u;try{r?.delegated?(l=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[r.rootUserId,e.id,t,n]),u=l[0]?.priviledge?.match(o)):(l=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,i]),u=!0)}catch(r){a({component:"checkUserRights",message:r.message,user:e})}return!!l&&!!l[0]&&!!u}},39831:(e,r,t)=>{t(81630);let s=t(72907);e.exports=async function({request:e,databaseSlug:r,user:t,query:a}){try{let n=t.id,o=null;if(!a?.delegated)return{dbUserId:n};let i=a.dbUserId,l=`${process.env.DSQL_USER_DB_PREFIX}${i}_${r}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${l}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let t=s(e.cookies[u]);if(!t)throw Error("Invalid Token");if((o=JSON.parse(t)).databaseSlug===r)return{dbUserId:n=o.rootUserId,rootUserId:o.rootUserId,rootUserName:o.rootUserName,rootUserEmail:o.rootUserEmail,rootUserImage:o.rootUserImage,databaseFullName:o.databaseFullName,databaseSlug:o.databaseSlug,allowedTables:o.allowedTables,priviledges:o.priviledges,database:o.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},96771:(e,r,t)=>{let s=t(21339);e.exports=async function({dbName:e,entryId:r,entryOrder:t,tableName:a,tableSchema:n}){try{if(n.fields.find(e=>!!e.fieldName?.match(/^order$/i))&&t){let n=await s({database:e,paradigm:"Full Access",queryString:`SELECT * FROM ${a} WHERE \`order\` = '${t}' AND id != ?`,queryValues:[String(r)]});if(!n?.[0])throw Error("No Existing Order");await s({database:e,paradigm:"Full Access",queryString:`UPDATE ${a} SET \`order\` = \`order\` + 1 WHERE \`order\` >= ${t} AND id != ?`,queryValues:[String(r)]})}return!0}catch(e){return!1}}},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbSlug , tableName , payload , entryId , tableSchema , delegated , dbId , } = sanitizedReqBody; - /** - * Remove Default Fields - * - * @description Remove Default Fields - */ delete payload["id"]; - delete payload["uuid"]; - delete payload["date_created"]; - delete payload["date_created_code"]; - delete payload["date_created_timestamp"]; - delete payload["date_updated"]; - delete payload["date_updated_code"]; - delete payload["date_updated_timestamp"]; - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default()({ - databaseSlug: dbSlug, - request: req, - user: user, - query: req.query - }); - const dbFullName = delegatedUser?.rootUserId ? `datasquirel_user_${delegatedUser.rootUserId}_${dbSlug}` : `datasquirel_user_${user.id}_${dbSlug}`; - const checkUserRightsBoolean = await _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default()({ - user: user, - confirmedDelegetedUser: delegatedUser, - database: dbSlug, - table: tableName, - dbId: dbId, - priviledgeRegex: /Update Entries/i - }); - if (!checkUserRightsBoolean) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ /** @type {any} */ const updateTableEntry = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: tableName, - identifierColumnName: "id", - identifierValue: entryId, - data: payload, - tableSchema: tableSchema - }); - //////////////////////////////////////// - if (updateTableEntry?.error) { - throw new Error(updateTableEntry.error); - } - if (!updateTableEntry) { - throw new Error("No result returned!"); - } - //////////////////////////////////////// - const handleOrder = await _functions_backend_handleTableEntryOrder__WEBPACK_IMPORTED_MODULE_0___default()({ - dbName: dbFullName, - entryId: entryId, - entryOrder: payload.order, - tableName: tableName, - tableSchema: tableSchema - }); - //////////////////////////////////////// - res.json({ - success: true, - payload: updateTableEntry - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/updateTableEntry/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!", - err: error.message - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function o(e,r,t,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let l=JSON.parse(i);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=o},33364:(e,r,t)=>{let s=t(82703),a=t(72583),n=t(16570),o=t(51348),i=t(21339);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:d,identifierColumnName:c,identifierValue:p,encryptionKey:_,encryptionSalt:S}){if(!u||!Object.keys(u).length)return null;let f=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),m=f?o:i,g=Object.keys(u),E=[],h=[];for(let e=0;e<g.length;e++)try{let r=g[e],t=u[r],o=d?d?.fields?.filter(e=>e.fieldName===r):null,i=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;i?.richText&&(t=a(t,n)),i?.encrypted&&(t=s(t,_,S)),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),E.push(`\`${r}\`=?`),"number"==typeof t?h.push(String(t)):h.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}E.push(`date_updated='${Date()}'`),E.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE ${l} SET ${E.join(",")} WHERE \`${c}\`=?`;return h.push(p),f?await m(y,h):await m({paradigm:r,database:t,queryString:y,queryValues:h})}e.exports=l},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:a}=t(55511),{Buffer:n}=t(79428),o=t(48225);e.exports=(e,r,t)=>{let i=a("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=i.update(e,"utf8","hex");return r+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,1352,8999,766], () => (__webpack_exec__(8560))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let d=!!e?.match(/full.access|^fa$/i);try{function c(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=d?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(c).catch(p):o.query(t).then(c).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../webpack-api-runtime.js");r.C(e);var t=r(r.s=82595);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json index 1ed999d..b89cd9a 100644 --- a/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateTableEntry.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/1352.js","../../chunks/8999.js","../../chunks/766.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUser.js b/dsql-app/.local_dist/server/pages/api/updateUser.js index f80a49f..47b62aa 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js @@ -1,329 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4196; -exports.ids = [4196]; -exports.modules = { - -/***/ 4809: -/***/ ((module) => { - -module.exports = require("node-fetch"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7441: -/***/ ((module) => { - -module.exports = require("sharp"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 4142: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const nodeFetch = __webpack_require__(4809); -const sharp = __webpack_require__(7441); -const serverError = __webpack_require__(2163); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * - * @param {object} params - * @param {string} params.imageSourceUrl - * @param {string} params.imageWritePath - * @param {number} [params.maxSize] - * @param {string} [params.sourceType] - */ module.exports = async function fsWriteImageToDisk({ imageSourceUrl , imageWritePath , maxSize , sourceType , }) { - try { - async function generateBuffer() { - let imageBuffer; - if (sourceType?.match("url")) { - if (imageSourceUrl.match(/^http/i)) { - let fetchedImage = await nodeFetch(imageSourceUrl, {}); - imageBuffer = await fetchedImage.buffer(); - } else { - let readPath = `./public${imageSourceUrl}`; - imageBuffer = readPath; - } - } else if (sourceType?.match("base64")) { - imageBuffer = Buffer.from(imageSourceUrl, "base64"); - } - return imageBuffer; - } - const buffer = await generateBuffer(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let imagePath = imageWritePath; - const MAX_SIZE = maxSize ? maxSize : 650; - // const sharpImage = sharp(imagePath); - const sharpImageRaw = sharp(buffer); - // let imageMetadata = await sharpImage.metadata(); - let imageMetadataRaw = await sharpImageRaw.metadata(); - let { width , height , format } = imageMetadataRaw; - if (width && height && width > MAX_SIZE) { - let resizeRatio = MAX_SIZE / width; - sharpImageRaw.resize(MAX_SIZE, Math.round(height * resizeRatio), { - fit: "cover" - }); - } - if (format) { - sharpImageRaw.toFormat(format, { - quality: 80 - }); - } - await sharpImageRaw.toFile(imagePath); - // console.log(image); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - // console.log("===================================="); - // console.log("Complete!!!"); - // console.log("===================================="); - } catch (/** @type {any} */ error) { - serverError({ - component: "functions/backend/fsWriteImageToDisk", - message: error.message - }); - } -}; /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - - -/***/ }), - -/***/ 9662: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7547); -/* harmony import */ var _package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_encrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_fsWriteImageToDisk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4142); -/* harmony import */ var _functions_backend_fsWriteImageToDisk__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_fsWriteImageToDisk__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(6926); -/* harmony import */ var _functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_handleNodemailer__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_8__); -// @ts-check -const fs = __webpack_require__(7147); - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=8925,e.ids=[8925],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},34229:e=>{e.exports=require("node-fetch")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},9288:e=>{e.exports=require("sharp")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},43359:(e,t,r)=>{r.r(t),r.d(t,{config:()=>L,default:()=>E,routeModule:()=>A});var s={};r.r(s),r.d(s,{default:()=>D});var a=r(89947),n=r(2706),i=r(96762),o=r(51348),l=r.n(o);r(82703);var u=r(17662),c=r.n(u);r(79531);var p=r(77538),d=r.n(p),S=r(6420),m=r.n(S),f=r(33873),_=r.n(f),g=r(79646),h=r(33364),y=r.n(h);async function D(e,t){if("POST"!==e.method)return t.json({user:null,msg:"Registration Failed!"});let r=await m()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{first_name:s,last_name:a,image:n}=e.body;try{let e=(await l()(`SELECT image FROM users WHERE id='${r.id}'`))[0].image===n,i=process.env.DSQL_STATIC_SERVER_DIR;if(!i)throw console.log("Static File ENV not Found!"),Error("No Static Path!");let o=_().join(i,`images/user-images/user-${r.id}/user-${r.id}-profile.jpg`),u=_().join(i,`images/user-images/user-${r.id}/user-${r.id}-profile-thumbnail.jpg`);e||(await c()({imageSourceUrl:"string"==typeof n?n:n.imageBase64,imageWritePath:o,sourceType:"string"==typeof n?"url":"base64"}),await c()({imageSourceUrl:"string"==typeof n?n:n.imageBase64,imageWritePath:u,maxSize:250,sourceType:"string"==typeof n?"url":"base64"}),(0,g.execSync)(`chmod 644 ${o} ${u}`));let p=o.replace(i,process.env.DSQL_STATIC_HOST||""),d=u.replace(i,process.env.DSQL_STATIC_HOST||"");await y()({dbFullName:"datasquirel",tableName:"users",identifierColumnName:"id",identifierValue:r.id,data:{first_name:s,last_name:a,image:p,image_thumbnail:d}}),await y()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"invited_user_id",identifierValue:r.id,data:{first_name:s,last_name:a,image:p,image_thumbnail:d}}),t.json({user:!0})}catch(e){d()({component:"/api/updateUser/main-catch-error",message:e.message,user:r}),t.json({user:null})}}r(29021);let E=(0,i.M)(s,"default"),L=(0,i.M)(s,"config"),A=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUser",pathname:"/api/updateUser",bundlePath:"",filename:""},userland:s})},17662:(e,t,r)=>{let s=r(34229),a=r(9288),n=r(77538);e.exports=async function({imageSourceUrl:e,imageWritePath:t,maxSize:r,sourceType:i}){try{async function o(){let t;if(i?.match("url")){if(e.match(/^http/i)){let r=await s(e,{});t=await r.buffer()}else t=`./public${e}`}else i?.match("base64")&&(t=Buffer.from(e,"base64"));return t}let n=await o(),l=r||650,u=a(n),{width:c,height:p,format:d}=await u.metadata();if(c&&p&&c>l){let e=l/c;u.resize(l,Math.round(p*e),{fit:"cover"})}d&&u.toFormat(d,{quality:80}),await u.toFile(t)}catch(e){n({component:"functions/backend/fsWriteImageToDisk",message:e.message})}}},79531:(e,t,r)=>{let s=r(29021),a=r(21572).createTransport({host:process.env.DSQL_MAIL_HOST,port:465,secure:!0,auth:{user:process.env.DSQL_MAIL_EMAIL,pass:process.env.DSQL_MAIL_PASSWORD}});e.exports=async function({to:e,subject:t,text:r,html:n,alias:i}){let o;if(!process.env.DSQL_MAIL_HOST||!process.env.DSQL_MAIL_EMAIL||!process.env.DSQL_MAIL_PASSWORD)return null;let l=(i?.match(/support/i),process.env.DSQL_MAIL_EMAIL);if(!s.existsSync("./email/index.html"))return;let u=s.readFileSync("./email/index.html","utf8").replace(/{{email_body}}/,n||"").replace(/{{issue_date}}/,Date().substring(0,24));try{let s={};s.from=`"Datasquirel" <${l}>`,s.sender=l,i&&(s["replyTo "]=l),s.to=e,s.subject=t,s.text=r,s.html=u,o=await a.sendMail(s)}catch(e){console.log("ERROR in handleNodemailer Function =>",e.message)}return o}},77538:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),n=r(29021);async function i(e,t,r,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},33364:(e,t,r)=>{let s=r(82703),a=r(72583),n=r(16570),i=r(51348),o=r(21339);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:u,tableSchema:c,identifierColumnName:p,identifierValue:d,encryptionKey:S,encryptionSalt:m}){if(!u||!Object.keys(u).length)return null;let f=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),_=f?i:o,g=Object.keys(u),h=[],y=[];for(let e=0;e<g.length;e++)try{let t=g[e],r=u[t],i=c?c?.fields?.filter(e=>e.fieldName===t):null,o=i&&i[0]?i[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=a(r,n)),o?.encrypted&&(r=s(r,S,m)),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),h.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE ${l} SET ${h.join(",")} WHERE \`${p}\`=?`;return y.push(d),f?await _(D,y):await _({paradigm:t,database:r,queryString:D,queryValues:y})}e.exports=l},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428),i=r(48225);e.exports=(e,t,r)=>{let o=a("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=o.update(e,"utf8","hex");return t+=o.final("hex")}catch(e){return i({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ const sanitizedReqBody = req.body; - const { first_name , last_name , image } = sanitizedReqBody; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - //////////////////////////////////////// - const existingImage = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`SELECT image FROM users WHERE id='${user.id}'`); - let isImageExisting = existingImage[0].image === image; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const STATIC_ROOT = process.env.DSQL_STATIC_SERVER_DIR; - if (!STATIC_ROOT) { - console.log("Static File ENV not Found!"); - throw new Error("No Static Path!"); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ let imagePath = path__WEBPACK_IMPORTED_MODULE_6___default().join(STATIC_ROOT, `images/user-images/user-${user.id}/user-${user.id}-profile.jpg`); - let imageThumbnailPath = path__WEBPACK_IMPORTED_MODULE_6___default().join(STATIC_ROOT, `images/user-images/user-${user.id}/user-${user.id}-profile-thumbnail.jpg`); - if (!isImageExisting) { - let writeImage = await _functions_backend_fsWriteImageToDisk__WEBPACK_IMPORTED_MODULE_2___default()({ - imageSourceUrl: typeof image === "string" ? image : image.imageBase64, - imageWritePath: imagePath, - sourceType: typeof image === "string" ? "url" : "base64" - }); - let writeImageThumbnail = await _functions_backend_fsWriteImageToDisk__WEBPACK_IMPORTED_MODULE_2___default()({ - imageSourceUrl: typeof image === "string" ? image : image.imageBase64, - imageWritePath: imageThumbnailPath, - maxSize: 250, - sourceType: typeof image === "string" ? "url" : "base64" - }); - (0,child_process__WEBPACK_IMPORTED_MODULE_7__.execSync)(`chmod 644 ${imagePath} ${imageThumbnailPath}`); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let imageUrl = imagePath.replace(STATIC_ROOT, process.env.DSQL_STATIC_HOST || ""); - let imageThumbnailUrl = imageThumbnailPath.replace(STATIC_ROOT, process.env.DSQL_STATIC_HOST || ""); - const updatedUser = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_8___default()({ - dbFullName: "datasquirel", - tableName: "users", - identifierColumnName: "id", - identifierValue: user.id, - data: { - first_name, - last_name, - image: imageUrl, - image_thumbnail: imageThumbnailUrl - } - }); - const updatedUserUser = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_8___default()({ - dbFullName: "datasquirel", - tableName: "user_users", - identifierColumnName: "invited_user_id", - identifierValue: user.id, - data: { - first_name, - last_name, - image: imageUrl, - image_thumbnail: imageThumbnailUrl - } - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - user: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4___default()({ - component: "/api/updateUser/main-catch-error", - message: error.message, - user: user - }); - res.json({ - user: null - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,6926], () => (__webpack_exec__(9662))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function i(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:o}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function p(e){i.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){i.end(),l({error:e.message,queryStringGenerated:r,queryValuesGenerated:o,sql:e.sql})}i=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),o&&Array.isArray(o)&&o[0]?i.query(r,o).then(p).catch(d):i.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=43359);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json index 222f53e..f6a5ce3 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/6926.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/nodemailer/package.json","../../../../node_modules/node-fetch/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/node-fetch/lib/index.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/whatwg-url/package.json","../../../../node_modules/whatwg-url/lib/public-api.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/lru-cache/package.json","../../../../node_modules/lru-cache/index.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/whatwg-url/lib/URL.js","../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/color/index.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/whatwg-url/lib/utils.js","../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/color/package.json","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/yallist/package.json","../../../../node_modules/yallist/yallist.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/tr46/package.json","../../../../node_modules/tr46/index.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/webidl-conversions/package.json","../../../../node_modules/webidl-conversions/lib/index.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/yallist/iterator.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/color/node_modules/color-convert/index.js","../../../../node_modules/tr46/lib/mappingTable.json","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/color/node_modules/color-convert/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/color-string/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/color-string/package.json","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/color/node_modules/color-convert/route.js","../../../../node_modules/color/node_modules/color-convert/conversions.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/color/node_modules/color-name/package.json","../../../../node_modules/color/node_modules/color-name/index.js","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@img/sharp-libvips-linux-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linux-x64/package.json","../../../../node_modules/@img/sharp-libvips-linux-x64/versions.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.42","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/package.json","../../../../node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json","../../../../node_modules/@img/sharp-linux-x64/LICENSE","../../../../node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node","../../../../node_modules/@img/sharp-linux-x64/package.json","../../../../node_modules/@img/sharp-linuxmusl-x64/LICENSE","../../../../node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node","../../../../node_modules/@img/sharp-linuxmusl-x64/package.json","../../../../node_modules/color-convert/conversions.js","../../../../node_modules/color-convert/index.js","../../../../node_modules/color-convert/package.json","../../../../node_modules/color-convert/route.js","../../../../node_modules/color-name/index.js","../../../../node_modules/color-name/package.json","../../../../node_modules/color-string/index.js","../../../../node_modules/color-string/package.json","../../../../node_modules/color/index.js","../../../../node_modules/color/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/detect-libc/lib/detect-libc.js","../../../../node_modules/detect-libc/lib/filesystem.js","../../../../node_modules/detect-libc/lib/process.js","../../../../node_modules/detect-libc/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/node-fetch/lib/index.js","../../../../node_modules/node-fetch/package.json","../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../node_modules/nodemailer/lib/base64/index.js","../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../node_modules/nodemailer/lib/qp/index.js","../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../node_modules/nodemailer/lib/shared/index.js","../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../node_modules/nodemailer/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sharp/lib/channel.js","../../../../node_modules/sharp/lib/colour.js","../../../../node_modules/sharp/lib/composite.js","../../../../node_modules/sharp/lib/constructor.js","../../../../node_modules/sharp/lib/index.js","../../../../node_modules/sharp/lib/input.js","../../../../node_modules/sharp/lib/is.js","../../../../node_modules/sharp/lib/libvips.js","../../../../node_modules/sharp/lib/operation.js","../../../../node_modules/sharp/lib/output.js","../../../../node_modules/sharp/lib/resize.js","../../../../node_modules/sharp/lib/sharp.js","../../../../node_modules/sharp/lib/utility.js","../../../../node_modules/sharp/node_modules/semver/classes/comparator.js","../../../../node_modules/sharp/node_modules/semver/classes/range.js","../../../../node_modules/sharp/node_modules/semver/classes/semver.js","../../../../node_modules/sharp/node_modules/semver/functions/cmp.js","../../../../node_modules/sharp/node_modules/semver/functions/coerce.js","../../../../node_modules/sharp/node_modules/semver/functions/compare.js","../../../../node_modules/sharp/node_modules/semver/functions/eq.js","../../../../node_modules/sharp/node_modules/semver/functions/gt.js","../../../../node_modules/sharp/node_modules/semver/functions/gte.js","../../../../node_modules/sharp/node_modules/semver/functions/lt.js","../../../../node_modules/sharp/node_modules/semver/functions/lte.js","../../../../node_modules/sharp/node_modules/semver/functions/neq.js","../../../../node_modules/sharp/node_modules/semver/functions/parse.js","../../../../node_modules/sharp/node_modules/semver/functions/satisfies.js","../../../../node_modules/sharp/node_modules/semver/internal/constants.js","../../../../node_modules/sharp/node_modules/semver/internal/debug.js","../../../../node_modules/sharp/node_modules/semver/internal/identifiers.js","../../../../node_modules/sharp/node_modules/semver/internal/lrucache.js","../../../../node_modules/sharp/node_modules/semver/internal/parse-options.js","../../../../node_modules/sharp/node_modules/semver/internal/re.js","../../../../node_modules/sharp/node_modules/semver/package.json","../../../../node_modules/sharp/package.json","../../../../node_modules/simple-swizzle/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/index.js","../../../../node_modules/simple-swizzle/node_modules/is-arrayish/package.json","../../../../node_modules/simple-swizzle/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/tr46/index.js","../../../../node_modules/tr46/lib/mappingTable.json","../../../../node_modules/tr46/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/webidl-conversions/lib/index.js","../../../../node_modules/webidl-conversions/package.json","../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../node_modules/whatwg-url/lib/URL.js","../../../../node_modules/whatwg-url/lib/public-api.js","../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../node_modules/whatwg-url/lib/utils.js","../../../../node_modules/whatwg-url/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js index daf8c72..472bf89 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js @@ -1,253 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9354; -exports.ids = [9354]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 2037: -/***/ ((module) => { - -module.exports = require("os"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3755: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const os = __webpack_require__(2037); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=7214,e.ids=[7214],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},21820:e=>{e.exports=require("os")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},29750:(e,t,r)=>{r.r(t),r.d(t,{config:()=>y,default:()=>h,routeModule:()=>b});var s={};r.r(s),r.d(s,{default:()=>g});var a=r(89947),n=r(2706),l=r(96762),i=r(33364),o=r.n(i),c=r(77538),u=r.n(c),p=r(6420),d=r.n(p),m=r(57638),S=r.n(m);let f=r(29021),_=r(21820);r(33873);let{execSync:D}=r(79646);async function g(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await d()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{id:s,db_name:a,db_slug:n,db_description:l,db_image:i,db_full_name:c,active_clone:p,active_clone_parent_db:m}=e.body;c?.match(/datasquirel_user_.*/)||t.json({success:!1,msg:"Unauthorized"});let g=`datasquirel_user_${r.id}_${n}`;if(await o()({dbFullName:"datasquirel",tableName:"user_databases",identifierColumnName:"id",identifierValue:s,data:{db_name:a,db_slug:n,db_description:l,db_image:i,db_full_name:g}}),c&&c!==g){console.log("Renaming Database");let e=_.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe'":"mysql",t=_.platform().match(/win/i)?"'C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe'":"mysqldump";try{await S()({queryString:`CREATE DATABASE \`${g}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`,database:c});let r={cwd:process.cwd()};_.platform().match(/win/i)&&(r.shell="bash.exe");let s=`${t} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${c} > tmpDbFile.sql`;console.log(`updateUserDatabase.js exe => ${s}`),D(s,r),D(`${e} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${g} < tmpDbFile.sql`,r),await S()({queryString:`DROP DATABASE \`${c}\``,database:c})}catch(e){u()({component:"/api/updateUserDatabase/lines-88-111",message:e.message,user:r})}}try{let e=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${r.id}/main.json`,s=JSON.parse(f.readFileSync(e,"utf8")),o=s.filter(e=>e.dbFullName===c);if(o[0].dbName=a,o[0].dbFullName=g,o[0].dbDescription=l,o[0].dbImage=i,o[0].dbSlug=n,p){let e=s.filter(e=>e.dbFullName===o[0].childDatabaseDbFullName)[0],t=e.childrenDatabases?.find(e=>e.dbFullName===c);t&&(t.dbFullName=g)}f.writeFileSync(`${e}`,JSON.stringify(s),"utf8"),t.json({success:!0})}catch(e){u()({component:"/api/updateUserDatabase/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let h=(0,l.M)(s,"default"),y=(0,l.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserDatabase",pathname:"/api/updateUserDatabase",bundlePath:"",filename:""},userland:s})},77538:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let l=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${l.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_2___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { id , db_name , db_slug , db_description , db_image , db_full_name , active_clone , active_clone_parent_db , } = sanitizedReqBody; - if (!db_full_name?.match(/datasquirel_user_.*/)) { - res.json({ - success: false, - msg: "Unauthorized" - }); - } - const newDbFullName = `datasquirel_user_${user.id}_${db_slug}`; - /** - * Update Database info in main db - * - * @description Update Database info in main db - */ const updateDatabase = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "user_databases", - identifierColumnName: "id", - identifierValue: id, - data: { - db_name, - db_slug, - db_description, - db_image, - db_full_name: newDbFullName - } - }); - /** - * Update User Specific Database - * - * @description Update User Specific Database - */ if (db_full_name && db_full_name !== newDbFullName) { - console.log("Renaming Database"); - const mysqlPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysql.exe" + "'" : "mysql"; - const mysqlDumpPath = os.platform().match(/win/i) ? "'" + "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin\\mysqldump.exe" + "'" : "mysqldump"; - try { - const createNewDb = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `CREATE DATABASE \`${newDbFullName}\` CHARACTER SET utf8mb4 COLLATE utf8mb4_bin`, - database: db_full_name - }); - /** @type {import("child_process").ExecSyncOptions} */ let execSyncOptions = { - cwd: process.cwd() - }; - if (os.platform().match(/win/i)) execSyncOptions.shell = "bash.exe"; - const exe = `${mysqlDumpPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${db_full_name} > tmpDbFile.sql`; - console.log(`updateUserDatabase.js exe => ${exe}`); - const dumpDb = execSync(exe, execSyncOptions); - const importToNewDb = execSync(`${mysqlPath} -u ${process.env.DSQL_DB_USERNAME} -h ${process.env.DSQL_DB_HOST} -p${process.env.DSQL_DB_PASSWORD} ${newDbFullName} < tmpDbFile.sql`, execSyncOptions); - const deleteOldDb = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `DROP DATABASE \`${db_full_name}\``, - database: db_full_name - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/updateUserDatabase/lines-88-111", - message: error.message, - user: user - }); - } - // const updateUserSpecificDatabase = await varDatabaseDbHandler({ - // queryString: `RENAME DATABASE \`${db_full_name}\` TO \`${newDbFullName}\``, - // database: db_full_name, - // }); - // console.log(updateUserSpecificDatabase); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - let targetDatabase = userSchemaData.filter((db)=>db.dbFullName === db_full_name); - targetDatabase[0].dbName = db_name; - targetDatabase[0].dbFullName = newDbFullName; - targetDatabase[0].dbDescription = db_description; - targetDatabase[0].dbImage = db_image; - targetDatabase[0].dbSlug = db_slug; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (active_clone) { - const parentDb = userSchemaData.filter((db)=>db.dbFullName === targetDatabase[0].childDatabaseDbFullName)[0]; - const targetChild = parentDb.childrenDatabases?.find((db)=>db.dbFullName === db_full_name); - if (targetChild) targetChild.dbFullName = newDbFullName; - } - //////////////////////////////////////// - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/updateUserDatabase/main-catch-error", - message: error1.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} +${o}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),n=r(29021);async function l(e,t,r,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=a(e.cookies.datasquirelAuthKey);if(!i)return null;let o=JSON.parse(i);if(!o.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${o.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${c}/${o.csrf_k}`))return null;if(0==o.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${o.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return o?.date&&Date.now()-o.date>6048e5?null:o}e.exports=l},33364:(e,t,r)=>{let s=r(82703),a=r(72583),n=r(16570),l=r(51348),i=r(21339);async function o({dbContext:e,paradigm:t,dbFullName:r,tableName:o,data:c,tableSchema:u,identifierColumnName:p,identifierValue:d,encryptionKey:m,encryptionSalt:S}){if(!c||!Object.keys(c).length)return null;let f=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),_=f?l:i,D=Object.keys(c),g=[],h=[];for(let e=0;e<D.length;e++)try{let t=D[e],r=c[t],l=u?u?.fields?.filter(e=>e.fieldName===t):null,i=l&&l[0]?l[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=a(r,n)),i?.encrypted&&(r=s(r,m,S)),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),g.push(`\`${t}\`=?`),"number"==typeof r?h.push(String(r)):h.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}g.push(`date_updated='${Date()}'`),g.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE ${o} SET ${g.join(",")} WHERE \`${p}\`=?`;return h.push(d),f?await _(y,h):await _({paradigm:t,database:r,queryString:y,queryValues:h})}e.exports=o},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428),l=r(48225);e.exports=(e,t,r)=>{let i=a("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=i.update(e,"utf8","hex");return t+=i.final("hex")}catch(e){return l({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},6061:(e,t,r)=>{let s=r(72907),a=r(30003);e.exports=async function({unparsedResults:e,tableSchema:t}){let r=[];try{for(let n=0;n<e.length;n++){let l=e[n],i=Object.keys(l);for(let e=0;e<i.length;e++){let r=i[e],n=t?.fields[e];if(r?.match(a))continue;let o=l[r];("number"==typeof o||o)&&n?.encrypted&&o?.match(/./)&&(l[r]=s(o))}r.push(l)}return r}catch(t){return console.log("ERROR in parseDbResults Function =>",t.message),e}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,8326,1311], () => (__webpack_exec__(3755))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}},57638:(e,t,r)=>{r(29021);let s=r(6061),a=r(48225),n=r(51348),l=r(21339);e.exports=async function({queryString:e,queryValuesArray:t,database:r,tableSchema:i}){let o;let c=!!r?.match(/^datasquirel$/),u=c?n:l;try{o=e&&t&&Array.isArray(t)&&t[0]?c?await u(e,t):await u({paradigm:"Full Access",database:r,queryString:e,queryValues:t}):c?await u(e):await u({paradigm:"Full Access",database:r,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(o&&i)try{let e=o;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",r,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(o)return o;else return null}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function l(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((o,c)=>{let u=!!e?.match(/full.access|^fa$/i);try{function p(e){l.end(),o(JSON.parse(JSON.stringify(e)))}function d(e){l.end(),o({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}l=u?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),i&&Array.isArray(i)&&i[0]?l.query(r,i).then(p).catch(d):l.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),o({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=29750);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json index 660c0d3..b89cd9a 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserDatabase.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/8326.js","../../chunks/1311.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserTable.js b/dsql-app/.local_dist/server/pages/api/updateUserTable.js index cb6ace2..e2c6ec9 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserTable.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js @@ -1,271 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 2919; -exports.ids = [2919]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 9052: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8999); -/* harmony import */ var _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1352); -/* harmony import */ var _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=4371,e.ids=[4371],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},56363:(e,t,r)=>{r.r(t),r.d(t,{config:()=>N,default:()=>A,routeModule:()=>R});var s={};r.r(s),r.d(s,{default:()=>y});var a=r(89947),n=r(2706),l=r(96762),o=r(51348),i=r.n(o),u=r(73677),c=r.n(u),d=r(39831),p=r.n(d),_=r(77538),S=r.n(_),f=r(6420),m=r.n(f),g=r(33364),h=r.n(g);let b=r(29021),E=r(33873),{execSync:D}=r(79646);async function y(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});let r=await m()(e,t,!0);if(!r)return t.json({success:!1,msg:"Unauthorized"});let{dbFullName:s,dbSlug:a,dbId:n,tableNameOld:l,payload:o,delegated:u}=e.body,{tableName:d,tableFullName:_,tableDescription:f}=o;if(!d?.match(/./)||d.match(/[^a-zA-Z0-9-_]/))return t.json({success:!1,msg:"Bad Input"});try{let o=await p()({databaseSlug:a,request:e,user:r,query:e.query});if(!await c()({user:r,confirmedDelegetedUser:o,database:a,table:l,dbId:n,priviledgeRegex:/Edit Table/i}))return console.log("User Unauthorized"),t.json({success:!1,msg:"Unauthorized"});let m=o?.rootUserId?o.rootUserId:r.id,g=`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${m}/main.json`,y=JSON.parse(b.readFileSync(g,"utf8")),A=y.filter(e=>e.dbFullName===s)[0].tables.filter((e,t)=>{if(e.tableName===l)return!0});if(A&&A[0])A[0].tableName=d,A[0].tableNameOld=l,A[0].tableFullName=_,f&&(A[0].tableDescription=f),A[0].childrenTables&&A[0].childrenTables.forEach(e=>{try{y.filter(t=>t.dbFullName===e.dbNameFull)[0].tables.filter(t=>{if(t.tableName===e.tableName)return!0})[0].childTableName=d}catch(e){S()({component:"/api/updateUserTable/lines-131-138",message:e.message,user:r})}});else throw Error("Table Does not exist");b.writeFileSync(`${g}`,JSON.stringify(y),"utf8"),await h()({dbFullName:"datasquirel",tableName:"user_database_tables",identifierColumnName:"table_slug",identifierValue:l,data:{table_name:_,table_slug:d,table_description:f}}),u&&o&&await i()("UPDATE delegated_user_tables SET `table`=? WHERE delegated_user_id=? AND root_user_id=? AND `table`=? AND `database`=?",[d,r.id,o.rootUserId,l,a]);let N=E.join(process.cwd(),"/shell"),R=s.replace(/[^a-z\_0-9]/g,""),L=D(`node createDbFromSchema.js --user ${m} --database ${R}`,{cwd:N});console.log(L.toString()),t.json({success:!0})}catch(e){S()({component:"/api/updateUserTable/main-catch-error",message:e.message,user:r}),t.json({success:!1,msg:"Database Files could not be written!"})}}let A=(0,l.M)(s,"default"),N=(0,l.M)(s,"config"),R=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/updateUserTable",pathname:"/api/updateUserTable",bundlePath:"",filename:""},userland:s})},73677:(e,t,r)=>{let s=r(51348),a=r(77538);e.exports=async function({user:e,confirmedDelegetedUser:t,database:r,table:n,priviledgeRegex:l,dbId:o}){let i,u;try{t?.delegated?(i=await s("SELECT priviledge FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=? AND `database`=? AND `table`=?",[t.rootUserId,e.id,r,n]),u=i[0]?.priviledge?.match(l)):(i=await s("SELECT table_slug FROM user_database_tables WHERE user_id=? AND table_slug=? AND db_id=?",[e.id,n,o]),u=!0)}catch(t){a({component:"checkUserRights",message:t.message,user:e})}return!!i&&!!i[0]&&!!u}},39831:(e,t,r)=>{r(81630);let s=r(72907);e.exports=async function({request:e,databaseSlug:t,user:r,query:a}){try{let n=r.id,l=null;if(!a?.delegated)return{dbUserId:n};let o=a.dbUserId,i=`${process.env.DSQL_USER_DB_PREFIX}${o}_${t}`,u=`${process.env.DSQL_USER_DELEGATED_DB_COOKIE_PREFIX}${i}`;try{if(!e.cookies?.[u])throw Error("Cookie not present");let r=s(e.cookies[u]);if(!r)throw Error("Invalid Token");if((l=JSON.parse(r)).databaseSlug===t)return{dbUserId:n=l.rootUserId,rootUserId:l.rootUserId,rootUserName:l.rootUserName,rootUserEmail:l.rootUserEmail,rootUserImage:l.rootUserImage,databaseFullName:l.databaseFullName,databaseSlug:l.databaseSlug,allowedTables:l.allowedTables,priviledges:l.priviledges,database:l.databaseSlug,delegated:!0}}catch(e){}return{dbUserId:n}}catch(e){return null}}},77538:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:n}){let l=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${l.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,t,r)=>{r(81630);let s=r(51348),a=r(72907),n=r(29021);async function l(e,t,r,l){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let i=JSON.parse(o);if(!i.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${i.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${u}/${i.csrf_k}`))return null;if(0==i.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${i.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return i?.date&&Date.now()-i.date>6048e5?null:i}e.exports=l},33364:(e,t,r)=>{let s=r(82703),a=r(72583),n=r(16570),l=r(51348),o=r(21339);async function i({dbContext:e,paradigm:t,dbFullName:r,tableName:i,data:u,tableSchema:c,identifierColumnName:d,identifierValue:p,encryptionKey:_,encryptionSalt:S}){if(!u||!Object.keys(u).length)return null;let f=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),m=f?l:o,g=Object.keys(u),h=[],b=[];for(let e=0;e<g.length;e++)try{let t=g[e],r=u[t],l=c?c?.fields?.filter(e=>e.fieldName===t):null,o=l&&l[0]?l[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=a(r,n)),o?.encrypted&&(r=s(r,_,S)),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),h.push(`\`${t}\`=?`),"number"==typeof r?b.push(String(r)):b.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}h.push(`date_updated='${Date()}'`),h.push(`date_updated_code='${Date.now()}'`);let E=`UPDATE ${i} SET ${h.join(",")} WHERE \`${d}\`=?`;return b.push(p),f?await m(E,b):await m({paradigm:t,database:r,queryString:E,queryValues:b})}e.exports=i},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:n}=r(79428),l=r(48225);e.exports=(e,t,r)=>{let o=a("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=o.update(e,"utf8","hex");return t+=o.final("hex")}catch(e){return l({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const { dbFullName , dbSlug , dbId , tableNameOld , payload , delegated } = sanitizedReqBody; - const { tableName , tableFullName , tableDescription } = payload; - /** - * User auth - * - * @description Authenticate user - */ if (!tableName?.match(/./) || tableName.match(/[^a-zA-Z0-9-_]/)) { - return res.json({ - success: false, - msg: "Bad Input" - }); - } - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * Check if user has rights to this table - * - * @description Check if user has rights to this table - */ const delegatedUser = await _functions_backend_grabDelegatedUserFromCookie__WEBPACK_IMPORTED_MODULE_2___default()({ - databaseSlug: dbSlug, - request: req, - user: user, - query: req.query - }); - const checkUserRightsBoolean = await _functions_backend_checkUserRights__WEBPACK_IMPORTED_MODULE_1___default()({ - user: user, - confirmedDelegetedUser: delegatedUser, - database: dbSlug, - table: tableNameOld, - dbId: dbId, - priviledgeRegex: /Edit Table/i - }); - if (!checkUserRightsBoolean) { - console.log("User Unauthorized"); - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - const userId = delegatedUser?.rootUserId ? delegatedUser.rootUserId : user.id; - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const userSchemaMainFilePath = `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${userId}/main.json`; - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ let userSchemaData = JSON.parse(fs.readFileSync(userSchemaMainFilePath, "utf8")); - let targetDatabase = userSchemaData.filter((db)=>db.dbFullName === dbFullName)[0]; - let existingTableIndex; - let existingTable = targetDatabase.tables.filter((table, index)=>{ - if (table.tableName === tableNameOld) { - existingTableIndex = index; - return true; - } - }); - if (existingTable && existingTable[0]) { - existingTable[0].tableName = tableName; - existingTable[0].tableNameOld = tableNameOld; - existingTable[0].tableFullName = tableFullName; - tableDescription && (existingTable[0].tableDescription = tableDescription); - if (existingTable[0].childrenTables) { - existingTable[0].childrenTables.forEach((childTable)=>{ - try { - const childDb = userSchemaData.filter((db)=>db.dbFullName === childTable.dbNameFull)[0]; - const childTableObject = childDb.tables.filter((table)=>{ - if (table.tableName === childTable.tableName) { - return true; - } - })[0]; - childTableObject.childTableName = tableName; - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/updateUserTable/lines-131-138", - message: error.message, - user: user - }); - } - }); - } - } else { - throw new Error("Table Does not exist"); - } - fs.writeFileSync(`${userSchemaMainFilePath}`, JSON.stringify(userSchemaData), "utf8"); - //////////////////////////////////////// - const updateTable = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_5___default()({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - identifierColumnName: "table_slug", - identifierValue: tableNameOld, - data: { - table_name: tableFullName, - table_slug: tableName, - table_description: tableDescription - } - }); - if (delegated && delegatedUser) { - const updateDelegatedTable = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_0___default()(`UPDATE delegated_user_tables SET \`table\`=? WHERE delegated_user_id=? AND root_user_id=? AND \`table\`=? AND \`database\`=?`, [ - tableName, - user.id, - delegatedUser.rootUserId, - tableNameOld, - dbSlug, - ]); - } - //////////////////////////////////////// - const targetPath = path.join(process.cwd(), "/shell"); - const sanitizedDbName = dbFullName.replace(/[^a-z\_0-9]/g, ""); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${userId} --database ${sanitizedDbName}`, { - cwd: targetPath - }); - console.log(dbShellUpdate.toString()); - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_3___default()({ - component: "/api/updateUserTable/main-catch-error", - message: error.message, - user: user - }); - res.json({ - success: false, - msg: "Database Files could not be written!" - }); - //////////////////////////////////////// - } -} -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825,3017,3403,7547,5886,1352,8999], () => (__webpack_exec__(9052))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}},51348:(e,t,r)=>{let s=r(9973),a=r(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function l(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},21339:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),n=r(21580),l=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:o}){try{return new Promise((i,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){l.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){l.end(),i({error:e.message,queryStringGenerated:r,queryValuesGenerated:o,sql:e.sql})}l=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:n()}}),o&&Array.isArray(o)&&o[0]?l.query(r,o).then(d).catch(p):l.query(r).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=56363);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json index 60a025f..25b6d6f 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserTable.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/2163.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../chunks/1352.js","../../chunks/8999.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/checkDb.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/encodingUpdate.js","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../../shell/functions/jsonToBase64.js"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../../shell/checkDb.js","../../../../shell/createDbFromSchema.js","../../../../shell/deploy.js","../../../../shell/encodingUpdate.js","../../../../shell/functions/jsonToBase64.js","../../../../shell/grantFullPriviledges.js","../../../../shell/lessWatch.js","../../../../shell/mariadb-users/handleGrants.js","../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../shell/mariadb-users/users/create-user.js","../../../../shell/mariadb-users/users/new-user.json","../../../../shell/mariadb-users/users/update-user.js","../../../../shell/mariadb-users/users/update-user.json","../../../../shell/readImage.js","../../../../shell/recoverMainJsonFromDb.js","../../../../shell/resetSQLCredentials.js","../../../../shell/resetSQLCredentialsPasswords.js","../../../../shell/setSQLCredentials.js","../../../../shell/tailwindWatch.js","../../../../shell/test-external-server.js","../../../../shell/test.js","../../../../shell/testSQLEscape.js","../../../../shell/updateChildrenTablesOnDb.js","../../../../shell/updateDateTimestamps.js","../../../../shell/updateDbSlugsForTableRecords.js","../../../../shell/updateSSLUsers.js","../../../../shell/utils/createTable.js","../../../../shell/utils/dbHandler.js","../../../../shell/utils/generateColumnDescription.js","../../../../shell/utils/noDatabaseDbHandler.js","../../../../shell/utils/supplementTable.js","../../../../shell/utils/updateTable.js","../../../../shell/utils/varDatabaseDbHandler.js","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserUser.js b/dsql-app/.local_dist/server/pages/api/updateUserUser.js index 1b65fe9..e7dd329 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserUser.js +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js @@ -1,152 +1,13 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3769; -exports.ids = [3769]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3649: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * User auth - * - * @description Authenticate user - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_1___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * User auth - * - * @description Authenticate user - */ const { user_type } = req.body; - /** - * Input Validation - * - * @description Input Validation - */ const data = (()=>{ - const reqBodyKeys = Object.keys(req.body); - /** @type {any} */ const finalData = {}; - reqBodyKeys.forEach((key)=>{ - if (user_type?.match(/database/) && key?.match(/user_type|priviledge|database_access|databases?|confirm/)) return; - if (key?.match(/databases|confirm/)) return; - finalData[key] = req.body[key]; - }); - return finalData; - })(); - /** - * Input Validation - * - * @description Input Validation - */ /** @type {any} */ const updatedUser = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbFullName: "datasquirel", - tableName: "user_users", - identifierColumnName: "id", - identifierValue: req.body.id, - data: { - ...data - } - }); - res.json({ - success: updatedUser?.affectedRows ? true : false, - msg: updatedUser?.affectedRows ? "User Updated" : updatedUser - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} +"use strict";(()=>{var e={};e.id=2500,e.ids=[2500],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},66162:(e,t,r)=>{r.r(t),r.d(t,{config:()=>f,default:()=>d,routeModule:()=>S});var s={};r.r(s),r.d(s,{default:()=>p});var n=r(89947),a=r(2706),o=r(96762),i=r(33364),c=r.n(i),u=r(6420),l=r.n(u);async function p(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!await l()(e,t,!0))return t.json({success:!1,msg:"Unauthorized"});let{user_type:r}=e.body,s=(()=>{let t=Object.keys(e.body),s={};return t.forEach(t=>{!(r?.match(/database/)&&t?.match(/user_type|priviledge|database_access|databases?|confirm/))&&(t?.match(/databases|confirm/)||(s[t]=e.body[t]))}),s})(),n=await c()({dbFullName:"datasquirel",tableName:"user_users",identifierColumnName:"id",identifierValue:e.body.id,data:{...s}});t.json({success:!!n?.affectedRows,msg:n?.affectedRows?"User Updated":n})}let d=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),S=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/updateUserUser",pathname:"/api/updateUserUser",bundlePath:"",filename:""},userland:s})},6420:(e,t,r)=>{r(81630);let s=r(51348),n=r(72907),a=r(29021);async function o(e,t,r,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let i=n(e.cookies.datasquirelAuthKey);if(!i)return null;let c=JSON.parse(i);if(!c.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${c.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${u}/${c.csrf_k}`))return null;if(0==c.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${c.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return c?.date&&Date.now()-c.date>6048e5?null:c}e.exports=o},33364:(e,t,r)=>{let s=r(82703),n=r(72583),a=r(16570),o=r(51348),i=r(21339);async function c({dbContext:e,paradigm:t,dbFullName:r,tableName:c,data:u,tableSchema:l,identifierColumnName:p,identifierValue:d,encryptionKey:f,encryptionSalt:S}){if(!u||!Object.keys(u).length)return null;let _=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),h=_?o:i,m=Object.keys(u),D=[],y=[];for(let e=0;e<m.length;e++)try{let t=m[e],r=u[t],o=l?l?.fields?.filter(e=>e.fieldName===t):null,i=o&&o[0]?o[0]:null;if(null==r||void 0==r)continue;i?.richText&&(r=n(r,a)),i?.encrypted&&(r=s(r,f,S)),"object"==typeof r&&(r=JSON.stringify(r)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),D.push(`\`${t}\`=?`),"number"==typeof r?y.push(String(r)):y.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}D.push(`date_updated='${Date()}'`),D.push(`date_updated_code='${Date.now()}'`);let g=`UPDATE ${c} SET ${D.join(",")} WHERE \`${p}\`=?`;return y.push(d),_?await h(g,y):await h({paradigm:t,database:r,queryString:g,queryValues:y})}e.exports=c},72907:(e,t,r)=>{let{scryptSync:s,createDecipheriv:n}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},82703:(e,t,r)=>{let{scryptSync:s,createCipheriv:n}=r(55511),{Buffer:a}=r(79428),o=r(48225);e.exports=(e,t,r)=>{let i=n("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=i.update(e,"utf8","hex");return t+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,t,r)=>{let s=r(29021);e.exports=async function({user:e,message:t,component:r,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${t} +Component: ${r} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,6825,3017,3403,7547,5886], () => (__webpack_exec__(3649))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,t,r)=>{let s=r(9973),n=r(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,t,r)=>{let s=r(29021);r(33873);let n=r(9973),a=r(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:i}){try{return new Promise((c,u)=>{let l=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),c(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),c({error:e.message,queryStringGenerated:r,queryValuesGenerated:i,sql:e.sql})}o=l?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(r,i).then(p).catch(d):o.query(r).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),c({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},89947:(e,t,r)=>{e.exports=r(75600)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=66162);module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json b/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json index c9ca41a..b89cd9a 100644 --- a/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/updateUserUser.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-api-runtime.js","../../chunks/2224.js","../../chunks/6825.js","../../chunks/3017.js","../../chunks/3403.js","../../chunks/7547.js","../../chunks/5886.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/mysql/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/postcss/package.json","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/mysql/package.json","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/entities/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domutils/package.json","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/nanoid/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/deepmerge/dist/cjs.js","../../../../node_modules/deepmerge/package.json","../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../node_modules/dom-serializer/lib/index.js","../../../../node_modules/dom-serializer/package.json","../../../../node_modules/domelementtype/lib/index.js","../../../../node_modules/domelementtype/package.json","../../../../node_modules/domhandler/lib/index.js","../../../../node_modules/domhandler/lib/node.js","../../../../node_modules/domhandler/package.json","../../../../node_modules/domutils/lib/feeds.js","../../../../node_modules/domutils/lib/helpers.js","../../../../node_modules/domutils/lib/index.js","../../../../node_modules/domutils/lib/legacy.js","../../../../node_modules/domutils/lib/manipulation.js","../../../../node_modules/domutils/lib/querying.js","../../../../node_modules/domutils/lib/stringify.js","../../../../node_modules/domutils/lib/traversal.js","../../../../node_modules/domutils/package.json","../../../../node_modules/entities/lib/decode.js","../../../../node_modules/entities/lib/decode_codepoint.js","../../../../node_modules/entities/lib/encode.js","../../../../node_modules/entities/lib/escape.js","../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../node_modules/entities/lib/generated/encode-html.js","../../../../node_modules/entities/lib/index.js","../../../../node_modules/entities/package.json","../../../../node_modules/escape-string-regexp/index.js","../../../../node_modules/escape-string-regexp/package.json","../../../../node_modules/htmlparser2/lib/Parser.js","../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../node_modules/htmlparser2/lib/index.js","../../../../node_modules/htmlparser2/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../node_modules/is-plain-object/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/nanoid/non-secure/index.cjs","../../../../node_modules/nanoid/non-secure/package.json","../../../../node_modules/nanoid/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/package.json","../../../../node_modules/parse-srcset/package.json","../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../node_modules/picocolors/package.json","../../../../node_modules/picocolors/picocolors.js","../../../../node_modules/postcss/lib/at-rule.js","../../../../node_modules/postcss/lib/comment.js","../../../../node_modules/postcss/lib/container.js","../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../node_modules/postcss/lib/declaration.js","../../../../node_modules/postcss/lib/document.js","../../../../node_modules/postcss/lib/fromJSON.js","../../../../node_modules/postcss/lib/input.js","../../../../node_modules/postcss/lib/lazy-result.js","../../../../node_modules/postcss/lib/list.js","../../../../node_modules/postcss/lib/map-generator.js","../../../../node_modules/postcss/lib/no-work-result.js","../../../../node_modules/postcss/lib/node.js","../../../../node_modules/postcss/lib/parse.js","../../../../node_modules/postcss/lib/parser.js","../../../../node_modules/postcss/lib/postcss.js","../../../../node_modules/postcss/lib/previous-map.js","../../../../node_modules/postcss/lib/processor.js","../../../../node_modules/postcss/lib/result.js","../../../../node_modules/postcss/lib/root.js","../../../../node_modules/postcss/lib/rule.js","../../../../node_modules/postcss/lib/stringifier.js","../../../../node_modules/postcss/lib/stringify.js","../../../../node_modules/postcss/lib/symbols.js","../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../node_modules/postcss/lib/tokenize.js","../../../../node_modules/postcss/lib/warn-once.js","../../../../node_modules/postcss/lib/warning.js","../../../../node_modules/postcss/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/sanitize-html/index.js","../../../../node_modules/sanitize-html/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/source-map-js/lib/array-set.js","../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../node_modules/source-map-js/lib/base64.js","../../../../node_modules/source-map-js/lib/binary-search.js","../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../node_modules/source-map-js/lib/source-node.js","../../../../node_modules/source-map-js/lib/util.js","../../../../node_modules/source-map-js/package.json","../../../../node_modules/source-map-js/source-map.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js index c90c8c6..675cb04 100644 --- a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js @@ -1,204 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1176; -exports.ids = [1176]; -exports.modules = { - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 3802: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6825); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2224); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2081); -/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -const fs = __webpack_require__(7147); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=4105,e.ids=[4105],e.modules={27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},46127:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>E,routeModule:()=>b});var s={};t.r(s),t.d(s,{default:()=>h});var a=t(89947),n=t(2706),i=t(96762),o=t(6420),l=t.n(o),c=t(77538),u=t.n(c);t(27825);var d=t(51348),p=t.n(d),f=t(33873),S=t.n(f),_=t(79646);let m=t(29021);async function h(e,r){if("POST"!==e.method)return r.json({user:null,msg:"Registration Failed!"});let t=await l()(e,r,!0);if(!t)return r.json({success:!1,msg:"Unauthorized"});let s=e.body.schema,a=e.body.dbId;try{let e=await p()("SELECT * FROM user_databases WHERE user_id = ? AND id = ?",[t.id,a]);if(!e?.[0])throw Error("Invalid Database");let n=e[0],i=S().resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${t.id}/main.json`),o=JSON.parse(m.readFileSync(i,"utf-8")),l=o.find(e=>e.dbFullName==n.db_full_name);if(!l)throw Error("This Database doesn't exist");if(l.tables=s.tables,l.childrenDatabases)for(let e=0;e<l.childrenDatabases.length;e++){let{dbFullName:r}=l.childrenDatabases[e],t=o.find(e=>e.dbFullName===r);if(!t||!t.tables){l.childrenDatabases?.splice(e,1);continue}t.tables=s.tables}m.writeFileSync(`${i}`,JSON.stringify(o),"utf8");let c=S().join(process.cwd(),"/shell"),u=(0,_.execSync)(`node createDbFromSchema.js --user ${t.id} --database ${n.db_full_name}`,{cwd:c});console.log(u.toString()),r.json({success:!0})}catch(s){u()({component:"/api/acceptUserInvitation/catch-error",message:s.message,user:t,req:e}),r.json({success:!1})}}let E=(0,i.M)(s,"default"),y=(0,i.M)(s,"config"),b=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user-schema/replace-database-schema",pathname:"/api/user-schema/replace-database-schema",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - user: null, - msg: "Registration Failed!" - }); - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_0___default()(req, res, true); - if (!user) { - return res.json({ - success: false, - msg: "Unauthorized" - }); - } - /** - * Validate Form - * - * @description Check if request body is valid - */ /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType} */ const schema = req.body.schema; - const dbId = req.body.dbId; - /** - * Validate Form - * - * @description Check if request body is valid - */ try { - /** - * @type {import("@/package-shared/types").DSQL_MYSQL_user_databases_Type[] | null} - */ const targetDBArray = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_3___default()(`SELECT * FROM user_databases WHERE user_id = ? AND id = ?`, [ - user.id, - dbId - ]); - if (!targetDBArray?.[0]) { - throw new Error("Invalid Database"); - } - const targetDb = targetDBArray[0]; - const userSchemaPath = path__WEBPACK_IMPORTED_MODULE_4___default().resolve(process.cwd(), `${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${user.id}/main.json`); - /** @type {import("@/package-shared/types").DSQL_DatabaseSchemaType[]} */ const userSchema = JSON.parse(fs.readFileSync(userSchemaPath, "utf-8")); - const targetDatabase = userSchema.find((db)=>db.dbFullName == targetDb.db_full_name); - if (!targetDatabase) { - throw new Error("This Database doesn't exist"); - } - targetDatabase.tables = schema.tables; - if (targetDatabase.childrenDatabases) { - for(let i = 0; i < targetDatabase.childrenDatabases.length; i++){ - const childDb = targetDatabase.childrenDatabases[i]; - const { dbFullName } = childDb; - const targetChildDb = userSchema.find((db)=>db.dbFullName === dbFullName); - if (!targetChildDb || !targetChildDb.tables) { - targetDatabase.childrenDatabases?.splice(i, 1); - continue; - } - targetChildDb.tables = schema.tables; - } - } - fs.writeFileSync(`${userSchemaPath}`, JSON.stringify(userSchema), "utf8"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - const targetShellPath = path__WEBPACK_IMPORTED_MODULE_4___default().join(process.cwd(), "/shell"); - const dbShellUpdate = (0,child_process__WEBPACK_IMPORTED_MODULE_5__.execSync)(`node createDbFromSchema.js --user ${user.id} --database ${targetDb.db_full_name}`, { - cwd: targetShellPath - }); - console.log(dbShellUpdate.toString()); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/acceptUserInvitation/catch-error", - message: error.message, - user: user - }); - res.json({ - success: false - }); - } -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,6825], () => (__webpack_exec__(3802))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},6420:(e,r,t)=>{t(81630);let s=t(51348),a=t(72907),n=t(29021);async function i(e,r,t,i){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||t&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let c=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!c)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(t&&!n.existsSync(`${c}/${l.csrf_k}`))return null;if(0==l.verification_status&&!t){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&r.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=i},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function i(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=46127);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json index ea08d0a..dc05206 100644 --- a/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user-schema/replace-database-schema.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../chunks/2224.js","../../../chunks/2163.js","../../../chunks/6825.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lodash/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../package.json","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../../shell/createDbFromSchema.js","../../../../../shell/deploy.js","../../../../../shell/checkDb.js","../../../../../shell/grantFullPriviledges.js","../../../../../shell/lessWatch.js","../../../../../shell/encodingUpdate.js","../../../../../shell/readImage.js","../../../../../shell/recoverMainJsonFromDb.js","../../../../../shell/resetSQLCredentials.js","../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../shell/setSQLCredentials.js","../../../../../shell/tailwindWatch.js","../../../../../shell/test-external-server.js","../../../../../shell/test.js","../../../../../shell/testSQLEscape.js","../../../../../shell/updateChildrenTablesOnDb.js","../../../../../shell/updateDateTimestamps.js","../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../shell/updateSSLUsers.js","../../../../../shell/utils/createTable.js","../../../../../shell/utils/generateColumnDescription.js","../../../../../shell/utils/dbHandler.js","../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../shell/utils/supplementTable.js","../../../../../shell/utils/updateTable.js","../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../shell/functions/jsonToBase64.js","../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/lodash/lodash.js","../../../../../node_modules/lodash/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../../shell/checkDb.js","../../../../../shell/createDbFromSchema.js","../../../../../shell/deploy.js","../../../../../shell/encodingUpdate.js","../../../../../shell/functions/jsonToBase64.js","../../../../../shell/grantFullPriviledges.js","../../../../../shell/lessWatch.js","../../../../../shell/mariadb-users/handleGrants.js","../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../shell/mariadb-users/users/create-user.js","../../../../../shell/mariadb-users/users/new-user.json","../../../../../shell/mariadb-users/users/update-user.js","../../../../../shell/mariadb-users/users/update-user.json","../../../../../shell/readImage.js","../../../../../shell/recoverMainJsonFromDb.js","../../../../../shell/resetSQLCredentials.js","../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../shell/setSQLCredentials.js","../../../../../shell/tailwindWatch.js","../../../../../shell/test-external-server.js","../../../../../shell/test.js","../../../../../shell/testSQLEscape.js","../../../../../shell/updateChildrenTablesOnDb.js","../../../../../shell/updateDateTimestamps.js","../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../shell/updateSSLUsers.js","../../../../../shell/utils/createTable.js","../../../../../shell/utils/dbHandler.js","../../../../../shell/utils/generateColumnDescription.js","../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../shell/utils/supplementTable.js","../../../../../shell/utils/updateTable.js","../../../../../shell/utils/varDatabaseDbHandler.js","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js index ea190dd..45baff8 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js @@ -1,412 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9503; -exports.ids = [9503]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 2081: -/***/ ((module) => { - -module.exports = require("child_process"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 1459: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); -const serverError = __webpack_require__(2163); -const DB_HANDLER = __webpack_require__(2224); -const { default: grabUserSchemaData } = __webpack_require__(8164); -const { default: setUserSchemaData } = __webpack_require__(7638); -const addDbEntry = __webpack_require__(5338); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Function - * ============================================================================== - * @param {object} params - * @param {number} params.userId - user id - * @param {string} params.database - * - * @returns {Promise<any>} new user auth object payload - */ module.exports = async function addUsersTableToDb({ userId , database }) { - /** - * Initialize - * - * @description Initialize - */ const dbFullName = `datasquirel_user_${userId}_${database}`; - /** @type {import("@/package-shared/types").DSQL_TableSchemaType} */ // @ts-ignore - const userPreset = __webpack_require__(9258); - try { - /** - * Fetch user - * - * @description Fetch user from db - */ const userSchemaData = grabUserSchemaData({ - userId - }); - if (!userSchemaData) throw new Error("User schema data not found!"); - let targetDatabase = userSchemaData.filter((db)=>db.dbSlug === database)[0]; - let existingTableIndex; - // @ts-ignore - let existingTable = targetDatabase.tables.filter((table, index)=>{ - if (table.tableName === "users") { - existingTableIndex = index; - return true; - } - }); - if (existingTable && existingTable[0] && existingTableIndex) { - targetDatabase.tables[existingTableIndex] = userPreset; - } else { - targetDatabase.tables.push(userPreset); - } - setUserSchemaData({ - schemaData: userSchemaData, - userId - }); - //////////////////////////////////////// - const targetDb = await DB_HANDLER(`SELECT id FROM user_databases WHERE user_id=? AND db_slug=?`, [ - userId, - database - ]); - if (targetDb && targetDb[0]) { - const newTableEntry = await addDbEntry({ - dbFullName: "datasquirel", - tableName: "user_database_tables", - data: { - user_id: userId, - db_id: targetDb[0].id, - db_slug: database, - table_name: "Users", - table_slug: "users" - } - }); - } - //////////////////////////////////////// - const targetPath = path.join(process.cwd(), "/shell"); - const dbShellUpdate = execSync(`node createDbFromSchema.js --user ${userId} --database ${dbFullName}`, { - cwd: targetPath - }); - return dbShellUpdate.toString(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - serverError({ - component: "addUsersTableToDb", - message: error.message, - user: { - id: userId - } - }); - return error.message; - } -}; //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 2245: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _functions_backend_addUsersTableToDb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1459); -/* harmony import */ var _functions_backend_addUsersTableToDb__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_addUsersTableToDb__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5338); -/* harmony import */ var _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const path = __webpack_require__(1017); -const { execSync } = __webpack_require__(2081); +"use strict";(()=>{var e={};e.id=8864,e.ids=[8864],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},79646:e=>{e.exports=require("child_process")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},48942:(e,a,t)=>{t.r(a),t.d(a,{config:()=>h,default:()=>S,routeModule:()=>N});var r={};t.r(r),t.d(r,{default:()=>A});var s=t(89947),l=t(2706),u=t(96762),i=t(56757),n=t.n(i),d=t(47670),o=t.n(d);t(72907);var c=t(43499),m=t.n(c),p=t(77538),f=t.n(p),g=t(57638),_=t.n(g),y=t(77619),R=t.n(y);t(29021),t(33873);let{execSync:b}=t(79646);async function A(e,a){if("POST"!==e.method)return a.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:r,database:s,encryptionKey:l}=e.body,u=R()({key:t,database:s,user_id:String(e.query.user_id)});if(!u?.user_id)throw Error("Api Credentials invalid!");if((!u.full_access||!u.sign)&&!r?.password){a.json({success:!1,msg:"Password is required to create an account"});return}let i=m()({encryptionKey:l,password:String(r.password)});r.password=i;let d=`datasquirel_user_${u.user_id}_${s}`,c=await _()({queryString:"SHOW COLUMNS FROM users",database:d});if(c||(await n()({userId:Number(u.user_id),database:s}),c=await _()({queryString:"SHOW COLUMNS FROM users",database:d})),!c)return a.json({success:!1,msg:"Could not create users table"});let p=c.map(e=>e.Field),f=null;for(let e=0;e<Object.keys(r).length;e++){let a=Object.keys(r)[e];if(!p.includes(a)){f=a;break}}if(f){a.json({success:!1,msg:`${f} is not a valid field!`});return}let g=await _()({queryString:`SELECT * FROM users WHERE email = ?${r.username?" OR username = ?":""}`,queryValuesArray:r.username?[r.email,r.username]:[r.email],database:d});if(console.log(g),g?.[0])return a.json({success:!1,msg:"User Already Exists",payload:null});let y=await o()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:d,tableName:"users",data:{...r,image:"/images/user-preset.png",image_thumbnail:"/images/user-preset-thumbnail.png"}});if(y?.insertId){let e=await _()({queryString:`SELECT id,first_name,last_name,email,username,phone,image,image_thumbnail,city,state,country,zip_code,address,verification_status,more_user_data FROM users WHERE id='${y.insertId}'`,database:d});a.json({success:!0,payload:e[0]})}else a.json({success:!1,msg:"Could not create user",sqlResult:y,payload:null})}catch(t){f()({component:"/api/user/add-user/main-catch-error",message:t.message,user:{},req:e}),a.json({success:!1,msg:"Wrong Credentials"})}}let S=(0,u.M)(r,"default"),h=(0,u.M)(r,"config"),N=new s.PagesAPIRouteModule({definition:{kind:l.A.PAGES_API,page:"/api/user/[user_id]/add-user",pathname:"/api/user/[user_id]/add-user",bundlePath:"",filename:""},userland:r})},56757:(e,a,t)=>{t(29021);let r=t(33873),{execSync:s}=t(79646),l=t(77538),u=t(51348),{default:i}=t(49827),{default:n}=t(19857),d=t(47670);e.exports=async function({userId:e,database:a}){let o=`datasquirel_user_${e}_${a}`,c=t(87924);try{let t;let l=i({userId:e});if(!l)throw Error("User schema data not found!");let m=l.filter(e=>e.dbSlug===a)[0],p=m.tables.filter((e,a)=>{if("users"===e.tableName)return t=a,!0});p&&p[0]&&t?m.tables[t]=c:m.tables.push(c),n({schemaData:l,userId:e});let f=await u("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[e,a]);f&&f[0]&&await d({dbFullName:"datasquirel",tableName:"user_database_tables",data:{user_id:e,db_id:f[0].id,db_slug:a,table_name:"Users",table_slug:"users"}});let g=r.join(process.cwd(),"/shell");return s(`node createDbFromSchema.js --user ${e} --database ${o}`,{cwd:g}).toString()}catch(a){return l({component:"addUsersTableToDb",message:a.message,user:{id:e}}),a.message}}},49827:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});let r=t(77538),s=t(29021),l=t(33873);function u({userId:e}){try{let a=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return JSON.parse(s.readFileSync(a,"utf-8"))}catch(e){return r({component:"/functions/backend/grabUserSchemaData",message:e.message}),null}}},77538:(e,a,t)=>{let r=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:a,component:t,noMail:s,req:l}){let u=new Date,i=(()=>{if(!l)return null;try{let e=l.headers["x-forwarded-for"],a=l.headers["x-real-ip"],t=l.headers["cf-connecting-ip"],r=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||r||a||l.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${a} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),l?.url&&(s+=` +URL: ${l.url}`),l?.body&&(s+=` +Request Body: ${JSON.stringify(l.body,null,4)}`),i&&(s+=` +IP: ${i}`),s+=` +Date: ${u.toDateString()} +========================================`,r.existsSync("./.tmp/error.log")||r.writeFileSync("./.tmp/error.log","","utf-8");let n=r.readFileSync("./.tmp/error.log","utf-8");r.writeFileSync("./.tmp/error.log",s),r.appendFileSync("./.tmp/error.log",` - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - payload: null, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ /** @type {string} */ // @ts-ignore - const authorization = req.headers.authorization; - const sanitizedReqBody = req.body; - const { payload , database , encryptionKey } = sanitizedReqBody; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_6___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) { - if (!payload?.password) { - res.json({ - success: false, - msg: `Password is required to create an account` - }); - return; - } - } - const hashedPassword = datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_3___default()({ - encryptionKey: encryptionKey, - password: String(payload.password) - }); - payload.password = hashedPassword; - /** - * Input Validation - * - * @description Input Validation - * @required - payload.first_name - * @required - payload.last_name - * @required - payload.email - * @required - payload.password - */ const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - let fields = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - queryString: `SHOW COLUMNS FROM users`, - database: dbFullName - }); - if (!fields) { - const newTable = await _functions_backend_addUsersTableToDb__WEBPACK_IMPORTED_MODULE_0___default()({ - userId: Number(apiCred.user_id), - database: database - }); - fields = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - queryString: `SHOW COLUMNS FROM users`, - database: dbFullName - }); - } - if (!fields) { - return res.json({ - success: false, - msg: "Could not create users table" - }); - } - const fieldsTitles = fields.map((/** @type {any} */ fieldObject)=>fieldObject.Field); - let invalidField = null; - for(let i = 0; i < Object.keys(payload).length; i++){ - const key = Object.keys(payload)[i]; - if (!fieldsTitles.includes(key)) { - invalidField = key; - break; - } - } - if (invalidField) { - res.json({ - success: false, - msg: `${invalidField} is not a valid field!` - }); - return; - } - const existingUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - queryString: `SELECT * FROM users WHERE email = ?${payload.username ? " OR username = ?" : ""}`, - queryValuesArray: payload.username ? [ - payload.email, - payload.username - ] : [ - payload.email - ], - database: dbFullName - }); - console.log(existingUser); - if (existingUser?.[0]) { - return res.json({ - success: false, - msg: "User Already Exists", - payload: null - }); - } - const addUser = await _package_shared_functions_backend_db_addDbEntry__WEBPACK_IMPORTED_MODULE_1___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: "users", - data: { - ...payload, - image: "/images/user-preset.png", - image_thumbnail: "/images/user-preset-thumbnail.png" - } - }); - if (addUser?.insertId) { - const newlyAddedUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_5___default()({ - queryString: `SELECT id,first_name,last_name,email,username,phone,image,image_thumbnail,city,state,country,zip_code,address,verification_status,more_user_data FROM users WHERE id='${addUser.insertId}'`, - database: dbFullName - }); - res.json({ - success: true, - payload: newlyAddedUser[0] - }); - } else { - res.json({ - success: false, - msg: "Could not create user", - sqlResult: addUser, - payload: null - }); - } - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_4___default()({ - component: "/api/user/add-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,1007,8164,7638,9258], () => (__webpack_exec__(2245))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${n}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},19857:(e,a,t)=>{t.r(a),t.d(a,{default:()=>u});let r=t(77538),s=t(29021),l=t(33873);function u({userId:e,schemaData:a}){try{let t=l.resolve(process.cwd(),`${process.env.DSQL_USER_DB_SCHEMA_PATH}/user-${e}/main.json`);return s.writeFileSync(t,JSON.stringify(a),"utf8"),!0}catch(e){return r({component:"/functions/backend/setUserSchemaData",message:e.message}),!1}}},77619:(e,a,t)=>{let r=t(29021),s=t(72907);e.exports=({key:e,database:a,table:t,user_id:l})=>{if(!e||!l)return null;try{let u=process.env.DSQL_API_KEYS_PATH;if(!u)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=s(e),n=JSON.parse(i||""),d=r.existsSync(`${u}/${n.sign}`);if(String(n.user_id)!==String(l)||!d)return null;if(!n.target_database)return n;if(!a&&n.target_database)return null;let o=n.target_database?.split(",").includes(String(a));if(o&&!n.target_table)return n;if(o&&!t&&n.target_table)return null;if(n.target_table?.split(",").includes(String(t)))return n;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,a,t)=>{let{scryptSync:r,createDecipheriv:s}=t(55511),{Buffer:l}=t(79428);e.exports=e=>{let a=s("aes-192-cbc",r(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),l.alloc(16,0));try{let t=a.update(e,"hex","utf8");return t+=a.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,a,t)=>{let r=t(72907),s=t(30003);e.exports=async function({unparsedResults:e,tableSchema:a}){let t=[];try{for(let l=0;l<e.length;l++){let u=e[l],i=Object.keys(u);for(let e=0;e<i.length;e++){let t=i[e],l=a?.fields[e];if(t?.match(s))continue;let n=u[t];("number"==typeof n||n)&&l?.encrypted&&n?.match(/./)&&(u[t]=r(n))}t.push(u)}return t}catch(a){return console.log("ERROR in parseDbResults Function =>",a.message),e}}},57638:(e,a,t)=>{t(29021);let r=t(6061),s=t(48225),l=t(51348),u=t(21339);e.exports=async function({queryString:e,queryValuesArray:a,database:t,tableSchema:i}){let n;let d=!!t?.match(/^datasquirel$/),o=d?l:u;try{n=e&&a&&Array.isArray(a)&&a[0]?d?await o(e,a):await o({paradigm:"Full Access",database:t,queryString:e,queryValues:a}):d?await o(e):await o({paradigm:"Full Access",database:t,queryString:e})}catch(e){s({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(n&&i)try{let e=n;return await r({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),s({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(n)return n;else return null}},87924:e=>{e.exports=JSON.parse('{"tableName":"users","tableFullName":"Users","fields":[{"fieldName":"first_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"last_name","dataType":"VARCHAR(100)","notNullValue":true},{"fieldName":"email","dataType":"VARCHAR(200)","notNullValue":true},{"fieldName":"phone","dataType":"VARCHAR(50)"},{"fieldName":"user_type","dataType":"VARCHAR(20)","defaultValue":"default"},{"fieldName":"username","dataType":"VARCHAR(100)","nullValue":true},{"fieldName":"password","dataType":"VARCHAR(250)","notNullValue":true},{"fieldName":"image","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset.png"},{"fieldName":"image_thumbnail","dataType":"VARCHAR(250)","defaultValue":"/images/user-preset-thumbnail.png"},{"fieldName":"address","dataType":"VARCHAR(255)"},{"fieldName":"city","dataType":"VARCHAR(50)"},{"fieldName":"state","dataType":"VARCHAR(50)"},{"fieldName":"country","dataType":"VARCHAR(50)"},{"fieldName":"zip_code","dataType":"VARCHAR(50)"},{"fieldName":"social_login","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"social_platform","dataType":"VARCHAR(50)","nullValue":true},{"fieldName":"social_id","dataType":"VARCHAR(250)","nullValue":true},{"fieldName":"more_user_data","dataType":"BIGINT","defaultValue":"0"},{"fieldName":"verification_status","dataType":"TINYINT","defaultValue":"0"},{"fieldName":"temp_login_code","dataType":"VARCHAR(50)","nullValue":true}]}')}};var a=require("../../../../webpack-api-runtime.js");a.C(e);var t=e=>a(a.s=e),r=a.X(0,[4050],()=>t(48942));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json index 7a657a4..184b553 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/add-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../chunks/8164.js","../../../../chunks/7638.js","../../../../chunks/9258.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/datasquirel/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json","../../../../../../shell/mariadb-users/handleGrants.js","../../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../../shell/mariadb-users/users/create-user.js","../../../../../../shell/mariadb-users/users/new-user.json","../../../../../../shell/mariadb-users/users/update-user.js","../../../../../../shell/mariadb-users/users/update-user.json","../../../../../../jsonData/presets/users.json","../../../../../../shell/createDbFromSchema.js","../../../../../../shell/deploy.js","../../../../../../shell/checkDb.js","../../../../../../shell/grantFullPriviledges.js","../../../../../../shell/lessWatch.js","../../../../../../shell/encodingUpdate.js","../../../../../../shell/readImage.js","../../../../../../shell/recoverMainJsonFromDb.js","../../../../../../shell/resetSQLCredentials.js","../../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../../shell/setSQLCredentials.js","../../../../../../shell/tailwindWatch.js","../../../../../../shell/test-external-server.js","../../../../../../shell/test.js","../../../../../../shell/testSQLEscape.js","../../../../../../shell/updateChildrenTablesOnDb.js","../../../../../../shell/updateDateTimestamps.js","../../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../../shell/updateSSLUsers.js","../../../../../../shell/utils/createTable.js","../../../../../../shell/utils/generateColumnDescription.js","../../../../../../shell/utils/dbHandler.js","../../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../../shell/utils/supplementTable.js","../../../../../../shell/utils/updateTable.js","../../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../../shell/functions/jsonToBase64.js","../../../../../../jsonData/dbSchemas/users/user-1/main.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../jsonData/dbSchemas/users/user-1/main.json","../../../../../../jsonData/presets/users.json","../../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../../shell/checkDb.js","../../../../../../shell/createDbFromSchema.js","../../../../../../shell/deploy.js","../../../../../../shell/encodingUpdate.js","../../../../../../shell/functions/jsonToBase64.js","../../../../../../shell/grantFullPriviledges.js","../../../../../../shell/lessWatch.js","../../../../../../shell/mariadb-users/handleGrants.js","../../../../../../shell/mariadb-users/refreshUsersAndGrants.js","../../../../../../shell/mariadb-users/resetSQLPasswords.js","../../../../../../shell/mariadb-users/users/create-user.js","../../../../../../shell/mariadb-users/users/new-user.json","../../../../../../shell/mariadb-users/users/update-user.js","../../../../../../shell/mariadb-users/users/update-user.json","../../../../../../shell/readImage.js","../../../../../../shell/recoverMainJsonFromDb.js","../../../../../../shell/resetSQLCredentials.js","../../../../../../shell/resetSQLCredentialsPasswords.js","../../../../../../shell/setSQLCredentials.js","../../../../../../shell/tailwindWatch.js","../../../../../../shell/test-external-server.js","../../../../../../shell/test.js","../../../../../../shell/testSQLEscape.js","../../../../../../shell/updateChildrenTablesOnDb.js","../../../../../../shell/updateDateTimestamps.js","../../../../../../shell/updateDbSlugsForTableRecords.js","../../../../../../shell/updateSSLUsers.js","../../../../../../shell/utils/createTable.js","../../../../../../shell/utils/dbHandler.js","../../../../../../shell/utils/generateColumnDescription.js","../../../../../../shell/utils/noDatabaseDbHandler.js","../../../../../../shell/utils/supplementTable.js","../../../../../../shell/utils/updateTable.js","../../../../../../shell/utils/varDatabaseDbHandler.js","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js index 93e859a..e894ef8 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js @@ -1,188 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7631; -exports.ids = [7631]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 5823: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=8078,e.ids=[8078],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},21611:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762);t(72907);var l=t(77538),i=t.n(l),u=t(57638),c=t.n(u),d=t(77619),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:a}=e.body,n=p()({key:t,database:a?.db_slug,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${n.user_id}_${a}`,l=await c()({queryString:`DELETE FROM users WHERE id='${s.id}'`,database:o});r.json({success:!0,payload:l})}catch(t){i()({component:"/api/user/delete-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}t(29021);let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/delete-user",pathname:"/api/user/[user_id]/delete-user",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - payload: null, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ /** @type {string} */ // @ts-ignore - const authorization = req.headers.authorization; - const { payload , database } = req.body; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - database: database?.db_slug, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ /** - * Input Validation - * - * @description Input Validation - * @required - payload.first_name - * @required - payload.last_name - * @required - payload.email - * @required - payload.username - * @required - payload.password - */ const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - const deleteUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - queryString: `DELETE FROM users WHERE id='${payload.id}'`, - database: dbFullName - }); - res.json({ - success: true, - payload: deleteUser - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/user/delete-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),a=t(72907);e.exports=({key:e,database:r,table:t,user_id:n})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=a(e),i=JSON.parse(l||""),u=s.existsSync(`${o}/${i.sign}`);if(String(i.user_id)!==String(n)||!u)return null;if(!i.target_database)return i;if(!r&&i.target_database)return null;let c=i.target_database?.split(",").includes(String(r));if(c&&!i.target_table)return i;if(c&&!t&&i.target_table)return null;if(i.target_table?.split(",").includes(String(t)))return i;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],n=r?.fields[e];if(t?.match(a))continue;let i=o[t];("number"==typeof i||i)&&n?.encrypted&&i?.match(/./)&&(o[t]=s(i))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,1007], () => (__webpack_exec__(5823))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let i;let u=!!t?.match(/^datasquirel$/),c=u?n:o;try{i=e&&r&&Array.isArray(r)&&r[0]?u?await c(e,r):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&l)try{let e=i;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=21611);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json index 0d6c5f3..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/delete-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js index 1bbcd79..f0b0f80 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js @@ -1,194 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 492; -exports.ids = [492]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 3154: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=795,e.ids=[795],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},40132:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>S,routeModule:()=>m});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),o=t(96762);t(72907);var i=t(77538),l=t.n(i),u=t(57638),c=t.n(u),d=t(77619),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.headers.authorization,{userId:s,database:a}=e.body,n=p()({key:t,database:a,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,msg:"Unauthorized"});let o=e.body.fields.map(e=>e.replace(/[^a-z\_]/g,"")),i=`datasquirel_user_${n.user_id}_${a}`,l=`SELECT ${o.join(",")} FROM users WHERE id=?`,u=await c()({queryString:l,queryValuesArray:[s],database:i.replace(/[^a-z0-9_]/g,"")});if(!u||!u[0])return r.json({success:!1,payload:null,msg:"User not found!"});r.json({success:!0,payload:u[0]})}catch(t){l()({component:"/api/user/get-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}t(29021);let S=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),m=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/get-user",pathname:"/api/user/[user_id]/get-user",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** @type {string} */ // @ts-ignore - const authorization = req.headers.authorization; - const { userId , database } = req.body; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ const sanitizedReqBody = req.body; - const sanitizedFields = sanitizedReqBody.fields.map((/** @type {String} */ fld)=>fld.replace(/[^a-z\_]/g, "")); - const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - /** - * GRAB user - * - * @description GRAB user - */ const query = `SELECT ${sanitizedFields.join(",")} FROM users WHERE id=?`; - let foundUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - queryString: query, - queryValuesArray: [ - userId - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!foundUser || !foundUser[0]) return res.json({ - success: false, - payload: null, - msg: "User not found!" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* Send Response */ res.json({ - success: true, - payload: foundUser[0] - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/user/get-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "User fetch Error" - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),a=t(72907);e.exports=({key:e,database:r,table:t,user_id:n})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=a(e),l=JSON.parse(i||""),u=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(n)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e],n=r?.fields[e];if(t?.match(a))continue;let l=o[t];("number"==typeof l||l)&&n?.encrypted&&l?.match(/./)&&(o[t]=s(l))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,1007], () => (__webpack_exec__(3154))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i}){let l;let u=!!t?.match(/^datasquirel$/),c=u?n:o;try{l=e&&r&&Array.isArray(r)&&r[0]?u?await c(e,r):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&i)try{let e=l;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=40132);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json index 0d6c5f3..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/get-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js index 620cbd3..c990947 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js @@ -1,265 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4456; -exports.ids = [4456]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 5687: -/***/ ((module) => { - -module.exports = require("https"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 7310: -/***/ ((module) => { - -module.exports = require("url"); - -/***/ }), - -/***/ 7000: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7839); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2127); -/* harmony import */ var _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); - - - - - -const githubLogin = __webpack_require__(6069); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ const { code , email , clientId , clientSecret , database , additionalFields , } = req.body; - const authorization = req.headers.authorization || ""; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ if (!code || !clientId || !clientSecret || !database) { - return res.json({ - success: false, - msg: "Missing query params" - }); - } - if (typeof code !== "string" || typeof clientId !== "string" || typeof clientSecret !== "string" || typeof database !== "string") { - return res.json({ - success: false, - msg: "Wrong Parameters" - }); - } - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const gitHubUser = await githubLogin({ - code: code, - clientId: clientId, - clientSecret: clientSecret - }); - if (!gitHubUser) { - return res.json({ - success: false, - msg: "No github user returned" - }); - } - const targetDbName = `datasquirel_user_${apiCred.user_id}_${database}`; - const socialId = gitHubUser.name || gitHubUser.id || gitHubUser.login; - const targetName = gitHubUser.name || gitHubUser.login; - const nameArray = targetName?.match(/ /) ? targetName?.split(" ") : targetName?.match(/\-/) ? targetName?.split("-") : [ - targetName - ]; - const payload = { - email: gitHubUser.email, - first_name: _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_3___default()(nameArray[0]), - last_name: _shell_utils_camelJoinedtoCamelSpace__WEBPACK_IMPORTED_MODULE_3___default()(nameArray[1]), - social_id: socialId, - social_platform: "github", - image: gitHubUser.avatar_url, - image_thumbnail: gitHubUser.avatar_url, - username: "github-user-" + socialId - }; - if (additionalFields && Object.keys(additionalFields).length > 0) { - Object.keys(additionalFields).forEach((key)=>{ - // @ts-ignore - payload[key] = additionalFields[key]; - }); - } - const loggedInGithubUser = await _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2___default()({ - database: targetDbName, - email: gitHubUser.email, - payload: payload, - social_platform: "github", - res: res, - social_id: socialId, - supEmail: email, - additionalFields - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - res.json({ - ...loggedInGithubUser, - dsqlUserId: apiCred.user_id - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - console.log("ERROR in 'github-auth' API route =>", error.message); - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/social-login/github-auth/catch-error", - message: error.message - }); - res.json({ - success: false, - msg: "Failed!" - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,1007,6926,7487,613,4294,6968,722,9971], () => (__webpack_exec__(7000))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7110,e.ids=[7110],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},47795:e=>{e.exports=require("generate-password")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},55591:e=>{e.exports=require("https")},33873:e=>{e.exports=require("path")},79551:e=>{e.exports=require("url")},72403:(e,t,r)=>{r.r(t),r.d(t,{config:()=>b,default:()=>_,routeModule:()=>q});var s={};r.r(s),r.d(s,{default:()=>f});var i=r(89947),a=r(2706),n=r(96762);r(72907);var o=r(77538),l=r.n(o),u=r(36946),c=r.n(u),p=r(17549),d=r.n(p),g=r(77619),h=r.n(g);r(29021);let m=r(59777);async function f(e,t){if("POST"!==e.method)return t.json({success:!1,msg:"Failed!"});try{let{code:r,email:s,clientId:i,clientSecret:a,database:n,additionalFields:o}=e.body,l=e.headers.authorization||"",u=h()({key:l,database:n,user_id:String(e.query.user_id)});if(!u?.user_id)throw Error("Api Credentials invalid!");if(!u.full_access||!u.sign)return t.json({success:!1,msg:"Unauthorized"});if(!r||!i||!a||!n)return t.json({success:!1,msg:"Missing query params"});if("string"!=typeof r||"string"!=typeof i||"string"!=typeof a||"string"!=typeof n)return t.json({success:!1,msg:"Wrong Parameters"});let p=await m({code:r,clientId:i,clientSecret:a});if(!p)return t.json({success:!1,msg:"No github user returned"});let g=`datasquirel_user_${u.user_id}_${n}`,f=p.name||p.id||p.login,_=p.name||p.login,b=_?.match(/ /)?_?.split(" "):_?.match(/\-/)?_?.split("-"):[_],q={email:p.email,first_name:d()(b[0]),last_name:d()(b[1]),social_id:f,social_platform:"github",image:p.avatar_url,image_thumbnail:p.avatar_url,username:"github-user-"+f};o&&Object.keys(o).length>0&&Object.keys(o).forEach(e=>{q[e]=o[e]});let S=await c()({database:g,email:p.email,payload:q,social_platform:"github",res:t,social_id:f,supEmail:s,additionalFields:o});t.json({...S,dsqlUserId:u.user_id})}catch(r){console.log("ERROR in 'github-auth' API route =>",r.message),l()({component:"/api/social-login/github-auth/catch-error",message:r.message,req:e}),t.json({success:!1,msg:"Failed!"})}}let _=(0,n.M)(s,"default"),b=(0,n.M)(s,"config"),q=new i.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/github-login",pathname:"/api/user/[user_id]/github-login",bundlePath:"",filename:""},userland:s})},10779:(e,t,r)=>{let s=r(55591),i=r(81630),{URL:a}=r(79551);e.exports=function({url:e,method:t,hostname:r,path:n,headers:o,body:l,port:u,scheme:c}){let p=l?JSON.stringify(l):null,d=e?new a(e):null,g={method:t||"GET",hostname:d?d.hostname:r,port:c?.match(/https/i)?443:d?d.protocol?.match(/https/i)?443:d.port:u?Number(u):80,headers:{}};return n&&(g.path=n),o&&(g.headers=o),l&&(g.headers["Content-Type"]="application/json",g.headers["Content-Length"]=p?Buffer.from(p).length:void 0),new Promise((e,t)=>{let r=(c?.match(/https/i)?s:d?.protocol?.match(/https/i)?s:i).request(g,r=>{var s="";r.on("data",function(e){s+=e}),r.on("end",function(){e(s)}),r.on("error",e=>{console.log("HTTP response error =>",e.message),t(`HTTP response error =>, ${e.message}`)}),r.on("close",()=>{console.log("HTTP(S) Response Closed Successfully")})});l&&r.write(p),r.on("error",e=>{console.log("HTTPS request ERROR =>",e.message),t(`HTTP request error =>, ${e.message}`)}),r.end()})}},59777:(e,t,r)=>{r(29021);let{hashPassword:s}=r(18481);r(77538);let i=r(10779),a=r(51348);e.exports=async function({code:e,clientId:t,clientSecret:r}){let s;try{let n=await i({method:"POST",hostname:"github.com",path:`/login/oauth/access_token?client_id=${t}&client_secret=${r}&code=${e}`,headers:{Accept:"application/json","User-Agent":"*"},scheme:"https"}),o=JSON.parse(n);if(!o?.access_token)return s;let l=await i({method:"GET",hostname:"api.github.com",path:"/user",headers:{Authorization:`Bearer ${o.access_token}`,"User-Agent":"*"},scheme:"https"});if(s=JSON.parse(l),!s?.email&&s){let e=await a(`SELECT email FROM users WHERE social_login='1' AND social_platform='github' AND social_id='${s.id}'`);e&&e[0]&&(s.email=e[0].email)}}catch(e){console.log("ERROR in githubLogin.js backend function =>",e.message)}return s}},77619:(e,t,r)=>{let s=r(29021),i=r(72907);e.exports=({key:e,database:t,table:r,user_id:a})=>{if(!e||!a)return null;try{let n=process.env.DSQL_API_KEYS_PATH;if(!n)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=i(e),l=JSON.parse(o||""),u=s.existsSync(`${n}/${l.sign}`);if(String(l.user_id)!==String(a)||!u)return null;if(!l.target_database)return l;if(!t&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(t));if(c&&!l.target_table)return l;if(c&&!r&&l.target_table)return null;if(l.target_table?.split(",").includes(String(r)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},18481:(e,t,r)=>{let{createHmac:s}=r(55511);t.hashPassword=function(e){let t=s("sha512",process.env.DSQL_ENCRYPTION_PASSWORD||"");return t.update(e),t.digest("base64")}},17549:e=>{e.exports=function(e){if(!e?.match(/./))return"";if(e?.match(/ /))return e;if(!e)return null;{let t=e.split(""),r=[];for(let e=0;e<t.length;e++){let s=t[e];0!==e&&s.match(/[A-Z]/)&&r.push(e)}let s=[`${t[0].toUpperCase()}${e.substring(1,r[0])}`];for(let i=0;i<r.length;i++){let a=r[i];if(0===a)continue;let n=a+1,o=r[i+1];s.push(`${t[a].toUpperCase()}${e.substring(n,o)}`)}return s.join(" ")}}}};var t=require("../../../../webpack-api-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[4050,6946],()=>r(72403));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json index 096034f..8158973 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/github-login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../chunks/6926.js","../../../../chunks/7487.js","../../../../chunks/613.js","../../../../chunks/4294.js","../../../../chunks/6968.js","../../../../chunks/722.js","../../../../chunks/9971.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/datasquirel/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/datasquirel/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../../node_modules/datasquirel/utils/get.js","../../../../../../node_modules/datasquirel/utils/post.js","../../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../../node_modules/datasquirel/users/add-user.js","../../../../../../node_modules/datasquirel/users/update-user.js","../../../../../../node_modules/datasquirel/users/login-user.js","../../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../../node_modules/datasquirel/users/get-token.js","../../../../../../node_modules/datasquirel/users/get-user.js","../../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js index 7d8a924..37ea180 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js @@ -1,253 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 286; -exports.ids = [286]; -exports.modules = { - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 3785: -/***/ ((module) => { - -module.exports = require("generate-password"); - -/***/ }), - -/***/ 6781: -/***/ ((module) => { - -module.exports = require("google-auth-library"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 5184: -/***/ ((module) => { - -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 6221: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7839); -/* harmony import */ var _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** # MODULE TRACE -====================================================================== - * No imports found for this Module -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const { OAuth2Client } = __webpack_require__(6781); - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - const { token , clientId , database , additionalFields } = req.body; - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Grab User data - * - * @description Grab User data - */ const client = new OAuth2Client(clientId); - const ticket = await client.verifyIdToken({ - idToken: token, - audience: clientId - }); - if (!ticket?.getPayload()?.email_verified) { - return res.json({ - success: false, - user: null - }); - } - const payload = ticket.getPayload(); - if (!payload) throw new Error("No Payload"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!database || typeof database != "string" || database?.match(/ /)) { - return res.json({ - success: false, - user: undefined, - msg: "Please provide a database slug(database name in lowercase with no spaces)" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Create new user folder and file - * - * @description Create new user folder and file - */ const targetDbName = `datasquirel_user_${apiCred.user_id}_${database}`; - const { given_name , family_name , email , sub , picture , email_verified } = payload; - const payloadObject = { - email: email, - first_name: given_name, - last_name: family_name, - social_id: sub, - social_platform: "google", - image: picture, - image_thumbnail: picture, - username: `google-user-${sub}` - }; - if (additionalFields && Object.keys(additionalFields).length > 0) { - Object.keys(additionalFields).forEach((key)=>{ - // @ts-ignore - payloadObject[key] = additionalFields[key]; - }); - } - const loggedInGoogleUser = await _functions_backend_social_login_handleSocialDb__WEBPACK_IMPORTED_MODULE_2___default()({ - database: targetDbName, - email: email || "", - payload: payloadObject, - social_platform: "google", - res: res, - social_id: sub, - additionalFields - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - ...loggedInGoogleUser, - dsqlUserId: apiCred.user_id - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/user/google-login/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "User fetch Error" - }); - //////////////////////////////////////// - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,5338,8326,1311,1007,6926,7487,613,4294,6968], () => (__webpack_exec__(6221))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5770,e.ids=[5770],e.modules={28187:e=>{e.exports=require("@moduletrace/datasquirel")},47795:e=>{e.exports=require("generate-password")},76154:e=>{e.exports=require("google-auth-library")},27825:e=>{e.exports=require("lodash")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},56891:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>m,routeModule:()=>h});var t={};s.r(t),s.d(t,{default:()=>f});var a=s(89947),i=s(2706),o=s(96762);s(72907);var l=s(77538),n=s.n(l),u=s(36946),d=s.n(u),g=s(77619),c=s.n(g);s(29021);let{OAuth2Client:p}=s(76154);async function f(e,r){if("POST"!==e.method)return r.json({success:!1,msg:"Failed!"});try{let{token:s,clientId:t,database:a,additionalFields:i}=e.body,o=e.headers.authorization,l=c()({key:o,database:a,user_id:String(e.query.user_id)});if(!l?.user_id)throw Error("Api Credentials invalid!");if(!l.full_access||!l.sign)return r.json({success:!1,msg:"Unauthorized"});let n=new p(t),u=await n.verifyIdToken({idToken:s,audience:t});if(!u?.getPayload()?.email_verified)return r.json({success:!1,user:null});let g=u.getPayload();if(!g)throw Error("No Payload");if(!a||"string"!=typeof a||a?.match(/ /))return r.json({success:!1,user:void 0,msg:"Please provide a database slug(database name in lowercase with no spaces)"});let f=`datasquirel_user_${l.user_id}_${a}`,{given_name:m,family_name:_,email:h,sub:q,picture:b,email_verified:x}=g,y={email:h,first_name:m,last_name:_,social_id:q,social_platform:"google",image:b,image_thumbnail:b,username:`google-user-${q}`};i&&Object.keys(i).length>0&&Object.keys(i).forEach(e=>{y[e]=i[e]});let v=await d()({database:f,email:h||"",payload:y,social_platform:"google",res:r,social_id:q,additionalFields:i});r.json({...v,dsqlUserId:l.user_id})}catch(s){n()({component:"/api/user/google-login/main-catch-error",message:s.message,user:{},req:e}),r.json({success:!1,msg:"User fetch Error"})}}let m=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),h=new a.PagesAPIRouteModule({definition:{kind:i.A.PAGES_API,page:"/api/user/[user_id]/google-login",pathname:"/api/user/[user_id]/google-login",bundlePath:"",filename:""},userland:t})},77619:(e,r,s)=>{let t=s(29021),a=s(72907);e.exports=({key:e,database:r,table:s,user_id:i})=>{if(!e||!i)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=a(e),n=JSON.parse(l||""),u=t.existsSync(`${o}/${n.sign}`);if(String(n.user_id)!==String(i)||!u)return null;if(!n.target_database)return n;if(!r&&n.target_database)return null;let d=n.target_database?.split(",").includes(String(r));if(d&&!n.target_table)return n;if(d&&!s&&n.target_table)return null;if(n.target_table?.split(",").includes(String(s)))return n;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var s=e=>r(r.s=e),t=r.X(0,[4050,6946],()=>s(56891));module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json index 47d5f56..cd9a0bc 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/google-login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/5338.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../chunks/6926.js","../../../../chunks/7487.js","../../../../chunks/613.js","../../../../chunks/4294.js","../../../../chunks/6968.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/datasquirel/package.json","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/datasquirel/index.js","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/node-fetch/lib/index.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/datasquirel/utils/get.js","../../../../../../node_modules/datasquirel/utils/post.js","../../../../../../node_modules/datasquirel/utils/get-schema.js","../../../../../../node_modules/datasquirel/utils/upload-image.js","../../../../../../node_modules/datasquirel/utils/upload-file.js","../../../../../../node_modules/datasquirel/utils/delete-file.js","../../../../../../node_modules/datasquirel/users/add-user.js","../../../../../../node_modules/datasquirel/users/update-user.js","../../../../../../node_modules/datasquirel/users/login-user.js","../../../../../../node_modules/datasquirel/users/send-email-code.js","../../../../../../node_modules/datasquirel/users/reauth-user.js","../../../../../../node_modules/datasquirel/users/user-auth.js","../../../../../../node_modules/datasquirel/users/logout-user.js","../../../../../../node_modules/datasquirel/users/get-token.js","../../../../../../node_modules/datasquirel/users/get-user.js","../../../../../../node_modules/datasquirel/users/validate-token.js","../../../../../../node_modules/datasquirel/users/social/google-auth.js","../../../../../../node_modules/datasquirel/users/social/github-auth.js","../../../../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/datasquirel/functions/decrypt.js","../../../../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/datasquirel/functions/encrypt.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../../../../node_modules/datasquirel/engine/user/get-user.js","../../../../../../node_modules/datasquirel/engine/user/update-user.js","../../../../../../node_modules/datasquirel/engine/user/add-user.js","../../../../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../../../../node_modules/datasquirel/engine/user/login-user.js","../../../../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../../../../node_modules/datasquirel/engine/query/post.js","../../../../../../node_modules/datasquirel/engine/query/get.js","../../../../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../../node_modules/supports-color/index.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/supports-color/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/ms/package.json","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/has-flag/index.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/has-flag/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../../../../node_modules/@moduletrace/datasquirel/index.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/generate-password/main.js","../../../../../../node_modules/generate-password/package.json","../../../../../../node_modules/generate-password/src/generate.js","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/lodash/lodash.js","../../../../../../node_modules/lodash/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/ms/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/node-fetch/lib/index.js","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js index 80a1e65..d18e8fe 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js @@ -1,185 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4468; -exports.ids = [4468]; -exports.modules = { - -/***/ 6781: -/***/ ((module) => { - -module.exports = require("google-auth-library"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 3973: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2__); -// @ts-check -/** # MODULE TRACE -====================================================================== - * No imports found for this Module -==== MODULE TRACE END ==== */ /** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const { OAuth2Client } = __webpack_require__(6781); +"use strict";(()=>{var e={};e.id=2738,e.ids=[2738],e.modules={76154:e=>{e.exports=require("google-auth-library")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},41620:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>p,routeModule:()=>m});var n={};t.r(n),t.d(n,{default:()=>f});var s=t(89947),a=t(2706),i=t(96762);t(72907);var o=t(77538),l=t.n(o),u=t(77619),d=t.n(u);t(29021);let{OAuth2Client:c}=t(76154);async function f(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,n=d()({key:t,user_id:String(e.query.user_id)});if(!n?.user_id)throw Error("Api Credentials invalid!");if(!n.full_access||!n.sign)return r.json({success:!1,payload:null,msg:"Unauthorized"});let{token:s,clientId:a}=e.body,i=new c(a),o=await i.verifyIdToken({idToken:s,audience:a});if(!o?.getPayload()?.email_verified)return r.json({success:!1,payload:null,msg:"User not verified!"});let l=o.getPayload();r.json({success:!0,payload:l})}catch(t){l()({component:"/api/user/grab-google-user-from-token/main-catch-error",message:t.message,req:e}),r.json({success:!1,payload:null,msg:"User fetch Error"})}}let p=(0,i.M)(n,"default"),g=(0,i.M)(n,"config"),m=new s.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/grab-google-user-from-token",pathname:"/api/user/[user_id]/grab-google-user-from-token",bundlePath:"",filename:""},userland:n})},77538:(e,r,t)=>{let n=t(29021),{IncomingMessage:s}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:s,req:a}){let i=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],n=Array.isArray(e)?e[0]:e?.split(",")[0],s=t||n||r||a.socket.remoteAddress;if(!s)return null;return String(s)}catch(e){return null}})();try{let s=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(s+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(s+=` +URL: ${a.url}`),a?.body&&(s+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(s+=` +IP: ${o}`),s+=` +Date: ${i.toDateString()} +========================================`,n.existsSync("./.tmp/error.log")||n.writeFileSync("./.tmp/error.log","","utf-8");let l=n.readFileSync("./.tmp/error.log","utf-8");n.writeFileSync("./.tmp/error.log",s),n.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - payload: null, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** - * User auth - * - * @description Authenticate user - */ /** @type {string} */ // @ts-ignore - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_2___default()({ - key: authorization, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - payload: null, - msg: "Unauthorized" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Grab User data - * - * @description Grab User data - */ const { token , clientId } = req.body; - const client = new OAuth2Client(clientId); - const ticket = await client.verifyIdToken({ - idToken: token, - audience: clientId - }); - if (!ticket?.getPayload()?.email_verified) { - return res.json({ - success: false, - payload: null, - msg: "User not verified!" - }); - } - const payload = ticket.getPayload(); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - payload - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/user/grab-google-user-from-token/main-catch-error", - message: error.message - }); - res.json({ - success: false, - payload: null, - msg: "User fetch Error" - }); - //////////////////////////////////////// - } -} - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2163,1007], () => (__webpack_exec__(3973))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let n=t(29021),s=t(72907);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=s(e),l=JSON.parse(o||""),u=n.existsSync(`${i}/${l.sign}`);if(String(l.user_id)!==String(a)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let d=l.target_database?.split(",").includes(String(r));if(d&&!l.target_table)return l;if(d&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:n,createDecipheriv:s}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=s("aes-192-cbc",n(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=41620);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json index 3166551..4c34803 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/grab-google-user-from-token.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2163.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/node-fetch/lib/index.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/supports-color/index.js","../../../../../../node_modules/supports-color/package.json","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/ms/package.json","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/has-flag/index.js","../../../../../../node_modules/has-flag/package.json","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/agent-base/dist/src/index.js","../../../../../../node_modules/agent-base/dist/src/promisify.js","../../../../../../node_modules/agent-base/package.json","../../../../../../node_modules/arrify/index.js","../../../../../../node_modules/arrify/package.json","../../../../../../node_modules/base64-js/index.js","../../../../../../node_modules/base64-js/package.json","../../../../../../node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/bignumber.js/package.json","../../../../../../node_modules/buffer-equal-constant-time/index.js","../../../../../../node_modules/buffer-equal-constant-time/package.json","../../../../../../node_modules/debug/package.json","../../../../../../node_modules/debug/src/browser.js","../../../../../../node_modules/debug/src/common.js","../../../../../../node_modules/debug/src/index.js","../../../../../../node_modules/debug/src/node.js","../../../../../../node_modules/ecdsa-sig-formatter/package.json","../../../../../../node_modules/ecdsa-sig-formatter/src/ecdsa-sig-formatter.js","../../../../../../node_modules/ecdsa-sig-formatter/src/param-bytes-for-alg.js","../../../../../../node_modules/extend/index.js","../../../../../../node_modules/extend/package.json","../../../../../../node_modules/fast-text-encoding/package.json","../../../../../../node_modules/fast-text-encoding/text.min.js","../../../../../../node_modules/gaxios/build/src/common.js","../../../../../../node_modules/gaxios/build/src/gaxios.js","../../../../../../node_modules/gaxios/build/src/index.js","../../../../../../node_modules/gaxios/build/src/retry.js","../../../../../../node_modules/gaxios/package.json","../../../../../../node_modules/gcp-metadata/build/src/gcp-residency.js","../../../../../../node_modules/gcp-metadata/build/src/index.js","../../../../../../node_modules/gcp-metadata/package.json","../../../../../../node_modules/google-auth-library/build/src/auth/authclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/awsrequestsigner.js","../../../../../../node_modules/google-auth-library/build/src/auth/baseexternalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/computeclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/downscopedclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/envDetect.js","../../../../../../node_modules/google-auth-library/build/src/auth/executable-response.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js","../../../../../../node_modules/google-auth-library/build/src/auth/externalclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/googleauth.js","../../../../../../node_modules/google-auth-library/build/src/auth/iam.js","../../../../../../node_modules/google-auth-library/build/src/auth/identitypoolclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/idtokenclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/impersonated.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtaccess.js","../../../../../../node_modules/google-auth-library/build/src/auth/jwtclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/loginticket.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2client.js","../../../../../../node_modules/google-auth-library/build/src/auth/oauth2common.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js","../../../../../../node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js","../../../../../../node_modules/google-auth-library/build/src/auth/refreshclient.js","../../../../../../node_modules/google-auth-library/build/src/auth/stscredentials.js","../../../../../../node_modules/google-auth-library/build/src/crypto/browser/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/crypto.js","../../../../../../node_modules/google-auth-library/build/src/crypto/node/crypto.js","../../../../../../node_modules/google-auth-library/build/src/index.js","../../../../../../node_modules/google-auth-library/build/src/options.js","../../../../../../node_modules/google-auth-library/build/src/transporters.js","../../../../../../node_modules/google-auth-library/package.json","../../../../../../node_modules/google-p12-pem/build/src/index.js","../../../../../../node_modules/google-p12-pem/package.json","../../../../../../node_modules/gtoken/build/src/index.js","../../../../../../node_modules/gtoken/package.json","../../../../../../node_modules/https-proxy-agent/dist/agent.js","../../../../../../node_modules/https-proxy-agent/dist/index.js","../../../../../../node_modules/https-proxy-agent/dist/parse-proxy-response.js","../../../../../../node_modules/https-proxy-agent/package.json","../../../../../../node_modules/is-stream/index.js","../../../../../../node_modules/is-stream/package.json","../../../../../../node_modules/json-bigint/index.js","../../../../../../node_modules/json-bigint/lib/parse.js","../../../../../../node_modules/json-bigint/lib/stringify.js","../../../../../../node_modules/json-bigint/package.json","../../../../../../node_modules/jwa/index.js","../../../../../../node_modules/jwa/package.json","../../../../../../node_modules/jws/index.js","../../../../../../node_modules/jws/lib/data-stream.js","../../../../../../node_modules/jws/lib/sign-stream.js","../../../../../../node_modules/jws/lib/tostring.js","../../../../../../node_modules/jws/lib/verify-stream.js","../../../../../../node_modules/jws/package.json","../../../../../../node_modules/lru-cache/index.js","../../../../../../node_modules/lru-cache/package.json","../../../../../../node_modules/ms/index.js","../../../../../../node_modules/ms/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/node-fetch/lib/index.js","../../../../../../node_modules/node-fetch/package.json","../../../../../../node_modules/node-forge/lib/aes.js","../../../../../../node_modules/node-forge/lib/aesCipherSuites.js","../../../../../../node_modules/node-forge/lib/asn1-validator.js","../../../../../../node_modules/node-forge/lib/asn1.js","../../../../../../node_modules/node-forge/lib/baseN.js","../../../../../../node_modules/node-forge/lib/cipher.js","../../../../../../node_modules/node-forge/lib/cipherModes.js","../../../../../../node_modules/node-forge/lib/des.js","../../../../../../node_modules/node-forge/lib/ed25519.js","../../../../../../node_modules/node-forge/lib/forge.js","../../../../../../node_modules/node-forge/lib/hmac.js","../../../../../../node_modules/node-forge/lib/index.js","../../../../../../node_modules/node-forge/lib/jsbn.js","../../../../../../node_modules/node-forge/lib/kem.js","../../../../../../node_modules/node-forge/lib/log.js","../../../../../../node_modules/node-forge/lib/md.all.js","../../../../../../node_modules/node-forge/lib/md.js","../../../../../../node_modules/node-forge/lib/md5.js","../../../../../../node_modules/node-forge/lib/mgf.js","../../../../../../node_modules/node-forge/lib/mgf1.js","../../../../../../node_modules/node-forge/lib/oids.js","../../../../../../node_modules/node-forge/lib/pbe.js","../../../../../../node_modules/node-forge/lib/pbkdf2.js","../../../../../../node_modules/node-forge/lib/pem.js","../../../../../../node_modules/node-forge/lib/pkcs1.js","../../../../../../node_modules/node-forge/lib/pkcs12.js","../../../../../../node_modules/node-forge/lib/pkcs7.js","../../../../../../node_modules/node-forge/lib/pkcs7asn1.js","../../../../../../node_modules/node-forge/lib/pki.js","../../../../../../node_modules/node-forge/lib/prime.js","../../../../../../node_modules/node-forge/lib/prng.js","../../../../../../node_modules/node-forge/lib/pss.js","../../../../../../node_modules/node-forge/lib/random.js","../../../../../../node_modules/node-forge/lib/rc2.js","../../../../../../node_modules/node-forge/lib/rsa.js","../../../../../../node_modules/node-forge/lib/sha1.js","../../../../../../node_modules/node-forge/lib/sha256.js","../../../../../../node_modules/node-forge/lib/sha512.js","../../../../../../node_modules/node-forge/lib/ssh.js","../../../../../../node_modules/node-forge/lib/tls.js","../../../../../../node_modules/node-forge/lib/util.js","../../../../../../node_modules/node-forge/lib/x509.js","../../../../../../node_modules/node-forge/package.json","../../../../../../node_modules/safe-buffer/index.js","../../../../../../node_modules/safe-buffer/package.json","../../../../../../node_modules/tr46/index.js","../../../../../../node_modules/tr46/lib/mappingTable.json","../../../../../../node_modules/tr46/package.json","../../../../../../node_modules/webidl-conversions/lib/index.js","../../../../../../node_modules/webidl-conversions/package.json","../../../../../../node_modules/whatwg-url/lib/URL-impl.js","../../../../../../node_modules/whatwg-url/lib/URL.js","../../../../../../node_modules/whatwg-url/lib/public-api.js","../../../../../../node_modules/whatwg-url/lib/url-state-machine.js","../../../../../../node_modules/whatwg-url/lib/utils.js","../../../../../../node_modules/whatwg-url/package.json","../../../../../../node_modules/yallist/iterator.js","../../../../../../node_modules/yallist/package.json","../../../../../../node_modules/yallist/yallist.js","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js index 5ee8b35..e32da4d 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js @@ -1,294 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 278; -exports.ids = [278]; -exports.modules = { - -/***/ 2029: -/***/ ((module) => { - -module.exports = require("datasquirel/functions/hashPassword"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 5982: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2029); -/* harmony import */ var datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=2726,e.ids=[2726],e.modules={43499:e=>{e.exports=require("@moduletrace/datasquirel/functions/hashPassword")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},81725:(e,r,t)=>{t.r(r),t.d(r,{config:()=>S,default:()=>f,routeModule:()=>y});var s={};t.r(s),t.d(s,{default:()=>g});var a=t(89947),n=t(2706),o=t(96762),i=t(43499),l=t.n(i);t(72907);var u=t(77538),c=t.n(u),d=t(57638),p=t.n(d),m=t(77619),_=t.n(m);async function g(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let t=e.body,{encryptionKey:s,payload:a,database:n,additionalFields:o,email_login:i,email_login_code:u,email_login_field:c,token:d}=t,m=e.headers.authorization,g=_()({key:m,database:n,user_id:String(e.query.user_id)});if(!g?.user_id)throw Error("Api Credentials invalid!");if(!g.full_access||!g.sign)return r.json({success:!1,msg:"Unauthorized"});let f=a.email,S=a.username,y=a.password,h=`datasquirel_user_${g.user_id}_${n}`;if(f?.match(/ /)||S&&S?.match(/ /)||y&&y?.match(/ /))return r.json({success:!1,msg:"Invalid Email/Password format"});let D=y?l()({encryptionKey:s,password:y}):null,E=await p()({queryString:"SELECT * FROM users WHERE email = ? OR username = ?",queryValuesArray:[f,S],database:h.replace(/[^a-z0-9_]/g,"")});if((!E||!E[0])&&!t.social)return r.json({success:!1,payload:null,msg:"No user found"});let A=!1;if(E&&E[0]&&!i)A=D===E[0].password;else if(E&&E[0]&&i&&u&&c){let e=E[0][c];if(!e)throw Error("No code Found!");let[r,t]=e.split("-");if(Date.now()-Number(t)>9e5)throw Error("Code Expired");A=r===u}if(!A)return r.json({success:!1,msg:"Wrong password, no social login validity",payload:null});A&&i&&await p()({queryString:`UPDATE users SET ${c} = ? WHERE email = ? OR username = ?`,queryValuesArray:["",f,S],database:h.replace(/[^a-z0-9_]/g,"")});let R=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),b={id:E[0].id,first_name:E[0].first_name,last_name:E[0].last_name,username:E[0].username,email:E[0].email,phone:E[0].phone,social_id:E[0].social_id,image:E[0].image,image_thumbnail:E[0].image_thumbnail,verification_status:E[0].verification_status,social_login:E[0].social_login,social_platform:E[0].social_platform,csrf_k:R,more_data:E[0].more_user_data,logged_in_status:!0,date:Date.now()},P={success:!0,msg:"Login Successful",payload:b,userId:g.user_id};o&&Array.isArray(o)&&o.length>0&&o.forEach(e=>{b[e]=E[0][e]}),r.json(P)}catch(t){c()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}t(29021);let f=(0,o.M)(s,"default"),S=(0,o.M)(s,"config"),y=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/login-user",pathname:"/api/user/[user_id]/login-user",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,i=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),i&&(a+=` +IP: ${i}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - /** @type {import("@/package-shared/types").PackageUserLoginRequestBody} */ const reqBody = req.body; - const { encryptionKey , payload , database , additionalFields , email_login , email_login_code , email_login_field , token , } = reqBody; - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ const email = payload.email; - const username = payload.username; - const password = payload.password; - const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - /** - * Check input validity - * - * @description Check input validity - */ if (email?.match(/ /) || username && username?.match(/ /) || password && password?.match(/ /)) { - return res.json({ - success: false, - msg: "Invalid Email/Password format" - }); - } - /** - * Password hash - * - * @description Password hash - */ let hashedPassword = password ? datasquirel_functions_hashPassword__WEBPACK_IMPORTED_MODULE_0___default()({ - encryptionKey: encryptionKey, - password: password - }) : null; - let isSocialValidated = false; - let loginFailureReason = null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let foundUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `SELECT * FROM users WHERE email = ? OR username = ?`, - queryValuesArray: [ - email, - username - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if ((!foundUser || !foundUser[0]) && !reqBody.social) return res.json({ - success: false, - payload: null, - msg: "No user found" - }); - let isPasswordCorrect = false; - if (foundUser && foundUser[0] && !email_login) { - isPasswordCorrect = hashedPassword === foundUser[0].password; - } else if (foundUser && foundUser[0] && email_login && email_login_code && email_login_field) { - /** @type {string} */ const tempCode = foundUser[0][email_login_field]; - if (!tempCode) throw new Error("No code Found!"); - const tempCodeArray = tempCode.split("-"); - const [code, codeDate] = tempCodeArray; - const millisecond15mins = 1000 * 60 * 15; - if (Date.now() - Number(codeDate) > millisecond15mins) { - throw new Error("Code Expired"); - } - isPasswordCorrect = code === email_login_code; - } - let socialUserValid = false; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!isPasswordCorrect && !socialUserValid) { - return res.json({ - success: false, - msg: "Wrong password, no social login validity", - payload: null - }); - } - if (isPasswordCorrect && email_login) { - const resetTempCode = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `UPDATE users SET ${email_login_field} = ? WHERE email = ? OR username = ?`, - queryValuesArray: [ - "", - email, - username - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2); - let userPayload = { - id: foundUser[0].id, - first_name: foundUser[0].first_name, - last_name: foundUser[0].last_name, - username: foundUser[0].username, - email: foundUser[0].email, - phone: foundUser[0].phone, - social_id: foundUser[0].social_id, - image: foundUser[0].image, - image_thumbnail: foundUser[0].image_thumbnail, - verification_status: foundUser[0].verification_status, - social_login: foundUser[0].social_login, - social_platform: foundUser[0].social_platform, - csrf_k: csrfKey, - more_data: foundUser[0].more_user_data, - logged_in_status: true, - date: Date.now() - }; - const resposeObject = { - success: true, - msg: "Login Successful", - payload: userPayload, - userId: apiCred.user_id - }; - if (additionalFields && Array.isArray(additionalFields) && additionalFields.length > 0) { - additionalFields.forEach((key)=>{ - // @ts-ignore - userPayload[key] = foundUser[0][key]; - }); - } - // if (token) { - // resposeObject.token = - // } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* Send Response */ res.json(resposeObject); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/user/login-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Login Failed" - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),a=t(72907);e.exports=({key:e,database:r,table:t,user_id:n})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=a(e),l=JSON.parse(i||""),u=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(n)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],i=Object.keys(o);for(let e=0;e<i.length;e++){let t=i[e],n=r?.fields[e];if(t?.match(a))continue;let l=o[t];("number"==typeof l||l)&&n?.encrypted&&l?.match(/./)&&(o[t]=s(l))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,1007], () => (__webpack_exec__(5982))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:i}){let l;let u=!!t?.match(/^datasquirel$/),c=u?n:o;try{l=e&&r&&Array.isArray(r)&&r[0]?u?await c(e,r):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&i)try{let e=l;return await s({unparsedResults:e,tableSchema:i})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=81725);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json index 48b03ce..4a38eb2 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/login-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/datasquirel/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/datasquirel/functions/hashPassword.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../../../../node_modules/@moduletrace/datasquirel/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js index 50b76ea..514ac8f 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js @@ -1,222 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1594; -exports.ids = [1594]; -exports.modules = { - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 8699: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=4458,e.ids=[4458],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},62553:(e,r,t)=>{t.r(r),t.d(r,{config:()=>g,default:()=>m,routeModule:()=>S});var s={};t.r(s),t.d(s,{default:()=>_});var a=t(89947),n=t(2706),i=t(96762);t(72907);var o=t(77538),l=t.n(o),u=t(57638),c=t.n(u),d=t(77619),p=t.n(d);async function _(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{existingUser:t,database:s,additionalFields:a}=e.body,n=e.headers.authorization,i=p()({key:n,database:s,user_id:String(e.query.user_id)});if(!i?.user_id)throw Error("Api Credentials invalid!");if(!i.full_access||!i.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${i.user_id}_${s}`,l=t?.id&&t.id.toString().match(/./)?await c()({queryString:"SELECT * FROM users WHERE id=?",queryValuesArray:[t.id.toString()],database:o.replace(/[^a-z0-9_]/g,"")}):null;if(!l||!l[0])return r.json({success:!1,payload:null,msg:"No user found"});let u=Math.random().toString(36).substring(2)+"-"+Math.random().toString(36).substring(2),d={id:l[0].id,first_name:l[0].first_name,last_name:l[0].last_name,username:l[0].username,email:l[0].email,phone:l[0].phone,social_id:l[0].social_id,image:l[0].image,image_thumbnail:l[0].image_thumbnail,verification_status:l[0].verification_status,social_login:l[0].social_login,social_platform:l[0].social_platform,csrf_k:u,more_data:l[0].more_user_data,logged_in_status:!0,date:Date.now()};a&&Array.isArray(a)&&a.length>0&&a.forEach(e=>{d[e]=l[0][e]}),r.json({success:!0,msg:"Login Successful",payload:d,userId:i.user_id})}catch(t){l()({component:"/api/user/reauth-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Login Failed"})}}t(29021);let m=(0,i.M)(s,"default"),g=(0,i.M)(s,"config"),S=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/reauth-user",pathname:"/api/user/[user_id]/reauth-user",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let i=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${i.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - const reqBody = req.body; - /** @type {{ existingUser:import("@/package-shared/types").UserType, database:string, additionalFields?: any}} */ const { existingUser , database , additionalFields } = reqBody; - /** @type {string} */ // @ts-ignore - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - /** - * GRAB user - * - * @description GRAB user - */ let foundUser = existingUser?.id && existingUser.id.toString().match(/./) ? await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_2___default()({ - queryString: `SELECT * FROM users WHERE id=?`, - queryValuesArray: [ - existingUser.id.toString() - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }) : null; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!foundUser || !foundUser[0]) return res.json({ - success: false, - payload: null, - msg: "No user found" - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let csrfKey = Math.random().toString(36).substring(2) + "-" + Math.random().toString(36).substring(2); - let userPayload = { - id: foundUser[0].id, - first_name: foundUser[0].first_name, - last_name: foundUser[0].last_name, - username: foundUser[0].username, - email: foundUser[0].email, - phone: foundUser[0].phone, - social_id: foundUser[0].social_id, - image: foundUser[0].image, - image_thumbnail: foundUser[0].image_thumbnail, - verification_status: foundUser[0].verification_status, - social_login: foundUser[0].social_login, - social_platform: foundUser[0].social_platform, - csrf_k: csrfKey, - more_data: foundUser[0].more_user_data, - logged_in_status: true, - date: Date.now() - }; - if (additionalFields && Array.isArray(additionalFields) && additionalFields.length > 0) { - additionalFields.forEach((key)=>{ - // @ts-ignore - userPayload[key] = foundUser[0][key]; - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** ********************* Send Response */ res.json({ - success: true, - msg: "Login Successful", - payload: userPayload, - userId: apiCred.user_id - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_1___default()({ - component: "/api/user/reauth-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Login Failed" - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),a=t(72907);e.exports=({key:e,database:r,table:t,user_id:n})=>{if(!e||!n)return null;try{let i=process.env.DSQL_API_KEYS_PATH;if(!i)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let o=a(e),l=JSON.parse(o||""),u=s.existsSync(`${i}/${l.sign}`);if(String(l.user_id)!==String(n)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let i=e[n],o=Object.keys(i);for(let e=0;e<o.length;e++){let t=o[e],n=r?.fields[e];if(t?.match(a))continue;let l=i[t];("number"==typeof l||l)&&n?.encrypted&&l?.match(/./)&&(i[t]=s(l))}t.push(i)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,1007], () => (__webpack_exec__(8699))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${i}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),i=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:o}){let l;let u=!!t?.match(/^datasquirel$/),c=u?n:i;try{l=e&&r&&Array.isArray(r)&&r[0]?u?await c(e,r):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(l&&o)try{let e=l;return await s({unparsedResults:e,tableSchema:o})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(l)return l;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function i(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=i},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),i=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:o}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){i.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){i.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:o,sql:e.sql})}i=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),o&&Array.isArray(o)&&o[0]?i.query(t,o).then(d).catch(p):i.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=62553);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json index 0d6c5f3..d666ab7 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/reauth-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js index fcab2fd..4b89e0b 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js @@ -1,287 +1,28 @@ -(() => { -var exports = {}; -exports.id = 7135; -exports.ids = [7135]; -exports.modules = { - -/***/ 5184: -/***/ ((module) => { - -"use strict"; -module.exports = require("nodemailer"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -"use strict"; -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -"use strict"; -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -"use strict"; -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 5382: -/***/ ((__unused_webpack_module, exports, __webpack_require__) => { - -// @ts-check -const { createHmac } = __webpack_require__(6113); -// -/** - * # Password Hash function - * @param {string} password - * @returns - */ function hashPassword(password) { - const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD || ""); - hmac.update(password); - let hashed = hmac.digest("base64"); - return hashed; -} -exports.hashPassword = hashPassword; // export const comparePasswords = async (password) => { - // const hmac = createHmac("sha512", process.env.DSQL_ENCRYPTION_PASSWORD); - // hmac.update(password); - // let hashed = hmac.digest("base64"); - // let dbPass = await global.DB_HANDLER(`SELECT * FROM users WHERE password = '${hashed}'`); - // console.log(dbPass); - // return dbPass; - // }; - - -/***/ }), - -/***/ 8233: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_passwordHash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5382); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1311); -/* harmony import */ var _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); -const nodemailer = __webpack_require__(5184); -const path = __webpack_require__(1017); +"use strict";(()=>{var e={};e.id=2860,e.ids=[2860],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},21572:e=>{e.exports=require("nodemailer")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93919:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>m,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var a=t(89947),n=t(2706),o=t(96762);t(72907),t(18481);var l=t(77538),i=t.n(l),u=t(57638),c=t.n(u),d=t(77619),p=t.n(d);t(29021);let _=t(21572);async function S(e,r){if("POST"!==e.method)return r.json({msg:"Failed!"});try{let{email:t,database:s,email_login_field:a,mail_domain:n,mail_password:o,mail_username:l,mail_port:i,sender:u,html:d}=e.body,S=e.headers.authorization,m=p()({key:S,database:s,user_id:String(e.query.user_id)});if(!m?.user_id)throw Error("Api Credentials invalid!");if(!m.full_access||!m.sign)return r.json({success:!1,msg:"Unauthorized"});let f=`datasquirel_user_${m.user_id}_${s}`;if(t?.match(/ /))return r.json({success:!1,msg:"Invalid Email/Password format"});let g=await c()({queryString:"SELECT * FROM users WHERE email = ?",queryValuesArray:[t],database:f.replace(/[^a-z0-9_]/g,"")});if(!g||!g[0])return r.json({success:!1,payload:null,msg:"No user found"});if(g&&g[0]&&a){let e=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r="";for(let t=0;t<8;t++)r+=e[Math.floor(Math.random()*e.length)];return r}(),r=_.createTransport({host:n||process.env.DSQL_MAIL_HOST,port:i||465,secure:!0,auth:{user:l||process.env.DSQL_MAIL_EMAIL,pass:o||process.env.DSQL_MAIL_PASSWORD}}),s={};s.from=`"Datasquirel SSO" <${u||"support@datasquirel.com"}>`,s.sender=u||"support@datasquirel.com",s.to=t,s.subject="One Time Login Code",s.html=d.replace(/{{code}}/,e);let p=await r.sendMail(s);if(!p?.accepted)throw Error("Mail not Sent!");await c()({queryString:`UPDATE users SET ${a} = ? WHERE email = ?`,queryValuesArray:[e+`-${Date.now()}`,t],database:f.replace(/[^a-z0-9_]/g,"")})}r.json({success:!0,msg:"Success"})}catch(t){i()({component:"/api/user/login-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Failed: "+t.message})}}t(33873);let m=(0,o.M)(s,"default"),f=(0,o.M)(s,"config"),g=new a.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/user/[user_id]/send-email-code",pathname:"/api/user/[user_id]/send-email-code",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:a}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:a,req:n}){let o=new Date,l=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(a+=` +URL: ${n.url}`),n?.body&&(a+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),l&&(a+=` +IP: ${l}`),a+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let i=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - const reqBody = req.body; - const { email , database , email_login_field , mail_domain , mail_password , mail_username , mail_port , sender , html , } = reqBody; - const authorization = req.headers.authorization; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_4___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * User auth - * - * @description Authenticate user - */ const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - /** - * Check input validity - * - * @description Check input validity - */ if (email?.match(/ /)) { - return res.json({ - success: false, - msg: "Invalid Email/Password format" - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let foundUser = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `SELECT * FROM users WHERE email = ?`, - queryValuesArray: [ - email - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!foundUser || !foundUser[0]) { - return res.json({ - success: false, - payload: null, - msg: "No user found" - }); - } - function generateCode() { - const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - let code = ""; - for(let i = 0; i < 8; i++){ - code += chars[Math.floor(Math.random() * chars.length)]; - } - return code; - } - if (foundUser && foundUser[0] && email_login_field) { - const tempCode = generateCode(); - let transporter = nodemailer.createTransport({ - host: mail_domain || process.env.DSQL_MAIL_HOST, - port: mail_port || 465, - secure: true, - auth: { - user: mail_username || process.env.DSQL_MAIL_EMAIL, - pass: mail_password || process.env.DSQL_MAIL_PASSWORD - } - }); - let mailObject = {}; - mailObject["from"] = `"Datasquirel SSO" <${sender || "support@datasquirel.com"}>`; - mailObject["sender"] = sender || "support@datasquirel.com"; - mailObject["to"] = email; - mailObject["subject"] = "One Time Login Code"; - mailObject["html"] = html.replace(/{{code}}/, tempCode); - const info = await transporter.sendMail(mailObject); - if (!info?.accepted) throw new Error("Mail not Sent!"); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let setTempCode = await _package_shared_functions_backend_varDatabaseDbHandler__WEBPACK_IMPORTED_MODULE_3___default()({ - queryString: `UPDATE users SET ${email_login_field} = ? WHERE email = ?`, - queryValuesArray: [ - tempCode + `-${Date.now()}`, - email - ], - database: dbFullName.replace(/[^a-z0-9_]/g, "") - }); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - res.json({ - success: true, - msg: "Success" - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/user/login-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Failed: " + error.message - }); - //////////////////////////////////////// - } -} +${i}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),a=t(72907);e.exports=({key:e,database:r,table:t,user_id:n})=>{if(!e||!n)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let l=a(e),i=JSON.parse(l||""),u=s.existsSync(`${o}/${i.sign}`);if(String(i.user_id)!==String(n)||!u)return null;if(!i.target_database)return i;if(!r&&i.target_database)return null;let c=i.target_database?.split(",").includes(String(r));if(c&&!i.target_table)return i;if(c&&!t&&i.target_table)return null;if(i.target_table?.split(",").includes(String(t)))return i;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:a}=t(55511),{Buffer:n}=t(79428);e.exports=e=>{let r=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{let s=t(72907),a=t(30003);e.exports=async function({unparsedResults:e,tableSchema:r}){let t=[];try{for(let n=0;n<e.length;n++){let o=e[n],l=Object.keys(o);for(let e=0;e<l.length;e++){let t=l[e],n=r?.fields[e];if(t?.match(a))continue;let i=o[t];("number"==typeof i||i)&&n?.encrypted&&i?.match(/./)&&(o[t]=s(i))}t.push(o)}return t}catch(r){return console.log("ERROR in parseDbResults Function =>",r.message),e}}},18481:(e,r,t)=>{let{createHmac:s}=t(55511);r.hashPassword=function(e){let r=s("sha512",process.env.DSQL_ENCRYPTION_PASSWORD||"");return r.update(e),r.digest("base64")}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:a}){let n=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,8326,1311,1007], () => (__webpack_exec__(8233))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},57638:(e,r,t)=>{t(29021);let s=t(6061),a=t(48225),n=t(51348),o=t(21339);e.exports=async function({queryString:e,queryValuesArray:r,database:t,tableSchema:l}){let i;let u=!!t?.match(/^datasquirel$/),c=u?n:o;try{i=e&&r&&Array.isArray(r)&&r[0]?u?await c(e,r):await c({paradigm:"Full Access",database:t,queryString:e,queryValues:r}):u?await c(e):await c({paradigm:"Full Access",database:t,queryString:e})}catch(e){a({component:"varDatabaseDbHandler/lines-29-32",message:e.message})}if(i&&l)try{let e=i;return await s({unparsedResults:e,tableSchema:l})}catch(e){return console.log("\x1b[31mvarDatabaseDbHandler ERROR\x1b[0m =>",t,e),a({component:"varDatabaseDbHandler/lines-52-53",message:e.message}),null}else if(i)return i;else return null}},51348:(e,r,t)=>{let s=t(9973),a=t(21580),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function o(...e){try{let r=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let a=t(9973),n=t(21580),o=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:n()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:l}){try{return new Promise((i,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){o.end(),i(JSON.parse(JSON.stringify(e)))}function p(e){o.end(),i({error:e.message,queryStringGenerated:t,queryValuesGenerated:l,sql:e.sql})}o=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:n()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:n()}}),l&&Array.isArray(l)&&l[0]?o.query(t,l).then(d).catch(p):o.query(t).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),i({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=93919);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json index ab6beeb..1ecc41c 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/send-email-code.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/8326.js","../../../../chunks/1311.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/nodemailer/lib/addressparser/index.js","../../../../../../node_modules/nodemailer/lib/base64/index.js","../../../../../../node_modules/nodemailer/lib/dkim/index.js","../../../../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../../../../node_modules/nodemailer/lib/dkim/sign.js","../../../../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../../../../node_modules/nodemailer/lib/fetch/index.js","../../../../../../node_modules/nodemailer/lib/json-transport/index.js","../../../../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/index.js","../../../../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../../../../node_modules/nodemailer/lib/mime-node/index.js","../../../../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../../../../node_modules/nodemailer/lib/nodemailer.js","../../../../../../node_modules/nodemailer/lib/punycode/index.js","../../../../../../node_modules/nodemailer/lib/qp/index.js","../../../../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../../../../node_modules/nodemailer/lib/shared/index.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../../../../node_modules/nodemailer/lib/well-known/index.js","../../../../../../node_modules/nodemailer/lib/well-known/services.json","../../../../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../../../../node_modules/nodemailer/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js index ac3815a..9266705 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js @@ -1,200 +1,28 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8316; -exports.ids = [8316]; -exports.modules = { - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5425: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 2437: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5886); -/* harmony import */ var _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5425); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(2163); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1007); -/* harmony import */ var _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ const fs = __webpack_require__(7147); +"use strict";(()=>{var e={};e.id=8288,e.ids=[8288],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},34453:(e,r,t)=>{t.r(r),t.d(r,{config:()=>_,default:()=>f,routeModule:()=>g});var s={};t.r(s),t.d(s,{default:()=>S});var n=t(89947),a=t(2706),o=t(96762),i=t(33364),l=t.n(i);t(72907);var u=t(77538),c=t.n(u),p=t(77619),d=t.n(p);async function S(e,r){if("POST"!==e.method)return r.json({success:!1,payload:null,msg:"Failed!"});try{let t=e.headers.authorization,{payload:s,database:n}=e.body,a=d()({key:t,database:n,user_id:String(e.query.user_id)});if(!a?.user_id)throw Error("Api Credentials invalid!");if(!a.full_access||!a.sign)return r.json({success:!1,msg:"Unauthorized"});let o=`datasquirel_user_${a.user_id}_${n}`,i=(()=>{let e=Object.keys(s),r={};return e.forEach(e=>{e?.match(/^date_|^id$/)||(r[e]=s[e])}),r})(),u=await l()({dbContext:"Dsql User",paradigm:"Full Access",dbFullName:o,tableName:"users",identifierColumnName:"id",identifierValue:s.id,data:i});r.json({success:!0,payload:u})}catch(t){c()({component:"/api/user/update-user/main-catch-error",message:t.message,user:{},req:e}),r.json({success:!1,msg:"Wrong Credentials"})}}t(29021);let f=(0,o.M)(s,"default"),_=(0,o.M)(s,"config"),g=new n.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/user/[user_id]/update-user",pathname:"/api/user/[user_id]/update-user",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{let s=t(29021),{IncomingMessage:n}=t(81630);e.exports=async function({user:e,message:r,component:t,noMail:n,req:a}){let o=new Date,i=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)return null;return String(n)}catch(e){return null}})();try{let n=`🚀 SERVER ERROR =========================== +Error Message: ${r} +Component: ${t}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(n+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(n+=` +URL: ${a.url}`),a?.body&&(n+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),i&&(n+=` +IP: ${i}`),n+=` +Date: ${o.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",n),s.appendFileSync("./.tmp/error.log",` -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * API handler - * ============================================================================== - * @type {import("next").NextApiHandler} - */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - success: false, - payload: null, - msg: "Failed!" - }); - /** - * Send Response - * - * @description Send a boolean response - */ try { - const authorization = req.headers.authorization; - const { payload , database } = req.body; - const apiCred = _package_shared_functions_backend_api_cred__WEBPACK_IMPORTED_MODULE_3___default()({ - key: authorization, - database, - user_id: String(req.query.user_id) - }); - if (!apiCred?.user_id) { - throw new Error("Api Credentials invalid!"); - } - if (!apiCred.full_access || !apiCred.sign) return res.json({ - success: false, - msg: "Unauthorized" - }); - /** - * Input Validation - * - * @description Input Validation - * @required - payload.first_name - * @required - payload.last_name - * @required - payload.email - * @required - payload.username - * @required - payload.password - */ const dbFullName = `datasquirel_user_${apiCred.user_id}_${database}`; - const data = (()=>{ - const reqBodyKeys = Object.keys(payload); - /** @type {any} */ const finalData = {}; - reqBodyKeys.forEach((key)=>{ - if (key?.match(/^date_|^id$/)) return; - finalData[key] = payload[key]; - }); - return finalData; - })(); - const updateUser = await _package_shared_functions_backend_db_updateDbEntry__WEBPACK_IMPORTED_MODULE_0___default()({ - dbContext: "Dsql User", - paradigm: "Full Access", - dbFullName: dbFullName, - tableName: "users", - identifierColumnName: "id", - identifierValue: payload.id, - data: data - }); - res.json({ - success: true, - payload: updateUser - }); - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_2___default()({ - component: "/api/user/update-user/main-catch-error", - message: error.message, - user: {} - }); - res.json({ - success: false, - msg: "Wrong Credentials" - }); - //////////////////////////////////////// - } -} +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},77619:(e,r,t)=>{let s=t(29021),n=t(72907);e.exports=({key:e,database:r,table:t,user_id:a})=>{if(!e||!a)return null;try{let o=process.env.DSQL_API_KEYS_PATH;if(!o)throw Error("process.env.DSQL_API_KEYS_PATH variable not found");let i=n(e),l=JSON.parse(i||""),u=s.existsSync(`${o}/${l.sign}`);if(String(l.user_id)!==String(a)||!u)return null;if(!l.target_database)return l;if(!r&&l.target_database)return null;let c=l.target_database?.split(",").includes(String(r));if(c&&!l.target_table)return l;if(c&&!t&&l.target_table)return null;if(l.target_table?.split(",").includes(String(t)))return l;return null}catch(e){return console.log(`api-cred ERROR: ${e.message}`),null}}},33364:(e,r,t)=>{let s=t(82703),n=t(72583),a=t(16570),o=t(51348),i=t(21339);async function l({dbContext:e,paradigm:r,dbFullName:t,tableName:l,data:u,tableSchema:c,identifierColumnName:p,identifierValue:d,encryptionKey:S,encryptionSalt:f}){if(!u||!Object.keys(u).length)return null;let _=!e?.match(/dsql.user/i)&&(!t||!!t.match(/^datasquirel$/)),g=_?o:i,m=Object.keys(u),y=[],h=[];for(let e=0;e<m.length;e++)try{let r=m[e],t=u[r],o=c?c?.fields?.filter(e=>e.fieldName===r):null,i=o&&o[0]?o[0]:null;if(null==t||void 0==t)continue;i?.richText&&(t=n(t,a)),i?.encrypted&&(t=s(t,S,f)),"object"==typeof t&&(t=JSON.stringify(t)),i?.pattern&&!new RegExp(i.pattern,i.patternFlags||"").test(t)&&(console.log("DSQL: Pattern not matched =>",t),t=""),"string"==typeof t&&t.match(/^null$/i)&&(t={toSqlString:function(){return"NULL"}}),"string"!=typeof t||t.match(/./i)||(t={toSqlString:function(){return"NULL"}}),y.push(`\`${r}\`=?`),"number"==typeof t?h.push(String(t)):h.push(t)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}y.push(`date_updated='${Date()}'`),y.push(`date_updated_code='${Date.now()}'`);let D=`UPDATE ${l} SET ${y.join(",")} WHERE \`${p}\`=?`;return h.push(d),_?await g(D,h):await g({paradigm:r,database:t,queryString:D,queryValues:h})}e.exports=l},72907:(e,r,t)=>{let{scryptSync:s,createDecipheriv:n}=t(55511),{Buffer:a}=t(79428);e.exports=e=>{let r=n("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let t=r.update(e,"hex","utf8");return t+=r.final("utf8")}catch(e){return null}}},82703:(e,r,t)=>{let{scryptSync:s,createCipheriv:n}=t(55511),{Buffer:a}=t(79428),o=t(48225);e.exports=(e,r,t)=>{let i=n("aes-192-cbc",s(r||process.env.DSQL_ENCRYPTION_PASSWORD||"",t||process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=i.update(e,"utf8","hex");return r+=i.final("hex")}catch(e){return o({component:"encrypt",message:e.message}),null}}},16570:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},48225:(e,r,t)=>{let s=t(29021);e.exports=async function({user:e,message:r,component:t,noMail:n}){let a=`🚀 SERVER ERROR =========================== +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email} +Error Message: ${r} +Component: ${t} +Date: ${Date()} +========================================`;s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let o=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ }) -}; -; -// load runtime -var __webpack_require__ = require("../../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [2224,2163,3017,3403,7547,5886,1007], () => (__webpack_exec__(2437))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${o}`)}},51348:(e,r,t)=>{let s=t(9973),n=t(21580),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:n()}});async function o(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},21339:(e,r,t)=>{let s=t(29021);t(33873);let n=t(9973),a=t(21580),o=n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:a()}});e.exports=function({paradigm:e,database:r,queryString:t,queryValues:i}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function p(e){o.end(),l(JSON.parse(JSON.stringify(e)))}function d(e){o.end(),l({error:e.message,queryStringGenerated:t,queryValuesGenerated:i,sql:e.sql})}o=c?n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:r,ssl:a()}}):n({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:r,ssl:a()}}),i&&Array.isArray(i)&&i[0]?o.query(t,i).then(p).catch(d):o.query(t).then(p).catch(d)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},21580:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},2706:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},89947:(e,r,t)=>{e.exports=t(75600)}};var r=require("../../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=34453);module.exports=t})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json index ec5090b..3ead1d0 100644 --- a/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/user/[user_id]/update-user.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-api-runtime.js","../../../../chunks/2224.js","../../../../chunks/2163.js","../../../../chunks/3017.js","../../../../chunks/3403.js","../../../../chunks/7547.js","../../../../chunks/5886.js","../../../../chunks/1007.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/deepmerge/dist/cjs.js","../../../../../../node_modules/deepmerge/package.json","../../../../../../node_modules/dom-serializer/lib/foreignNames.js","../../../../../../node_modules/dom-serializer/lib/index.js","../../../../../../node_modules/dom-serializer/package.json","../../../../../../node_modules/domelementtype/lib/index.js","../../../../../../node_modules/domelementtype/package.json","../../../../../../node_modules/domhandler/lib/index.js","../../../../../../node_modules/domhandler/lib/node.js","../../../../../../node_modules/domhandler/package.json","../../../../../../node_modules/domutils/lib/feeds.js","../../../../../../node_modules/domutils/lib/helpers.js","../../../../../../node_modules/domutils/lib/index.js","../../../../../../node_modules/domutils/lib/legacy.js","../../../../../../node_modules/domutils/lib/manipulation.js","../../../../../../node_modules/domutils/lib/querying.js","../../../../../../node_modules/domutils/lib/stringify.js","../../../../../../node_modules/domutils/lib/traversal.js","../../../../../../node_modules/domutils/package.json","../../../../../../node_modules/entities/lib/decode.js","../../../../../../node_modules/entities/lib/decode_codepoint.js","../../../../../../node_modules/entities/lib/encode.js","../../../../../../node_modules/entities/lib/escape.js","../../../../../../node_modules/entities/lib/generated/decode-data-html.js","../../../../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../../../../node_modules/entities/lib/generated/encode-html.js","../../../../../../node_modules/entities/lib/index.js","../../../../../../node_modules/entities/package.json","../../../../../../node_modules/escape-string-regexp/index.js","../../../../../../node_modules/escape-string-regexp/package.json","../../../../../../node_modules/htmlparser2/lib/Parser.js","../../../../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../../../../node_modules/htmlparser2/lib/index.js","../../../../../../node_modules/htmlparser2/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../../../../node_modules/is-plain-object/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/nanoid/non-secure/index.cjs","../../../../../../node_modules/nanoid/non-secure/package.json","../../../../../../node_modules/nanoid/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/parse-srcset/package.json","../../../../../../node_modules/parse-srcset/src/parse-srcset.js","../../../../../../node_modules/picocolors/package.json","../../../../../../node_modules/picocolors/picocolors.js","../../../../../../node_modules/postcss/lib/at-rule.js","../../../../../../node_modules/postcss/lib/comment.js","../../../../../../node_modules/postcss/lib/container.js","../../../../../../node_modules/postcss/lib/css-syntax-error.js","../../../../../../node_modules/postcss/lib/declaration.js","../../../../../../node_modules/postcss/lib/document.js","../../../../../../node_modules/postcss/lib/fromJSON.js","../../../../../../node_modules/postcss/lib/input.js","../../../../../../node_modules/postcss/lib/lazy-result.js","../../../../../../node_modules/postcss/lib/list.js","../../../../../../node_modules/postcss/lib/map-generator.js","../../../../../../node_modules/postcss/lib/no-work-result.js","../../../../../../node_modules/postcss/lib/node.js","../../../../../../node_modules/postcss/lib/parse.js","../../../../../../node_modules/postcss/lib/parser.js","../../../../../../node_modules/postcss/lib/postcss.js","../../../../../../node_modules/postcss/lib/previous-map.js","../../../../../../node_modules/postcss/lib/processor.js","../../../../../../node_modules/postcss/lib/result.js","../../../../../../node_modules/postcss/lib/root.js","../../../../../../node_modules/postcss/lib/rule.js","../../../../../../node_modules/postcss/lib/stringifier.js","../../../../../../node_modules/postcss/lib/stringify.js","../../../../../../node_modules/postcss/lib/symbols.js","../../../../../../node_modules/postcss/lib/terminal-highlight.js","../../../../../../node_modules/postcss/lib/tokenize.js","../../../../../../node_modules/postcss/lib/warn-once.js","../../../../../../node_modules/postcss/lib/warning.js","../../../../../../node_modules/postcss/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/sanitize-html/index.js","../../../../../../node_modules/sanitize-html/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/source-map-js/lib/array-set.js","../../../../../../node_modules/source-map-js/lib/base64-vlq.js","../../../../../../node_modules/source-map-js/lib/base64.js","../../../../../../node_modules/source-map-js/lib/binary-search.js","../../../../../../node_modules/source-map-js/lib/mapping-list.js","../../../../../../node_modules/source-map-js/lib/quick-sort.js","../../../../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../../../../node_modules/source-map-js/lib/source-map-generator.js","../../../../../../node_modules/source-map-js/lib/source-node.js","../../../../../../node_modules/source-map-js/lib/util.js","../../../../../../node_modules/source-map-js/package.json","../../../../../../node_modules/source-map-js/source-map.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js index 59496bb..ed85885 100644 --- a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js @@ -1,110 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7941; -exports.ids = [7941]; -exports.modules = { - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }), - -/***/ 5603: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ handler) -/* harmony export */ }); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1017); -/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__); -// @ts-check - -const http = __webpack_require__(3685); -const fs = __webpack_require__(7147); -const { createHmac } = __webpack_require__(6113); -const key = process.env.DSQL_GITHUB_WEBHOOK_SECRET || ""; -/** - * @param {import("next").NextApiRequest} req - * @returns {boolean} - */ const verify_signature = (req)=>{ - console.log(req.headers); - const signature = createHmac("sha256", key).update(JSON.stringify(req.body)).digest("hex"); - console.log(signature); - return `sha256=${signature}` === req.headers["x-hub-signature-256"]; -}; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").NextApiHandler} */ async function handler(req, res) { - /** - * Check method - * - * @description Check request method and return if invalid - */ if (req.method !== "POST") return res.json({ - msg: "Failed!" - }); - if (!verify_signature(req)) { - console.log("Authorization failed"); - res.status(401).send("Unauthorized"); - return; - } - /** ********************* Initialize data */ const data = req.body; - try { - /** ********************************************** */ /** ********************************************** */ /** ********************************************** */ console.log("Request Recieved"); - const ref = data.ref; - if (!ref?.match(/main/)) { - console.log("Not Main Branch"); - res.json({ - success: true - }); - return; - } - fs.writeFileSync(path__WEBPACK_IMPORTED_MODULE_0___default().resolve(process.cwd(), "./.dist", "REDEPLOY_FLAG"), String(Date.now()), "utf-8"); - console.log("Deploy Flag Triggered. Now Redeploying ..."); - /** ********************************************** */ /** ********************************************** */ /** ********************************************** */ res.json({ - success: true - }); - /** ********************************************** */ /** ********************************************** */ /** ********************************************** */ } catch (error) { - console.log(error); - res.json({ - msg: "Not Handled Yet" - }); - } -} - - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-api-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = (__webpack_exec__(5603)); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5122,e.ids=[5122],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,o){return o in t?t[o]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,o)):"function"==typeof t&&"default"===o?t:void 0}}})},22394:(e,t,o)=>{o.r(t),o.d(t,{config:()=>h,default:()=>g,routeModule:()=>P});var r={};o.r(r),o.d(r,{default:()=>f});var n=o(89947),s=o(2706),i=o(96762),u=o(33873),a=o.n(u);o(81630);let l=o(29021),{createHmac:d}=o(55511),c=process.env.DSQL_GITHUB_WEBHOOK_SECRET||"",p=e=>{console.log(e.headers);let t=d("sha256",c).update(JSON.stringify(e.body)).digest("hex");return console.log(t),`sha256=${t}`===e.headers["x-hub-signature-256"]};async function f(e,t){if("POST"!==e.method)return t.json({msg:"Failed!"});if(!p(e)){console.log("Authorization failed"),t.status(401).send("Unauthorized");return}let o=e.body;try{console.log("Request Recieved");let e=o.ref;if(!e?.match(/main/)){console.log("Not Main Branch"),t.json({success:!0});return}l.writeFileSync(a().resolve(process.cwd(),"./.dist","REDEPLOY_FLAG"),String(Date.now()),"utf-8"),console.log("Deploy Flag Triggered. Now Redeploying ..."),t.json({success:!0})}catch(e){console.log(e),t.json({msg:"Not Handled Yet"})}}let g=(0,i.M)(r,"default"),h=(0,i.M)(r,"config"),P=new n.PagesAPIRouteModule({definition:{kind:s.A.PAGES_API,page:"/api/webhooks/github-push",pathname:"/api/webhooks/github-push",bundlePath:"",filename:""},userland:r})},2706:(e,t)=>{var o;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return o}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(o||(o={}))},89947:(e,t,o)=>{e.exports=o(75600)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var o=t(t.s=22394);module.exports=o})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json index cb5da74..3f63e4e 100644 --- a/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json +++ b/dsql-app/.local_dist/server/pages/api/webhooks/github-push.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-api-runtime.js","../../../../package.json","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/bytes/index.js","../../../../../node_modules/next/dist/compiled/bytes/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages-api.runtime.prod.js","../../../../../node_modules/next/dist/compiled/raw-body/index.js","../../../../../node_modules/next/dist/compiled/raw-body/package.json","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-api-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/blog.html b/dsql-app/.local_dist/server/pages/blog.html index b0afe81..e592bb0 100644 --- a/dsql-app/.local_dist/server/pages/blog.html +++ b/dsql-app/.local_dist/server/pages/blog.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/blog-be6db5dd2389f8c4.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/blog","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/blog-1c6218c89ee93213.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/blog","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/blog.js.nft.json b/dsql-app/.local_dist/server/pages/blog.js.nft.json index 51f46ef..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/blog.js.nft.json +++ b/dsql-app/.local_dist/server/pages/blog.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/contact.html b/dsql-app/.local_dist/server/pages/contact.html index d0c88d4..28b22e7 100644 --- a/dsql-app/.local_dist/server/pages/contact.html +++ b/dsql-app/.local_dist/server/pages/contact.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/contact-513427eea0db408d.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/contact","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/contact-cbdd66383d45e846.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/contact","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/contact.js.nft.json b/dsql-app/.local_dist/server/pages/contact.js.nft.json index bc658b3..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/contact.js.nft.json +++ b/dsql-app/.local_dist/server/pages/contact.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/7037.js","../chunks/2186.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/create-account.js b/dsql-app/.local_dist/server/pages/create-account.js index 871b058..97b1550 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js +++ b/dsql-app/.local_dist/server/pages/create-account.js @@ -1,1053 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7398; -exports.ids = [7398]; -exports.modules = { +"use strict";(()=>{var e={};e.id=8810,e.ids=[636,8810],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},90467:(e,t,r)=>{r.r(t),r.d(t,{config:()=>q,default:()=>y,getServerSideProps:()=>D,getStaticPaths:()=>v,getStaticProps:()=>E,reportWebVitals:()=>b,routeModule:()=>L,unstable_getServerProps:()=>w,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>P,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{CreateAccountContext:()=>h,default:()=>x,getServerSideProps:()=>S});var a=r(63865),i=r(9455),n=r(30671),o=r(49407),l=r(68268),u=r(8732),c=r(82015),d=r.n(c),p=r(71457),m=r(87472),_=r(70045);function g(e){let{query:t,invitingUser:r}=d().useContext(h);return(0,u.jsxs)("section",{className:"flex-col items-center lg:items-center gap-20 p-0",children:[(0,u.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"}),(0,u.jsxs)("div",{className:"w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10",children:[r?.first_name&&(0,u.jsxs)("span",{className:"text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4",children:["You have been invited by"," ",(0,u.jsxs)("b",{children:[r.first_name," ",r.last_name," (",r.email,")"]})," ","to manage an account. Please create an account to gain access."]}),(0,u.jsx)("h1",{className:"m-0 text-center text-2xl",children:"Create An Account"}),(0,u.jsx)(_.A,{query:t})]})]})}r(20048),r(22172),r(67216),r(93353),r(32415),r(63715);var f=r(55966);let h=d().createContext({});function x(e){let t="Create Account | Datasquirel",r="Create a FREE account and start storing data.",s=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:t}),(0,u.jsx)("meta",{name:"description",content:r}),(0,u.jsx)(m.A,{pageTitle:t,pageDescription:r,pagePathname:"/"})]}),[a,i]=d().useState(null);return e.query?.invite?(0,u.jsx)(f.A,{}):(0,u.jsx)(p.A,{head:s,children:(0,u.jsx)(h.Provider,{value:{user:a,query:e.query,invitingUser:e.invitingUser},children:(0,u.jsx)("main",{children:(0,u.jsx)(g,{})})})})}async function S({req:e,res:t,query:r}){return{redirect:{destination:"/login",permanent:!1}}}let y=(0,n.M)(s,"default"),E=(0,n.M)(s,"getStaticProps"),v=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),q=(0,n.M)(s,"config"),b=(0,n.M)(s,"reportWebVitals"),A=(0,n.M)(s,"unstable_getStaticProps"),P=(0,n.M)(s,"unstable_getStaticPaths"),j=(0,n.M)(s,"unstable_getStaticParams"),w=(0,n.M)(s,"unstable_getServerProps"),R=(0,n.M)(s,"unstable_getServerSideProps"),L=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/create-account",pathname:"/create-account",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},55966:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732);r(82015);var a=r(32415);function i(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(a.A,{width:"25px",position:"relative"})})]})})}},22172:(e,t,r)=>{r(29021),r(28187);let s=r(68942),a=r(67216),i=r(43290);e.exports=async function({query:e,user:t}){try{let{invite:r,database_access:s,priviledge:n,email:o}=e,l=await a("SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[r,o]);if(!l||!l[0])throw Error("No Invitation Found");let u=await a("SELECT first_name,last_name,email FROM users WHERE id=?",[r]);if(u?.[0]){let e=await a("SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?",[r,t.id,o]);if(e?.[0])console.log("User already added");else{i({dbFullName:"datasquirel",tableName:"user_users",data:{user_id:r,invited_user_id:t.id,database_access:s,first_name:t.first_name,last_name:t.last_name,phone:t.phone,email:t.email,username:t.username,user_type:"admin",user_priviledge:n,image:t.image,image_thumbnail:t.image_thumbnail}});let e=await a("SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?",[r,o]);if(await a("DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[r,t.id]),e&&e[0]){let s=e[0].db_tables_data.split("|");for(let e=0;e<s.length;e++){let[a,o]=s[e].split("-");await i({dbFullName:"datasquirel",tableName:"delegated_user_tables",data:{delegated_user_id:t.id,root_user_id:r,database:a,table:o,priviledge:n}})}}}await a("UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?",[r,o])}}catch(e){s({component:"addAdminUserOnLogin",message:e.message,user:t})}}},68942:(e,t,r)=>{let s=r(29021),{IncomingMessage:a}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:a,req:i}){let n=new Date,o=(()=>{if(!i)return null;try{let e=i.headers["x-forwarded-for"],t=i.headers["x-real-ip"],r=i.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=r||s||t||i.socket.remoteAddress;if(!a)return null;return String(a)}catch(e){return null}})();try{let a=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(a+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),i?.url&&(a+=` +URL: ${i.url}`),i?.body&&(a+=` +Request Body: ${JSON.stringify(i.body,null,4)}`),o&&(a+=` +IP: ${o}`),a+=` +Date: ${n.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",a),s.appendFileSync("./.tmp/error.log",` -/***/ 255: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ -const fs = __webpack_require__(7147); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -const datasquirel = __webpack_require__(9538); -const serverError = __webpack_require__(2317); -const DB_HANDLER = __webpack_require__(9395); -const addDbEntry = __webpack_require__(7857); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Add Admin User on Login - * ============================================================================== - * - * @description this function handles admin users that have been invited by another - * admin user. This fires when the invited user has been logged in or a new account - * has been created for the invited user - * - * @param {object} params - parameters object - * - * @param {object} params.query - query object - * @param {number} params.query.invite - Invitation user id - * @param {string} params.query.database_access - String containing authorized databases - * @param {string} params.query.priviledge - String containing databases priviledges - * @param {string} params.query.email - Inviting user email address - * - * @param {import("@/package-shared/types").UserType} params.user - invited user object - * - * @returns {Promise<any>} new user auth object payload - */ module.exports = async function addAdminUserOnLogin({ query , user }) { - try { - /** - * Fetch user - * - * @description Fetch user from db - */ // @ts-ignore - const { invite , database_access , priviledge , email } = query; - const lastInviteTimeArray = await DB_HANDLER(`SELECT date_created_code FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - // if (lastInviteTimeArray && lastInviteTimeArray[0]?.date_created_code) { - // const timeSinceLastInvite = Date.now() - parseInt(lastInviteTimeArray[0].date_created_code); - // if (timeSinceLastInvite > 21600000) { - // throw new Error("Invitation expired"); - // } - // } else if (!lastInviteTimeArray || !lastInviteTimeArray[0]) { - // throw new Error("No Invitation Found"); - // } - if (!lastInviteTimeArray || !lastInviteTimeArray[0]) { - throw new Error("No Invitation Found"); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - // @ts-ignore - const invitingUserDb = await DB_HANDLER(`SELECT first_name,last_name,email FROM users WHERE id=?`, [ - invite - ]); - if (invitingUserDb?.[0]) { - const existingUserUser = await DB_HANDLER(`SELECT email FROM user_users WHERE user_id=? AND invited_user_id=? AND user_type='admin' AND email=?`, [ - invite, - user.id, - email - ]); - if (existingUserUser?.[0]) { - console.log("User already added"); - } else { - // const newUserUser = await DB_HANDLER( - // `INSERT IGNORE INTO user_users - // (user_id, invited_user_id, database_access, first_name, last_name, phone, email, username, user_type, user_priviledge) - // VALUES - // (?,?,?,?,?,?,?,?,?,?) - // )`, - // [ - // invite, - // user.id, - // database_access, - // user.first_name, - // user.last_name, - // user.phone, - // user.email, - // user.username, - // "admin", - // priviledge, - // ] - // ); - addDbEntry({ - dbFullName: "datasquirel", - tableName: "user_users", - data: { - user_id: invite, - invited_user_id: user.id, - database_access: database_access, - first_name: user.first_name, - last_name: user.last_name, - phone: user.phone, - email: user.email, - username: user.username, - user_type: "admin", - user_priviledge: priviledge, - image: user.image, - image_thumbnail: user.image_thumbnail - } - }); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - // @ts-ignore - const dbTableData = await DB_HANDLER(`SELECT db_tables_data FROM invitations WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - // @ts-ignore - const clearEntries = await DB_HANDLER(`DELETE FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?`, [ - invite, - user.id - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - if (dbTableData && dbTableData[0]) { - const dbTableEntries = dbTableData[0].db_tables_data.split("|"); - for(let i = 0; i < dbTableEntries.length; i++){ - const dbTableEntry = dbTableEntries[i]; - const dbTableEntryArray = dbTableEntry.split("-"); - const [db_slug, table_slug] = dbTableEntryArray; - const newEntry = await addDbEntry({ - dbFullName: "datasquirel", - tableName: "delegated_user_tables", - data: { - delegated_user_id: user.id, - root_user_id: invite, - database: db_slug, - table: table_slug, - priviledge: priviledge - } - }); - } - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } - // @ts-ignore - const inviteAccepted = await DB_HANDLER(`UPDATE invitations SET invitation_status='Accepted' WHERE inviting_user_id=? AND invited_user_email=?`, [ - invite, - email - ]); - } - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - serverError({ - component: "addAdminUserOnLogin", - message: error.message, - user: user - }); - } -}; //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// -/***/ }), - -/***/ 7857: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const encrypt = __webpack_require__(2380); -const sanitizeHtml = __webpack_require__(6109); -const sanitizeHtmlOptions = __webpack_require__(6704); -const updateDb = __webpack_require__(5851); -const updateDbEntry = __webpack_require__(5851); -const _ = __webpack_require__(6517); -const DB_HANDLER = __webpack_require__(9395); -const DSQL_USER_DB_HANDLER = __webpack_require__(8682); -/** - * Add a db Entry Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {("Master" | "Dsql User")} [params.dbContext] - What is the database context? "Master" - * or "Dsql User". Defaults to "Master" - * @param {("Read Only" | "Full Access")} [params.paradigm] - What is the paradigm for "Dsql User"? - * "Read only" or "Full Access"? Defaults to "Read Only" - * @param {string} [params.dbFullName] - Database full name - * @param {string} params.tableName - Table name - * @param {any} params.data - Data to add - * @param {import("../../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @param {string} [params.duplicateColumnName] - Duplicate column name - * @param {string} [params.duplicateColumnValue] - Duplicate column value - * @param {boolean} [params.update] - Update this row if it exists - * @param {string} [params.encryptionKey] - Update this row if it exists - * @param {string} [params.encryptionSalt] - Update this row if it exists - * - * @returns {Promise<any>} - */ async function addDbEntry({ dbContext , paradigm , dbFullName , tableName , data , tableSchema , duplicateColumnName , duplicateColumnValue , update , encryptionKey , encryptionSalt , }) { - /** - * Initialize variables - */ const isMaster = dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false : true; - /** @type { any } */ const dbHandler = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (data?.["date_created_timestamp"]) delete data["date_created_timestamp"]; - if (data?.["date_updated_timestamp"]) delete data["date_updated_timestamp"]; - if (data?.["date_updated"]) delete data["date_updated"]; - if (data?.["date_updated_code"]) delete data["date_updated_code"]; - if (data?.["date_created"]) delete data["date_created"]; - if (data?.["date_created_code"]) delete data["date_created_code"]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Handle function logic - */ if (duplicateColumnName && typeof duplicateColumnName === "string") { - const duplicateValue = isMaster ? await dbHandler(`SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`, [ - duplicateColumnValue - ]) : await dbHandler({ - paradigm: "Read Only", - database: dbFullName, - queryString: `SELECT * FROM \`${tableName}\` WHERE \`${duplicateColumnName}\`=?`, - queryValues: [ - duplicateColumnValue - ] - }); - if (duplicateValue?.[0] && !update) { - return null; - } else if (duplicateValue && duplicateValue[0] && update) { - return await updateDbEntry({ - dbContext, - paradigm, - dbFullName, - tableName, - data, - tableSchema, - encryptionKey, - encryptionSalt, - identifierColumnName: duplicateColumnName, - identifierValue: duplicateColumnValue || "" - }); - } - } - /** - * Declare variables - * - * @description Declare "results" variable - */ const dataKeys = Object.keys(data); - let insertKeysArray = []; - let insertValuesArray = []; - for(let i = 0; i < dataKeys.length; i++){ - try { - const dataKey = dataKeys[i]; - // @ts-ignore - let value = data?.[dataKey]; - const targetFieldSchemaArray = tableSchema ? tableSchema?.fields?.filter((field)=>field.fieldName == dataKey) : null; - const targetFieldSchema = targetFieldSchemaArray && targetFieldSchemaArray[0] ? targetFieldSchemaArray[0] : null; - if (value == null || value == undefined) continue; - if (targetFieldSchema?.dataType?.match(/int$/i) && typeof value == "string" && !value?.match(/./)) continue; - if (targetFieldSchema?.encrypted) { - value = encrypt(value, encryptionKey, encryptionSalt); - console.log("DSQL: Encrypted value =>", value); - } - if (targetFieldSchema?.richText) { - value = sanitizeHtml(value, sanitizeHtmlOptions); - } - if (targetFieldSchema?.pattern) { - const pattern = new RegExp(targetFieldSchema.pattern, targetFieldSchema.patternFlags || ""); - if (!pattern.test(value)) { - console.log("DSQL: Pattern not matched =>", value); - value = ""; - } - } - insertKeysArray.push("`" + dataKey + "`"); - if (typeof value === "object") { - value = JSON.stringify(value); - } - if (typeof value == "number") { - insertValuesArray.push(String(value)); - } else { - insertValuesArray.push(value); - } - } catch (/** @type {any} */ error) { - console.log("DSQL: Error in parsing data keys =>", error.message); - continue; - } - } - //////////////////////////////////////// - if (!data?.["date_created"]) { - insertKeysArray.push("`date_created`"); - insertValuesArray.push(Date()); - } - if (!data?.["date_created_code"]) { - insertKeysArray.push("`date_created_code`"); - insertValuesArray.push(Date.now()); - } - //////////////////////////////////////// - if (!data?.["date_updated"]) { - insertKeysArray.push("`date_updated`"); - insertValuesArray.push(Date()); - } - if (!data?.["date_updated_code"]) { - insertKeysArray.push("`date_updated_code`"); - insertValuesArray.push(Date.now()); - } - //////////////////////////////////////// - const query = `INSERT INTO \`${tableName}\` (${insertKeysArray.join(",")}) VALUES (${insertValuesArray.map(()=>"?").join(",")})`; - const queryValuesArray = insertValuesArray; - const newInsert = isMaster ? await dbHandler(query, queryValuesArray) : await dbHandler({ - paradigm, - database: dbFullName, - queryString: query, - queryValues: queryValuesArray - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return newInsert; -} -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = addDbEntry; - - -/***/ }), - -/***/ 5851: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check -/** - * Imports: Handle imports - */ -const encrypt = __webpack_require__(2380); -const sanitizeHtml = __webpack_require__(6109); -const sanitizeHtmlOptions = __webpack_require__(6704); -const DB_HANDLER = __webpack_require__(9395); -const DSQL_USER_DB_HANDLER = __webpack_require__(8682); -/** - * Update DB Function - * ============================================================================== - * @description Description - * @async - * - * @param {object} params - An object containing the function parameters. - * @param {("Master" | "Dsql User")} [params.dbContext] - What is the database context? "Master" - * or "Dsql User". Defaults to "Master" - * @param {("Read Only" | "Full Access")} [params.paradigm] - What is the paradigm for "Dsql User"? - * "Read only" or "Full Access"? Defaults to "Read Only" - * @param {string} [params.dbFullName] - Database full name - * @param {string} params.tableName - Table name - * @param {string} [params.encryptionKey] - * @param {string} [params.encryptionSalt] - * @param {any} params.data - Data to add - * @param {import("../../../types").DSQL_TableSchemaType} [params.tableSchema] - Table schema - * @param {string} params.identifierColumnName - Update row identifier column name - * @param {string | number} params.identifierValue - Update row identifier column value - * - * @returns {Promise<object|null>} - */ async function updateDbEntry({ dbContext , paradigm , dbFullName , tableName , data , tableSchema , identifierColumnName , identifierValue , encryptionKey , encryptionSalt , }) { - /** - * Check if data is valid - */ if (!data || !Object.keys(data).length) return null; - const isMaster = dbContext?.match(/dsql.user/i) ? false : dbFullName && !dbFullName.match(/^datasquirel$/) ? false : true; - /** @type {(a1:any, a2?:any)=> any } */ const dbHandler = isMaster ? DB_HANDLER : DSQL_USER_DB_HANDLER; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Declare variables - * - * @description Declare "results" variable - */ const dataKeys = Object.keys(data); - let updateKeyValueArray = []; - let updateValues = []; - for(let i = 0; i < dataKeys.length; i++){ - try { - const dataKey = dataKeys[i]; - // @ts-ignore - let value = data[dataKey]; - const targetFieldSchemaArray = tableSchema ? tableSchema?.fields?.filter((field)=>field.fieldName === dataKey) : null; - const targetFieldSchema = targetFieldSchemaArray && targetFieldSchemaArray[0] ? targetFieldSchemaArray[0] : null; - if (value == null || value == undefined) continue; - if (targetFieldSchema?.richText) { - value = sanitizeHtml(value, sanitizeHtmlOptions); - } - if (targetFieldSchema?.encrypted) { - value = encrypt(value, encryptionKey, encryptionSalt); - } - if (typeof value === "object") { - value = JSON.stringify(value); - } - if (targetFieldSchema?.pattern) { - const pattern = new RegExp(targetFieldSchema.pattern, targetFieldSchema.patternFlags || ""); - if (!pattern.test(value)) { - console.log("DSQL: Pattern not matched =>", value); - value = ""; - } - } - if (typeof value === "string" && value.match(/^null$/i)) { - value = { - toSqlString: function() { - return "NULL"; - } - }; - } - if (typeof value === "string" && !value.match(/./i)) { - value = { - toSqlString: function() { - return "NULL"; - } - }; - } - updateKeyValueArray.push(`\`${dataKey}\`=?`); - if (typeof value == "number") { - updateValues.push(String(value)); - } else { - updateValues.push(value); - } - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error) { - //////////////////////////////////////// - //////////////////////////////////////// - console.log("DSQL: Error in parsing data keys in update function =>", error.message); - continue; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - updateKeyValueArray.push(`date_updated='${Date()}'`); - updateKeyValueArray.push(`date_updated_code='${Date.now()}'`); - //////////////////////////////////////// - //////////////////////////////////////// - const query = `UPDATE ${tableName} SET ${updateKeyValueArray.join(",")} WHERE \`${identifierColumnName}\`=?`; - updateValues.push(identifierValue); - const updatedEntry = isMaster ? await dbHandler(query, updateValues) : await dbHandler({ - paradigm, - database: dbFullName, - queryString: query, - queryValues: updateValues - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Return statement - */ return updatedEntry; -} -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -module.exports = updateDbEntry; - - -/***/ }), - -/***/ 2380: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createCipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -const serverError = __webpack_require__(7023); -/** - * @async - * @param {string} data - * @param {string} [encryptionKey] - * @param {string} [encryptionSalt] - * @returns {string | null} - */ const encrypt = (data, encryptionKey, encryptionSalt)=>{ - const algorithm = "aes-192-cbc"; - const password = encryptionKey ? encryptionKey : process.env.DSQL_ENCRYPTION_PASSWORD || ""; - /** ********************* Generate key */ const salt = encryptionSalt ? encryptionSalt : process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const cipher = createCipheriv(algorithm, key, iv); - /** ********************* Encrypt data */ try { - let encrypted = cipher.update(data, "utf8", "hex"); - encrypted += cipher.final("hex"); - return encrypted; - } catch (/** @type {any} */ error) { - serverError({ - component: "encrypt", - message: error.message - }); - return null; - } -}; -module.exports = encrypt; - - -/***/ }), - -/***/ 6704: -/***/ ((module) => { - -// @ts-check - -const sanitizeHtmlOptions = { - allowedTags: [ - "b", - "i", - "em", - "strong", - "a", - "p", - "span", - "ul", - "ol", - "li", - "h1", - "h2", - "h3", - "h4", - "h5", - "h6", - "img", - "div", - "button", - "pre", - "code", - "br" - ], - allowedAttributes: { - a: [ - "href" - ], - img: [ - "src", - "alt", - "width", - "height", - "class", - "style" - ], - "*": [ - "style", - "class" - ] - } -}; -module.exports = sanitizeHtmlOptions; - - -/***/ }), - -/***/ 8214: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "CreateAccountContext": () => (/* binding */ CreateAccountContext), - "default": () => (/* binding */ CreateAccount), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/GeneralLayout.jsx + 1 modules -var GeneralLayout = __webpack_require__(6217); -// EXTERNAL MODULE: ./components/general/PageHeadTags.jsx -var PageHeadTags = __webpack_require__(4097); -// EXTERNAL MODULE: ./components/pages/create-account/CreateAccountForm.jsx + 1 modules -var CreateAccountForm = __webpack_require__(5114); -;// CONCATENATED MODULE: ./components/pages/create-account/Hero.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function Hero(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { query , invitingUser } = external_react_default().useContext(CreateAccountContext); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "flex-col items-center lg:items-center gap-20 p-0", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/grid.webp", - alt: "Dotted image background", - className: "absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full lg:w-1/2 max-w-6xl gap-4 flex-col items-center px-4 py-10 bg-white dark:bg-slate-900 relative z-10", - children: [ - invitingUser?.first_name && /*#__PURE__*/ (0,jsx_runtime_.jsxs)("span", { - className: "text-xs bg-emerald-100 rounded-full px-4 py-1 mb-4", - children: [ - "You have been invited by", - " ", - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("b", { - children: [ - invitingUser.first_name, - " ", - invitingUser.last_name, - " (", - invitingUser.email, - ")" - ] - }), - " ", - "to manage an account. Please create an account to gain access." - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "m-0 text-center text-2xl", - children: "Create An Account" - }), - /*#__PURE__*/ jsx_runtime_.jsx(CreateAccountForm/* default */.Z, { - query: query - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./functions/backend/addAdminUserOnLogin.js -var addAdminUserOnLogin = __webpack_require__(255); -var addAdminUserOnLogin_default = /*#__PURE__*/__webpack_require__.n(addAdminUserOnLogin); -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -// EXTERNAL MODULE: ./components/general/Logo.jsx -var Logo = __webpack_require__(4017); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingScreen.jsx -var LoadingScreen = __webpack_require__(6478); -;// CONCATENATED MODULE: ./pages/create-account.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - -/** ****************************************************************************** */ - - - - - - - - - -/** ****************************************************************************** */ /** @type {import("@/package-shared/types").CreateAccountContextType} */ // @ts-ignore -const init = {}; -const CreateAccountContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").CreateAccountQueryType} props.query - * @param {any} props.invitingUser - * @param {any} props.isAuthCookie - * @param {import("@/package-shared/types").UserType} props.user - */ function CreateAccount(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Create Account | Datasquirel"; - const pageDescription = "Create a FREE account and start storing data."; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx(PageHeadTags/* default */.Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [user, setUser] = external_react_default().useState(null); - external_react_default().useEffect(()=>{ - if (props.query?.invite && !props.isAuthCookie) { - setTimeout(()=>{ - (0,fetchApi/* default */.Z)("/api/addAdminUserUser", { - method: "POST", - body: { - query: props.query - } - }, true).then((res)=>{ - window.location.pathname = `/admin/${props.user?.id}/users`; - }); - // clearCaches() - // .then(() => { - // console.log("caches cleared!"); - // }) - // .finally(() => { - // window.location.reload(); - // }); - }, 1000); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (props.query?.invite) { - return /*#__PURE__*/ jsx_runtime_.jsx(LoadingScreen/* default */.Z, {}); - } - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(GeneralLayout/* default */.Z, { - head: head, - children: /*#__PURE__*/ jsx_runtime_.jsx(CreateAccountContext.Provider, { - value: { - user, - query: props.query, - invitingUser: props.invitingUser - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("main", { - children: /*#__PURE__*/ jsx_runtime_.jsx(Hero, {}) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - if (true) { - return { - redirect: { - destination: "/login", - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const user = await userAuth_default()(req, res); - if (user?.logged_in_status && !query?.invite) { - return { - redirect: { - destination: "/admin", - permanent: false - } - }; - } - const isAuthCookie = req.cookies?.datasquirelAuthKey?.match(/./) ? true : false; - let invitingUser = {}; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ if (query?.email && user?.logged_in_status && user?.email === query.email) { - console.log("Invitation Received by current logged in user"); - const acceptInvitation = await addAdminUserOnLogin_default()({ - // @ts-ignore - query, - user - }); - return { - redirect: { - destination: `/admin/${user?.id}/users`, - permanent: false - } - }; - } else if (query?.email && user?.logged_in_status && user?.email !== query.email) { - console.log("Invitation Received but email doesn't match!"); - return { - redirect: { - destination: "/logout?login=true&" + Object.keys(query).map((key)=>`${key}=${query[key]}`).join("&"), - permanent: false - } - }; - } else if (query?.invite && !user?.logged_in_status) { - console.log("Invitation Received but no User Logged In"); - const existingUser = await DB_HANDLER_default()(`SELECT first_name FROM users WHERE email='${query.email}'`); - if (existingUser && existingUser[0]) { - return { - redirect: { - destination: "/login?" + Object.keys(query).map((key)=>`${key}=${query[key]}`).join("&"), - permanent: false - } - }; - } - const invitingUserDb = await DB_HANDLER_default()(`SELECT first_name,last_name,email FROM users WHERE id='${query.invite}'`); - if (invitingUserDb && invitingUserDb[0]) invitingUser = invitingUserDb[0]; - } else { - // console.log("No Invitation Received!"); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - query, - invitingUser, - isAuthCookie - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 6843: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ContentCopy"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9174: -/***/ ((module) => { - -module.exports = require("@mui/material/Snackbar"); - -/***/ }), - -/***/ 9538: -/***/ ((module) => { - -module.exports = require("datasquirel"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 6109: -/***/ ((module) => { - -module.exports = require("sanitize-html"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }), - -/***/ 1017: -/***/ ((module) => { - -module.exports = require("path"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,9360,6217,4097,7023,8682,2317,7037,8374,5114,6478], () => (__webpack_exec__(8214))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},20048:(e,t,r)=>{r(81630);let s=r(67216),a=r(83007),i=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=a(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!i.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},43290:(e,t,r)=>{let s=r(81339),a=r(72583),i=r(67942);r(19760);let n=r(19760);r(27825);let o=r(67216),l=r(1231);async function u({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:c,tableSchema:d,duplicateColumnName:p,duplicateColumnValue:m,update:_,encryptionKey:g,encryptionSalt:f}){let h=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),x=h?o:l;if(c?.date_created_timestamp&&delete c.date_created_timestamp,c?.date_updated_timestamp&&delete c.date_updated_timestamp,c?.date_updated&&delete c.date_updated,c?.date_updated_code&&delete c.date_updated_code,c?.date_created&&delete c.date_created,c?.date_created_code&&delete c.date_created_code,p&&"string"==typeof p){let s=h?await x(`SELECT * FROM \`${u}\` WHERE \`${p}\`=?`,[m]):await x({paradigm:"Read Only",database:r,queryString:`SELECT * FROM \`${u}\` WHERE \`${p}\`=?`,queryValues:[m]});if(s?.[0]&&!_)return null;if(s&&s[0]&&_)return await n({dbContext:e,paradigm:t,dbFullName:r,tableName:u,data:c,tableSchema:d,encryptionKey:g,encryptionSalt:f,identifierColumnName:p,identifierValue:m||""})}let S=Object.keys(c),y=[],E=[];for(let e=0;e<S.length;e++)try{let t=S[e],r=c?.[t],n=d?d?.fields?.filter(e=>e.fieldName==t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r||o?.dataType?.match(/int$/i)&&"string"==typeof r&&!r?.match(/./))continue;o?.encrypted&&(r=s(r,g,f),console.log("DSQL: Encrypted value =>",r)),o?.richText&&(r=a(r,i)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),y.push("`"+t+"`"),"object"==typeof r&&(r=JSON.stringify(r)),"number"==typeof r?E.push(String(r)):E.push(r)}catch(e){console.log("DSQL: Error in parsing data keys =>",e.message);continue}c?.date_created||(y.push("`date_created`"),E.push(Date())),c?.date_created_code||(y.push("`date_created_code`"),E.push(Date.now())),c?.date_updated||(y.push("`date_updated`"),E.push(Date())),c?.date_updated_code||(y.push("`date_updated_code`"),E.push(Date.now()));let v=`INSERT INTO \`${u}\` (${y.join(",")}) VALUES (${E.map(()=>"?").join(",")})`;return h?await x(v,E):await x({paradigm:t,database:r,queryString:v,queryValues:E})}e.exports=u},19760:(e,t,r)=>{let s=r(81339),a=r(72583),i=r(67942),n=r(67216),o=r(1231);async function l({dbContext:e,paradigm:t,dbFullName:r,tableName:l,data:u,tableSchema:c,identifierColumnName:d,identifierValue:p,encryptionKey:m,encryptionSalt:_}){if(!u||!Object.keys(u).length)return null;let g=!e?.match(/dsql.user/i)&&(!r||!!r.match(/^datasquirel$/)),f=g?n:o,h=Object.keys(u),x=[],S=[];for(let e=0;e<h.length;e++)try{let t=h[e],r=u[t],n=c?c?.fields?.filter(e=>e.fieldName===t):null,o=n&&n[0]?n[0]:null;if(null==r||void 0==r)continue;o?.richText&&(r=a(r,i)),o?.encrypted&&(r=s(r,m,_)),"object"==typeof r&&(r=JSON.stringify(r)),o?.pattern&&!new RegExp(o.pattern,o.patternFlags||"").test(r)&&(console.log("DSQL: Pattern not matched =>",r),r=""),"string"==typeof r&&r.match(/^null$/i)&&(r={toSqlString:function(){return"NULL"}}),"string"!=typeof r||r.match(/./i)||(r={toSqlString:function(){return"NULL"}}),x.push(`\`${t}\`=?`),"number"==typeof r?S.push(String(r)):S.push(r)}catch(e){console.log("DSQL: Error in parsing data keys in update function =>",e.message);continue}x.push(`date_updated='${Date()}'`),x.push(`date_updated_code='${Date.now()}'`);let y=`UPDATE ${l} SET ${x.join(",")} WHERE \`${d}\`=?`;return S.push(p),g?await f(y,S):await f({paradigm:t,database:r,queryString:y,queryValues:S})}e.exports=l},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:a}=r(55511),{Buffer:i}=r(79428);e.exports=e=>{let t=a("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},81339:(e,t,r)=>{let{scryptSync:s,createCipheriv:a}=r(55511),{Buffer:i}=r(79428),n=r(22373);e.exports=(e,t,r)=>{let o=a("aes-192-cbc",s(t||process.env.DSQL_ENCRYPTION_PASSWORD||"",r||process.env.DSQL_ENCRYPTION_SALT||"",24),i.alloc(16,0));try{let t=o.update(e,"utf8","hex");return t+=o.final("hex")}catch(e){return n({component:"encrypt",message:e.message}),null}}},67942:e=>{e.exports={allowedTags:["b","i","em","strong","a","p","span","ul","ol","li","h1","h2","h3","h4","h5","h6","img","div","button","pre","code","br"],allowedAttributes:{a:["href"],img:["src","alt","width","height","class","style"],"*":["style","class"]}}},67216:(e,t,r)=>{let s=r(9973),a=r(31976),i=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function n(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},1231:(e,t,r)=>{let s=r(29021);r(33873);let a=r(9973),i=r(31976),n=a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,charset:"utf8mb4",ssl:i()}});e.exports=function({paradigm:e,database:t,queryString:r,queryValues:o}){try{return new Promise((l,u)=>{let c=!!e?.match(/full.access|^fa$/i);try{function d(e){n.end(),l(JSON.parse(JSON.stringify(e)))}function p(e){n.end(),l({error:e.message,queryStringGenerated:r,queryValuesGenerated:o,sql:e.sql})}n=c?a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_FULL_ACCESS_USERNAME,password:process.env.DSQL_DB_FULL_ACCESS_PASSWORD,database:t,ssl:i()}}):a({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_READ_ONLY_USERNAME,password:process.env.DSQL_DB_READ_ONLY_PASSWORD,database:t,ssl:i()}}),o&&Array.isArray(o)&&o[0]?n.query(r,o).then(d).catch(p):n.query(r).then(d).catch(p)}catch(e){s.appendFileSync("./.tmp/dbErrorLogs.txt",e.message+"\n"+Date()+"\n\n\n","utf8"),l({error:e.message})}})}catch(e){return{success:!1,error:e.message}}}},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(8732);r(82015);var a=r(20883);function i(e){return(0,s.jsxs)(a.Html,{lang:"en",children:[(0,s.jsxs)(a.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(a.Main,{}),(0,s.jsx)(a.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},28187:e=>{e.exports=require("@moduletrace/datasquirel")},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},72583:e=>{e.exports=require("sanitize-html")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,2414,1137],()=>r(90467));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/create-account.js.nft.json b/dsql-app/.local_dist/server/pages/create-account.js.nft.json index 992809c..3ba7eb5 100644 --- a/dsql-app/.local_dist/server/pages/create-account.js.nft.json +++ b/dsql-app/.local_dist/server/pages/create-account.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/7023.js","../chunks/8682.js","../chunks/2317.js","../chunks/7037.js","../chunks/8374.js","../chunks/5114.js","../chunks/6478.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/datasquirel/package.json","../../../node_modules/lodash/package.json","../../../node_modules/sanitize-html/package.json","../../../node_modules/react-dom/package.json","../../../node_modules/nodemailer/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/@mui/material/Snackbar/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/datasquirel/index.js","../../../node_modules/lodash/lodash.js","../../../node_modules/sanitize-html/index.js","../../../node_modules/nodemailer/lib/nodemailer.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/react-dom/index.js","../../../node_modules/@mui/material/node/Snackbar/index.js","../../../node_modules/@mui/material/node/Paper/index.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/ContentCopy.js","../../../node_modules/datasquirel/functions/hashPassword.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/datasquirel/utils/get.js","../../../node_modules/datasquirel/utils/post.js","../../../node_modules/datasquirel/utils/get-schema.js","../../../node_modules/datasquirel/utils/upload-image.js","../../../node_modules/datasquirel/utils/upload-file.js","../../../node_modules/datasquirel/utils/delete-file.js","../../../node_modules/datasquirel/users/add-user.js","../../../node_modules/datasquirel/users/update-user.js","../../../node_modules/datasquirel/users/login-user.js","../../../node_modules/datasquirel/users/send-email-code.js","../../../node_modules/datasquirel/users/reauth-user.js","../../../node_modules/datasquirel/users/user-auth.js","../../../node_modules/datasquirel/users/logout-user.js","../../../node_modules/datasquirel/users/get-token.js","../../../node_modules/datasquirel/users/get-user.js","../../../node_modules/datasquirel/users/validate-token.js","../../../node_modules/datasquirel/users/social/google-auth.js","../../../node_modules/datasquirel/users/social/github-auth.js","../../../node_modules/datasquirel/utils/functions/sanitizeSql.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useTheme.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../node_modules/@mui/material/node/Paper/Paper.js","../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/nodemailer/lib/mailer/index.js","../../../node_modules/nodemailer/lib/shared/index.js","../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../node_modules/nodemailer/lib/json-transport/index.js","../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../node_modules/nodemailer/lib/fetch/index.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/Grow/index.js","../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/datasquirel/engine/user/one-time-code.html","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/datasquirel/functions/decrypt.js","../../../node_modules/datasquirel/utils/functions/parseCookies.js","../../../node_modules/htmlparser2/package.json","../../../node_modules/htmlparser2/lib/index.js","../../../node_modules/is-plain-object/package.json","../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../node_modules/escape-string-regexp/index.js","../../../node_modules/parse-srcset/package.json","../../../node_modules/parse-srcset/src/parse-srcset.js","../../../node_modules/deepmerge/package.json","../../../node_modules/deepmerge/dist/cjs.js","../../../node_modules/postcss/package.json","../../../node_modules/postcss/lib/postcss.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/datasquirel/functions/encrypt.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/datasquirel/utils/functions/serialize-query.js","../../../node_modules/datasquirel/engine/user/get-user.js","../../../node_modules/datasquirel/engine/user/update-user.js","../../../node_modules/datasquirel/engine/user/add-user.js","../../../node_modules/datasquirel/engine/user/reauth-user.js","../../../node_modules/datasquirel/engine/user/login-user.js","../../../node_modules/datasquirel/engine/user/send-email-code.js","../../../node_modules/datasquirel/engine/query/post.js","../../../node_modules/datasquirel/engine/query/get.js","../../../node_modules/datasquirel/engine/user/social/google-auth.js","../../../node_modules/datasquirel/engine/user/social/github-auth.js","../../../node_modules/escape-string-regexp/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/base/node/index.js","../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/Grow/Grow.js","../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/scheduler/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/htmlparser2/lib/Parser.js","../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../node_modules/postcss/lib/result.js","../../../node_modules/@mui/base/useSnackbar/package.json","../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/postcss/lib/css-syntax-error.js","../../../node_modules/postcss/lib/lazy-result.js","../../../node_modules/postcss/lib/declaration.js","../../../node_modules/postcss/lib/container.js","../../../node_modules/postcss/lib/fromJSON.js","../../../node_modules/postcss/lib/processor.js","../../../node_modules/postcss/lib/stringify.js","../../../node_modules/postcss/lib/document.js","../../../node_modules/postcss/lib/warning.js","../../../node_modules/postcss/lib/comment.js","../../../node_modules/postcss/lib/at-rule.js","../../../node_modules/postcss/lib/input.js","../../../node_modules/postcss/lib/parse.js","../../../node_modules/postcss/lib/list.js","../../../node_modules/postcss/lib/rule.js","../../../node_modules/postcss/lib/root.js","../../../node_modules/postcss/lib/node.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../node_modules/nodemailer/lib/dkim/index.js","../../../node_modules/nodemailer/lib/well-known/index.js","../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/datasquirel/engine/engine/addUsersTableToDb.js","../../../node_modules/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../node_modules/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../node_modules/datasquirel/engine/user/social/utils/githubLogin.js","../../../node_modules/datasquirel/engine/user/social/utils/httpsRequest.js","../../../node_modules/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/material/node/transitions/utils.js","../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../node_modules/@mui/base/node/NoSsr/index.js","../../../node_modules/@mui/base/node/Portal/index.js","../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../node_modules/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../node_modules/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../node_modules/postcss/lib/terminal-highlight.js","../../../node_modules/postcss/lib/symbols.js","../../../node_modules/postcss/lib/map-generator.js","../../../node_modules/postcss/lib/warn-once.js","../../../node_modules/postcss/lib/previous-map.js","../../../node_modules/postcss/lib/no-work-result.js","../../../node_modules/postcss/lib/stringifier.js","../../../node_modules/postcss/lib/parser.js","../../../node_modules/nodemailer/lib/mime-node/index.js","../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../node_modules/nodemailer/lib/well-known/services.json","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/base/node/utils/index.js","../../../node_modules/@mui/base/node/Badge/index.js","../../../node_modules/@mui/base/node/Button/index.js","../../../node_modules/@mui/base/node/FormControl/index.js","../../../node_modules/@mui/base/node/Dropdown/index.js","../../../node_modules/@mui/base/node/Input/index.js","../../../node_modules/@mui/base/node/Menu/index.js","../../../node_modules/@mui/base/node/MenuButton/index.js","../../../node_modules/@mui/base/node/MenuItem/index.js","../../../node_modules/@mui/base/node/Modal/index.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../node_modules/@mui/base/node/Option/index.js","../../../node_modules/@mui/base/node/Popper/index.js","../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../node_modules/@mui/base/node/Select/index.js","../../../node_modules/@mui/base/node/Slider/index.js","../../../node_modules/@mui/base/node/Snackbar/index.js","../../../node_modules/@mui/base/node/Switch/index.js","../../../node_modules/@mui/base/node/TablePagination/index.js","../../../node_modules/@mui/base/node/TabPanel/index.js","../../../node_modules/@mui/base/node/TabsList/index.js","../../../node_modules/@mui/base/node/Tabs/index.js","../../../node_modules/@mui/base/node/Tab/index.js","../../../node_modules/@mui/base/node/Transitions/index.js","../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../node_modules/@mui/base/node/useBadge/index.js","../../../node_modules/@mui/base/node/useButton/index.js","../../../node_modules/@mui/base/node/useDropdown/index.js","../../../node_modules/@mui/base/node/useInput/index.js","../../../node_modules/@mui/base/node/useMenu/index.js","../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../node_modules/@mui/base/node/useOption/index.js","../../../node_modules/@mui/base/node/useSelect/index.js","../../../node_modules/@mui/base/node/useSlider/index.js","../../../node_modules/@mui/base/node/useSwitch/index.js","../../../node_modules/@mui/base/node/useTab/index.js","../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../node_modules/@mui/base/node/useTabs/index.js","../../../node_modules/@mui/base/node/useTabsList/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../node_modules/nodemailer/lib/dkim/sign.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/entities/package.json","../../../node_modules/entities/lib/decode.js","../../../node_modules/domelementtype/package.json","../../../node_modules/domelementtype/lib/index.js","../../../node_modules/domhandler/package.json","../../../node_modules/domhandler/lib/index.js","../../../node_modules/domutils/package.json","../../../node_modules/domutils/lib/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../node_modules/datasquirel/engine/engine/data/presets/users.json","../../../node_modules/datasquirel/engine/engine/utils/parseDbResults.js","../../../node_modules/datasquirel/engine/engine/utils/dbHandler.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/react-transition-group/package.json","../../../node_modules/react-transition-group/cjs/index.js","../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../node_modules/@mui/base/node/Portal/Portal.js","../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../node_modules/postcss/lib/tokenize.js","../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/datasquirel/package-shared/functions/backend/encrypt.js","../../../node_modules/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../node_modules/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../node_modules/datasquirel/package-shared/functions/backend/serverError.js","../../../node_modules/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../node_modules/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../node_modules/picocolors/package.json","../../../node_modules/picocolors/picocolors.js","../../../node_modules/source-map-js/package.json","../../../node_modules/source-map-js/source-map.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../node_modules/@mui/base/node/utils/types.js","../../../node_modules/@mui/base/node/Badge/Badge.js","../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../node_modules/@mui/base/node/Button/Button.js","../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../node_modules/@mui/base/node/Button/Button.types.js","../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../node_modules/@mui/base/node/Input/Input.js","../../../node_modules/@mui/base/node/Input/Input.types.js","../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../node_modules/@mui/base/node/Menu/Menu.js","../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../node_modules/@mui/base/node/Modal/Modal.js","../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../node_modules/@mui/base/node/Option/Option.js","../../../node_modules/@mui/base/node/Option/Option.types.js","../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../node_modules/@mui/base/node/Popper/Popper.js","../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../node_modules/@mui/base/node/Switch/Switch.js","../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../node_modules/@mui/base/node/Select/Select.js","../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../node_modules/@mui/base/node/Select/Select.types.js","../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../node_modules/@mui/base/node/Slider/Slider.js","../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../node_modules/@mui/base/node/Tab/Tab.js","../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../node_modules/@mui/base/node/useButton/useButton.js","../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../node_modules/@mui/base/node/useInput/useInput.js","../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../node_modules/@mui/base/node/useOption/useOption.js","../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../node_modules/@mui/base/node/useTab/useTab.js","../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../node_modules/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../node_modules/entities/lib/decode_codepoint.js","../../../node_modules/domhandler/lib/node.js","../../../node_modules/domutils/lib/stringify.js","../../../node_modules/domutils/lib/traversal.js","../../../node_modules/domutils/lib/manipulation.js","../../../node_modules/domutils/lib/querying.js","../../../node_modules/domutils/lib/legacy.js","../../../node_modules/domutils/lib/helpers.js","../../../node_modules/domutils/lib/feeds.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../node_modules/entities/lib/generated/decode-data-html.js","../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../node_modules/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../node_modules/nodemailer/lib/punycode/index.js","../../../node_modules/nodemailer/lib/qp/index.js","../../../node_modules/nodemailer/lib/base64/index.js","../../../node_modules/nodemailer/lib/addressparser/index.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/datasquirel/ssl/ca-cert.pem","../../../node_modules/nanoid/non-secure/package.json","../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../node_modules/react-transition-group/cjs/Transition.js","../../../node_modules/react-transition-group/cjs/config.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/nanoid/package.json","../../../node_modules/nanoid/non-secure/index.cjs","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/datasquirel/package-shared/functions/backend/decrypt.js","../../../node_modules/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../node_modules/@mui/base/node/useList/ListContext.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/source-map-js/lib/source-map-generator.js","../../../node_modules/source-map-js/lib/source-node.js","../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../node_modules/object-assign/package.json","../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../node_modules/@mui/base/node/useList/index.js","../../../node_modules/@mui/base/node/useTransition/index.js","../../../node_modules/@mui/base/node/useCompound/index.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/dom-serializer/package.json","../../../node_modules/dom-serializer/lib/index.js","../../../node_modules/source-map-js/lib/base64-vlq.js","../../../node_modules/source-map-js/lib/util.js","../../../node_modules/source-map-js/lib/mapping-list.js","../../../node_modules/source-map-js/lib/array-set.js","../../../node_modules/source-map-js/lib/binary-search.js","../../../node_modules/source-map-js/lib/quick-sort.js","../../../node_modules/@floating-ui/react-dom/package.json","../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../node_modules/@popperjs/core/package.json","../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/base/node/useList/useList.js","../../../node_modules/@mui/base/node/useList/useList.types.js","../../../node_modules/@mui/base/node/useList/useListItem.js","../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../node_modules/@mui/base/node/useList/listReducer.js","../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/dom-serializer/lib/foreignNames.js","../../../node_modules/source-map-js/lib/base64.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/dom-helpers/addClass/package.json","../../../node_modules/dom-helpers/cjs/addClass.js","../../../node_modules/dom-helpers/removeClass/package.json","../../../node_modules/dom-helpers/cjs/removeClass.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../node_modules/entities/lib/index.js","../../../node_modules/dom-helpers/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/entities/lib/encode.js","../../../node_modules/entities/lib/escape.js","../../../node_modules/dom-helpers/cjs/hasClass.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@floating-ui/dom/package.json","../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/entities/lib/generated/encode-html.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/@floating-ui/core/package.json","../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@moduletrace/datasquirel/client/auth/github/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/client/auth/google/getAccessToken.js","../../../node_modules/@moduletrace/datasquirel/client/auth/logout.js","../../../node_modules/@moduletrace/datasquirel/client/fetch/index.js","../../../node_modules/@moduletrace/datasquirel/client/index.js","../../../node_modules/@moduletrace/datasquirel/client/media/imageInputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/client/media/imageInputToBase64.js","../../../node_modules/@moduletrace/datasquirel/client/media/inputFileToBase64.js","../../../node_modules/@moduletrace/datasquirel/client/utils/parseClientCookies.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/addUsersTableToDb.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/data/presets/users.json","../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/camelJoinedtoCamelSpace.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/dbHandler.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/defaultFieldsRegexp.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/parseDbResults.js","../../../node_modules/@moduletrace/datasquirel/engine/engine/utils/varDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/engine/query/get.js","../../../node_modules/@moduletrace/datasquirel/engine/query/post.js","../../../node_modules/@moduletrace/datasquirel/engine/query/update-api-schema-from-local-db.js","../../../node_modules/@moduletrace/datasquirel/engine/user/add-user.js","../../../node_modules/@moduletrace/datasquirel/engine/user/get-user.js","../../../node_modules/@moduletrace/datasquirel/engine/user/login-user.js","../../../node_modules/@moduletrace/datasquirel/engine/user/one-time-code.html","../../../node_modules/@moduletrace/datasquirel/engine/user/reauth-user.js","../../../node_modules/@moduletrace/datasquirel/engine/user/send-email-code.js","../../../node_modules/@moduletrace/datasquirel/engine/user/social/github-auth.js","../../../node_modules/@moduletrace/datasquirel/engine/user/social/google-auth.js","../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/githubLogin.js","../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/handleSocialDb.js","../../../node_modules/@moduletrace/datasquirel/engine/user/social/utils/httpsRequest.js","../../../node_modules/@moduletrace/datasquirel/engine/user/update-user.js","../../../node_modules/@moduletrace/datasquirel/functions/decrypt.js","../../../node_modules/@moduletrace/datasquirel/functions/encrypt.js","../../../node_modules/@moduletrace/datasquirel/functions/hashPassword.js","../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-delete-generator.js","../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-generator.js","../../../node_modules/@moduletrace/datasquirel/functions/sql/sql-insert-generator.js","../../../node_modules/@moduletrace/datasquirel/index.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/addDbEntry.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/deleteDbEntry.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/runQuery.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/db/updateDbEntry.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/decrypt.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/defaultFieldsRegexp.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/encrypt.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/fullAccessDbHandler.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/html/sanitizeHtmlOptions.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/parseDbResults.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/serverError.js","../../../node_modules/@moduletrace/datasquirel/package-shared/functions/backend/varReadOnlyDatabaseDbHandler.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/DSQL_USER_DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/global-db/LOCAL_DB_HANDLER.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/backend/grabDbSSL.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/grab-host-names.js","../../../node_modules/@moduletrace/datasquirel/package-shared/utils/trim-sql.js","../../../node_modules/@moduletrace/datasquirel/package.json","../../../node_modules/@moduletrace/datasquirel/users/add-user.js","../../../node_modules/@moduletrace/datasquirel/users/get-token.js","../../../node_modules/@moduletrace/datasquirel/users/get-user.js","../../../node_modules/@moduletrace/datasquirel/users/login-user.js","../../../node_modules/@moduletrace/datasquirel/users/logout-user.js","../../../node_modules/@moduletrace/datasquirel/users/reauth-user.js","../../../node_modules/@moduletrace/datasquirel/users/send-email-code.js","../../../node_modules/@moduletrace/datasquirel/users/social/github-auth.js","../../../node_modules/@moduletrace/datasquirel/users/social/google-auth.js","../../../node_modules/@moduletrace/datasquirel/users/update-user.js","../../../node_modules/@moduletrace/datasquirel/users/user-auth.js","../../../node_modules/@moduletrace/datasquirel/users/validate-token.js","../../../node_modules/@moduletrace/datasquirel/utils/delete-file.js","../../../node_modules/@moduletrace/datasquirel/utils/functions/parseCookies.js","../../../node_modules/@moduletrace/datasquirel/utils/functions/sanitizeSql.js","../../../node_modules/@moduletrace/datasquirel/utils/functions/serialize-query.js","../../../node_modules/@moduletrace/datasquirel/utils/get-schema.js","../../../node_modules/@moduletrace/datasquirel/utils/get.js","../../../node_modules/@moduletrace/datasquirel/utils/post.js","../../../node_modules/@moduletrace/datasquirel/utils/upload-file.js","../../../node_modules/@moduletrace/datasquirel/utils/upload-image.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/deepmerge/dist/cjs.js","../../../node_modules/deepmerge/package.json","../../../node_modules/dom-serializer/lib/foreignNames.js","../../../node_modules/dom-serializer/lib/index.js","../../../node_modules/dom-serializer/package.json","../../../node_modules/domelementtype/lib/index.js","../../../node_modules/domelementtype/package.json","../../../node_modules/domhandler/lib/index.js","../../../node_modules/domhandler/lib/node.js","../../../node_modules/domhandler/package.json","../../../node_modules/domutils/lib/feeds.js","../../../node_modules/domutils/lib/helpers.js","../../../node_modules/domutils/lib/index.js","../../../node_modules/domutils/lib/legacy.js","../../../node_modules/domutils/lib/manipulation.js","../../../node_modules/domutils/lib/querying.js","../../../node_modules/domutils/lib/stringify.js","../../../node_modules/domutils/lib/traversal.js","../../../node_modules/domutils/package.json","../../../node_modules/entities/lib/decode.js","../../../node_modules/entities/lib/decode_codepoint.js","../../../node_modules/entities/lib/encode.js","../../../node_modules/entities/lib/escape.js","../../../node_modules/entities/lib/generated/decode-data-html.js","../../../node_modules/entities/lib/generated/decode-data-xml.js","../../../node_modules/entities/lib/generated/encode-html.js","../../../node_modules/entities/lib/index.js","../../../node_modules/entities/package.json","../../../node_modules/escape-string-regexp/index.js","../../../node_modules/escape-string-regexp/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/htmlparser2/lib/Parser.js","../../../node_modules/htmlparser2/lib/Tokenizer.js","../../../node_modules/htmlparser2/lib/index.js","../../../node_modules/htmlparser2/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/is-plain-object/dist/is-plain-object.js","../../../node_modules/is-plain-object/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/nanoid/non-secure/index.cjs","../../../node_modules/nanoid/non-secure/package.json","../../../node_modules/nanoid/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/nodemailer/lib/addressparser/index.js","../../../node_modules/nodemailer/lib/base64/index.js","../../../node_modules/nodemailer/lib/dkim/index.js","../../../node_modules/nodemailer/lib/dkim/message-parser.js","../../../node_modules/nodemailer/lib/dkim/relaxed-body.js","../../../node_modules/nodemailer/lib/dkim/sign.js","../../../node_modules/nodemailer/lib/fetch/cookies.js","../../../node_modules/nodemailer/lib/fetch/index.js","../../../node_modules/nodemailer/lib/json-transport/index.js","../../../node_modules/nodemailer/lib/mail-composer/index.js","../../../node_modules/nodemailer/lib/mailer/index.js","../../../node_modules/nodemailer/lib/mailer/mail-message.js","../../../node_modules/nodemailer/lib/mime-funcs/index.js","../../../node_modules/nodemailer/lib/mime-funcs/mime-types.js","../../../node_modules/nodemailer/lib/mime-node/index.js","../../../node_modules/nodemailer/lib/mime-node/last-newline.js","../../../node_modules/nodemailer/lib/mime-node/le-unix.js","../../../node_modules/nodemailer/lib/mime-node/le-windows.js","../../../node_modules/nodemailer/lib/nodemailer.js","../../../node_modules/nodemailer/lib/punycode/index.js","../../../node_modules/nodemailer/lib/qp/index.js","../../../node_modules/nodemailer/lib/sendmail-transport/index.js","../../../node_modules/nodemailer/lib/ses-transport/index.js","../../../node_modules/nodemailer/lib/shared/index.js","../../../node_modules/nodemailer/lib/smtp-connection/data-stream.js","../../../node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js","../../../node_modules/nodemailer/lib/smtp-connection/index.js","../../../node_modules/nodemailer/lib/smtp-pool/index.js","../../../node_modules/nodemailer/lib/smtp-pool/pool-resource.js","../../../node_modules/nodemailer/lib/smtp-transport/index.js","../../../node_modules/nodemailer/lib/stream-transport/index.js","../../../node_modules/nodemailer/lib/well-known/index.js","../../../node_modules/nodemailer/lib/well-known/services.json","../../../node_modules/nodemailer/lib/xoauth2/index.js","../../../node_modules/nodemailer/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/parse-srcset/package.json","../../../node_modules/parse-srcset/src/parse-srcset.js","../../../node_modules/picocolors/package.json","../../../node_modules/picocolors/picocolors.js","../../../node_modules/postcss/lib/at-rule.js","../../../node_modules/postcss/lib/comment.js","../../../node_modules/postcss/lib/container.js","../../../node_modules/postcss/lib/css-syntax-error.js","../../../node_modules/postcss/lib/declaration.js","../../../node_modules/postcss/lib/document.js","../../../node_modules/postcss/lib/fromJSON.js","../../../node_modules/postcss/lib/input.js","../../../node_modules/postcss/lib/lazy-result.js","../../../node_modules/postcss/lib/list.js","../../../node_modules/postcss/lib/map-generator.js","../../../node_modules/postcss/lib/no-work-result.js","../../../node_modules/postcss/lib/node.js","../../../node_modules/postcss/lib/parse.js","../../../node_modules/postcss/lib/parser.js","../../../node_modules/postcss/lib/postcss.js","../../../node_modules/postcss/lib/previous-map.js","../../../node_modules/postcss/lib/processor.js","../../../node_modules/postcss/lib/result.js","../../../node_modules/postcss/lib/root.js","../../../node_modules/postcss/lib/rule.js","../../../node_modules/postcss/lib/stringifier.js","../../../node_modules/postcss/lib/stringify.js","../../../node_modules/postcss/lib/symbols.js","../../../node_modules/postcss/lib/terminal-highlight.js","../../../node_modules/postcss/lib/tokenize.js","../../../node_modules/postcss/lib/warn-once.js","../../../node_modules/postcss/lib/warning.js","../../../node_modules/postcss/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/sanitize-html/index.js","../../../node_modules/sanitize-html/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/source-map-js/lib/array-set.js","../../../node_modules/source-map-js/lib/base64-vlq.js","../../../node_modules/source-map-js/lib/base64.js","../../../node_modules/source-map-js/lib/binary-search.js","../../../node_modules/source-map-js/lib/mapping-list.js","../../../node_modules/source-map-js/lib/quick-sort.js","../../../node_modules/source-map-js/lib/source-map-consumer.js","../../../node_modules/source-map-js/lib/source-map-generator.js","../../../node_modules/source-map-js/lib/source-node.js","../../../node_modules/source-map-js/lib/util.js","../../../node_modules/source-map-js/package.json","../../../node_modules/source-map-js/source-map.js","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs.js b/dsql-app/.local_dist/server/pages/docs.js index 1a8cd77..d0adc66 100644 --- a/dsql-app/.local_dist/server/pages/docs.js +++ b/dsql-app/.local_dist/server/pages/docs.js @@ -1,448 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3172; -exports.ids = [3172]; -exports.modules = { - -/***/ 1732: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ Homepage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/GeneralLayout.jsx + 1 modules -var GeneralLayout = __webpack_require__(6217); -// EXTERNAL MODULE: ./components/general/PageHeadTags.jsx -var PageHeadTags = __webpack_require__(4097); -// EXTERNAL MODULE: ./functions/frontend/clientAuthUser.js -var clientAuthUser = __webpack_require__(9922); -// EXTERNAL MODULE: ./components/pages/docs/DocsAside.jsx -var DocsAside = __webpack_require__(6000); -;// CONCATENATED MODULE: ./components/pages/docs/DocsHomeHero.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DocsHomeHero(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "py-14", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "w-full gap-10 justify-between flex-col lg:flex-row relative z-10", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-center lg:items-start max-w-lg text-center lg:text-left", - style: { - minWidth: "45%" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "text-2xl m-0 leading-tight", - children: "Documentation" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-normal", - children: "Learn the ins and outs of datasquirel." - }) - ] - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("img", { - src: "/images/grid.webp", - alt: "Dotted image background", - className: "absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0" - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: external "lucide-react" -var external_lucide_react_ = __webpack_require__(2423); -;// CONCATENATED MODULE: ./components/cards/LinkCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.title - * @param {string} props.description - * @param {string} props.url - */ function LinkCard({ title , description , url }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: url, - className: "card", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col items-start", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "text-2xl font-semibold", - children: title - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "max-w-md text-slate-600", - children: description - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(external_lucide_react_.ChevronDown, { - size: 20 - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/pages/docs/DocsHomeLinks.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function DocsHomeLinks(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "py-14", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(LinkCard, { - title: "Quick Start Guide", - description: "Get Started.", - url: "/docs/quick-start" - }), - /*#__PURE__*/ jsx_runtime_.jsx(LinkCard, { - title: "GUI Reference", - description: "Learn how to complete basic data tasks from your dashboard", - url: "/docs/gui-reference" - }), - /*#__PURE__*/ jsx_runtime_.jsx(LinkCard, { - title: "API Reference", - description: "Interact with your database from a backend server using REST API", - url: "/docs/api-reference" - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./pages/docs/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -// import DB_HANDLER from "@/package-shared/utils/backend/global-db/DB_HANDLER"; -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any[]} props.pages - * @param {any} props.targetPage - */ function Homepage({ pages , targetPage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${targetPage.title} | Datasquirel docs`; - const pageDescription = targetPage.description; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx(PageHeadTags/* default */.Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [user, setUser] = external_react_default().useState(null); - external_react_default().useEffect(()=>{ - (0,clientAuthUser/* default */.Z)({ - setUser - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(GeneralLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "items-stretch w-full gap-0 flex-col-reverse lg:flex-row", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(DocsAside/* default */.Z, { - pages: pages - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("main", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(DocsHomeHero, {}), - /*#__PURE__*/ jsx_runtime_.jsx(DocsHomeLinks, {}) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ query }) { - /** - * Redirect to default page - */ /** @type {any[]} */ // const defaultPage = await DB_HANDLER( - // `SELECT slug FROM docs_pages WHERE level='1' AND page_order = '1'` - // ); - // if (!defaultPage || !defaultPage[0]) { - // return { - // redirect: { - // destination: `/`, - // permanent: false, - // }, - // }; - // } - return { - redirect: { - destination: `/docs/getting-started`, - permanent: false - } - }; -/** - * Data fetching - */ // const pages = await dbHandler(`SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC`); -// const targetPage = await dbHandler(`SELECT title, slug, description, content FROM docs_pages WHERE level='1' AND page_order = '1'`); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -/** - * Server props return - * - * @description Return data fetched on the server side - */ // return { -// props: { -// user: null, -// pages, -// targetPage: targetPage[0] ? targetPage[0] : {}, -// }, -// }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,9360,6217,4097,9922,6000], () => (__webpack_exec__(1732))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7797,e.ids=[636,7797],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},66360:(e,t,s)=>{s.r(t),s.d(t,{config:()=>A,default:()=>q,getServerSideProps:()=>v,getStaticPaths:()=>b,getStaticProps:()=>S,reportWebVitals:()=>w,routeModule:()=>I,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>N,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{default:()=>y,getServerSideProps:()=>P});var i=s(63865),a=s(9455),l=s(30671),n=s(49407),o=s(68268),u=s(8732),c=s(82015),m=s.n(c),p=s(71457),d=s(87472);s(6845);var x=s(91479);function g(e){return(0,u.jsxs)("section",{className:"py-14",children:[(0,u.jsx)("div",{className:"w-full gap-10 justify-between flex-col lg:flex-row relative z-10",children:(0,u.jsxs)("div",{className:"flex-col items-center lg:items-start max-w-lg text-center lg:text-left",style:{minWidth:"45%"},children:[(0,u.jsx)("h1",{className:"text-2xl m-0 leading-tight",children:"Documentation"}),(0,u.jsx)("span",{className:"font-normal",children:"Learn the ins and outs of datasquirel."})]})}),(0,u.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-5 z-0"})]})}var f=s(58526);function h({title:e,description:t,url:s}){return(0,u.jsxs)("a",{href:s,className:"card",children:[(0,u.jsxs)("div",{className:"flex-col items-start",children:[(0,u.jsx)("span",{className:"text-2xl font-semibold",children:e}),(0,u.jsx)("span",{className:"max-w-md text-slate-600",children:t})]}),(0,u.jsx)(f.A,{size:20})]})}function j(e){return(0,u.jsx)("section",{className:"py-14",children:(0,u.jsxs)("div",{className:"grid grid-cols-1 sl:grid-cols-2 gap-4 w-full items-stretch",children:[(0,u.jsx)(h,{title:"Quick Start Guide",description:"Get Started.",url:"/docs/quick-start"}),(0,u.jsx)(h,{title:"GUI Reference",description:"Learn how to complete basic data tasks from your dashboard",url:"/docs/gui-reference"}),(0,u.jsx)(h,{title:"API Reference",description:"Interact with your database from a backend server using REST API",url:"/docs/api-reference"})]})})}function y({pages:e,targetPage:t}){let s=`${t.title} | Datasquirel docs`,r=t.description,i=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("title",{children:s}),(0,u.jsx)("meta",{name:"description",content:r}),(0,u.jsx)(d.A,{pageTitle:s,pageDescription:r,pagePathname:"/"})]}),[a,l]=m().useState(null);return(0,u.jsx)(p.A,{head:i,user:a,children:(0,u.jsxs)("div",{className:"items-stretch w-full gap-0 flex-col-reverse lg:flex-row",children:[(0,u.jsx)(x.A,{pages:e}),(0,u.jsxs)("main",{children:[(0,u.jsx)(g,{}),(0,u.jsx)(j,{})]})]})})}async function P({query:e}){return{redirect:{destination:"/docs/getting-started",permanent:!1}}}let q=(0,l.M)(r,"default"),S=(0,l.M)(r,"getStaticProps"),b=(0,l.M)(r,"getStaticPaths"),v=(0,l.M)(r,"getServerSideProps"),A=(0,l.M)(r,"config"),w=(0,l.M)(r,"reportWebVitals"),M=(0,l.M)(r,"unstable_getStaticProps"),N=(0,l.M)(r,"unstable_getStaticPaths"),_=(0,l.M)(r,"unstable_getStaticParams"),E=(0,l.M)(r,"unstable_getServerProps"),k=(0,l.M)(r,"unstable_getServerSideProps"),I=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/docs",pathname:"/docs",bundlePath:"",filename:""},components:{App:o.default,Document:n.default},userland:r})},91479:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732);function i({pages:e}){if(!e||!e[0])return null;let t=e?.filter(e=>1==e.level);return(0,r.jsxs)("aside",{className:"w-full lg:w-80 p-10 bg-slate-100 dark:bg-slate-800 sticky top-0 overflow-y-auto max-h-max lg:max-h-screen transition-all",children:[(0,r.jsx)("span",{className:"text-2xl m-0 mb-4 text-left font-semibold",children:"Docs"}),(0,r.jsx)("ul",{className:"pl-4 gap-4 flex flex-col items-start",children:function t(s,i){return s.map((s,a)=>{let l=`${i}/${s.slug}`,n=e.filter(e=>2==e.level&&e.parent_id==s.id);return(0,r.jsxs)("li",{children:[(0,r.jsx)("a",{href:l,className:s?.level==1?"font-semibold":"text-slate-600",children:s.title}),n&&n[0]&&(0,r.jsx)("ul",{className:"pl-4 gap-2 flex flex-col items-start text-sm mt-2",children:t(n,l)})]},a)})}(t,"/docs")})]})}s(82015)},6845:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(63715);function i({setUser:e}){let t=localStorage.getItem("user");if(t)try{e(JSON.parse(t));return}catch(t){e({});return}(0,r.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(t=>{let s=t.user?t.user:{};e(s),localStorage.setItem("user",JSON.stringify(s))}).catch(e=>{console.log(e)})}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var i=s(20883);function a(e){return(0,r.jsxs)(i.Html,{lang:"en",children:[(0,r.jsxs)(i.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(i.Main,{}),(0,r.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268],()=>s(66360));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs.js.nft.json b/dsql-app/.local_dist/server/pages/docs.js.nft.json index eeda347..795d1be 100644 --- a/dsql-app/.local_dist/server/pages/docs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/6000.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page].js b/dsql-app/.local_dist/server/pages/docs/[page].js index 3c431eb..0422b8a 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page].js +++ b/dsql-app/.local_dist/server/pages/docs/[page].js @@ -1,276 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3749; -exports.ids = [3749]; -exports.modules = { - -/***/ 203: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Homepage), -/* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths), -/* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6217); -/* harmony import */ var _components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4097); -/* harmony import */ var _functions_frontend_clientAuthUser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9922); -/* harmony import */ var _components_pages_docs_DocsAside__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6000); -/* harmony import */ var _components_pages_docs_DocsGenereicHero__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9350); -/* harmony import */ var _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1273); -/* harmony import */ var _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any[]} props.pages - * @param {any} props.targetPage - */ function Homepage({ pages , targetPage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ if (true) { - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - window.location.href = "https://datasquirel.com/docs/getting-started"; - }, []); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), {}); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${targetPage.title} | Datasquirel docs`; - const pageDescription = targetPage.description; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [user, setUser] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_clientAuthUser__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({ - setUser - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "items-stretch w-full gap-0 flex-col-reverse lg:flex-row", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_pages_docs_DocsAside__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - pages: pages - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("main", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_pages_docs_DocsGenereicHero__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - title: targetPage.title, - description: targetPage.description - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "RTE-DOCS pl-4 sm:pl-10 pt-4 pb-20 pr-4", - dangerouslySetInnerHTML: { - __html: targetPage.content - } - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Server Side Props or Static Props - * @type {import("next").GetStaticProps} - */ async function getStaticProps({ params }) { - /** - * User Auth - * - * @description User Auth - */ const pages = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC`); - /** @type {any[]} */ // @ts-ignore - const targetPage = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT title, slug, description, content FROM docs_pages WHERE slug = ?`, [ - params?.page - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: null, - pages, - targetPage: targetPage[0] ? targetPage[0] : {} - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** - * - * Static Props - * @type {import("next").GetStaticPaths} - */ async function getStaticPaths() { - try { - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {any[]} */ // @ts-ignore - const entries = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT id, title, slug, level, parent_id FROM docs_pages WHERE level = 1`); - const paths = entries.map((entry)=>{ - return { - params: { - page: entry.slug - } - }; - }); - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - paths: paths, - fallback: false - }; - } catch (/** @type {any} */ error) { - /** - * Error Response - * - * @description Return data fetched on the server side - */ console.log("Error =>", error.message); - return { - paths: [], - fallback: false - }; - } -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,9360,6217,4097,7023,9922,6000,2896], () => (__webpack_exec__(203))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5151,e.ids=[636,5151],e.modules={46692:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>S,getServerSideProps:()=>M,getStaticPaths:()=>f,getStaticProps:()=>P,reportWebVitals:()=>v,routeModule:()=>R,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>h,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>y});var s={};t.r(s),t.d(s,{default:()=>x,getStaticPaths:()=>q,getStaticProps:()=>g});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732),n=t(82015),m=t.n(n);t(71457),t(87472),t(6845),t(91479),t(84895);var c=t(69436),d=t.n(c);function x({pages:e,targetPage:r}){return(0,l.jsx)(m().Fragment,{})}async function g({params:e}){let r=await d()("SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),t=await d()("SELECT title, slug, description, content FROM docs_pages WHERE slug = ?",[e?.page]);return{props:{user:null,pages:r,targetPage:t[0]?t[0]:{}}}}async function q(){try{return{paths:(await d()("SELECT id, title, slug, level, parent_id FROM docs_pages WHERE level = 1")).map(e=>({params:{page:e.slug}})),fallback:!1}}catch(e){return console.log("Error =>",e.message),{paths:[],fallback:!1}}}let S=(0,o.M)(s,"default"),P=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),M=(0,o.M)(s,"getServerSideProps"),b=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),y=(0,o.M)(s,"unstable_getStaticProps"),E=(0,o.M)(s,"unstable_getStaticPaths"),h=(0,o.M)(s,"unstable_getStaticParams"),_=(0,o.M)(s,"unstable_getServerProps"),C=(0,o.M)(s,"unstable_getServerSideProps"),R=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/docs/[page]",pathname:"/docs/[page]",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,5674],()=>t(46692));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json b/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json index 2c3b8ea..79cb907 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs/[page].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/5449.js","../../chunks/913.js","../../chunks/9360.js","../../chunks/6217.js","../../chunks/4097.js","../../chunks/7023.js","../../chunks/9922.js","../../chunks/6000.js","../../chunks/2896.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/mysql/index.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js index 04338c7..494553a 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js @@ -1,303 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4656; -exports.ids = [4656]; -exports.modules = { - -/***/ 629: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Homepage), -/* harmony export */ "getStaticPaths": () => (/* binding */ getStaticPaths), -/* harmony export */ "getStaticProps": () => (/* binding */ getStaticProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6217); -/* harmony import */ var _components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4097); -/* harmony import */ var _functions_frontend_clientAuthUser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(9922); -/* harmony import */ var _components_pages_docs_DocsAside__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(6000); -/* harmony import */ var _components_pages_docs_DocsGenereicHero__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9350); -/* harmony import */ var _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(1273); -/* harmony import */ var _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any[]} props.pages - * @param {any} props.targetPage - */ function Homepage({ pages , targetPage }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ if (true) { - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - window.location.href = "https://datasquirel.com/docs/getting-started"; - }, []); - return null; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = `${targetPage.title} | Datasquirel docs`; - const pageDescription = targetPage.description; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [user, setUser] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - (0,_functions_frontend_clientAuthUser__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)({ - setUser - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "items-stretch w-full gap-0 flex-col-reverse lg:flex-row", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_pages_docs_DocsAside__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - pages: pages - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("main", { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_pages_docs_DocsGenereicHero__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - title: targetPage.title, - description: targetPage.description - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "RTE-DOCS pl-4 sm:pl-10 pt-4 pb-20 pr-4", - dangerouslySetInnerHTML: { - __html: targetPage.content - } - }) - ] - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Server Side Props or Static Props - * @type {import("next").GetStaticProps} - */ async function getStaticProps({ params }) { - /** - * Data Fetching - * - * @description Data Fetching - */ // const page = params.page; - const subPage = params?.["sub-page"]; - /** @type {any[] | null} */ // @ts-ignore - const pages = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC`); - const targetRootPage = pages?.filter((page)=>page.slug === params?.page && page.level == 1); - if (!targetRootPage) { - return { - redirect: { - destination: "/docs", - permanent: false - } - }; - } - /** @type {any[] | null} */ // @ts-ignore - const targetPage = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?`, [ - subPage, - 2, - targetRootPage[0]?.id - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: null, - pages, - targetPage: targetPage?.[0] ? targetPage[0] : {} - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** - * - * Static Props - * @type {import("next").GetStaticPaths} - */ async function getStaticPaths() { - try { - /** - * Page/Site Data Data Fetching - */ /** @type {any[] | null} */ // @ts-ignore - const entries = await _package_shared_functions_backend_dbHandler__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT id, title, slug, level, parent_id FROM docs_pages`); - const subEntries = entries?.filter((entry)=>parseInt(entry?.level) == 2); - /** @type {any[]} */ let paths = []; - const rootEntries = entries?.filter((entry)=>entry?.level == 1); - if (!rootEntries?.[0]) { - return { - paths: [], - fallback: false - }; - } - rootEntries.forEach((entry)=>{ - const rootSubEntries = subEntries?.filter((subEntry)=>subEntry.parent_id == entry?.id); - rootSubEntries?.forEach((rootSubEntry)=>{ - paths.push({ - params: { - page: entry.slug, - "sub-page": rootSubEntry.slug - } - }); - }); - }); - // console.log(JSON.stringify(paths, null, 4)); - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - paths: paths, - fallback: false - }; - } catch (/** @type {any} */ error) { - /** - * Error Response - * - * @description Return data fetched on the server side - */ console.log("Error =>", error.message); - return { - paths: [], - fallback: false - }; - } -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,9360,6217,4097,7023,9922,6000,2896], () => (__webpack_exec__(629))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=1980,e.ids=[636,1980],e.modules={14126:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>g,getServerSideProps:()=>S,getStaticPaths:()=>q,getStaticProps:()=>x,reportWebVitals:()=>P,routeModule:()=>E,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>y,unstable_getStaticParams:()=>h,unstable_getStaticPaths:()=>v,unstable_getStaticProps:()=>b});var s={};t.r(s),t.d(s,{default:()=>c,getStaticPaths:()=>d,getStaticProps:()=>m});var i=t(63865),u=t(9455),a=t(30671),o=t(49407),l=t(68268);t(8732),t(82015),t(71457),t(87472),t(6845),t(91479),t(84895);var p=t(69436),n=t.n(p);function c({pages:e,targetPage:r}){return null}async function m({params:e}){let r=e?.["sub-page"],t=await n()("SELECT id, title, slug, level, parent_id FROM docs_pages ORDER BY page_order ASC"),s=t?.filter(r=>r.slug===e?.page&&1==r.level);if(!s)return{redirect:{destination:"/docs",permanent:!1}};let i=await n()("SELECT title, slug, description, content FROM docs_pages WHERE slug = ? AND level = ? AND parent_id = ?",[r,2,s[0]?.id]);return{props:{user:null,pages:t,targetPage:i?.[0]?i[0]:{}}}}async function d(){try{let e=await n()("SELECT id, title, slug, level, parent_id FROM docs_pages"),r=e?.filter(e=>2==parseInt(e?.level)),t=[],s=e?.filter(e=>e?.level==1);if(!s?.[0])return{paths:[],fallback:!1};return s.forEach(e=>{let s=r?.filter(r=>r.parent_id==e?.id);s?.forEach(r=>{t.push({params:{page:e.slug,"sub-page":r.slug}})})}),{paths:t,fallback:!1}}catch(e){return console.log("Error =>",e.message),{paths:[],fallback:!1}}}let g=(0,a.M)(s,"default"),x=(0,a.M)(s,"getStaticProps"),q=(0,a.M)(s,"getStaticPaths"),S=(0,a.M)(s,"getServerSideProps"),f=(0,a.M)(s,"config"),P=(0,a.M)(s,"reportWebVitals"),b=(0,a.M)(s,"unstable_getStaticProps"),v=(0,a.M)(s,"unstable_getStaticPaths"),h=(0,a.M)(s,"unstable_getStaticParams"),M=(0,a.M)(s,"unstable_getServerProps"),y=(0,a.M)(s,"unstable_getServerSideProps"),E=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/docs/[page]/[sub-page]",pathname:"/docs/[page]/[sub-page]",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,5674],()=>t(14126));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json index c61d4a5..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json +++ b/dsql-app/.local_dist/server/pages/docs/[page]/[sub-page].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/913.js","../../../chunks/9360.js","../../../chunks/6217.js","../../../chunks/4097.js","../../../chunks/7023.js","../../../chunks/9922.js","../../../chunks/6000.js","../../../chunks/2896.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference.html b/dsql-app/.local_dist/server/pages/docs/api-reference.html index ad5097e..68b573c 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-3602862f9a9542f8.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"API Reference","slug":"api-reference","description":"\u003cp\u003eAccess data from external sources. Datasquirel is platform-agnostic so all you need is a HTTP request with the right credentials. Our NPM module abstracts this aspect for ease of use when using node.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eAll data stored in your databases can be accessed through our integrated API. There are two sets of API keys, each with different scope. If you want to just fetch data use the \u003cstrong\u003eRead Only \u003c/strong\u003eAPI key. If you want to have full access to every aspect of your account, use the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. Learn how to add API keys \u003ca href=\"docs/quick-start\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eGetting started\u003c/h2\u003e\u003cp\u003eAfter you have your API keys, you can start making calls using our API integration. We have an NPM module for node projects, but you only need a HTTPS client to make the calls.\u003c/p\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eFetching Data using the \u003cem\u003eget\u003c/em\u003e method\u003c/h2\u003e\u003cp\u003eThe get method only retrieves data. It cannot be used to write or update data. It was created to be the fastest way to access your data, that explains the key length. You can get data using the npm module or via any HTTP request.\u003c/p\u003e\u003cul\u003e\u003cli\u003eUsing CURL:\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003eCURL \n https://datasquirel.com/api/query/get?db=db_name\u0026amp;query=SELECT+*+FROM+table_name \n-H \n \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eUsing node module\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe response from this method returns a JSON payload with two fields: \u003cstrong\u003esuccess\u003c/strong\u003e: which could be either \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e or \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e, and \u003cstrong\u003epayload: \u003c/strong\u003ewhich is an array of values when the operation is successfull, or anything from \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e to a string to an object with an error message. This is a sample of a successful response object:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e[\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eid\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etitle\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"Hello World\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eslug\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"hello-world\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ebody\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"This is a test blog post.\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e]\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eA failed response could return any of three results:\u003c/p\u003e\u003cul\u003e\u003cli\u003eA \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e payload.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token keyword\"\u003enull\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cbr /\u003e\u003c/li\u003e\u003cli\u003eAn error string payload\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"ERROR: no such table as 'blog_posts'\"\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn object payload containing an error field\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e \u003cspan class=\"token literal-property property\"\u003eerror\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"MYSQL ERROR: syntax error in your sql\"\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIn each case, the success key refurns a value of \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e , meaning the query failed.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eUsing the \u003cem\u003epost\u003c/em\u003e method\u003c/h2\u003e\u003cp\u003eThe post method contains the full spectrum of CRUD operations. And it works \u003cstrong\u003e*only \u003c/strong\u003ewith the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. The read only API key will not work for post methods.\u003c/p\u003e\u003cul\u003e\u003cli\u003eUsing CURL\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003eCURL --json\n '{ \n \"database\": \"social_network\",\n \"query\": \"UPDATE users SET name = 'John' WHERE id = 1\"\n }'\n https://datasquirel.com/api/query/post \n-H \n \"Authorization:FULL_ACCESS_API_KEY\"`\u003c/pre\u003e\u003cbr /\u003e\u003c/li\u003e\u003cli\u003eUsing our npm module\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"UPDATE users SET name = 'John' WHERE id = 1\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe process yeilds simalar results, but with a slight difference: for operations like \u003cstrong\u003einsert \u003c/strong\u003eand \u003cstrong\u003eupdate\u003c/strong\u003e, the \u003ccode style=\"display:inline\"\u003esuccess\u003c/code\u003e field yeilds \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e while the \u003ccode style=\"display:inline\"\u003epayload\u003c/code\u003e field yeilds an object containing fields like \u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eserverStatus\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e37\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaffectedRows\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThe post method can also take an object as the \u003ccode style=\"display:inline\"\u003equery\u003c/code\u003e instead of a string. Example:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaction\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"update\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etable\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"users\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edata\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ename\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"John\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierColumnName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"id\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierValue\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThis yields the exact same result as before. Learn more about the post method \u003ca href=\"api-reference/post\"\u003ehere\u003c/a\u003e.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"api-reference"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-37b36feefe045092.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"API Reference","slug":"api-reference","description":"\u003cp\u003eAccess data from external sources. Datasquirel is platform-agnostic so all you need is a HTTP request with the right credentials. Our NPM module abstracts this aspect for ease of use when using node.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eAll data stored in your databases can be accessed through our integrated API. There are two sets of API keys, each with different scope. If you want to just fetch data use the \u003cstrong\u003eRead Only \u003c/strong\u003eAPI key. If you want to have full access to every aspect of your account, use the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. Learn how to add API keys \u003ca href=\"docs/quick-start\"\u003ehere\u003c/a\u003e.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eGetting started\u003c/h2\u003e\u003cp\u003eAfter you have your API keys, you can start making calls using our API integration. We have an NPM module for node projects, but you only need a HTTPS client to make the calls.\u003c/p\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eFetching Data using the \u003cem\u003eget\u003c/em\u003e method\u003c/h2\u003e\u003cp\u003eThe get method only retrieves data. It cannot be used to write or update data. It was created to be the fastest way to access your data, that explains the key length. You can get data using the npm module or via any HTTP request.\u003c/p\u003e\u003cul\u003e\u003cli\u003eUsing CURL:\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003eCURL \n https://datasquirel.com/api/query/get?db=db_name\u0026amp;query=SELECT+*+FROM+table_name \n-H \n \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eUsing node module\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe response from this method returns a JSON payload with two fields: \u003cstrong\u003esuccess\u003c/strong\u003e: which could be either \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e or \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e, and \u003cstrong\u003epayload: \u003c/strong\u003ewhich is an array of values when the operation is successfull, or anything from \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e to a string to an object with an error message. This is a sample of a successful response object:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e[\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eid\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etitle\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"Hello World\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eslug\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"hello-world\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ebody\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"This is a test blog post.\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e]\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eA failed response could return any of three results:\u003c/p\u003e\u003cul\u003e\u003cli\u003eA \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e payload.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token keyword\"\u003enull\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cbr /\u003e\u003c/li\u003e\u003cli\u003eAn error string payload\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"ERROR: no such table as 'blog_posts'\"\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn object payload containing an error field\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e \u003cspan class=\"token literal-property property\"\u003eerror\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"MYSQL ERROR: syntax error in your sql\"\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIn each case, the success key refurns a value of \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e , meaning the query failed.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eUsing the \u003cem\u003epost\u003c/em\u003e method\u003c/h2\u003e\u003cp\u003eThe post method contains the full spectrum of CRUD operations. And it works \u003cstrong\u003e*only \u003c/strong\u003ewith the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. The read only API key will not work for post methods.\u003c/p\u003e\u003cul\u003e\u003cli\u003eUsing CURL\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003eCURL --json\n '{ \n \"database\": \"social_network\",\n \"query\": \"UPDATE users SET name = 'John' WHERE id = 1\"\n }'\n https://datasquirel.com/api/query/post \n-H \n \"Authorization:FULL_ACCESS_API_KEY\"`\u003c/pre\u003e\u003cbr /\u003e\u003c/li\u003e\u003cli\u003eUsing our npm module\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"UPDATE users SET name = 'John' WHERE id = 1\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eThe process yeilds simalar results, but with a slight difference: for operations like \u003cstrong\u003einsert \u003c/strong\u003eand \u003cstrong\u003eupdate\u003c/strong\u003e, the \u003ccode style=\"display:inline\"\u003esuccess\u003c/code\u003e field yeilds \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e while the \u003ccode style=\"display:inline\"\u003epayload\u003c/code\u003e field yeilds an object containing fields like \u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eserverStatus\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e37\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaffectedRows\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThe post method can also take an object as the \u003ccode style=\"display:inline\"\u003equery\u003c/code\u003e instead of a string. Example:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaction\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"update\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etable\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"users\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edata\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ename\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"John\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierColumnName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"id\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierValue\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThis yields the exact same result as before. Learn more about the post method \u003ca href=\"api-reference/post\"\u003ehere\u003c/a\u003e.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"api-reference"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/get.html b/dsql-app/.local_dist/server/pages/docs/api-reference/get.html index 8e5b4d8..4463c49 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference/get.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/get.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Get","slug":"get","description":"\u003cp\u003eFetch data from your database quickly and securely.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eThe get method only retrieves data. It cannot be used to write or update data. It was created to be the fastest way to access your data, that explains the key length. You can get data using the npm module or via any HTTP request.\u003c/p\u003e\u003ch3\u003eUsing CURL\u003c/h3\u003e\u003cpre class=\"language-markup\"\u003eCURL \n https://datasquirel.com/api/query/get?db=db_name\u0026amp;query=SELECT+*+FROM+table_name \n-H \n \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json\u003c/pre\u003e\u003ch3\u003e\u003cbr /\u003e\u003c/h3\u003e\u003ch3\u003eUsing node module\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eThe response\u003c/h2\u003e\u003cp\u003eThe response from this method returns a JSON payload with two fields: \u003cstrong\u003esuccess\u003c/strong\u003e: which could be either \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e or \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e, and \u003cstrong\u003epayload: \u003c/strong\u003ewhich is an array of values when the operation is successfull, or anything from \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e to a string to an object with an error message. This is a sample of a successful response object:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e[\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eid\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etitle\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"Hello World\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eslug\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"hello-world\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ebody\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"This is a test blog post.\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e]\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eA failed response could return any of three results:\u003c/p\u003e\u003cul\u003e\u003cli\u003eA \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e payload.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token keyword\"\u003enull\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn error string payload\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"ERROR: no such table as 'blog_posts'\"\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn object payload containing an error field\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e \u003cspan class=\"token literal-property property\"\u003eerror\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"MYSQL ERROR: syntax error in your sql\"\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIn each case, the success key refurns a value of \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e , meaning the query failed.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"api-reference","sub-page":"get"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Get","slug":"get","description":"\u003cp\u003eFetch data from your database quickly and securely.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eThe get method only retrieves data. It cannot be used to write or update data. It was created to be the fastest way to access your data, that explains the key length. You can get data using the npm module or via any HTTP request.\u003c/p\u003e\u003ch3\u003eUsing CURL\u003c/h3\u003e\u003cpre class=\"language-markup\"\u003eCURL \n https://datasquirel.com/api/query/get?db=db_name\u0026amp;query=SELECT+*+FROM+table_name \n-H \n \"Authorization:READ_ONLY_API_KEY\";Content-Type:application/json\u003c/pre\u003e\u003ch3\u003e\u003cbr /\u003e\u003c/h3\u003e\u003ch3\u003eUsing node module\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eThe response\u003c/h2\u003e\u003cp\u003eThe response from this method returns a JSON payload with two fields: \u003cstrong\u003esuccess\u003c/strong\u003e: which could be either \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e or \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e, and \u003cstrong\u003epayload: \u003c/strong\u003ewhich is an array of values when the operation is successfull, or anything from \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e to a string to an object with an error message. This is a sample of a successful response object:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e[\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eid\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etitle\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"Hello World\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eslug\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"hello-world\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ebody\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"This is a test blog post.\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e]\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eA failed response could return any of three results:\u003c/p\u003e\u003cul\u003e\u003cli\u003eA \u003ccode style=\"display:inline\"\u003enull\u003c/code\u003e payload.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token keyword\"\u003enull\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn error string payload\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"ERROR: no such table as 'blog_posts'\"\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eAn object payload containing an error field\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003efalse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e \u003cspan class=\"token literal-property property\"\u003eerror\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"MYSQL ERROR: syntax error in your sql\"\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eIn each case, the success key refurns a value of \u003ccode style=\"display:inline\"\u003efalse\u003c/code\u003e , meaning the query failed.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"api-reference","sub-page":"get"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/api-reference/post.html b/dsql-app/.local_dist/server/pages/docs/api-reference/post.html index fff9a91..5f99dda 100644 --- a/dsql-app/.local_dist/server/pages/docs/api-reference/post.html +++ b/dsql-app/.local_dist/server/pages/docs/api-reference/post.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Post","slug":"post","description":"\u003cp\u003eFull CRUD operations on your database using our feature-rich API integration.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eThe \u003ccode style=\"display:inline\"\u003epost\u003c/code\u003e  method expands on the \u003ccode style=\"display:inline\"\u003eget\u003c/code\u003e method. It adds the ability to insert, update, and delete data, as well as add and delete images from your static files directories.\u003c/p\u003e\u003cp\u003eThe post method contains the full spectrum of CRUD operations. And it works \u003cstrong\u003e*only \u003c/strong\u003ewith the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. The read only API key will not work for post methods.\u003c/p\u003e\u003ch3\u003eUsing CURL\u003cbr /\u003e\u003c/h3\u003e\u003cpre class=\"language-markup\"\u003eCURL --json\n '{ \n \"database\": \"social_network\",\n \"query\": \"UPDATE users SET name = 'John' WHERE id = 1\"\n }'\n https://datasquirel.com/api/query/post \n-H \n \"Authorization:FULL_ACCESS_API_KEY\"`\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003eUsing our npm module\u003cbr /\u003e\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"UPDATE users SET name = 'John' WHERE id = 1\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eThe Response\u003c/h2\u003e\u003cp\u003eThe process yeilds simalar results, but with a slight difference: for operations like \u003cstrong\u003einsert \u003c/strong\u003eand \u003cstrong\u003eupdate\u003c/strong\u003e, the \u003ccode style=\"display:inline\"\u003esuccess\u003c/code\u003e field yeilds \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e while the \u003ccode style=\"display:inline\"\u003epayload\u003c/code\u003e field yeilds an object containing fields like \u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eserverStatus\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e37\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaffectedRows\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003ePost with object \u003cem\u003equery\u003c/em\u003e\u003c/h2\u003e\u003cp\u003eThe post method can also take an object as the \u003ccode style=\"display:inline\"\u003equery\u003c/code\u003e instead of a string. Example:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaction\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"update\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etable\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"users\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edata\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ename\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"John\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierColumnName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"id\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierValue\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThis yields the exact same result as before.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eAdding media\u003c/h2\u003e\u003cp\u003eIn addition to the full CRUD operations the \u003ccode style=\"display:inline\"\u003epost\u003c/code\u003e method offers, you can also add media to your static files directory. This uses the same post method, but with sligtly different parameters. Also, the media you send \u003cstrong\u003e*must \u003c/strong\u003ebe in \u003ccode style=\"display:inline\"\u003ebase64\u003c/code\u003e format. You can use our npm client module to convert images and documents to \u003ccode style=\"display:inline\"\u003ebase64\u003c/code\u003e format.\u003c/p\u003e\u003ch3\u003eUsing our node module\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003emedia\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003euploadImage\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_FULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eimageData\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"--------- LONG BASE64 STRING ---------\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eimageName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"sunflower\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003efolder\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"flowers\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003emimeType\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"jpeg\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ethumbnailSize\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e300\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"api-reference","sub-page":"post"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Post","slug":"post","description":"\u003cp\u003eFull CRUD operations on your database using our feature-rich API integration.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eThe \u003ccode style=\"display:inline\"\u003epost\u003c/code\u003e  method expands on the \u003ccode style=\"display:inline\"\u003eget\u003c/code\u003e method. It adds the ability to insert, update, and delete data, as well as add and delete images from your static files directories.\u003c/p\u003e\u003cp\u003eThe post method contains the full spectrum of CRUD operations. And it works \u003cstrong\u003e*only \u003c/strong\u003ewith the \u003cstrong\u003eFull Access \u003c/strong\u003eAPI key. The read only API key will not work for post methods.\u003c/p\u003e\u003ch3\u003eUsing CURL\u003cbr /\u003e\u003c/h3\u003e\u003cpre class=\"language-markup\"\u003eCURL --json\n '{ \n \"database\": \"social_network\",\n \"query\": \"UPDATE users SET name = 'John' WHERE id = 1\"\n }'\n https://datasquirel.com/api/query/post \n-H \n \"Authorization:FULL_ACCESS_API_KEY\"`\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003eUsing our npm module\u003cbr /\u003e\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"UPDATE users SET name = 'John' WHERE id = 1\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eThe Response\u003c/h2\u003e\u003cp\u003eThe process yeilds simalar results, but with a slight difference: for operations like \u003cstrong\u003einsert \u003c/strong\u003eand \u003cstrong\u003eupdate\u003c/strong\u003e, the \u003ccode style=\"display:inline\"\u003esuccess\u003c/code\u003e field yeilds \u003ccode style=\"display:inline\"\u003etrue\u003c/code\u003e while the \u003ccode style=\"display:inline\"\u003epayload\u003c/code\u003e field yeilds an object containing fields like \u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003esuccess\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token boolean\"\u003etrue\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eserverStatus\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e37\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaffectedRows\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\n\u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003c/pre\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003ePost with object \u003cem\u003equery\u003c/em\u003e\u003c/h2\u003e\u003cp\u003eThe post method can also take an object as the \u003ccode style=\"display:inline\"\u003equery\u003c/code\u003e instead of a string. Example:\u003c/p\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003epost\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edatabase\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"social_network\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eFULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eaction\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"update\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003etable\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"users\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edata\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ename\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"John\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierColumnName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"id\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eidentifierValue\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e1\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003cp\u003eThis yields the exact same result as before.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eAdding media\u003c/h2\u003e\u003cp\u003eIn addition to the full CRUD operations the \u003ccode style=\"display:inline\"\u003epost\u003c/code\u003e method offers, you can also add media to your static files directory. This uses the same post method, but with sligtly different parameters. Also, the media you send \u003cstrong\u003e*must \u003c/strong\u003ebe in \u003ccode style=\"display:inline\"\u003ebase64\u003c/code\u003e format. You can use our npm client module to convert images and documents to \u003ccode style=\"display:inline\"\u003ebase64\u003c/code\u003e format.\u003c/p\u003e\u003ch3\u003eUsing our node module\u003c/h3\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003emedia\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003euploadImage\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_FULL_ACCESS_API_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003epayload\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eimageData\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"--------- LONG BASE64 STRING ---------\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003eimageName\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"sunflower\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003efolder\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"flowers\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003emimeType\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"jpeg\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ethumbnailSize\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token number\"\u003e300\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e \u003cspan class=\"token comment\"\u003e// Optional\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"api-reference","sub-page":"post"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference.html b/dsql-app/.local_dist/server/pages/docs/database-reference.html index a934bf2..1f8a832 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-3602862f9a9542f8.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Database Reference","slug":"database-reference","description":"\u003cp\u003eUnderstanding SQL and its syntax.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eSQL (Sequential Query Language) is the industry-standard, battle-tested database querying language used to interact with relational databases. While datasquirel aims to abstract much of it, knowing the basics is still very important to get the full power of datasquirel management system.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"database-reference"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-37b36feefe045092.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Database Reference","slug":"database-reference","description":"\u003cp\u003eUnderstanding SQL and its syntax.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eSQL (Sequential Query Language) is the industry-standard, battle-tested database querying language used to interact with relational databases. While datasquirel aims to abstract much of it, knowing the basics is still very important to get the full power of datasquirel management system.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"database-reference"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html index 940892a..30c1795 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/data-types.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Data types","slug":"data-types","description":"\u003cp\u003eRelational database data types\u003c/p\u003e","content":"\u003ch2\u003eVARCHAR\u003c/h2\u003e\u003cp\u003eThe varchar datatype is probably the most commonly used datatype. It's basically text and numbers that max out at 255 characters. Varchar type is usually annoted in the form \u003ccode style=\"display:inline\"\u003eVARCHAR(20)\u003c/code\u003e .\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"database-reference","sub-page":"data-types"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Data types","slug":"data-types","description":"\u003cp\u003eRelational database data types\u003c/p\u003e","content":"\u003ch2\u003eVARCHAR\u003c/h2\u003e\u003cp\u003eThe varchar datatype is probably the most commonly used datatype. It's basically text and numbers that max out at 255 characters. Varchar type is usually annoted in the form \u003ccode style=\"display:inline\"\u003eVARCHAR(20)\u003c/code\u003e .\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"database-reference","sub-page":"data-types"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html index 33b4c9f..091f95a 100644 --- a/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html +++ b/dsql-app/.local_dist/server/pages/docs/database-reference/querying-data.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Querying Data","slug":"querying-data","description":"\u003cp\u003eUsing SQL to query data from your database\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eQuerying data will eventually be the most common thing you do with your datasquirel account. So it's important to know some essential querying syntax, our node module abstraction will not give you the same level of control as direct sql querying.\u003c/p\u003e\u003ch2\u003eSELECT Keyword\u003c/h2\u003e\u003cpre class=\"language-markup\"\u003eSELECT * FROM blog_posts\u003c/pre\u003e\u003cp\u003eThe select keyword is the most basic and used keyword. In the example above, we're selecting every row(or entry) from the table \u003ccode style=\"display:inline\"\u003eblog_posts\u003c/code\u003e . The \"*\" sign stands for \"all columns\". To dial down to specific columns, you can replace the \"*\" symbol with the column(s) you want to select. Example:\u003c/p\u003e\u003cpre class=\"language-markup\"\u003eSELECT title, body FROM blog_posts\u003c/pre\u003e\u003cp\u003eThis query only targets the \u003ccode style=\"display:inline\"\u003etitle\u003c/code\u003e and \u003ccode style=\"display:inline\"\u003ebody\u003c/code\u003e columns(or fields) in the \u003ccode style=\"display:inline\"\u003eblog_posts\u003c/code\u003e table.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"database-reference","sub-page":"querying-data"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Querying Data","slug":"querying-data","description":"\u003cp\u003eUsing SQL to query data from your database\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eQuerying data will eventually be the most common thing you do with your datasquirel account. So it's important to know some essential querying syntax, our node module abstraction will not give you the same level of control as direct sql querying.\u003c/p\u003e\u003ch2\u003eSELECT Keyword\u003c/h2\u003e\u003cpre class=\"language-markup\"\u003eSELECT * FROM blog_posts\u003c/pre\u003e\u003cp\u003eThe select keyword is the most basic and used keyword. In the example above, we're selecting every row(or entry) from the table \u003ccode style=\"display:inline\"\u003eblog_posts\u003c/code\u003e . The \"*\" sign stands for \"all columns\". To dial down to specific columns, you can replace the \"*\" symbol with the column(s) you want to select. Example:\u003c/p\u003e\u003cpre class=\"language-markup\"\u003eSELECT title, body FROM blog_posts\u003c/pre\u003e\u003cp\u003eThis query only targets the \u003ccode style=\"display:inline\"\u003etitle\u003c/code\u003e and \u003ccode style=\"display:inline\"\u003ebody\u003c/code\u003e columns(or fields) in the \u003ccode style=\"display:inline\"\u003eblog_posts\u003c/code\u003e table.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"database-reference","sub-page":"querying-data"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/getting-started.html b/dsql-app/.local_dist/server/pages/docs/getting-started.html index 0b4d2bf..2b72714 100644 --- a/dsql-app/.local_dist/server/pages/docs/getting-started.html +++ b/dsql-app/.local_dist/server/pages/docs/getting-started.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-3602862f9a9542f8.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Getting Started","slug":"getting-started","description":"\u003cp\u003eIntroduction to datasquirel. Read the \u003ca href=\"../../../docs/quick-start\"\u003equick-start guide\u003c/a\u003e to get started with a new account.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003ca href=\"https://vitejs.dev/guide/#overview\"\u003e​\u003c/a\u003e\u003c/h2\u003e\u003cp\u003eDatasquirel is an SQL-based data management system that aims to manage SQL databases with the lowest level of opinionation. Datasquirel consists of 2 main parts:\u003c/p\u003e\u003col\u003e\u003cli\u003eA full-fledged SQL server that runs multiple isolated databases for different users, interfacing with an online Graphical user interface and a REST API integration.\u003c/li\u003e\u003cli\u003eAn all-purpose static files server using NGINX to serve static files on demand. Files uploaded to datasquirel static file server are public by default, but the can be made private, in which case they can only be accessed via secure encrypted credentials.\u003c/li\u003e\u003c/ol\u003e\u003cdiv style=\"flex-wrap:wrap;max-width:800px\"\u003e\u003cdiv style=\"padding:30px;border-radius:5px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background-color:rgb(246, 244, 248);position:relative;overflow:hidden;flex-grow:1\"\u003e\u003ch3 style=\"margin:0px;color:rgb(30, 41, 59)\"\u003eGUI Reference\u003c/h3\u003e\u003cdiv\u003eSQL through your bowser\u003c/div\u003e\u003ca href=\"../../../docs/gui-reference\" class=\"button\"\u003eLearn More\u003c/a\u003e \u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/icons/ui-design.png\" style=\"position:absolute;bottom:-100px;right:-50px;opacity:0.2\" width=\"250\" height=\"250\" /\u003e\u003c/div\u003e\u003c/div\u003e\u003cp\u003eDatasquirel's Graphical User Interface aims to narrow down the the complexities of SQL to a simple user interface with columns, rows, and entries.\u003c/p\u003e\u003cdiv style=\"flex-wrap:wrap;max-width:800px\"\u003e\u003cdiv style=\"padding:30px;border-radius:5px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background-color:rgb(246, 244, 248);position:relative;overflow:hidden;flex-grow:1\"\u003e\u003ch3 style=\"margin:0px;color:rgb(30, 41, 59)\"\u003eAPI Reference\u003c/h3\u003e\u003cdiv\u003eSQL over the cloud using REST\u003c/div\u003e\u003ca href=\"../../../docs/api-reference\" class=\"button\"\u003eLearn More\u003c/a\u003e \u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/icons/world-wide-web.png\" style=\"position:absolute;bottom:-100px;right:-50px;opacity:0.2\" width=\"250\" height=\"250\" /\u003e\u003c/div\u003e\u003c/div\u003e\u003cp\u003eDatasquirel's API reference uses our NPM module \u003ca href=\"https://www.npmjs.com/package/datasquirel\"\u003edatasquirel\u003c/a\u003e. This can be installed via npm:\u003c/p\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003cp\u003eLearn more by reading the \u003ca href=\"docs/api-reference\"\u003eapi documentation\u003c/a\u003e\u003c/p\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eKey Concepts\u003c/h2\u003e\u003ch3\u003eSQL\u003c/h3\u003e\u003cp\u003eSQL stands for \"Sequential Query language\". This is the standard language for relational databases like MySQL and Postgres. Datasquirel uses MySQL and is compatible with all known SQL syntax.\u003c/p\u003e\u003ch3\u003eDatabase\u003c/h3\u003e\u003cp\u003eA database in datasquirel is an isolated MySQL database running on our MySQL servers. A database consists of tables, which in turn consists of columns, rows, and entries. Each database can be exported at anytime, and also populated using a .sql dump file at any time.\u003c/p\u003e\u003ch3\u003eCRUD\u003c/h3\u003e\u003cp\u003eCRUD stands for \u003cstrong\u003eCreate, Read, Update, Delete\u003c/strong\u003e. This is the basic spectrum of the capabilities of any database, and it is useful for managing data.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"getting-started"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-37b36feefe045092.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Getting Started","slug":"getting-started","description":"\u003cp\u003eIntroduction to datasquirel. Read the \u003ca href=\"../../../docs/quick-start\"\u003equick-start guide\u003c/a\u003e to get started with a new account.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003ca href=\"https://vitejs.dev/guide/#overview\"\u003e​\u003c/a\u003e\u003c/h2\u003e\u003cp\u003eDatasquirel is an SQL-based data management system that aims to manage SQL databases with the lowest level of opinionation. Datasquirel consists of 2 main parts:\u003c/p\u003e\u003col\u003e\u003cli\u003eA full-fledged SQL server that runs multiple isolated databases for different users, interfacing with an online Graphical user interface and a REST API integration.\u003c/li\u003e\u003cli\u003eAn all-purpose static files server using NGINX to serve static files on demand. Files uploaded to datasquirel static file server are public by default, but the can be made private, in which case they can only be accessed via secure encrypted credentials.\u003c/li\u003e\u003c/ol\u003e\u003cdiv style=\"flex-wrap:wrap;max-width:800px\"\u003e\u003cdiv style=\"padding:30px;border-radius:5px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background-color:rgb(246, 244, 248);position:relative;overflow:hidden;flex-grow:1\"\u003e\u003ch3 style=\"margin:0px;color:rgb(30, 41, 59)\"\u003eGUI Reference\u003c/h3\u003e\u003cdiv\u003eSQL through your bowser\u003c/div\u003e\u003ca href=\"../../../docs/gui-reference\" class=\"button\"\u003eLearn More\u003c/a\u003e \u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/icons/ui-design.png\" style=\"position:absolute;bottom:-100px;right:-50px;opacity:0.2\" width=\"250\" height=\"250\" /\u003e\u003c/div\u003e\u003c/div\u003e\u003cp\u003eDatasquirel's Graphical User Interface aims to narrow down the the complexities of SQL to a simple user interface with columns, rows, and entries.\u003c/p\u003e\u003cdiv style=\"flex-wrap:wrap;max-width:800px\"\u003e\u003cdiv style=\"padding:30px;border-radius:5px;display:flex;flex-direction:column;align-items:flex-start;gap:10px;background-color:rgb(246, 244, 248);position:relative;overflow:hidden;flex-grow:1\"\u003e\u003ch3 style=\"margin:0px;color:rgb(30, 41, 59)\"\u003eAPI Reference\u003c/h3\u003e\u003cdiv\u003eSQL over the cloud using REST\u003c/div\u003e\u003ca href=\"../../../docs/api-reference\" class=\"button\"\u003eLearn More\u003c/a\u003e \u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/icons/world-wide-web.png\" style=\"position:absolute;bottom:-100px;right:-50px;opacity:0.2\" width=\"250\" height=\"250\" /\u003e\u003c/div\u003e\u003c/div\u003e\u003cp\u003eDatasquirel's API reference uses our NPM module \u003ca href=\"https://www.npmjs.com/package/datasquirel\"\u003edatasquirel\u003c/a\u003e. This can be installed via npm:\u003c/p\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003cp\u003eLearn more by reading the \u003ca href=\"docs/api-reference\"\u003eapi documentation\u003c/a\u003e\u003c/p\u003e\u003ch2\u003e\u003cbr /\u003e\u003c/h2\u003e\u003ch2\u003eKey Concepts\u003c/h2\u003e\u003ch3\u003eSQL\u003c/h3\u003e\u003cp\u003eSQL stands for \"Sequential Query language\". This is the standard language for relational databases like MySQL and Postgres. Datasquirel uses MySQL and is compatible with all known SQL syntax.\u003c/p\u003e\u003ch3\u003eDatabase\u003c/h3\u003e\u003cp\u003eA database in datasquirel is an isolated MySQL database running on our MySQL servers. A database consists of tables, which in turn consists of columns, rows, and entries. Each database can be exported at anytime, and also populated using a .sql dump file at any time.\u003c/p\u003e\u003ch3\u003eCRUD\u003c/h3\u003e\u003cp\u003eCRUD stands for \u003cstrong\u003eCreate, Read, Update, Delete\u003c/strong\u003e. This is the basic spectrum of the capabilities of any database, and it is useful for managing data.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"getting-started"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference.html b/dsql-app/.local_dist/server/pages/docs/gui-reference.html index 230e734..7b58153 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-3602862f9a9542f8.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"GUI Reference","slug":"gui-reference","description":"\u003cp\u003eDatasquirel Graphic User Interface provides a way to manage database instances from your browser\u003c/p\u003e","content":"\u003cp\u003eA lot can be done using our web interface. Everyhing going on you admin dashboard is essentially running SQL queries on your isolated database, and saving and retrieving static files. Our integrated SQL shell for each database takes this concept to the next level. Giving you the ability to run SQL queries directly via your browser. To get started using our GUI, follow these steps:\u003c/p\u003e\u003ch3\u003e1. Create Account\u003c/h3\u003e\u003cp\u003eCreate a free account \u003ca href=\"../../../create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"700\" height=\"506\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e2. Create Database\u003c/h3\u003e\u003cp\u003eNavigate to your \u003ca href=\"../../../admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"../../../admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"700\" height=\"371\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003ch3\u003e3. Add a table\u003c/h3\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"700\" height=\"697\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e4. Add an Entry\u003c/h3\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"700\" height=\"504\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"700\" height=\"554\" /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"gui-reference"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-37b36feefe045092.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"GUI Reference","slug":"gui-reference","description":"\u003cp\u003eDatasquirel Graphic User Interface provides a way to manage database instances from your browser\u003c/p\u003e","content":"\u003cp\u003eA lot can be done using our web interface. Everyhing going on you admin dashboard is essentially running SQL queries on your isolated database, and saving and retrieving static files. Our integrated SQL shell for each database takes this concept to the next level. Giving you the ability to run SQL queries directly via your browser. To get started using our GUI, follow these steps:\u003c/p\u003e\u003ch3\u003e1. Create Account\u003c/h3\u003e\u003cp\u003eCreate a free account \u003ca href=\"../../../create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"700\" height=\"506\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e2. Create Database\u003c/h3\u003e\u003cp\u003eNavigate to your \u003ca href=\"../../../admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"../../../admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"700\" height=\"371\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003ch3\u003e3. Add a table\u003c/h3\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"700\" height=\"697\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e4. Add an Entry\u003c/h3\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"700\" height=\"504\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"700\" height=\"554\" /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"gui-reference"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html index fd8d3ef..df5feca 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/getting-started.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Getting Started","slug":"getting-started","description":"\u003cp\u003eGet started creating databases and making entries.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eDatasquirel GUI is focused on the process of creating databases, defining and adding tables, and adding entries to these tables. We will go through these steps here.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e1. Create Account\u003c/h2\u003e\u003cp\u003eCreate a free account \u003ca href=\"../../../create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"700\" height=\"506\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e2. Create Database\u003c/h2\u003e\u003cp\u003eNavigate to your \u003ca href=\"../../../admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"../../../admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"700\" height=\"371\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003ch2\u003e3. Add a table\u003c/h2\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"700\" height=\"697\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e4. Add an Entry\u003c/h2\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"700\" height=\"504\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"700\" height=\"554\" /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"gui-reference","sub-page":"getting-started"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Getting Started","slug":"getting-started","description":"\u003cp\u003eGet started creating databases and making entries.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eDatasquirel GUI is focused on the process of creating databases, defining and adding tables, and adding entries to these tables. We will go through these steps here.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e1. Create Account\u003c/h2\u003e\u003cp\u003eCreate a free account \u003ca href=\"../../../create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"700\" height=\"506\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e2. Create Database\u003c/h2\u003e\u003cp\u003eNavigate to your \u003ca href=\"../../../admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"../../../admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"700\" height=\"371\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003ch2\u003e3. Add a table\u003c/h2\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"700\" height=\"697\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003e4. Add an Entry\u003c/h2\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"700\" height=\"504\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"700\" height=\"554\" /\u003e\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"gui-reference","sub-page":"getting-started"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html index 2749ea7..ccd8da0 100644 --- a/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html +++ b/dsql-app/.local_dist/server/pages/docs/gui-reference/upload-media.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-b3641ae1942e2312.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Upload Media","slug":"upload-media","description":"\u003cp\u003eDatasquirel comes baked with an integrated static file directory. This makes it easy to upload public and private files and access it from anywhere.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eMedia management is a bigger problem than it sounds at first. Images tend to get out of hand when adding them to web projects: your images need to be well optimized for fast loading, easily accessible, and maintain clarity so that your website doesn't look like it's from the 80's. Datasquirel does this all for you in a few clicks.\u003c/p\u003e\u003ch2\u003eAdding Media\u003c/h2\u003e\u003cp\u003eEvery datasquirel account is created with two directories for media storage: one is public, and the other is private. To start adding media, follow these steps:\u003c/p\u003e\u003ch3\u003e1. Navigate to \"\u003cstrong\u003eMedia\" \u003c/strong\u003efrom your dashboard\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-page-with-folder.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eIf you created a database already, with an image for this database, your media folder will be pre-populated with a folder named after your database (\u003ccode style=\"display:inline\"\u003etest\u003c/code\u003e  in this case), and it will contain the image you uploaded when you created the database. \u003c/p\u003e\u003ch3\u003e2. Select Media files\u003c/h3\u003e\u003cp\u003eTo add a new media, click on \u003cstrong\u003eAdd Media\u003c/strong\u003e button. This will open a modal for you to choose which type of media you want to add.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/chose-media-type-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThere are two options available at this time: \u003cstrong\u003eImages\u003c/strong\u003e, and \u003cstrong\u003eFiles\u003c/strong\u003e. Image uploads only allow the image types listed in the description, the same applies with files. Click on the desired type and select the files you want to upload. You can upload multiple files at the same time.\u003c/p\u003e\u003ch3\u003e3. Edit selected files and upload files\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/select-images-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThe next modal gives you the option to further change attributes of the images before uploading. These attributes include the \u003cstrong\u003eimage name\u003c/strong\u003e, and \u003cstrong\u003eprivacy\u003c/strong\u003e. Private images can only be accessed via out API using your \u003cstrong\u003eRead Only \u003c/strong\u003eor \u003cstrong\u003eFull Access\u003c/strong\u003e API keys.\u003c/p\u003e\u003cp\u003eAfter you're set, click on \"Upload Media\". This process uploads selected media to their respective directories. But that's not all, each media is compressed automatically, using a max width of \u003cstrong\u003e1800px\u003c/strong\u003e, and each media comes with an automatically generated thumbnail. So For each image you upload, you have two images. The thumbnail image contains a suffix \u003ccode style=\"display:inline\"\u003e_thumbnail\u003c/code\u003e added to the original image's name.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-with-added-images.png\" width=\"800\" height=\"599\" /\u003e\u003c/p\u003e\u003cp\u003eAfter images have been uploaded, you can now copy the link for *public images and share anywhere, you can also copy the thumbnail link. NOTE, you cannot share private images publicly, private images don't have a public URL, they can only be accessed through OUR API with valid credentials.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eAdding Folders\u003c/h2\u003e\u003cp\u003eAdding folders help to better organize media. We currently have 2 depths of folder structure. So you can create a folder, and a sub-folder. To create a folder, simply navigate to your \u003cstrong\u003eMedia \u003c/strong\u003eadmin page and click \"\u003cstrong\u003eAdd Folder\u003c/strong\u003e\".\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-folder-screen.png\" width=\"800\" height=\"376\" /\u003e\u003c/p\u003e\u003cp\u003eAdd a folder name and click \"\u003cstrong\u003eAdd New Folder\u003c/strong\u003e\". Your new folder is now ready to go. Click on the new folder and you can upload images and files to that folder.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"gui-reference","sub-page":"upload-media"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D/%5Bsub-page%5D-75f4e2d6a034367b.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Upload Media","slug":"upload-media","description":"\u003cp\u003eDatasquirel comes baked with an integrated static file directory. This makes it easy to upload public and private files and access it from anywhere.\u003c/p\u003e","content":"\u003ch2\u003eOverview\u003c/h2\u003e\u003cp\u003eMedia management is a bigger problem than it sounds at first. Images tend to get out of hand when adding them to web projects: your images need to be well optimized for fast loading, easily accessible, and maintain clarity so that your website doesn't look like it's from the 80's. Datasquirel does this all for you in a few clicks.\u003c/p\u003e\u003ch2\u003eAdding Media\u003c/h2\u003e\u003cp\u003eEvery datasquirel account is created with two directories for media storage: one is public, and the other is private. To start adding media, follow these steps:\u003c/p\u003e\u003ch3\u003e1. Navigate to \"\u003cstrong\u003eMedia\" \u003c/strong\u003efrom your dashboard\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-page-with-folder.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eIf you created a database already, with an image for this database, your media folder will be pre-populated with a folder named after your database (\u003ccode style=\"display:inline\"\u003etest\u003c/code\u003e  in this case), and it will contain the image you uploaded when you created the database. \u003c/p\u003e\u003ch3\u003e2. Select Media files\u003c/h3\u003e\u003cp\u003eTo add a new media, click on \u003cstrong\u003eAdd Media\u003c/strong\u003e button. This will open a modal for you to choose which type of media you want to add.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/chose-media-type-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThere are two options available at this time: \u003cstrong\u003eImages\u003c/strong\u003e, and \u003cstrong\u003eFiles\u003c/strong\u003e. Image uploads only allow the image types listed in the description, the same applies with files. Click on the desired type and select the files you want to upload. You can upload multiple files at the same time.\u003c/p\u003e\u003ch3\u003e3. Edit selected files and upload files\u003c/h3\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/select-images-to-upload.png\" width=\"800\" height=\"373\" /\u003e\u003c/p\u003e\u003cp\u003eThe next modal gives you the option to further change attributes of the images before uploading. These attributes include the \u003cstrong\u003eimage name\u003c/strong\u003e, and \u003cstrong\u003eprivacy\u003c/strong\u003e. Private images can only be accessed via out API using your \u003cstrong\u003eRead Only \u003c/strong\u003eor \u003cstrong\u003eFull Access\u003c/strong\u003e API keys.\u003c/p\u003e\u003cp\u003eAfter you're set, click on \"Upload Media\". This process uploads selected media to their respective directories. But that's not all, each media is compressed automatically, using a max width of \u003cstrong\u003e1800px\u003c/strong\u003e, and each media comes with an automatically generated thumbnail. So For each image you upload, you have two images. The thumbnail image contains a suffix \u003ccode style=\"display:inline\"\u003e_thumbnail\u003c/code\u003e added to the original image's name.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/media-with-added-images.png\" width=\"800\" height=\"599\" /\u003e\u003c/p\u003e\u003cp\u003eAfter images have been uploaded, you can now copy the link for *public images and share anywhere, you can also copy the thumbnail link. NOTE, you cannot share private images publicly, private images don't have a public URL, they can only be accessed through OUR API with valid credentials.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eAdding Folders\u003c/h2\u003e\u003cp\u003eAdding folders help to better organize media. We currently have 2 depths of folder structure. So you can create a folder, and a sub-folder. To create a folder, simply navigate to your \u003cstrong\u003eMedia \u003c/strong\u003eadmin page and click \"\u003cstrong\u003eAdd Folder\u003c/strong\u003e\".\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-folder-screen.png\" width=\"800\" height=\"376\" /\u003e\u003c/p\u003e\u003cp\u003eAdd a folder name and click \"\u003cstrong\u003eAdd New Folder\u003c/strong\u003e\". Your new folder is now ready to go. Click on the new folder and you can upload images and files to that folder.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]/[sub-page]","query":{"page":"gui-reference","sub-page":"upload-media"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/quick-start.html b/dsql-app/.local_dist/server/pages/docs/quick-start.html index a42f94c..8e9101b 100644 --- a/dsql-app/.local_dist/server/pages/docs/quick-start.html +++ b/dsql-app/.local_dist/server/pages/docs/quick-start.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-3602862f9a9542f8.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Quick Start","slug":"quick-start","description":"\u003cp\u003eStart saving and retrieving data now. Set up and start deploying in minutes.\u003c/p\u003e","content":"\u003ch2\u003eStarting up your Datasquirel instance\u003c/h2\u003e\u003cp\u003eTo get started with datasquirel you need an account online. The datasquirel npm module will hit this account via out API integration using your API credentials. Without an account, you cannout query any data on our API. Follow these steps to create an account:\u003c/p\u003e\u003ch3\u003e1. Create Account\u003c/h3\u003e\u003cp\u003eCreate a free account \u003ca href=\"https://datasquirel.com/create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"800\" height=\"578\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e2. Create Database\u003c/h3\u003e\u003cp\u003eNavigate to your \u003ca href=\"https://datasquirel.com/admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"https://datasquirel.com/admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"800\" height=\"424\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003ch3\u003e3. Add a table\u003c/h3\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"800\" height=\"797\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e4. Add an Entry\u003c/h3\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"800\" height=\"576\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"800\" height=\"633\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eFetching Data\u003c/h2\u003e\u003cp\u003eto start fetching data from your datasquirel account, you need to go through 3 steps:\u003c/p\u003e\u003ch3\u003e1. Create an API key\u003c/h3\u003e\u003cp\u003eYour api key is your gateway to all your data. There are two sets of API keys available for use: \u003cstrong\u003eRead Only \u003c/strong\u003eAPI keys, and \u003cstrong\u003eFull Access \u003c/strong\u003eAPI keys. They function as their names sound: Read only API keys only read data, Full Access API keys can read, write, delete, update, and also add media to your media storage directory.\u003c/p\u003e\u003cp\u003eTo create an API key, follow these steps:\u003c/p\u003e\u003cul\u003e\u003cli\u003eLogin to your admin dashboard and navigate to \"API keys\" page\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/api-keys-page.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003cli\u003eClick on \"Add API key\" and fill in the form. Give your API key a name and select which the scope you wich to cover with the key (\"Read Only\" for just reading data, \"Full Access\" for reading and writing data).\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-api-key-dialogue.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003cli\u003eOnce your API key is created, copy the API key by clicking \"Copy API key\". Keep this key safe and secured.\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/api-keys-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003c/ul\u003e\u003ch3\u003e\u003cbr /\u003e\u003c/h3\u003e\u003ch3\u003e2. Use your API key to make a request\u003c/h3\u003e\u003cp\u003eAfter creating your API key, then comes the backend section.\u003c/p\u003e\u003cul\u003e\u003cli\u003eFirst add the datasquirel package via NPM\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eNext import the datasquirel module into your project, choose the database you will be querying, add your API key, and then run the query.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eRead our \u003ca href=\"../../../docs/api-reference\"\u003eAPI Reference\u003c/a\u003e for more.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"quick-start"},"buildId":"JWcGy7ApzQNGHJR0-bv4k","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/%5Bpage%5D-37b36feefe045092.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"user":null,"pages":[{"id":8,"title":"Getting Started","slug":"getting-started","level":1,"parent_id":null},{"id":9,"title":"Getting Started","slug":"getting-started","level":2,"parent_id":3},{"id":2,"title":"Quick Start","slug":"quick-start","level":1,"parent_id":null},{"id":3,"title":"GUI Reference","slug":"gui-reference","level":1,"parent_id":null},{"id":4,"title":"API Reference","slug":"api-reference","level":1,"parent_id":null},{"id":10,"title":"Get","slug":"get","level":2,"parent_id":4},{"id":12,"title":"Database Reference","slug":"database-reference","level":1,"parent_id":null},{"id":11,"title":"Post","slug":"post","level":2,"parent_id":4},{"id":13,"title":"Data types","slug":"data-types","level":2,"parent_id":12},{"id":14,"title":"Querying Data","slug":"querying-data","level":2,"parent_id":12},{"id":15,"title":"Upload Media","slug":"upload-media","level":2,"parent_id":3}],"targetPage":{"title":"Quick Start","slug":"quick-start","description":"\u003cp\u003eStart saving and retrieving data now. Set up and start deploying in minutes.\u003c/p\u003e","content":"\u003ch2\u003eStarting up your Datasquirel instance\u003c/h2\u003e\u003cp\u003eTo get started with datasquirel you need an account online. The datasquirel npm module will hit this account via out API integration using your API credentials. Without an account, you cannout query any data on our API. Follow these steps to create an account:\u003c/p\u003e\u003ch3\u003e1. Create Account\u003c/h3\u003e\u003cp\u003eCreate a free account \u003ca href=\"https://datasquirel.com/create-account\"\u003ehere\u003c/a\u003e\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/create-account.png\" width=\"800\" height=\"578\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e2. Create Database\u003c/h3\u003e\u003cp\u003eNavigate to your \u003ca href=\"https://datasquirel.com/admin\"\u003eDashboard\u003c/a\u003e or \u003ca href=\"https://datasquirel.com/admin/databases\"\u003eDatabases page\u003c/a\u003e. Click the \"Add Database\" button to add a new database.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-2023-07-16-13_35_04.png\" width=\"800\" height=\"424\" /\u003e\u003c/p\u003e\u003cp\u003eOn the next screen that appears, fill in the form and add a database image if you wish. Click on \"Create Database\" to add the new database\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-add-database-2023-07-17-11_01_28.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003cp\u003eCreating a new database takes you to the database page. This page allows you to import a pre-existing database using an SQL export file, or create a new table inside the newly-formed database. More operations for your database can be found in the database dropdown on the top left, or the \"more\" dropdown on the top right.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/screencapture-localhost-7070-admin-databases-test-2023-07-17-11_09_52.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003ch3\u003e3. Add a table\u003c/h3\u003e\u003cp\u003eDatabases consists of Tables: each with fields(or columns) and entries(or rows). Select a database from your database list to access the single database pages. Click on \"Add Table\" and fill in the new table form.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-table-form.png\" width=\"800\" height=\"797\" /\u003e\u003c/p\u003e\u003cp\u003eOn each table form you have access to the table fields(or column titles). Each field contains a few options:\u003c/p\u003e\u003cul\u003e\u003cli\u003e\u003cstrong\u003eField Name\u003c/strong\u003e: Name of field(or column title)\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eData Type\u003c/strong\u003e: type of data to be stored on that field: \u003ca class=\"inline\" href=\"docs/db-reference/data-types\"\u003eSee All Datatypes\u003c/a\u003e\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eRequired\u003c/strong\u003e: Choose whether the field must have a value or not\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eDefault Value\u003c/strong\u003e: Default value of field in the case no value is entered.\u003c/li\u003e\u003cli\u003e\u003cstrong\u003eMore:\u003c/strong\u003e The \"More\" button contains options for encryption and foreign keys\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eAfter these fields are filled, click \"Add Field\". Add as much field as you need. These fields serve as column titles for your table.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/tables-list.png\" width=\"800\" height=\"374\" /\u003e\u003c/p\u003e\u003cp\u003eAfter creating a table you now have access to the tables list.\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch3\u003e4. Add an Entry\u003c/h3\u003e\u003cp\u003eSelect the newly created Table and on the designated table page click on \"Add New Table Entry\"\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/table-page.png\" width=\"800\" height=\"576\" /\u003e\u003c/p\u003e\u003cp\u003eFill in the required fields and click on \"Add Entry\". Congrats, you have now created your first datasquirel data entry, you can now access this data from any platform using your api key.\u003c/p\u003e\u003cp\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-entry.png\" width=\"800\" height=\"633\" /\u003e\u003c/p\u003e\u003cp\u003e\u003cbr /\u003e\u003c/p\u003e\u003ch2\u003eFetching Data\u003c/h2\u003e\u003cp\u003eto start fetching data from your datasquirel account, you need to go through 3 steps:\u003c/p\u003e\u003ch3\u003e1. Create an API key\u003c/h3\u003e\u003cp\u003eYour api key is your gateway to all your data. There are two sets of API keys available for use: \u003cstrong\u003eRead Only \u003c/strong\u003eAPI keys, and \u003cstrong\u003eFull Access \u003c/strong\u003eAPI keys. They function as their names sound: Read only API keys only read data, Full Access API keys can read, write, delete, update, and also add media to your media storage directory.\u003c/p\u003e\u003cp\u003eTo create an API key, follow these steps:\u003c/p\u003e\u003cul\u003e\u003cli\u003eLogin to your admin dashboard and navigate to \"API keys\" page\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/api-keys-page.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003cli\u003eClick on \"Add API key\" and fill in the form. Give your API key a name and select which the scope you wich to cover with the key (\"Read Only\" for just reading data, \"Full Access\" for reading and writing data).\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/add-api-key-dialogue.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003cli\u003eOnce your API key is created, copy the API key by clicking \"Copy API key\". Keep this key safe and secured.\u003cbr /\u003e\u003cbr /\u003e\u003cimg src=\"https://static.datasquirel.com/images/user-images/user-2/docs/api-keys-list.png\" width=\"700\" height=\"327\" /\u003e\u003c/li\u003e\u003c/ul\u003e\u003ch3\u003e\u003cbr /\u003e\u003c/h3\u003e\u003ch3\u003e2. Use your API key to make a request\u003c/h3\u003e\u003cp\u003eAfter creating your API key, then comes the backend section.\u003c/p\u003e\u003cul\u003e\u003cli\u003eFirst add the datasquirel package via NPM\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-markup\"\u003enpm install datasquirel\u003c/pre\u003e\u003c/li\u003e\u003cli\u003eNext import the datasquirel module into your project, choose the database you will be querying, add your API key, and then run the query.\u003cbr /\u003e\u003cbr /\u003e\u003cpre class=\"language-javascript\"\u003e\u003cspan class=\"token keyword\"\u003econst\u003c/span\u003e datasquirel \u003cspan class=\"token operator\"\u003e=\u003c/span\u003e \u003cspan class=\"token function\"\u003erequire\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token string\"\u003e\"datasquirel\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n\ndatasquirel\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003eget\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003edb\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"test\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003ekey\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e process\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003eenv\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token constant\"\u003eDATASQUIREL_READ_ONLY_KEY\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token literal-property property\"\u003equery\u003c/span\u003e\u003cspan class=\"token operator\"\u003e:\u003c/span\u003e \u003cspan class=\"token string\"\u003e\"SELECT title, slug, body FROM blog_posts\"\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e,\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003ethen\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003e\u003cspan class=\"token parameter\"\u003eresponse\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e \u003cspan class=\"token operator\"\u003e=\u0026gt;\u003c/span\u003e \u003cspan class=\"token punctuation\"\u003e{\u003c/span\u003e\n console\u003cspan class=\"token punctuation\"\u003e.\u003c/span\u003e\u003cspan class=\"token function\"\u003elog\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e(\u003c/span\u003eresponse\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\n \u003cspan class=\"token punctuation\"\u003e}\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e)\u003c/span\u003e\u003cspan class=\"token punctuation\"\u003e;\u003c/span\u003e\u003c/pre\u003e\u003c/li\u003e\u003c/ul\u003e\u003cp\u003eRead our \u003ca href=\"../../../docs/api-reference\"\u003eAPI Reference\u003c/a\u003e for more.\u003c/p\u003e"}},"__N_SSG":true},"page":"/docs/[page]","query":{"page":"quick-start"},"buildId":"oGdR-cyIqmUbg3SEpT2k4","isFallback":false,"gsp":true,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/test.html b/dsql-app/.local_dist/server/pages/docs/test.html new file mode 100644 index 0000000..72923d2 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/test.html @@ -0,0 +1,3 @@ +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/pages/docs/test-8c05e3dd64c32fff.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"><h1>Test Page</h1> +<pre><code class="language-shell">rsync /test /dest +</code></pre></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/docs/test","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/docs/test.js.nft.json b/dsql-app/.local_dist/server/pages/docs/test.js.nft.json new file mode 100644 index 0000000..a0ae324 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/docs/test.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../webpack-runtime.js","../../chunks/9764.js","../../chunks/883.js","../../chunks/8268.js","../../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/email-verification.js b/dsql-app/.local_dist/server/pages/email-verification.js index 82857ec..c9d23d1 100644 --- a/dsql-app/.local_dist/server/pages/email-verification.js +++ b/dsql-app/.local_dist/server/pages/email-verification.js @@ -1,408 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4772; -exports.ids = [4772]; -exports.modules = { - -/***/ 5004: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ VerifyEmail), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(968); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6729); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5304); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(6217); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2317); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_8__); -// @ts-check -/** - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=6712,e.ids=[636,6712],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},71956:(e,t,r)=>{r.r(t),r.d(t,{config:()=>k,default:()=>E,getServerSideProps:()=>D,getStaticPaths:()=>A,getStaticProps:()=>b,reportWebVitals:()=>w,routeModule:()=>$,unstable_getServerProps:()=>L,unstable_getServerSideProps:()=>O,unstable_getStaticParams:()=>N,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>R});var s={};r.r(s),r.d(s,{default:()=>_,getServerSideProps:()=>q});var i=r(63865),n=r(9455),a=r(30671),o=r(49407),l=r(68268),u=r(8732),c=r(82015),m=r.n(c);r(27912);var p=r(20048),d=r.n(p),x=r(32415),f=r(63715),g=r(83007),h=r.n(g),S=r(71457),y=r(68942),P=r.n(y),j=r(67216),v=r.n(j);function _({user:e,verified:t}){let[r,s]=m().useState(!1),[i,n]=m().useState(null);return t?(0,u.jsx)(S.A,{head:(0,u.jsxs)(m().Fragment,{children:[(0,u.jsx)("title",{children:"Verify Email Address"}),(0,u.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,u.jsx)("main",{className:"flex items-center justify-center w-full p-8",children:(0,u.jsx)("div",{className:"login-block gap-2",children:(0,u.jsxs)("div",{className:"flex items-center gap-4",children:[(0,u.jsx)("img",{src:"/images/checkmark.svg",alt:"check-mark",width:30}),(0,u.jsx)("span",{className:"text-xl",children:"Email Verification Successfull!"})]})})})}):(0,u.jsx)(m().Fragment,{children:(0,u.jsx)(S.A,{head:(0,u.jsxs)(m().Fragment,{children:[(0,u.jsx)("title",{children:"Verify Email Address"}),(0,u.jsx)("meta",{name:"description",content:"Verify your email address"})]}),user:e,children:(0,u.jsx)("main",{className:"flex flex-col items-center p-8 justify-center w-full",children:(0,u.jsxs)("div",{className:"login-block gap-2 flex-col max-w-lg",children:[i&&(0,u.jsx)("div",{className:i.class+" w-full rounded py-2 px-4 flex justify-center",children:i.msg}),r&&(0,u.jsx)(x.A,{position:"absolute"}),(0,u.jsx)("h1",{className:"text-2xl m-0 ",children:"Verify Email Address"}),(0,u.jsx)("span",{children:"Please click the button below to send verification link"}),(0,u.jsx)("button",{className:"w-full",onClick:function(e){e.preventDefault(),s(!0),(0,f.A)("/api/sendEmailVerificationLink").then(e=>{s(!1),e.success&&n({msg:"Email Sent. Please check mailbox",class:"bg-emerald-100"})})},children:(0,u.jsx)("span",{children:"Send Verification Link"})}),(0,u.jsx)("button",{className:"w-full outlined",onClick:e=>{window.history.back()},children:(0,u.jsx)("span",{children:"Go Back"})})]})})})})}async function q({req:e,res:t,query:r}){let s;let i=!1;try{s=await d()(e,t);let n=r?.token;if(n){let e=h()(n.toString());if(e)try{s=JSON.parse(e)}catch(e){P()({component:"email-verification/index-page-component/getServerSideProps/line-255",message:e.message,user:{}}),s=null,n=null}}if(!s)return{redirect:{destination:"/logout",permanent:!1}};if(s.verification_status?.toString().match(/^[1-5]$/))return{redirect:{destination:"/admin",permanent:!1}};let a=await v()(`SELECT id FROM users WHERE verification_status > 0 AND id='${s.id}'`);if(a&&a[0])return{redirect:{destination:"/admin",permanent:!1}};if(s?.dateCode){let e=s.dateCode;Date.now()-parseInt(e)>18e5?(s=null,n=null):(await v()(`UPDATE users SET verification_status='1' WHERE id='${s.id}'`),i=!0)}}catch(e){return P()({component:"email-verification/index-page-component/getServerSideProps/main-catch-error",message:e.message,user:{}}),{redirect:{destination:"/logout",permanent:!1}}}return{props:{user:s,verified:i}}}let E=(0,a.M)(s,"default"),b=(0,a.M)(s,"getStaticProps"),A=(0,a.M)(s,"getStaticPaths"),D=(0,a.M)(s,"getServerSideProps"),k=(0,a.M)(s,"config"),w=(0,a.M)(s,"reportWebVitals"),R=(0,a.M)(s,"unstable_getStaticProps"),M=(0,a.M)(s,"unstable_getStaticPaths"),N=(0,a.M)(s,"unstable_getStaticParams"),L=(0,a.M)(s,"unstable_getServerProps"),O=(0,a.M)(s,"unstable_getServerSideProps"),$=new i.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/email-verification",pathname:"/email-verification",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},68942:(e,t,r)=>{let s=r(29021),{IncomingMessage:i}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:i,req:n}){let a=new Date,o=(()=>{if(!n)return null;try{let e=n.headers["x-forwarded-for"],t=n.headers["x-real-ip"],r=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=r||s||t||n.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),n?.url&&(i+=` +URL: ${n.url}`),n?.body&&(i+=` +Request Body: ${JSON.stringify(n.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${a.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let l=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {import("@/package-shared/types").UserType} props.user - * @param {boolean} props.verified - */ function VerifyEmail({ user , verified }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - /** @type {[ state: any, dispatch: React.Dispatch<React.SetStateAction<any>> ]} */ // @ts-ignore - let [notification, setNotification] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ if (verified) { - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - try { - setTimeout(()=>{ - window.location.pathname = `/admin`; - }, 2000); - } catch (/** @type {any} */ error) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)("/api/admin/clientError", { - method: "post", - body: { - component: "email-verification/index-page-component/lines-72-74", - message: error.message, - user: user - } - }); - window.location.pathname = `/logout`; - } - }, []); - return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - head: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: "Verify Email Address" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: "Verify your email address" - }) - ] - }), - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("main", { - className: "flex items-center justify-center w-full p-8", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "login-block gap-2", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center gap-4", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/checkmark.svg", - alt: "check-mark", - width: 30 - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "text-xl", - children: "Email Verification Successfull!" - }) - ] - }) - }) - }) - }); - } - /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ function verifyEmail(/** @type {any} */ e) { - e.preventDefault(); - setLoading(true); - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)("/api/sendEmailVerificationLink").then((res)=>{ - setLoading(false); - if (res.success) { - setNotification({ - msg: "Email Sent. Please check mailbox", - class: "bg-emerald-100" - }); - } - }); - } - /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - head: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: "Verify Email Address" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: "Verify your email address" - }) - ] - }), - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("main", { - className: "flex flex-col items-center p-8 justify-center w-full", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "login-block gap-2 flex-col max-w-lg", - children: [ - notification && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: notification.class + " w-full rounded py-2 px-4 flex justify-center", - children: notification.msg - }), - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - position: "absolute" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "text-2xl m-0 ", - children: "Verify Email Address" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Please click the button below to send verification link" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "w-full", - onClick: verifyEmail, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Send Verification Link" - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - className: "w-full outlined", - onClick: (e)=>{ - window.history.back(); - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Go Back" - }) - }) - ] - }) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * Declare core variables - * - * @description Declare core variables - */ let user; - let isUserVerified = false; - try { - /** - * User Authentication - * - * @description User authentication - */ user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_3___default()(req, res); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ /** @type {string | null} */ // @ts-ignore - let token = query?.token; - if (token) { - let decryptedToken = _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_5___default()(token.toString()); - if (decryptedToken) { - try { - user = JSON.parse(decryptedToken); - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_7___default()({ - component: "email-verification/index-page-component/getServerSideProps/line-255", - message: error.message, - user: {} - }); - user = null; - token = null; - } - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (!user) return { - redirect: { - destination: "/logout", - permanent: false - } - }; - if (user.verification_status?.toString().match(/^[1-5]$/)) return { - redirect: { - destination: `/admin`, - permanent: false - } - }; - let existingVerification = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_8___default()(`SELECT id FROM users WHERE verification_status > 0 AND id='${user.id}'`); - if (existingVerification && existingVerification[0]) return { - redirect: { - destination: `/admin`, - permanent: false - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (user?.dateCode) { - let issueTime = user.dateCode; - if (Date.now() - parseInt(issueTime) > 1800000) { - user = null; - token = null; - } else { - await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_8___default()(`UPDATE users SET verification_status='1' WHERE id='${user.id}'`); - isUserVerified = true; - } - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (/** @type {any} */ error1) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_7___default()({ - component: "email-verification/index-page-component/getServerSideProps/main-catch-error", - message: error1.message, - user: {} - }); - return { - redirect: { - destination: "/logout", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - verified: isUserVerified - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,9360,6217,2317], () => (__webpack_exec__(5004))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${l}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(83007),n=r(29021);async function a(e,t,r,a){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!n.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=a},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:n}=r(79428);e.exports=e=>{let t=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},67216:(e,t,r)=>{let s=r(9973),i=r(31976),n=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function a(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=a},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>n});var s=r(8732);r(82015);var i=r(20883);function n(e){return(0,s.jsxs)(i.Html,{lang:"en",children:[(0,s.jsxs)(i.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(i.Main,{}),(0,s.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268],()=>r(71956));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/email-verification.js.nft.json b/dsql-app/.local_dist/server/pages/email-verification.js.nft.json index 1c638fa..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/email-verification.js.nft.json +++ b/dsql-app/.local_dist/server/pages/email-verification.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/9360.js","../chunks/6217.js","../chunks/2317.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/index.html b/dsql-app/.local_dist/server/pages/index.html index 077e7c2..bfcddfd 100644 --- a/dsql-app/.local_dist/server/pages/index.html +++ b/dsql-app/.local_dist/server/pages/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><link rel="preload" href="/_next/static/css/65efe10b506f9812.css" as="style"/><link rel="stylesheet" href="/_next/static/css/65efe10b506f9812.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/3935-eea593fa60dfd620.js" defer=""></script><script src="/_next/static/chunks/pages/index-c2ab88c2111475dd.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin="anonymous"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter"/><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preload" href="/_next/static/css/9e0355af56c249a3.css" as="style"/><link rel="stylesheet" href="/_next/static/css/9e0355af56c249a3.css" data-n-g=""/><link rel="preload" href="/_next/static/css/60c48dd4b3301227.css" as="style"/><link rel="stylesheet" href="/_next/static/css/60c48dd4b3301227.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-e67b0ff03d96edf5.js" defer=""></script><script src="/_next/static/chunks/framework-c2373564c69ff406.js" defer=""></script><script src="/_next/static/chunks/main-02c55c0c38989d0c.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cd983c5392320351.js" defer=""></script><script src="/_next/static/chunks/7623-2ea9f881dc00955d.js" defer=""></script><script src="/_next/static/chunks/1105-7897faceec5c28c2.js" defer=""></script><script src="/_next/static/chunks/9654-126cc84864d517d8.js" defer=""></script><script src="/_next/static/chunks/pages/index-532424a20b7a2bf0.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_buildManifest.js" defer=""></script><script src="/_next/static/oGdR-cyIqmUbg3SEpT2k4/_ssgManifest.js" defer=""></script></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/","query":{},"buildId":"oGdR-cyIqmUbg3SEpT2k4","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/index.js.nft.json b/dsql-app/.local_dist/server/pages/index.js.nft.json index ff6249b..8dc024a 100644 --- a/dsql-app/.local_dist/server/pages/index.js.nft.json +++ b/dsql-app/.local_dist/server/pages/index.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/4598.js","../chunks/8095.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../node_modules/@mui/icons-material/ArticleTwoTone.js","../../../node_modules/@mui/icons-material/CloudDoneTwoTone.js","../../../node_modules/@mui/icons-material/ThumbUpAltTwoTone.js","../../../node_modules/@mui/icons-material/DynamicFormTwoTone.js","../../../node_modules/@mui/icons-material/StorageTwoTone.js","../../../node_modules/@mui/icons-material/LockOpenTwoTone.js","../../../node_modules/@mui/icons-material/BackupTableTwoTone.js","../../../node_modules/@mui/icons-material/SendToMobileTwoTone.js","../../../node_modules/@mui/icons-material/TipsAndUpdatesTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/dom-helpers/addClass/package.json","../../../node_modules/dom-helpers/cjs/addClass.js","../../../node_modules/dom-helpers/cjs/hasClass.js","../../../node_modules/dom-helpers/cjs/removeClass.js","../../../node_modules/dom-helpers/package.json","../../../node_modules/dom-helpers/removeClass/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../node_modules/react-transition-group/cjs/Transition.js","../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../node_modules/react-transition-group/cjs/config.js","../../../node_modules/react-transition-group/cjs/index.js","../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../node_modules/react-transition-group/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/login.js b/dsql-app/.local_dist/server/pages/login.js index f8ece99..2d9fb79 100644 --- a/dsql-app/.local_dist/server/pages/login.js +++ b/dsql-app/.local_dist/server/pages/login.js @@ -1,520 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3459; -exports.ids = [3459]; -exports.modules = { - -/***/ 9168: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ Login), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: external "next/head" -var head_ = __webpack_require__(968); -var head_default = /*#__PURE__*/__webpack_require__.n(head_); -// EXTERNAL MODULE: ./functions/frontend/clearCaches.js -var clearCaches = __webpack_require__(9137); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./functions/frontend/userLogin.js -// @ts-check - - -/** - * user login form submit function - * ============================================================================== - * @param {object} params - * @param {any} params.e - * @param {React.Dispatch<React.SetStateAction<string | boolean>>} params.setAlert - * @param {React.Dispatch<React.SetStateAction<boolean>>} params.setLoading - * @param {any} params.query - */ async function userLogin({ e , setAlert , setLoading , query }) { - /** Initialize - * ============================================================================== - */ e.preventDefault(); - setLoading(true); - let email = e.target["email-or-username-input"]; - let password = e.target["password"]; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** Sanitize - * ============================================================================== - */ if (email?.value === "" && password?.value === "") { - email.classList.add("warning"); - password.classList.add("warning"); - setAlert("No Email or Password Provided"); - setLoading(false); - return; - } else if (password?.value === "") { - setAlert(false); - password.classList.add("warning"); - setAlert(true); - setLoading(false); - return; - } else { - email.classList.remove("warning"); - password.classList.remove("warning"); - setAlert(false); - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - let postBodyObject = { - email: email.value, - password: password.value, - query: query - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - (0,fetchApi/* default */.Z)("/api/loginUser", { - method: "post", - body: postBodyObject - }).then(async (res)=>{ - console.log(res); - if (res.user && res.user.auth) { - localStorage.setItem("userid", res.user.userid); - localStorage.setItem("csrf", res.user.csrf_k); - localStorage.setItem("user", JSON.stringify(res.userPayload)); - (0,clearCaches/* default */.Z)().then(()=>{ - window.location.reload(); - }); - } else { - setAlert(res.msg); - setLoading(false); - } - }); -} - -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./components/pages/login/SocialLogin.jsx + 3 modules -var SocialLogin = __webpack_require__(8374); -;// CONCATENATED MODULE: ./components/pages/login/LoginForm.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("@/package-shared/types").LoginFormContextType} */ // @ts-ignore -const init = {}; -const LoginFormContext = /*#__PURE__*/ external_react_default().createContext(init); -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {import("@/package-shared/types").UserType | null} [props.user] - * @param {any} props.query - */ function LoginForm({ user , query }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ alert: string | boolean, setAlert: React.Dispatch<React.SetStateAction<string | boolean>> ]} */ // @ts-ignore - let { 0: alert , 1: setAlert } = (0,external_react_.useState)(null); - let { 0: loading , 1: setLoading } = (0,external_react_.useState)(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)(LoginFormContext.Provider, { - value: { - loading, - setLoading, - alert, - setAlert, - user - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(SocialLogin/* default */.Z, { - user: user, - userType: "admin", - setLoading: setLoading - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-center relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "bg-white dark:bg-slate-800 px-3 relative z-10", - children: "OR" - }), - /*#__PURE__*/ jsx_runtime_.jsx("hr", { - className: "absolute" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col items-stretch gap-4", - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - alert && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50", - children: alert - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "flex flex-col gap-2 w-full", - onSubmit: (/** @type {any} */ e)=>{ - userLogin({ - e, - setAlert, - setLoading, - query: query - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - name: "email-or-username-input", - id: "email-or-username-input", - placeholder: "Email or username", - defaultValue: query?.email ? query.email : "", - required: true, - onInput: (e)=>{ - if (alert) setAlert(false); - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "password", - name: "password", - id: "password-input", - placeholder: "Password", - required: true, - onInput: (e)=>{ - if (alert) setAlert(false); - } - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - type: "submit", - children: "Login" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex flex-col items-center w-full mb-2", - children: /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/send-password-reset-link", - className: "text-secondary font-semibold", - children: "Forgot Password?" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex items-center gap-2 justify-center w-full mb-2 flex-wrap", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Dont have an account yet?" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/create-account", - className: "text-secondary font-semibold", - children: "Register Now" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "justify-center text-sm text-secondary", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/terms", - className: "text-secondary", - children: "Terms and Conditions" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/privacy", - className: "text-secondary", - children: "Privacy Policy" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./components/general/Logo.jsx -var Logo = __webpack_require__(4017); -// EXTERNAL MODULE: ./components/general/LoadingScreen.jsx -var LoadingScreen = __webpack_require__(6478); -;// CONCATENATED MODULE: ./pages/login.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.query - */ function Login(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const user = {}; - external_react_default().useEffect(()=>{ - setTimeout(()=>{ - if (props.query.invite && props.user) { - window.location.pathname = "/create-account"; - } - }, 1000); - if (!props.query.invite) { - localStorage.setItem("user", "{}"); - } - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (props.query.invite && props.user) { - return /*#__PURE__*/ jsx_runtime_.jsx(LoadingScreen/* default */.Z, {}); - } - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)((head_default()), { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: "Login to your account" - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: "Login to your account" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("main", { - className: "w-screen h-screen flex items-center justify-center p-4 md:p-8", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars", - style: { - maxHeight: "calc(100vh - 40px)" - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(Logo/* default */.Z, {}), - /*#__PURE__*/ jsx_runtime_.jsx("hr", {}), - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "m-0 text-lg font-semibold", - children: "Login to your account" - }), - /*#__PURE__*/ jsx_runtime_.jsx(LoginForm, { - user: props.user, - query: props.query - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** @type {import("next").GetServerSideProps} */ async function getServerSideProps({ req , res , query }) { - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User Authentication - * - * @description User authentication - */ const user = await userAuth_default()(req, res); - if (user) { - return { - redirect: { - destination: `/admin`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - query - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 6843: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ContentCopy"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 9174: -/***/ ((module) => { - -module.exports = require("@mui/material/Snackbar"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,5264,6729,4480,370,8374,6478], () => (__webpack_exec__(9168))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=676,e.ids=[636,676],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},12037:(e,t,r)=>{r.r(t),r.d(t,{config:()=>L,default:()=>A,getServerSideProps:()=>D,getStaticPaths:()=>N,getStaticProps:()=>E,reportWebVitals:()=>M,routeModule:()=>C,unstable_getServerProps:()=>T,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>O,unstable_getStaticProps:()=>I});var s={};r.r(s),r.d(s,{default:()=>w,getServerSideProps:()=>_});var i=r(63865),a=r(9455),n=r(30671),o=r(49407),l=r(68268),u=r(8732),c=r(82015),m=r.n(c),p=r(27912),d=r.n(p),x=r(76601),f=r(63715);async function h({e,setAlert:t,setLoading:r,query:s}){e.preventDefault(),r(!0);let i=e.target["email-or-username-input"],a=e.target.password;if(i?.value===""&&a?.value===""){i.classList.add("warning"),a.classList.add("warning"),t("No Email or Password Provided"),r(!1);return}if(a?.value===""){t(!1),a.classList.add("warning"),t(!0),r(!1);return}i.classList.remove("warning"),a.classList.remove("warning"),t(!1);let n={email:i.value,password:a.value,query:s};(0,f.A)("/api/loginUser",{method:"post",body:n}).then(async e=>{console.log(e),e.user&&e.user.auth?(localStorage.setItem("userid",e.user.userid),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.userPayload)),(0,x.A)().then(()=>{window.location.reload()})):(t(e.msg),r(!1))})}var g=r(32415),y=r(72414);let j=m().createContext({});function v({user:e,query:t}){let[r,s]=(0,c.useState)(null),[i,a]=(0,c.useState)(!1);return(0,u.jsxs)(j.Provider,{value:{loading:i,setLoading:a,alert:r,setAlert:s,user:e},children:[(0,u.jsx)(y.A,{user:e,userType:"admin",setLoading:a}),(0,u.jsxs)("div",{className:"w-full justify-center relative",children:[(0,u.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,u.jsx)("hr",{className:"absolute"})]}),(0,u.jsxs)("div",{className:"w-full flex-col items-stretch gap-4",children:[i&&(0,u.jsx)(g.A,{}),r&&(0,u.jsx)("div",{className:"p-2 justify-center text-sm border border-solid border-orange-400 rounded bg-orange-50",children:r}),(0,u.jsxs)("form",{className:"flex flex-col gap-2 w-full",onSubmit:e=>{h({e,setAlert:s,setLoading:a,query:t})},children:[(0,u.jsx)("input",{type:"text",name:"email-or-username-input",id:"email-or-username-input",placeholder:"Email or username",defaultValue:t?.email?t.email:"",required:!0,onInput:e=>{r&&s(!1)}}),(0,u.jsx)("input",{type:"password",name:"password",id:"password-input",placeholder:"Password",required:!0,onInput:e=>{r&&s(!1)}}),(0,u.jsx)("button",{type:"submit",children:"Login"})]}),(0,u.jsx)("div",{className:"flex flex-col items-center w-full mb-2",children:(0,u.jsx)("a",{href:"/send-password-reset-link",className:"text-secondary font-semibold",children:"Forgot Password?"})}),(0,u.jsxs)("div",{className:"flex items-center gap-2 justify-center w-full mb-2 flex-wrap",children:[(0,u.jsx)("span",{children:"Dont have an account yet?"}),(0,u.jsx)("a",{href:"/create-account",className:"text-secondary font-semibold",children:"Register Now"})]}),(0,u.jsxs)("div",{className:"justify-center text-sm text-secondary",children:[(0,u.jsx)("a",{href:"/terms",className:"text-secondary",children:"Terms and Conditions"}),(0,u.jsx)("a",{href:"/privacy",className:"text-secondary",children:"Privacy Policy"})]})]})]})}var S=r(20048),P=r.n(S),q=r(93353),b=r(55966);function w(e){return e.query.invite&&e.user?(0,u.jsx)(b.A,{}):(0,u.jsxs)(m().Fragment,{children:[(0,u.jsxs)(d(),{children:[(0,u.jsx)("title",{children:"Login to your account"}),(0,u.jsx)("meta",{name:"description",content:"Login to your account"})]}),(0,u.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,u.jsxs)("div",{className:"card col items-center no-hover max-w-md w-full bg-white p-4 sm:p-6 overflow-auto minimal-scrollbars",style:{maxHeight:"calc(100vh - 40px)"},children:[(0,u.jsx)(q.A,{}),(0,u.jsx)("hr",{}),(0,u.jsx)("h3",{className:"m-0 text-lg font-semibold",children:"Login to your account"}),(0,u.jsx)(v,{user:e.user,query:e.query})]})})]})}async function _({req:e,res:t,query:r}){let s=await P()(e,t);return s?{redirect:{destination:"/admin",permanent:!1}}:{props:{user:s,query:r}}}let A=(0,n.M)(s,"default"),E=(0,n.M)(s,"getStaticProps"),N=(0,n.M)(s,"getStaticPaths"),D=(0,n.M)(s,"getServerSideProps"),L=(0,n.M)(s,"config"),M=(0,n.M)(s,"reportWebVitals"),I=(0,n.M)(s,"unstable_getStaticProps"),O=(0,n.M)(s,"unstable_getStaticPaths"),R=(0,n.M)(s,"unstable_getStaticParams"),T=(0,n.M)(s,"unstable_getServerProps"),k=(0,n.M)(s,"unstable_getServerSideProps"),C=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/login",pathname:"/login",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},55966:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(8732);r(82015);var i=r(32415);function a(){return(0,s.jsx)("div",{className:"flex flex-col gap-4 items-center justify-center w-full h-screen p-6 bg-slate-100",children:(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 px-6 py-20 bg-white rounded shadow-sm max-w-2xl w-full",children:[(0,s.jsx)("img",{src:"/images/logo-icon-alt-2.webp",alt:"Datasquirel Logo",width:60}),(0,s.jsx)("div",{className:"w-10 h-10 flex flex-col items-center justify-center",children:(0,s.jsx)(i.A,{width:"25px",position:"relative"})})]})})}},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(83007),a=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let l=JSON.parse(o);if(!l.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${l.csrf_k}`)))return null;let u=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!u)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${u}/${l.csrf_k}`))return null;if(0==l.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${l.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return l?.date&&Date.now()-l.date>6048e5?null:l}e.exports=n},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},67216:(e,t,r)=>{let s=r(9973),i=r(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var i=r(20883);function a(e){return(0,s.jsxs)(i.Html,{lang:"en",children:[(0,s.jsxs)(i.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(i.Main,{}),(0,s.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,2414],()=>r(12037));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/login.js.nft.json b/dsql-app/.local_dist/server/pages/login.js.nft.json index 3c7c288..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/5264.js","../chunks/6729.js","../chunks/4480.js","../chunks/370.js","../chunks/8374.js","../chunks/6478.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/react-dom/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/@mui/material/Snackbar/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/react-dom/index.js","../../../node_modules/@mui/material/node/Snackbar/index.js","../../../node_modules/@mui/material/node/Paper/index.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/ContentCopy.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useTheme.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../node_modules/@mui/material/node/Paper/Paper.js","../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/Grow/index.js","../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/base/node/index.js","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/Grow/Grow.js","../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/scheduler/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/@mui/base/useSnackbar/package.json","../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/material/node/transitions/utils.js","../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../node_modules/@mui/base/node/NoSsr/index.js","../../../node_modules/@mui/base/node/Portal/index.js","../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/base/node/utils/index.js","../../../node_modules/@mui/base/node/Badge/index.js","../../../node_modules/@mui/base/node/Button/index.js","../../../node_modules/@mui/base/node/FormControl/index.js","../../../node_modules/@mui/base/node/Dropdown/index.js","../../../node_modules/@mui/base/node/Input/index.js","../../../node_modules/@mui/base/node/Menu/index.js","../../../node_modules/@mui/base/node/MenuButton/index.js","../../../node_modules/@mui/base/node/MenuItem/index.js","../../../node_modules/@mui/base/node/Modal/index.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../node_modules/@mui/base/node/Option/index.js","../../../node_modules/@mui/base/node/Popper/index.js","../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../node_modules/@mui/base/node/Select/index.js","../../../node_modules/@mui/base/node/Slider/index.js","../../../node_modules/@mui/base/node/Snackbar/index.js","../../../node_modules/@mui/base/node/Switch/index.js","../../../node_modules/@mui/base/node/TablePagination/index.js","../../../node_modules/@mui/base/node/TabPanel/index.js","../../../node_modules/@mui/base/node/TabsList/index.js","../../../node_modules/@mui/base/node/Tabs/index.js","../../../node_modules/@mui/base/node/Tab/index.js","../../../node_modules/@mui/base/node/Transitions/index.js","../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../node_modules/@mui/base/node/useBadge/index.js","../../../node_modules/@mui/base/node/useButton/index.js","../../../node_modules/@mui/base/node/useDropdown/index.js","../../../node_modules/@mui/base/node/useInput/index.js","../../../node_modules/@mui/base/node/useMenu/index.js","../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../node_modules/@mui/base/node/useOption/index.js","../../../node_modules/@mui/base/node/useSelect/index.js","../../../node_modules/@mui/base/node/useSlider/index.js","../../../node_modules/@mui/base/node/useSwitch/index.js","../../../node_modules/@mui/base/node/useTab/index.js","../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../node_modules/@mui/base/node/useTabs/index.js","../../../node_modules/@mui/base/node/useTabsList/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/react-transition-group/package.json","../../../node_modules/react-transition-group/cjs/index.js","../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../node_modules/@mui/base/node/Portal/Portal.js","../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../node_modules/@mui/base/node/utils/types.js","../../../node_modules/@mui/base/node/Badge/Badge.js","../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../node_modules/@mui/base/node/Button/Button.js","../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../node_modules/@mui/base/node/Button/Button.types.js","../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../node_modules/@mui/base/node/Input/Input.js","../../../node_modules/@mui/base/node/Input/Input.types.js","../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../node_modules/@mui/base/node/Menu/Menu.js","../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../node_modules/@mui/base/node/Modal/Modal.js","../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../node_modules/@mui/base/node/Option/Option.js","../../../node_modules/@mui/base/node/Option/Option.types.js","../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../node_modules/@mui/base/node/Popper/Popper.js","../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../node_modules/@mui/base/node/Switch/Switch.js","../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../node_modules/@mui/base/node/Select/Select.js","../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../node_modules/@mui/base/node/Select/Select.types.js","../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../node_modules/@mui/base/node/Slider/Slider.js","../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../node_modules/@mui/base/node/Tab/Tab.js","../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../node_modules/@mui/base/node/useButton/useButton.js","../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../node_modules/@mui/base/node/useInput/useInput.js","../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../node_modules/@mui/base/node/useOption/useOption.js","../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../node_modules/@mui/base/node/useTab/useTab.js","../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../node_modules/react-transition-group/cjs/Transition.js","../../../node_modules/react-transition-group/cjs/config.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../node_modules/@mui/base/node/useList/ListContext.js","../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../node_modules/object-assign/package.json","../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../node_modules/@mui/base/node/useList/index.js","../../../node_modules/@mui/base/node/useTransition/index.js","../../../node_modules/@mui/base/node/useCompound/index.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/@floating-ui/react-dom/package.json","../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../node_modules/@popperjs/core/package.json","../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/base/node/useList/useList.js","../../../node_modules/@mui/base/node/useList/useList.types.js","../../../node_modules/@mui/base/node/useList/useListItem.js","../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../node_modules/@mui/base/node/useList/listReducer.js","../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/dom-helpers/addClass/package.json","../../../node_modules/dom-helpers/cjs/addClass.js","../../../node_modules/dom-helpers/removeClass/package.json","../../../node_modules/dom-helpers/cjs/removeClass.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../node_modules/dom-helpers/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/dom-helpers/cjs/hasClass.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@floating-ui/dom/package.json","../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/@floating-ui/core/package.json","../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/logout.js b/dsql-app/.local_dist/server/pages/logout.js index ba67ebb..5d194f9 100644 --- a/dsql-app/.local_dist/server/pages/logout.js +++ b/dsql-app/.local_dist/server/pages/logout.js @@ -1,359 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 765; -exports.ids = [765]; -exports.modules = { - -/***/ 9137: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ clearCaches) -/* harmony export */ }); -// @ts-check -/** - * Clear Caches function - * ============================================================================== - */ async function clearCaches() { - try { - /** Initialize - * ============================================================================== - */ /** ********************* Variables */ const keys = await caches.keys(); - if (keys[0]) { - await Promise.all(keys.map((key)=>{ - return caches.delete(key); - })); - } - } catch (/** @type {any} */ error) { - console.log("Error in clearing cache =>", error.message); - } -} - - -/***/ }), - -/***/ 1780: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Login), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(968); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7147); -/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _functions_frontend_clearCaches__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9137); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -/** - * Imports - * ============================================================================== - */ - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -const userAuth = __webpack_require__(370); - - - -/** - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - React component props including { children } - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.query - */ function Login({ user , query }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - // ## Head Items - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: "Loging Out | Datasquirel" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: "Login you out" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "https://accounts.google.com/gsi/client" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("script", { - src: "https://connect.facebook.net/en_US/sdk.js", - crossOrigin: "anonymous" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - localStorage.setItem("user", "{}"); - localStorage.removeItem("csrf"); - // window.location.pathname = "/" - }, []); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - function redirect() { - if (query?.invite && query?.login) { - return window.location.href = `/login` + window.location.search; - // return window.location.href = `/login?email=${query.email}`; - } - if (query?.login) { - return window.location.href = `/login`; - } - if (localStorage.getItem("logoutParadigm")?.match(/reset/)) { - return window.location.href = "/login"; - } - if (user?.social_platform?.match(/google/)) { - localStorage.setItem("google_prompt_skipped", "logout"); - } - window.location.pathname = "/"; - } - //////////////////////////////////////// - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/logoutUser").then(async (res)=>{ - await (0,_functions_frontend_clearCaches__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(); - let regs = await navigator.serviceWorker.getRegistrations(); - for(let i = 0; i < regs.length; i++){ - const reg = regs[i]; - await reg.unregister(); - } - try { - FB.init({ - appId: "", - cookie: true, - xfbml: true, - version: "v13.0" - }); - FB.getLoginStatus((response)=>{ - if (response.authResponse) { - FB.logout((res)=>{ - redirect(); - }); - } else { - google.accounts.id.initialize({ - client_id: "" - }); - if (user?.social_platform?.match(/google/) && user.social_id) { - google.accounts.id.revoke(); - google.accounts.id.revoke(user.social_id, (done)=>{ - console.log(done.error); - redirect(); - }); - } else { - redirect(); - } - } - }); - } catch (error) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/admin/clientError", { - method: "post", - body: { - component: "logout-page-component/lines-111-142", - message: error.message, - user: user - } - }); - } - }); - }, []); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_head__WEBPACK_IMPORTED_MODULE_2___default()), { - children: head - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("main", { - className: "w-screen h-screen flex items-center justify-center p-4 md:p-8", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("a", { - href: "/", - className: "flex items-center gap-2", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("img", { - src: "/images/logo-icon-alt-2.png", - alt: "Logo Icon", - width: 37 - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "font-bold text-2xl", - children: "Datasquirel" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h3", { - className: "text-lg m-0 mt-4 text-slate-400", - children: "Logging out" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - position: "relative", - width: "20px" - }) - ] - }) - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - // ## Environment processes - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User Authentication - * - * @description User authentication - */ const user = await userAuth(req, res); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - if (user) { - console.log(user.csrf_k); - try { - const allowedAuthKeysPath = process.env.DSQL_USER_LOGIN_KEYS_PATH; - const allowedAuthKeyPath = `${allowedAuthKeysPath}/${user.csrf_k}`; - console.log("allowedAuthKeyPath", allowedAuthKeyPath); - fs__WEBPACK_IMPORTED_MODULE_3___default().unlinkSync(allowedAuthKeyPath); - } catch (/** @type {any} */ error) { - console.log(`Logout API error: ${error.message}`); - } - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ res.setHeader("Set-Cookie", [ - "datasquirelAuthKey=none;max-age=0", - "usertype=none;max-age=0", - `refresh_properties=1;Max-Age=7000`, - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - logged_out: true, - query - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [5264,6729,4480,370], () => (__webpack_exec__(1780))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=7122,e.ids=[636,7122],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},9247:(e,t,r)=>{r.r(t),r.d(t,{config:()=>v,default:()=>_,getServerSideProps:()=>j,getStaticPaths:()=>q,getStaticProps:()=>P,reportWebVitals:()=>b,routeModule:()=>w,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>D,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>A});var s={};r.r(s),r.d(s,{default:()=>S,getServerSideProps:()=>y});var i=r(63865),o=r(9455),n=r(30671),a=r(49407),u=r(68268),l=r(8732),c=r(82015),p=r.n(c),m=r(27912),x=r.n(m),d=r(29021),g=r.n(d);r(63715),r(76601);var h=r(32415);let f=r(20048);function S({user:e,query:t}){let r=(0,l.jsxs)(p().Fragment,{children:[(0,l.jsx)("title",{children:"Loging Out | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Login you out"}),(0,l.jsx)("script",{src:"https://accounts.google.com/gsi/client"}),(0,l.jsx)("script",{src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"})]});return(0,l.jsxs)(p().Fragment,{children:[(0,l.jsx)(x(),{children:r}),(0,l.jsx)("main",{className:"w-screen h-screen flex items-center justify-center p-4 md:p-8",children:(0,l.jsxs)("div",{className:"card max-w-md flex-col items-center bg-white p-6 rounded border border-slate-200 border-solid",children:[(0,l.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37}),(0,l.jsx)("span",{className:"font-bold text-2xl",children:"Datasquirel"})]}),(0,l.jsx)("h3",{className:"text-lg m-0 mt-4 text-slate-400",children:"Logging out"}),(0,l.jsx)(h.A,{position:"relative",width:"20px"})]})})]})}async function y({req:e,res:t,query:r}){let s=await f(e,t);if(s){console.log(s.csrf_k);try{let e=process.env.DSQL_USER_LOGIN_KEYS_PATH,t=`${e}/${s.csrf_k}`;console.log("allowedAuthKeyPath",t),g().unlinkSync(t)}catch(e){console.log(`Logout API error: ${e.message}`)}}return t.setHeader("Set-Cookie",["datasquirelAuthKey=none;max-age=0","usertype=none;max-age=0","refresh_properties=1;Max-Age=7000"]),{props:{user:s,logged_out:!0,query:r}}}let _=(0,n.M)(s,"default"),P=(0,n.M)(s,"getStaticProps"),q=(0,n.M)(s,"getStaticPaths"),j=(0,n.M)(s,"getServerSideProps"),v=(0,n.M)(s,"config"),b=(0,n.M)(s,"reportWebVitals"),A=(0,n.M)(s,"unstable_getStaticProps"),E=(0,n.M)(s,"unstable_getStaticPaths"),D=(0,n.M)(s,"unstable_getStaticParams"),M=(0,n.M)(s,"unstable_getServerProps"),L=(0,n.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:o.A.PAGES,page:"/logout",pathname:"/logout",bundlePath:"",filename:""},components:{App:u.default,Document:a.default},userland:s})},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(83007),o=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=i(e.cookies.datasquirelAuthKey);if(!a)return null;let u=JSON.parse(a);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!o.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},76601:(e,t,r)=>{r.d(t,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:o}=r(79428);e.exports=e=>{let t=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),o.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},67216:(e,t,r)=>{let s=r(9973),i=r(31976),o=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let t=await o.query(...e);return await o.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var s=r(8732);r(82015);var i=r(20883);function o(e){return(0,s.jsxs)(i.Html,{lang:"en",children:[(0,s.jsxs)(i.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(i.Main,{}),(0,s.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268],()=>r(9247));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/logout.js.nft.json b/dsql-app/.local_dist/server/pages/logout.js.nft.json index 7dd5055..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/logout.js.nft.json +++ b/dsql-app/.local_dist/server/pages/logout.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/5264.js","../chunks/6729.js","../chunks/4480.js","../chunks/370.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/mysql/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/pricing.html b/dsql-app/.local_dist/server/pages/pricing.html deleted file mode 100644 index 3d7fb21..0000000 --- a/dsql-app/.local_dist/server/pages/pricing.html +++ /dev/null @@ -1 +0,0 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><meta name="next-head-count" content="2"/><meta name="author" content="Datasquirel"/><meta name="Copyright" content="Copyright (c) 2024 Datasquirel"/><meta name="robots" content="noindex,nofollow"/><link rel="preconnect" crossorigin="anonymous" data-href="https://fonts.googleapis.com/"/><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous"/><script src="/scripts/themeSelector.js"></script><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta property="og:site_name" content="DATASQUIREL"/><meta property="og:type" content="website"/><meta name="twitter:card" content="summary"/><meta property="og:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta itemProp="image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><meta name="twitter:image" content="https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"/><link rel="stylesheet" href="/styles/prism.css"/><script src="/scripts/prism.js" async=""></script><script>var DSQL = {}</script><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /><link rel="preload" href="/_next/static/css/38c6a6484b610a50.css" as="style"/><link rel="stylesheet" href="/_next/static/css/38c6a6484b610a50.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-309fbebe2073f18c.js" defer=""></script><script src="/_next/static/chunks/framework-4ed89e9640adfb9e.js" defer=""></script><script src="/_next/static/chunks/main-fd9fe2eccf11c307.js" defer=""></script><script src="/_next/static/chunks/pages/_app-881c4f419bb13dab.js" defer=""></script><script src="/_next/static/chunks/pages/pricing-e193043fd895ccd5.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js" defer=""></script><script src="/_next/static/JWcGy7ApzQNGHJR0-bv4k/_ssgManifest.js" defer=""></script><style data-href="https://fonts.googleapis.com/css?family=Poppins">@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfedA.woff) format('woff')}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Poppins';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=Inter">@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjg.woff) format('woff')}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZJhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZthjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZNhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+1F00-1FFF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZxhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZBhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZFhjp-Ek-_EeAmM.woff) format('woff');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'Inter';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hjp-Ek-_EeA.woff) format('woff');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style><style data-href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q0Q.woff) format('woff')}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iIq131nj-otFQ.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1isq131nj-otFQ.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iAq131nj-otFQ.woff2) format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1iEq131nj-otFQ.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;src:url(https://fonts.gstatic.com/s/ibmplexmono/v19/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}</style></head><body><div id="__next"></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{}},"page":"/pricing","query":{},"buildId":"JWcGy7ApzQNGHJR0-bv4k","nextExport":true,"autoExport":true,"isFallback":false,"scriptLoader":[]}</script></body></html> \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/pricing.js.nft.json b/dsql-app/.local_dist/server/pages/pricing.js.nft.json deleted file mode 100644 index 1d5d478..0000000 --- a/dsql-app/.local_dist/server/pages/pricing.js.nft.json +++ /dev/null @@ -1 +0,0 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/privacy.html b/dsql-app/.local_dist/server/pages/privacy.html index 325afdb..8fe2767 100644 --- a/dsql-app/.local_dist/server/pages/privacy.html +++ b/dsql-app/.local_dist/server/pages/privacy.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Privacy Policy | Datasquirel

Privacy Policy

Privacy Policy for Datasquirel
Dotted image background

At datasquirel.com, accessible from https://datasquirel.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by datasquirel.com and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in datasquirel.com. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

Information we collect

The personal information that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal information.

If you contact us directly, we may receive additional information about you such as your name, email address, phone number, the contents of the message and/or attachments you may send us, and any other information you may choose to provide.

When you register for an Account, we may ask for your contact information, including items such as name, company name, address, email address, and telephone number.

How we use your information

We use the information we collect in various ways, including to:

  • Provide, operate, and maintain our website
  • Improve, personalize, and expand our website
  • Understand and analyze how you use our website
  • Develop new products, services, features, and functionality
  • Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the website, and for marketing and promotional purposes
  • Send you emails
  • Find and prevent fraud

Log Files

datasquirel.com follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.

Cookies and Web Beacons

Like any other website, datasquirel.com uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.

Advertising Partners Privacy Policies

You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com.

Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on datasquirel.com, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.

Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers.

Third Party Privacy Policies

datasquirel.com's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.

You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites.

CCPA Privacy Rights (Do Not Sell My Personal Information)

Under the CCPA, among other rights, California consumers have the right to:

Request that a business that collects a consumer's personal data disclose the categories and specific pieces of personal data that a business has collected about consumers.

Request that a business delete any personal data about the consumer that a business has collected.

Request that a business that sells a consumer's personal data, not sell the consumer's personal data.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

GDPR Data Protection Rights

We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:

The right to access – You have the right to request copies of your personal data. We may charge you a small fee for this service.

The right to rectification – You have the right to request that we correct any information you believe is inaccurate. You also have the right to request that we complete the information you believe is incomplete.

The right to erasure – You have the right to request that we erase your personal data, under certain conditions.

The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions.

The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions.

The right to data portability – You have the right to request that we transfer the data that we have collected to another organization, or directly to you, under certain conditions.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

Children's Information

Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.

datasquirel.com does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.

\ No newline at end of file +Privacy Policy | Datasquirel

Privacy Policy

Privacy Policy for Datasquirel
Dotted image background

At datasquirel.com, accessible from https://datasquirel.com, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that is collected and recorded by datasquirel.com and how we use it.

If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us.

This Privacy Policy applies only to our online activities and is valid for visitors to our website with regards to the information that they shared and/or collect in datasquirel.com. This policy is not applicable to any information collected offline or via channels other than this website.

Consent

By using our website, you hereby consent to our Privacy Policy and agree to its terms.

Information we collect

The personal information that you are asked to provide, and the reasons why you are asked to provide it, will be made clear to you at the point we ask you to provide your personal information.

If you contact us directly, we may receive additional information about you such as your name, email address, phone number, the contents of the message and/or attachments you may send us, and any other information you may choose to provide.

When you register for an Account, we may ask for your contact information, including items such as name, company name, address, email address, and telephone number.

How we use your information

We use the information we collect in various ways, including to:

  • Provide, operate, and maintain our website
  • Improve, personalize, and expand our website
  • Understand and analyze how you use our website
  • Develop new products, services, features, and functionality
  • Communicate with you, either directly or through one of our partners, including for customer service, to provide you with updates and other information relating to the website, and for marketing and promotional purposes
  • Send you emails
  • Find and prevent fraud

Log Files

datasquirel.com follows a standard procedure of using log files. These files log visitors when they visit websites. All hosting companies do this and a part of hosting services' analytics. The information collected by log files include internet protocol (IP) addresses, browser type, Internet Service Provider (ISP), date and time stamp, referring/exit pages, and possibly the number of clicks. These are not linked to any information that is personally identifiable. The purpose of the information is for analyzing trends, administering the site, tracking users' movement on the website, and gathering demographic information.

Cookies and Web Beacons

Like any other website, datasquirel.com uses 'cookies'. These cookies are used to store information including visitors' preferences, and the pages on the website that the visitor accessed or visited. The information is used to optimize the users' experience by customizing our web page content based on visitors' browser type and/or other information.

Advertising Partners Privacy Policies

You may consult this list to find the Privacy Policy for each of the advertising partners of datasquirel.com.

Third-party ad servers or ad networks uses technologies like cookies, JavaScript, or Web Beacons that are used in their respective advertisements and links that appear on datasquirel.com, which are sent directly to users' browser. They automatically receive your IP address when this occurs. These technologies are used to measure the effectiveness of their advertising campaigns and/or to personalize the advertising content that you see on websites that you visit.

Note that datasquirel.com has no access to or control over these cookies that are used by third-party advertisers.

Third Party Privacy Policies

datasquirel.com's Privacy Policy does not apply to other advertisers or websites. Thus, we are advising you to consult the respective Privacy Policies of these third-party ad servers for more detailed information. It may include their practices and instructions about how to opt-out of certain options.

You can choose to disable cookies through your individual browser options. To know more detailed information about cookie management with specific web browsers, it can be found at the browsers' respective websites.

CCPA Privacy Rights (Do Not Sell My Personal Information)

Under the CCPA, among other rights, California consumers have the right to:

Request that a business that collects a consumer's personal data disclose the categories and specific pieces of personal data that a business has collected about consumers.

Request that a business delete any personal data about the consumer that a business has collected.

Request that a business that sells a consumer's personal data, not sell the consumer's personal data.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

GDPR Data Protection Rights

We would like to make sure you are fully aware of all of your data protection rights. Every user is entitled to the following:

The right to access – You have the right to request copies of your personal data. We may charge you a small fee for this service.

The right to rectification – You have the right to request that we correct any information you believe is inaccurate. You also have the right to request that we complete the information you believe is incomplete.

The right to erasure – You have the right to request that we erase your personal data, under certain conditions.

The right to restrict processing – You have the right to request that we restrict the processing of your personal data, under certain conditions.

The right to object to processing – You have the right to object to our processing of your personal data, under certain conditions.

The right to data portability – You have the right to request that we transfer the data that we have collected to another organization, or directly to you, under certain conditions.

If you make a request, we have one month to respond to you. If you would like to exercise any of these rights, please contact us.

Children's Information

Another part of our priority is adding protection for children while using the internet. We encourage parents and guardians to observe, participate in, and/or monitor and guide their online activity.

datasquirel.com does not knowingly collect any Personal Identifiable Information from children under the age of 13. If you think that your child provided this kind of information on our website, we strongly encourage you to contact us immediately and we will do our best efforts to promptly remove such information from our records.

\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/privacy.js.nft.json b/dsql-app/.local_dist/server/pages/privacy.js.nft.json index 3305a07..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/privacy.js.nft.json +++ b/dsql-app/.local_dist/server/pages/privacy.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/4598.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/redirect.html b/dsql-app/.local_dist/server/pages/redirect.html index a5240df..fbf9dc4 100644 --- a/dsql-app/.local_dist/server/pages/redirect.html +++ b/dsql-app/.local_dist/server/pages/redirect.html @@ -1 +1 @@ -
Datasquirel Logo
\ No newline at end of file +
Datasquirel Logo
\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/redirect.js.nft.json b/dsql-app/.local_dist/server/pages/redirect.js.nft.json index 51f46ef..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/redirect.js.nft.json +++ b/dsql-app/.local_dist/server/pages/redirect.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/reset-password.js b/dsql-app/.local_dist/server/pages/reset-password.js index 6fafc66..63e9eec 100644 --- a/dsql-app/.local_dist/server/pages/reset-password.js +++ b/dsql-app/.local_dist/server/pages/reset-password.js @@ -1,406 +1,16 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8006; -exports.ids = [8006]; -exports.modules = { - -/***/ 5082: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "ResetPasswordContext": () => (/* binding */ ResetPasswordContext), -/* harmony export */ "default": () => (/* binding */ ResetPasswordPage), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6217); -/* harmony import */ var _components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4097); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5264); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(6729); -/* harmony import */ var _components_general_FormSuccessBlock__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2186); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5304); -/* harmony import */ var _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_7__); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(2317); -/* harmony import */ var _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_serverError__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(6517); -/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_9__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// +"use strict";(()=>{var e={};e.id=7537,e.ids=[636,7537],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},75370:(e,t,r)=>{r.r(t),r.d(t,{config:()=>N,default:()=>A,getServerSideProps:()=>M,getStaticPaths:()=>R,getStaticProps:()=>D,reportWebVitals:()=>L,routeModule:()=>C,unstable_getServerProps:()=>k,unstable_getServerSideProps:()=>I,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>$,unstable_getStaticProps:()=>T});var s={};r.r(s),r.d(s,{ResetPasswordContext:()=>v,default:()=>E,getServerSideProps:()=>b});var i=r(63865),a=r(9455),n=r(30671),o=r(49407),u=r(68268),l=r(8732),c=r(82015),p=r.n(c),m=r(71457),d=r(87472),x=r(32415),g=r(20048),f=r.n(g),h=r(63715),S=r(13002),y=r(83007),P=r.n(y),w=r(68942),q=r.n(w),_=r(27825),j=r.n(_);let v=p().createContext({});function E(e){let{email:t}=e,r="Reset Password | Datasquirel",s="Set a new password",i=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:r}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(d.A,{pageTitle:r,pageDescription:s,pagePathname:"/"})]}),[a,n]=p().useState(!1),[o,u]=p().useState(!1);return(0,l.jsx)(m.A,{head:i,user:e.user,children:(0,l.jsx)(v.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[a&&(0,l.jsx)(x.A,{}),(0,l.jsx)("div",{className:"main-container flex-col items-start",children:o?(0,l.jsx)(S.A,{message:"Password Updated Sucessfully. Redirecting you ..."}):(0,l.jsxs)(p().Fragment,{children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Reset Password"}),(0,l.jsx)("span",{children:"Please enter new passord and confirm it"}),(0,l.jsxs)("form",{className:"max-w-xl w-full flex flex-col items-stretch gap-4",onSubmit:e=>{n(!0),e.preventDefault();let r=e.target,s=r.password.value,i=r["confirm-password"].classList.contains("warning");if(s?.length<8){window.alert("Password must be at least 8 characters"),setTimeout(()=>{n(!1)},500);return}if(i){window.alert("Passwords don't match"),setTimeout(()=>{n(!1)},500);return}(0,h.A)(`/api/resetPassword?email=${t}&password=${s}`).then(e=>{setTimeout(()=>{n(!1)},500),setTimeout(()=>{window.location.href="/logout?login=true"},1e3),e.success&&u(!0)})},children:[(0,l.jsx)("input",{type:"password",name:"password",id:"password",className:"w-full",placeholder:"New Password",required:!0}),(0,l.jsx)("input",{type:"password",name:"confirm-password",id:"confirm-password",className:"w-full",placeholder:"Confirm New Password",required:!0,onInput:e=>{let t=e.target,r=t.closest("form");try{r.password.value.match(RegExp(`^${j().escapeRegExp(t.value)}$`))?t.classList.remove("warning"):t.classList.add("warning")}catch(t){(0,h.A)("/api/admin/clientError",{method:"post",body:{component:"reset-password-page-component/lines-170-177",message:t.message,user:{}}}),e.target.classList.add("warning")}}}),(0,l.jsx)("button",{children:"Reset Password"})]})]})})]})})})})}async function b({req:e,res:t,query:r}){let s=await f()(e,t);if(!r?.token?.toString()?.match(/./))return{redirect:{destination:"/",permanent:!1}};let i=null;try{let e=P()(r.token.toString()),t=JSON.parse(e||"");if(Date.now()-t.dateCode>36e5)return{redirect:{destination:"/",permanent:!1}};i=t.email}catch(e){return q()({component:"reset-password-page-component/getServersideProps/lines-251-260",message:e.message,user:s}),{redirect:{destination:"/",permanent:!1}}}return i?.match(/./)?{props:{user:s,email:i}}:{redirect:{destination:"/",permanent:!1}}}let A=(0,n.M)(s,"default"),D=(0,n.M)(s,"getStaticProps"),R=(0,n.M)(s,"getStaticPaths"),M=(0,n.M)(s,"getServerSideProps"),N=(0,n.M)(s,"config"),L=(0,n.M)(s,"reportWebVitals"),T=(0,n.M)(s,"unstable_getStaticProps"),$=(0,n.M)(s,"unstable_getStaticPaths"),O=(0,n.M)(s,"unstable_getStaticParams"),k=(0,n.M)(s,"unstable_getServerProps"),I=(0,n.M)(s,"unstable_getServerSideProps"),C=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/reset-password",pathname:"/reset-password",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:s})},13002:(e,t,r)=>{r.d(t,{A:()=>i});var s=r(8732);function i({message:e,className:t}){return(0,s.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,s.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,s.jsx)("span",{children:e})]})}r(82015)},68942:(e,t,r)=>{let s=r(29021),{IncomingMessage:i}=r(81630);e.exports=async function({user:e,message:t,component:r,noMail:i,req:a}){let n=new Date,o=(()=>{if(!a)return null;try{let e=a.headers["x-forwarded-for"],t=a.headers["x-real-ip"],r=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],i=r||s||t||a.socket.remoteAddress;if(!i)return null;return String(i)}catch(e){return null}})();try{let i=`🚀 SERVER ERROR =========================== +Error Message: ${t} +Component: ${r}`;e?.id&&e?.first_name&&e?.last_name&&e?.email&&(i+=` +User Id: ${e?.id} +User Name: ${e?.first_name} ${e?.last_name} +User Email: ${e?.email}`),a?.url&&(i+=` +URL: ${a.url}`),a?.body&&(i+=` +Request Body: ${JSON.stringify(a.body,null,4)}`),o&&(i+=` +IP: ${o}`),i+=` +Date: ${n.toDateString()} +========================================`,s.existsSync("./.tmp/error.log")||s.writeFileSync("./.tmp/error.log","","utf-8");let u=s.readFileSync("./.tmp/error.log","utf-8");s.writeFileSync("./.tmp/error.log",i),s.appendFileSync("./.tmp/error.log",` - - - - - -/** ****************************************************************************** */ /** @type {{ user: import("@/package-shared/types").UserType | null }} */ // @ts-ignore -const init = {}; -const ResetPasswordContext = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1___default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.email - * @param {import("@/package-shared/types").UserType} props.user - */ function ResetPasswordPage(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ const { email } = props; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Reset Password | Datasquirel"; - const pageDescription = "Set a new password"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - const [passwordReset, setPasswordReset] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, { - head: head, - user: props.user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(ResetPasswordContext.Provider, { - value: { - user: props.user - }, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("main", { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, {}), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "main-container flex-col items-start", - children: passwordReset ? /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_FormSuccessBlock__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z, { - message: "Password Updated Sucessfully. Redirecting you ..." - }) : /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "m-0 text-4xl", - children: "Reset Password" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - children: "Please enter new passord and confirm it" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - className: "max-w-xl w-full flex flex-col items-stretch gap-4", - onSubmit: (e)=>{ - setLoading(true); - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - const password = formEl["password"].value; - const passwordConfirmationFailed = formEl["confirm-password"].classList.contains("warning"); - if (password?.length < 8) { - window.alert("Password must be at least 8 characters"); - setTimeout(()=>{ - setLoading(false); - }, 500); - return; - } - if (passwordConfirmationFailed) { - window.alert("Passwords don't match"); - setTimeout(()=>{ - setLoading(false); - }, 500); - return; - } - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(`/api/resetPassword?email=${email}&password=${password}`).then((res)=>{ - setTimeout(()=>{ - setLoading(false); - }, 500); - setTimeout(()=>{ - window.location.href = `/logout?login=true`; - }, 1000); - if (res.success) { - setPasswordReset(true); - } - }); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "password", - id: "password", - className: "w-full", - placeholder: "New Password", - required: true - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "confirm-password", - id: "confirm-password", - className: "w-full", - placeholder: "Confirm New Password", - required: true, - onInput: (e)=>{ - let match = false; - /** @type {HTMLInputElement} */ // @ts-ignore - const inputEl = e.target; - /** @type {HTMLFormElement} */ // @ts-ignore - const form = inputEl.closest("form"); - try { - const password = form["password"].value; - if (password.match(new RegExp(`^${lodash__WEBPACK_IMPORTED_MODULE_9___default().escapeRegExp(inputEl.value)}$`))) { - inputEl.classList.remove("warning"); - match = true; - } else { - inputEl.classList.add("warning"); - } - } catch (/** @type {any} */ error) { - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)("/api/admin/clientError", { - method: "post", - body: { - component: "reset-password-page-component/lines-170-177", - message: error.message, - user: {} - } - }); - // @ts-ignore - e.target.classList.add("warning"); - } - } - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - children: "Reset Password" - }) - ] - }) - ] - }) - }) - ] - }) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_5___default()(req, res); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User Auth - * - * @description User Auth - */ if (!query?.token?.toString()?.match(/./)) { - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - let email = null; - try { - const decryptedPayload = _package_shared_functions_backend_decrypt__WEBPACK_IMPORTED_MODULE_7___default()(query.token.toString()); - const payloadObject = JSON.parse(decryptedPayload || ""); - const hourInMilliseconds = 1000 * 60 * 60; - if (Date.now() - payloadObject.dateCode > hourInMilliseconds) { - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - email = payloadObject.email; - } catch (/** @type {any} */ error) { - _functions_backend_serverError__WEBPACK_IMPORTED_MODULE_8___default()({ - component: "reset-password-page-component/getServersideProps/lines-251-260", - message: error.message, - user: user - }); - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - if (!email?.match(/./)) { - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - email: email - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 6517: -/***/ ((module) => { - -module.exports = require("lodash"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,9360,6217,4097,2317,2186], () => (__webpack_exec__(5082))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +${u}`)}catch(e){console.log("Server Error Reporting Error:",e.message)}}},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(83007),a=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},67216:(e,t,r)=>{let s=r(9973),i=r(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var i=r(20883);function a(e){return(0,s.jsxs)(i.Html,{lang:"en",children:[(0,s.jsxs)(i.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(i.Main,{}),(0,s.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},27825:e=>{e.exports=require("lodash")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268],()=>r(75370));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/reset-password.js.nft.json b/dsql-app/.local_dist/server/pages/reset-password.js.nft.json index 8392107..a8ea6b2 100644 --- a/dsql-app/.local_dist/server/pages/reset-password.js.nft.json +++ b/dsql-app/.local_dist/server/pages/reset-password.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/2317.js","../chunks/2186.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lodash/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lodash/lodash.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/lodash/lodash.js","../../../node_modules/lodash/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/send-password-reset-link.js b/dsql-app/.local_dist/server/pages/send-password-reset-link.js index 4d782c7..4731324 100644 --- a/dsql-app/.local_dist/server/pages/send-password-reset-link.js +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js @@ -1,348 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3851; -exports.ids = [3851]; -exports.modules = { - -/***/ 1725: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "SendPassResetContext": () => (/* binding */ SendPassResetContext), - "default": () => (/* binding */ SendPasswordResetLinkPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./layouts/GeneralLayout.jsx + 1 modules -var GeneralLayout = __webpack_require__(6217); -// EXTERNAL MODULE: ./components/general/PageHeadTags.jsx -var PageHeadTags = __webpack_require__(4097); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/backend/userAuth.js -var userAuth = __webpack_require__(370); -var userAuth_default = /*#__PURE__*/__webpack_require__.n(userAuth); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/FormSuccessBlock.jsx -var FormSuccessBlock = __webpack_require__(2186); -;// CONCATENATED MODULE: external "@mui/icons-material/InfoTwoTone" -const InfoTwoTone_namespaceObject = require("@mui/icons-material/InfoTwoTone"); -var InfoTwoTone_default = /*#__PURE__*/__webpack_require__.n(InfoTwoTone_namespaceObject); -;// CONCATENATED MODULE: ./components/general/InfoBlock.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.message - */ function InfoBlock({ message }) { - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "info gray", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((InfoTwoTone_default()), { - fontSize: "small", - color: "inherit", - className: "opacity-50 text-gray-600" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "font-normal", - children: message - }) - ] - }); -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./pages/send-password-reset-link.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - - - - - - -/** ****************************************************************************** */ /** @type {{ user: import("@/package-shared/types").UserType | null }} */ // @ts-ignore -const init = {}; -const SendPassResetContext = /*#__PURE__*/ external_react_default().createContext(init); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - */ function SendPasswordResetLinkPage(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Cloudbased SQL data management system | Datasquirel"; - const pageDescription = "Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms."; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ jsx_runtime_.jsx(PageHeadTags/* default */.Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [emailSent, setEmailSent] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(GeneralLayout/* default */.Z, { - head: head, - user: props.user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SendPassResetContext.Provider, { - value: { - user: props.user - }, - children: /*#__PURE__*/ jsx_runtime_.jsx("main", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - emailSent ? /*#__PURE__*/ jsx_runtime_.jsx(FormSuccessBlock/* default */.Z, { - message: "Email Sent. Please check your email address and follow the link provided", - className: "whitespace-nowrap" - }) : /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "paper", - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "max-w-xl flex-col items-stretch", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h1", { - className: "m-0 text-4xl", - children: "Send Password Reset Link" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Please enter your email address to receive a password reset link" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "w-full flex flex-col items-stretch gap-4", - onSubmit: (e)=>{ - setLoading(true); - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - const email = formEl["email-address"].value; - (0,fetchApi/* default */.Z)(`/api/sendPasswordResetLink?email=${email}`).then((res)=>{ - console.log(res); - setTimeout(()=>{ - setLoading(false); - }, 500); - if (res.success) { - setEmailSent(true); - } - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: "text", - autoComplete: "email", - name: "email-address", - id: "email-address", - className: "w-full", - placeholder: "Email Address", - defaultValue: props?.user?.logged_in_status ? props.user.email : "", - required: true - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - children: "Send password reset Email" - }), - /*#__PURE__*/ jsx_runtime_.jsx(InfoBlock, { - message: "Please note that this link will expire after 1 hour" - }) - ] - }) - ] - }) - }) - ] - }) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res }) { - /** - * User Auth - * - * @description User Auth - */ const user = await userAuth_default()(req, res); - if (user?.social_login) { - return { - redirect: { - destination: "/", - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,9360,6217,4097,2186], () => (__webpack_exec__(1725))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6827,e.ids=[636,6827],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},67097:(e,t,s)=>{s.r(t),s.d(t,{config:()=>D,default:()=>_,getServerSideProps:()=>E,getStaticPaths:()=>A,getStaticProps:()=>b,reportWebVitals:()=>w,routeModule:()=>T,unstable_getServerProps:()=>L,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>N,unstable_getStaticPaths:()=>k,unstable_getStaticProps:()=>M});var r={};s.r(r),s.d(r,{SendPassResetContext:()=>j,default:()=>v,getServerSideProps:()=>q});var i=s(63865),a=s(9455),n=s(30671),o=s(49407),u=s(68268),l=s(8732),c=s(82015),p=s.n(c),m=s(71457),d=s(87472),x=s(32415),h=s(20048),f=s.n(h),g=s(63715),S=s(13002),y=s(49240);function P({message:e}){return(0,l.jsxs)("div",{className:"info gray",children:[(0,l.jsx)(y.A,{fontSize:"small",color:"inherit",className:"opacity-50 text-gray-600"}),(0,l.jsx)("span",{className:"font-normal",children:e})]})}let j=p().createContext({});function v(e){let t="Cloudbased SQL data management system | Datasquirel",s="Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.",r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:t}),(0,l.jsx)("meta",{name:"description",content:s}),(0,l.jsx)(d.A,{pageTitle:t,pageDescription:s,pagePathname:"/"})]}),[i,a]=p().useState(!1),[n,o]=p().useState(!1);return(0,l.jsx)(m.A,{head:r,user:e.user,children:(0,l.jsx)(j.Provider,{value:{user:e.user},children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[i&&(0,l.jsx)(x.A,{}),n?(0,l.jsx)(S.A,{message:"Email Sent. Please check your email address and follow the link provided",className:"whitespace-nowrap"}):(0,l.jsx)("div",{className:"paper",children:(0,l.jsxs)("div",{className:"max-w-xl flex-col items-stretch",children:[(0,l.jsx)("h1",{className:"m-0 text-4xl",children:"Send Password Reset Link"}),(0,l.jsx)("span",{children:"Please enter your email address to receive a password reset link"}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-4",onSubmit:e=>{a(!0),e.preventDefault();let t=e.target["email-address"].value;(0,g.A)(`/api/sendPasswordResetLink?email=${t}`).then(e=>{console.log(e),setTimeout(()=>{a(!1)},500),e.success&&o(!0)})},children:[(0,l.jsx)("input",{type:"text",autoComplete:"email",name:"email-address",id:"email-address",className:"w-full",placeholder:"Email Address",defaultValue:e?.user?.logged_in_status?e.user.email:"",required:!0}),(0,l.jsx)("button",{children:"Send password reset Email"}),(0,l.jsx)(P,{message:"Please note that this link will expire after 1 hour"})]})]})})]})})})})}async function q({req:e,res:t}){let s=await f()(e,t);return s?.social_login?{redirect:{destination:"/",permanent:!1}}:{props:{user:s}}}let _=(0,n.M)(r,"default"),b=(0,n.M)(r,"getStaticProps"),A=(0,n.M)(r,"getStaticPaths"),E=(0,n.M)(r,"getServerSideProps"),D=(0,n.M)(r,"config"),w=(0,n.M)(r,"reportWebVitals"),M=(0,n.M)(r,"unstable_getStaticProps"),k=(0,n.M)(r,"unstable_getStaticPaths"),N=(0,n.M)(r,"unstable_getStaticParams"),L=(0,n.M)(r,"unstable_getServerProps"),R=(0,n.M)(r,"unstable_getServerSideProps"),T=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/send-password-reset-link",pathname:"/send-password-reset-link",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:r})},13002:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732);function i({message:e,className:t}){return(0,r.jsxs)("div",{className:"info green"+(t?" "+t:""),children:[(0,r.jsx)("img",{src:"/images/checkmark.svg",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,r.jsx)("span",{children:e})]})}s(82015)},20048:(e,t,s)=>{s(81630);let r=s(67216),i=s(83007),a=s(29021);async function n(e,t,s,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!a.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},49240:(e,t,s)=>{var r=s(24994);t.A=void 0;var i=r(s(30887)),a=s(8732);t.A=(0,i.default)([(0,a.jsx)("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m1 13h-2v-6h2zm0-8h-2V7h2z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"},"1")],"InfoTwoTone")},83007:(e,t,s)=>{let{scryptSync:r,createDecipheriv:i}=s(55511),{Buffer:a}=s(79428);e.exports=e=>{let t=i("aes-192-cbc",r(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let s=t.update(e,"hex","utf8");return s+=t.final("utf8")}catch(e){return null}}},67216:(e,t,s)=>{let r=s(9973),i=s(31976),a=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>a});var r=s(8732);s(82015);var i=s(20883);function a(e){return(0,r.jsxs)(i.Html,{lang:"en",children:[(0,r.jsxs)(i.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(i.Main,{}),(0,r.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268],()=>s(67097));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json b/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json index 9bae40c..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json +++ b/dsql-app/.local_dist/server/pages/send-password-reset-link.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/2186.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/InfoTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su.js b/dsql-app/.local_dist/server/pages/su.js index 98bd0c8..e34458c 100644 --- a/dsql-app/.local_dist/server/pages/su.js +++ b/dsql-app/.local_dist/server/pages/su.js @@ -1,270 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3663; -exports.ids = [3663]; -exports.modules = { - -/***/ 9011: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Dashboard), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_SuDashboardContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4187); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function Dashboard({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_SuDashboardContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM users ORDER BY id DESC`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - users - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,4480,1503,5313,1336,4187], () => (__webpack_exec__(9011))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5516,e.ids=[636,5516],e.modules={42452:(e,r,t)=>{t.r(r),t.d(r,{config:()=>y,default:()=>P,getServerSideProps:()=>v,getStaticPaths:()=>_,getStaticProps:()=>f,reportWebVitals:()=>h,routeModule:()=>w,unstable_getServerProps:()=>E,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>M,unstable_getStaticPaths:()=>b,unstable_getStaticProps:()=>D});var s={};t.r(s),t.d(s,{default:()=>S,getServerSideProps:()=>g});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),n=t(8732);t(82015);var l=t(93615),c=t.n(l),m=t(64987),x=t(36299),d=t(67216),q=t.n(d);function S({user:e,data:r}){let t=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,n.jsx)(m.A,{head:t,user:e,children:(0,n.jsx)(x.A,{data:r})})}async function g({req:e,res:r,query:t}){let s=await c()(e);return s?.logged_in_status?{props:{user:s,data:{users:await q()("SELECT * FROM users ORDER BY id DESC")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let P=(0,o.M)(s,"default"),f=(0,o.M)(s,"getStaticProps"),_=(0,o.M)(s,"getStaticPaths"),v=(0,o.M)(s,"getServerSideProps"),y=(0,o.M)(s,"config"),h=(0,o.M)(s,"reportWebVitals"),D=(0,o.M)(s,"unstable_getStaticProps"),b=(0,o.M)(s,"unstable_getStaticPaths"),M=(0,o.M)(s,"unstable_getStaticParams"),E=(0,o.M)(s,"unstable_getServerProps"),R=(0,o.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su",pathname:"/su",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},67216:(e,r,t)=>{let s=t(9973),i=t(31976),u=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function o(...e){try{let r=await u.query(...e);return await u.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615,9810],()=>t(42452));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su.js.nft.json b/dsql-app/.local_dist/server/pages/su.js.nft.json index 0993469..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/su.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/4480.js","../chunks/1503.js","../chunks/5313.js","../chunks/1336.js","../chunks/4187.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/backups.js b/dsql-app/.local_dist/server/pages/su/backups.js index ec8d961..ecf0ad6 100644 --- a/dsql-app/.local_dist/server/pages/su/backups.js +++ b/dsql-app/.local_dist/server/pages/su/backups.js @@ -1,402 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3159; -exports.ids = [3159]; -exports.modules = { - -/***/ 8188: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ Backups), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/su/SuErrorLogsContent.jsx -var SuErrorLogsContent = __webpack_require__(6251); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: external "@mui/icons-material/StyleTwoTone" -var StyleTwoTone_ = __webpack_require__(723); -var StyleTwoTone_default = /*#__PURE__*/__webpack_require__.n(StyleTwoTone_); -;// CONCATENATED MODULE: ./components/su/SuBackupsContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - */ function SuBackupsContent(props) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ backups: string[], setBackups: React.Dispatch> ]} */ // @ts-ignore - const [backups, setBackups] = external_react_default().useState([]); - const [refresh, setRefresh] = external_react_default().useState(0); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/grabBackups").then((res)=>{ - setBackups(res.backups); - }); - }, [ - refresh - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Backups" - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - if (window.confirm("Create new backup?")) { - setLoading(true); - (0,fetchApi/* default */.Z)("/api/admin/createNewBackup").then((res)=>{ - setRefresh((prev)=>prev + 1); - setTimeout(()=>{ - setLoading(false); - }, 2000); - }); - } - }, - className: "relative", - children: "Create New Backup" - }) - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: backups && backups[0] ? "p-0 gap-4" : "paper", - children: [ - !backups && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, {}), - backups && backups[0] && backups.sort((a, b)=>{ - if (parseInt(a) > parseInt(b)) return -1; - return 1; - }).map((backup, index)=>{ - const backupDate = new Date(parseInt(backup)); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/backups/${backup}`, - className: "card w-full items-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((StyleTwoTone_default()), { - color: "inherit", - className: "opacity-40 text-slate-500" - }), - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "Backup:" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: backupDate.toString() - }) - ] - }, backup); - }), - backups && !backups[0] && /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No Backups Yet" - }) - ] - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./pages/su/backups.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} [props.data] - */ function Backups({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Backups | Datasquirel"; - const pageDescription = "Databases backups"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuBackupsContent, {}) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 723: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StyleTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,1503,5313,7838], () => (__webpack_exec__(8188))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=1984,e.ids=[636,1984],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},47984:(e,t,r)=>{r.r(t),r.d(t,{config:()=>S,default:()=>f,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>P,reportWebVitals:()=>M,routeModule:()=>N,unstable_getServerProps:()=>_,unstable_getServerSideProps:()=>C,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>b});var s={};r.r(s),r.d(s,{default:()=>q,getServerSideProps:()=>A});var i=r(63865),a=r(9455),u=r(30671),o=r(49407),n=r(68268),l=r(8732),p=r(82015),c=r.n(p),d=r(93615),x=r.n(d),m=r(64987);r(19262);var h=r(63715),y=r(32415),g=r(94081);function k(e){let[t,r]=c().useState(!1),[s,i]=c().useState([]),[a,u]=c().useState(0);return(0,l.jsxs)(c().Fragment,{children:[t&&(0,l.jsx)(y.A,{}),(0,l.jsxs)("div",{className:"w-full justify-between",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:"Backups"}),(0,l.jsx)("div",{children:(0,l.jsx)("button",{onClick:e=>{window.confirm("Create new backup?")&&(r(!0),(0,h.A)("/api/admin/createNewBackup").then(e=>{u(e=>e+1),setTimeout(()=>{r(!1)},2e3)}))},className:"relative",children:"Create New Backup"})})]}),(0,l.jsxs)("section",{className:s&&s[0]?"p-0 gap-4":"paper",children:[!s&&(0,l.jsx)(y.A,{}),s&&s[0]&&s.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((e,t)=>{let r=new Date(parseInt(e));return(0,l.jsxs)("a",{href:`/su/backups/${e}`,className:"card w-full items-center",children:[(0,l.jsx)(g.A,{color:"inherit",className:"opacity-40 text-slate-500"}),(0,l.jsx)("b",{children:"Backup:"}),(0,l.jsx)("span",{children:r.toString()})]},e)}),s&&!s[0]&&(0,l.jsx)("span",{children:"No Backups Yet"})]})]})}function q({user:e,data:t}){let r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Backups | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Databases backups"})]});return(0,l.jsx)(m.A,{head:r,user:e,children:(0,l.jsx)(k,{})})}async function A({req:e,res:t,query:r}){let s=await x()(e);return s?.logged_in_status?{props:{user:s}}:{redirect:{destination:"/su/login",permanent:!1}}}let f=(0,u.M)(s,"default"),P=(0,u.M)(s,"getStaticProps"),j=(0,u.M)(s,"getStaticPaths"),v=(0,u.M)(s,"getServerSideProps"),S=(0,u.M)(s,"config"),M=(0,u.M)(s,"reportWebVitals"),b=(0,u.M)(s,"unstable_getStaticProps"),w=(0,u.M)(s,"unstable_getStaticPaths"),E=(0,u.M)(s,"unstable_getStaticParams"),_=(0,u.M)(s,"unstable_getServerProps"),C=(0,u.M)(s,"unstable_getServerSideProps"),N=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/backups",pathname:"/su/backups",bundlePath:"",filename:""},components:{App:n.default,Document:o.default},userland:s})},19262:(e,t,r)=>{r.d(t,{A:()=>n});var s=r(8732),i=r(82015),a=r.n(i),u=r(63715),o=r(32415);function n(e){let[t,r]=a().useState(null),[i,n]=a().useState(!1),[l,p]=a().useState(0);return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,s.jsx)("div",{children:(0,s.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(n(!0),(0,u.A)("/api/admin/clearErrorLogs","post").then(e=>{console.log(e),p(e=>e+1)}),setTimeout(()=>{n(!1)},2e3))},className:"outlined gray relative",children:[i&&(0,s.jsx)(o.A,{width:"20px"}),"Clear Error Log"]})})]}),(0,s.jsxs)("section",{className:"paper",children:[t&&(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:t||"No Log"}}),!t&&(0,s.jsx)(o.A,{position:"relative",width:"25px"})]})]})}},94081:(e,t,r)=>{var s=r(24994);t.A=void 0;var i=s(r(30887)),a=r(8732);t.A=(0,i.default)([(0,a.jsx)("path",{d:"M15.22 4.75 7.87 7.79l4.96 11.96 7.35-3.05zM11 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,a.jsx)("path",{d:"m3.87 11.18-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61l1.34.56zm18.16 4.77L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6m-9.2 3.8L7.87 7.79l7.35-3.04h.01l4.95 11.95z"},"1"),(0,a.jsx)("circle",{cx:"11",cy:"9",r:"1"},"2"),(0,a.jsx)("path",{d:"m9.33 21.75-3.45-8.34v6.34c0 1.1.9 2 2 2z"},"3")],"StyleTwoTone")},67105:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,615],()=>r(47984));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/backups.js.nft.json b/dsql-app/.local_dist/server/pages/su/backups.js.nft.json index 80bd211..c9117e8 100644 --- a/dsql-app/.local_dist/server/pages/su/backups.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/backups.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/1503.js","../../chunks/5313.js","../../chunks/7838.js","../../../package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/@mui/icons-material/StyleTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/console.js b/dsql-app/.local_dist/server/pages/su/console.js index a52c9a1..11e5b24 100644 --- a/dsql-app/.local_dist/server/pages/su/console.js +++ b/dsql-app/.local_dist/server/pages/su/console.js @@ -1,577 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 1973; -exports.ids = [1973]; -exports.modules = { - -/***/ 240: -/***/ ((module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ SuConsoleContent) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var socket_io_client__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4612); -/* harmony import */ var _xterm__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(920); -/* harmony import */ var ansi_regex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8844); -var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([socket_io_client__WEBPACK_IMPORTED_MODULE_2__, ansi_regex__WEBPACK_IMPORTED_MODULE_4__]); -([socket_io_client__WEBPACK_IMPORTED_MODULE_2__, ansi_regex__WEBPACK_IMPORTED_MODULE_4__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -let isMouseInLogHistory = false; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {string} props.socketDomain - */ function SuConsoleContent({ socketDomain }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ state: Socket, dispatch: React.Dispatch> ]} */ // @ts-ignore - const [socket, setSocket] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - /** @type {[ state: import("xterm").Terminal, dispatch: React.Dispatch> ]} */ // @ts-ignore - const [terminal, setTerminal] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(null); - const [log, setLog] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(""); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - const domain = socketDomain; - console.log("Socket Domain =>", domain); - if (!domain) return; - /** @type {Socket} */ const socketIo = (0,socket_io_client__WEBPACK_IMPORTED_MODULE_2__.io)(domain, { - extraHeaders: { - "X-Socket-Paradigm": "Console" - } - }); - socketIo.on("connect", ()=>{ - setSocket(socketIo); - console.log("Socket Connected!"); - }); - setInterval(()=>{ - socketIo.emit("get-log"); - }, 1000); - socketIo.on("console-log", (message)=>{ - console.log("Fetched Log", message); - setLog(message.replace((0,ansi_regex__WEBPACK_IMPORTED_MODULE_4__["default"])(), "")); - setTimeout(()=>{ - const wrapper = document.getElementById("logHistoryWrapper"); - if (wrapper && !isMouseInLogHistory) { - wrapper.scrollTop = wrapper.scrollHeight; - } - }, 200); - }); - }, []); - react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{ - if (!socket) return; - (0,_xterm__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)({ - socket: socket - }).then((res)=>{ - setTerminal(res); - }); - return function cleanup() { - document.getElementById("terminal")?.childNodes.forEach((child)=>{ - child.parentNode?.removeChild(child); - }); - document.getElementById("shell")?.childNodes.forEach((child)=>{ - child.parentNode?.removeChild(child); - }); - terminal?.dispose(); - }; - }, [ - socket - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "text-2xl m-0", - children: "Console" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - onClick: (e)=>{ - if (socket) { - socket.emit("log", "Logging to the console"); - } - }, - children: "Log console" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "grid grid-cols-2 gap-6 w-full items-stretch", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("section", { - className: "paper bg-slate-900", - id: "terminalWrapper", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex flex-col w-full gap-10 items-start justify-start terminal", - children: true && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "m-0 text-white text-base", - children: "Shell" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "opacity-20" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - id: "shell", - className: "relative grow z-50 overflow-hidden w-full h-[340px]" - }) - ] - }) - }) - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("section", { - className: "paper bg-slate-500", - id: "terminalWrapper", - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - className: "flex flex-col w-full gap-10 items-start justify-start terminal", - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-start w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h2", { - className: "m-0 text-white text-base", - children: "Server Log" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("hr", { - className: "opacity-20" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("div", { - id: "terminal", - className: "relative grow z-50 overflow-hidden w-full" + ( true ? " h-[150px]" : 0) - }) - ] - }) - }) - }) - ] - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -__webpack_async_result__(); -} catch(e) { __webpack_async_result__(e); } }); - -/***/ }), - -/***/ 920: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "Z": () => (/* binding */ xterm) -/* harmony export */ }); -// @ts-check -/** - * # Main Terminal Function - * @param {object} param0 - * @param {import("socket.io-client").Socket} param0.socket - Websocket using Socket.Io paradigm - * @returns - */ async function xterm({ socket }) { - const { Terminal } = __webpack_require__(2803); - const { FitAddon } = __webpack_require__(4040); - const fitAddon = new FitAddon(); - /** @type {HTMLElement} */ // @ts-ignore - const terminalWrapper = document.getElementById("terminalWrapper"); - /** @type {HTMLElement} */ // @ts-ignore - const terminalElement = document.getElementById("terminal"); - const terminalWrapperWidth = terminalWrapper.clientWidth; - const calculatedCols = Math.round(terminalWrapperWidth / 12); - const terminal = new Terminal({ - cols: calculatedCols, - rows: true ? 6 : 0 - }); - terminal.open(terminalElement); - fitAddon.fit(); - socket.on("console", (message)=>{ - terminal.write(message); - }); - //////////////////////////////////// - //////////////////////////////////// - //////////////////////////////////// - if (true) { - const shellFit = new FitAddon(); - /** @type {HTMLElement} */ // @ts-ignore - const shellElement = document.getElementById("shell"); - const shell = new Terminal({ - cols: calculatedCols, - rows: 17 - }); - shell.open(shellElement); - shellFit.fit(); - socket.on("shell", (message)=>{ - shell.write(message); - }); - shell.onKey((arg1, arg2)=>{ - socket.emit("shell", arg1.key); - }); - } - return terminal; -} - - -/***/ }), - -/***/ 5304: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 9239: -/***/ ((module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try { -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Console), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_SuConsoleContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(240); -var __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_components_su_SuConsoleContent__WEBPACK_IMPORTED_MODULE_4__]); -_components_su_SuConsoleContent__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0]; -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} [props.data] - * @param {string} props.socketDomain - */ function Console({ user , data , socketDomain }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Console | Datasquirel"; - const pageDescription = "Databases Console"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_SuConsoleContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - socketDomain: socketDomain - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - const socketDomain = process.env.DSQL_SOCKET_DOMAIN; - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - socketDomain: socketDomain || "" - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - -__webpack_async_result__(); -} catch(e) { __webpack_async_result__(e); } }); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2803: -/***/ ((module) => { - -module.exports = require("xterm"); - -/***/ }), - -/***/ 4040: -/***/ ((module) => { - -module.exports = require("xterm-addon-fit"); - -/***/ }), - -/***/ 8844: -/***/ ((module) => { - -module.exports = import("ansi-regex");; - -/***/ }), - -/***/ 4612: -/***/ ((module) => { - -module.exports = import("socket.io-client");; - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,1503,5313], () => (__webpack_exec__(9239))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +(()=>{var e={};e.id=866,e.ids=[636,866],e.modules={30671:(e,t)=>{"use strict";Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},509:(e,t,s)=>{"use strict";s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{config:()=>h,default:()=>p,getServerSideProps:()=>x,getStaticPaths:()=>m,getStaticProps:()=>d,reportWebVitals:()=>y,routeModule:()=>P,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>q,unstable_getStaticPaths:()=>g,unstable_getStaticProps:()=>f});var i=s(63865),u=s(9455),a=s(30671),l=s(49407),c=s(68268),o=s(21711),n=e([o]);o=(n.then?(await n)():n)[0];let p=(0,a.M)(o,"default"),d=(0,a.M)(o,"getStaticProps"),m=(0,a.M)(o,"getStaticPaths"),x=(0,a.M)(o,"getServerSideProps"),h=(0,a.M)(o,"config"),y=(0,a.M)(o,"reportWebVitals"),f=(0,a.M)(o,"unstable_getStaticProps"),g=(0,a.M)(o,"unstable_getStaticPaths"),q=(0,a.M)(o,"unstable_getStaticParams"),v=(0,a.M)(o,"unstable_getServerProps"),k=(0,a.M)(o,"unstable_getServerSideProps"),P=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/console",pathname:"/su/console",bundlePath:"",filename:""},components:{App:c.default,Document:l.default},userland:o});r()}catch(e){r(e)}})},54254:(e,t,s)=>{"use strict";s.a(e,async(e,r)=>{try{s.d(t,{A:()=>n});var i=s(8732),u=s(82015),a=s.n(u),l=s(10717);s(20008);var c=s(39127),o=e([l,c]);function n({socketDomain:e}){let[t,s]=a().useState(null),[r,u]=a().useState(null),[l,c]=a().useState("");return(0,i.jsxs)(a().Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("h2",{className:"text-2xl m-0",children:"Console"}),(0,i.jsx)("button",{onClick:e=>{t&&t.emit("log","Logging to the console")},children:"Log console"})]}),(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-6 w-full items-stretch",children:[(0,i.jsx)("section",{className:"paper bg-slate-900",id:"terminalWrapper",children:(0,i.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,i.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,i.jsx)("h2",{className:"m-0 text-white text-base",children:"Shell"}),(0,i.jsx)("hr",{className:"opacity-20"}),(0,i.jsx)("div",{id:"shell",className:"relative grow z-50 overflow-hidden w-full h-[340px]"})]})})}),(0,i.jsx)("section",{className:"paper bg-slate-500",id:"terminalWrapper",children:(0,i.jsx)("div",{className:"flex flex-col w-full gap-10 items-start justify-start terminal",children:(0,i.jsxs)("div",{className:"flex flex-col items-start w-full",children:[(0,i.jsx)("h2",{className:"m-0 text-white text-base",children:"Server Log"}),(0,i.jsx)("hr",{className:"opacity-20"}),(0,i.jsx)("div",{id:"terminal",className:"relative grow z-50 overflow-hidden w-full h-[150px]"})]})})})]})]})}[l,c]=o.then?(await o)():o,r()}catch(e){r(e)}})},20008:(e,t,s)=>{"use strict";async function r({socket:e}){let{Terminal:t}=s(86182),{FitAddon:r}=s(91999),i=new r,u=document.getElementById("terminalWrapper"),a=document.getElementById("terminal"),l=Math.round(u.clientWidth/12),c=new t({cols:l,rows:6});c.open(a),i.fit(),e.on("console",e=>{c.write(e)});{let s=new r,i=document.getElementById("shell"),u=new t({cols:l,rows:17});u.open(i),s.fit(),e.on("shell",e=>{u.write(e)}),u.onKey((t,s)=>{e.emit("shell",t.key)})}return c}s.d(t,{A:()=>r})},67105:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,s)=>{"use strict";s.d(t,{A:()=>r});let r=(0,s(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},21711:(e,t,s)=>{"use strict";s.a(e,async(e,r)=>{try{s.r(t),s.d(t,{default:()=>n,getServerSideProps:()=>p});var i=s(8732);s(82015);var u=s(93615),a=s.n(u),l=s(64987),c=s(54254);s(68353);var o=e([c]);function n({user:e,data:t,socketDomain:s}){let r=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"Console | Datasquirel"}),(0,i.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,i.jsx)(l.A,{head:r,user:e,children:(0,i.jsx)(c.A,{socketDomain:s})})}async function p({req:e,res:t,query:s}){let r=await a()(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let i=process.env.DSQL_SOCKET_DOMAIN;return{props:{user:r,socketDomain:i||""}}}c=(o.then?(await o)():o)[0],r()}catch(e){r(e)}})},68353:()=>{},9455:(e,t)=>{"use strict";var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{"use strict";e.exports=require("@mui/system")},37616:e=>{"use strict";e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{"use strict";e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{"use strict";e.exports=require("@mui/system/colorManipulator")},18215:e=>{"use strict";e.exports=require("@mui/system/createStyled")},59989:e=>{"use strict";e.exports=require("@mui/system/createTheme")},16670:e=>{"use strict";e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{"use strict";e.exports=require("@mui/system/useThemeProps")},76831:e=>{"use strict";e.exports=require("@mui/utils")},28578:e=>{"use strict";e.exports=require("@mui/utils/capitalize")},14036:e=>{"use strict";e.exports=require("@mui/utils/composeClasses")},31112:e=>{"use strict";e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{"use strict";e.exports=require("@mui/utils/debounce")},7546:e=>{"use strict";e.exports=require("@mui/utils/deepmerge")},5928:e=>{"use strict";e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{"use strict";e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{"use strict";e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{"use strict";e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{"use strict";e.exports=require("@mui/utils/isMuiElement")},55402:e=>{"use strict";e.exports=require("@mui/utils/ownerDocument")},46875:e=>{"use strict";e.exports=require("@mui/utils/ownerWindow")},48080:e=>{"use strict";e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{"use strict";e.exports=require("@mui/utils/setRef")},88190:e=>{"use strict";e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{"use strict";e.exports=require("@mui/utils/useControlled")},21956:e=>{"use strict";e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{"use strict";e.exports=require("@mui/utils/useEventCallback")},7376:e=>{"use strict";e.exports=require("@mui/utils/useForkRef")},63310:e=>{"use strict";e.exports=require("@mui/utils/useId")},10977:e=>{"use strict";e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{"use strict";e.exports=require("clsx")},40361:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{"use strict";e.exports=require("next/head")},29825:e=>{"use strict";e.exports=require("prop-types")},82015:e=>{"use strict";e.exports=require("react")},22326:e=>{"use strict";e.exports=require("react-dom")},8732:e=>{"use strict";e.exports=require("react/jsx-runtime")},86182:e=>{"use strict";e.exports=require("xterm")},91999:e=>{"use strict";e.exports=require("xterm-addon-fit")},79428:e=>{"use strict";e.exports=require("buffer")},55511:e=>{"use strict";e.exports=require("crypto")},81630:e=>{"use strict";e.exports=require("http")},33873:e=>{"use strict";e.exports=require("path")},39127:e=>{"use strict";e.exports=import("ansi-regex")},10717:e=>{"use strict";e.exports=import("socket.io-client")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268,615],()=>s(509));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/console.js.nft.json b/dsql-app/.local_dist/server/pages/su/console.js.nft.json index 7099a4f..ad2826e 100644 --- a/dsql-app/.local_dist/server/pages/su/console.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/console.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/1503.js","../../chunks/5313.js","../../../package.json","../../../../node_modules/xterm/package.json","../../../../node_modules/xterm-addon-fit/package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/xterm/lib/xterm.js","../../../../node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/ansi-regex/package.json","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/socket.io-client/package.json","../../../../node_modules/socket.io-client/build/esm-debug/index.js","../../../../node_modules/socket.io-client/build/esm-debug/package.json","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/socket.io-client/build/esm-debug/url.js","../../../../node_modules/socket.io-client/build/esm-debug/manager.js","../../../../node_modules/socket.io-client/build/esm-debug/socket.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/socket.io-client/build/esm-debug/on.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/socket.io-client/build/esm-debug/contrib/backo2.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/debug/package.json","../../../../node_modules/debug/src/index.js","../../../../node_modules/socket.io-parser/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/@socket.io/component-emitter/package.json","../../../../node_modules/@socket.io/component-emitter/index.js","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/engine.io-client/package.json","../../../../node_modules/socket.io-parser/build/esm-debug/index.js","../../../../node_modules/socket.io-parser/build/cjs/index.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/socket.io-parser/build/esm-debug/package.json","../../../../node_modules/socket.io-parser/build/cjs/package.json","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/engine.io-client/build/esm-debug/index.js","../../../../node_modules/engine.io-client/build/cjs/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/debug/src/browser.js","../../../../node_modules/debug/src/node.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/engine.io-client/build/esm-debug/package.json","../../../../node_modules/engine.io-client/build/cjs/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/socket.io-parser/build/cjs/binary.js","../../../../node_modules/socket.io-parser/build/cjs/is-binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/is-binary.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/engine.io-client/build/esm-debug/socket.js","../../../../node_modules/engine.io-client/build/esm-debug/transport.js","../../../../node_modules/engine.io-client/build/esm-debug/util.js","../../../../node_modules/engine.io-client/build/cjs/socket.js","../../../../node_modules/engine.io-client/build/cjs/transport.js","../../../../node_modules/engine.io-client/build/cjs/util.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/index.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket-constructor.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/cjs/transports/index.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket-constructor.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseuri.js","../../../../node_modules/debug/src/common.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/esm-debug/globalThis.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/cjs/globalThis.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.js","../../../../node_modules/engine.io-client/build/cjs/transports/webtransport.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/supports-color/index.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/yeast.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/xmlhttprequest.js","../../../../node_modules/engine.io-client/build/cjs/contrib/yeast.js","../../../../node_modules/engine.io-client/build/cjs/transports/xmlhttprequest.js","../../../../node_modules/supports-color/package.json","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/ms/package.json","../../../../node_modules/ms/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/ws/package.json","../../../../node_modules/ws/index.js","../../../../node_modules/ws/wrapper.mjs","../../../../node_modules/engine.io-parser/package.json","../../../../node_modules/engine.io-parser/build/cjs/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/engine.io-parser/build/cjs/package.json","../../../../node_modules/engine.io-parser/build/esm/index.js","../../../../node_modules/engine.io-parser/build/esm/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/ws/lib/stream.js","../../../../node_modules/ws/lib/receiver.js","../../../../node_modules/ws/lib/websocket.js","../../../../node_modules/ws/lib/sender.js","../../../../node_modules/ws/lib/websocket-server.js","../../../../node_modules/xmlhttprequest-ssl/package.json","../../../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/has-flag/index.js","../../../../node_modules/engine.io-parser/build/cjs/encodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/decodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/commons.js","../../../../node_modules/has-flag/package.json","../../../../node_modules/engine.io-parser/build/esm/encodePacket.js","../../../../node_modules/engine.io-parser/build/esm/commons.js","../../../../node_modules/engine.io-parser/build/esm/decodePacket.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/ws/lib/permessage-deflate.js","../../../../node_modules/ws/lib/constants.js","../../../../node_modules/ws/lib/validation.js","../../../../node_modules/ws/lib/buffer-util.js","../../../../node_modules/ws/lib/event-target.js","../../../../node_modules/ws/lib/subprotocol.js","../../../../node_modules/ws/lib/extension.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/ws/lib/limiter.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/socket.io-client/build/cjs/index.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/socket.io-client/build/cjs/url.js","../../../../node_modules/socket.io-client/build/cjs/manager.js","../../../../node_modules/socket.io-client/build/cjs/socket.js","../../../../node_modules/socket.io-client/build/cjs/on.js","../../../../node_modules/socket.io-client/build/cjs/contrib/backo2.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@socket.io/component-emitter/lib/cjs/index.js","../../../../node_modules/@socket.io/component-emitter/lib/cjs/package.json","../../../../node_modules/@socket.io/component-emitter/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/ansi-regex/index.js","../../../../node_modules/ansi-regex/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/debug/package.json","../../../../node_modules/debug/src/browser.js","../../../../node_modules/debug/src/common.js","../../../../node_modules/debug/src/index.js","../../../../node_modules/debug/src/node.js","../../../../node_modules/engine.io-client/build/cjs/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/cjs/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/cjs/globals.node.js","../../../../node_modules/engine.io-client/build/cjs/index.js","../../../../node_modules/engine.io-client/build/cjs/package.json","../../../../node_modules/engine.io-client/build/cjs/socket.js","../../../../node_modules/engine.io-client/build/cjs/transport.js","../../../../node_modules/engine.io-client/build/cjs/transports/index.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/polling.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.js","../../../../node_modules/engine.io-client/build/cjs/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/cjs/transports/webtransport.js","../../../../node_modules/engine.io-client/build/cjs/util.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js","../../../../node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js","../../../../node_modules/engine.io-client/build/esm-debug/globals.node.js","../../../../node_modules/engine.io-client/build/esm-debug/index.js","../../../../node_modules/engine.io-client/build/esm-debug/package.json","../../../../node_modules/engine.io-client/build/esm-debug/socket.js","../../../../node_modules/engine.io-client/build/esm-debug/transport.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/index.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/polling.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js","../../../../node_modules/engine.io-client/build/esm-debug/transports/webtransport.js","../../../../node_modules/engine.io-client/build/esm-debug/util.js","../../../../node_modules/engine.io-client/package.json","../../../../node_modules/engine.io-parser/build/cjs/commons.js","../../../../node_modules/engine.io-parser/build/cjs/decodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/encodePacket.js","../../../../node_modules/engine.io-parser/build/cjs/index.js","../../../../node_modules/engine.io-parser/build/cjs/package.json","../../../../node_modules/engine.io-parser/build/esm/commons.js","../../../../node_modules/engine.io-parser/build/esm/decodePacket.js","../../../../node_modules/engine.io-parser/build/esm/encodePacket.js","../../../../node_modules/engine.io-parser/build/esm/index.js","../../../../node_modules/engine.io-parser/build/esm/package.json","../../../../node_modules/engine.io-parser/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/ms/index.js","../../../../node_modules/ms/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/socket.io-client/build/cjs/contrib/backo2.js","../../../../node_modules/socket.io-client/build/cjs/index.js","../../../../node_modules/socket.io-client/build/cjs/manager.js","../../../../node_modules/socket.io-client/build/cjs/on.js","../../../../node_modules/socket.io-client/build/cjs/socket.js","../../../../node_modules/socket.io-client/build/cjs/url.js","../../../../node_modules/socket.io-client/build/esm-debug/contrib/backo2.js","../../../../node_modules/socket.io-client/build/esm-debug/index.js","../../../../node_modules/socket.io-client/build/esm-debug/manager.js","../../../../node_modules/socket.io-client/build/esm-debug/on.js","../../../../node_modules/socket.io-client/build/esm-debug/package.json","../../../../node_modules/socket.io-client/build/esm-debug/socket.js","../../../../node_modules/socket.io-client/build/esm-debug/url.js","../../../../node_modules/socket.io-client/package.json","../../../../node_modules/socket.io-parser/build/cjs/binary.js","../../../../node_modules/socket.io-parser/build/cjs/index.js","../../../../node_modules/socket.io-parser/build/cjs/is-binary.js","../../../../node_modules/socket.io-parser/build/cjs/package.json","../../../../node_modules/socket.io-parser/build/esm-debug/binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/index.js","../../../../node_modules/socket.io-parser/build/esm-debug/is-binary.js","../../../../node_modules/socket.io-parser/build/esm-debug/package.json","../../../../node_modules/socket.io-parser/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/ws/index.js","../../../../node_modules/ws/lib/buffer-util.js","../../../../node_modules/ws/lib/constants.js","../../../../node_modules/ws/lib/event-target.js","../../../../node_modules/ws/lib/extension.js","../../../../node_modules/ws/lib/limiter.js","../../../../node_modules/ws/lib/permessage-deflate.js","../../../../node_modules/ws/lib/receiver.js","../../../../node_modules/ws/lib/sender.js","../../../../node_modules/ws/lib/stream.js","../../../../node_modules/ws/lib/subprotocol.js","../../../../node_modules/ws/lib/validation.js","../../../../node_modules/ws/lib/websocket-server.js","../../../../node_modules/ws/lib/websocket.js","../../../../node_modules/ws/package.json","../../../../node_modules/ws/wrapper.mjs","../../../../node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js","../../../../node_modules/xmlhttprequest-ssl/package.json","../../../../node_modules/xterm-addon-fit/lib/xterm-addon-fit.js","../../../../node_modules/xterm-addon-fit/package.json","../../../../node_modules/xterm/lib/xterm.js","../../../../node_modules/xterm/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs.js b/dsql-app/.local_dist/server/pages/su/docs.js index 19384e8..b4b9ffb 100644 --- a/dsql-app/.local_dist/server/pages/su/docs.js +++ b/dsql-app/.local_dist/server/pages/su/docs.js @@ -1,285 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3036; -exports.ids = [3036]; -exports.modules = { - -/***/ 1376: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ DocsPage), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_docs_SuDocsPageListContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2435); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function DocsPage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_docs_SuDocsPageListContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const docPages = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - docPages: docPages, - env: "dev_dev" - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4118: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AccountTreeTwoTone"); - -/***/ }), - -/***/ 1891: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArticleTwoTone"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,4480,1503,5313,2435], () => (__webpack_exec__(1376))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3402,e.ids=[636,3402],e.modules={43193:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>P,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>v,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>M});var s={};t.r(s),t.d(s,{default:()=>g,getServerSideProps:()=>S});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732);t(82015);var n=t(93615),m=t.n(n),d=t(64987),x=t(4545),c=t(67216),q=t.n(c);function g({user:e,data:r}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(d.A,{head:t,user:e,children:(0,l.jsx)(x.A,{data:r})})}async function S({req:e,res:r,query:t}){let s=await m()(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await q()("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let P=(0,o.M)(s,"default"),v=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),b=(0,o.M)(s,"getServerSideProps"),h=(0,o.M)(s,"config"),y=(0,o.M)(s,"reportWebVitals"),M=(0,o.M)(s,"unstable_getStaticProps"),_=(0,o.M)(s,"unstable_getStaticPaths"),E=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),j=(0,o.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/docs",pathname:"/su/docs",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615,9205],()=>t(43193));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs.js.nft.json index e2c764e..79cb907 100644 --- a/dsql-app/.local_dist/server/pages/su/docs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/5449.js","../../chunks/4480.js","../../chunks/1503.js","../../chunks/5313.js","../../chunks/2435.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/@mui/icons-material/ArticleTwoTone.js","../../../../node_modules/@mui/icons-material/AccountTreeTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/mysql/index.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/create-page.js b/dsql-app/.local_dist/server/pages/su/docs/create-page.js index c4a0083..7413d20 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/create-page.js +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js @@ -1,376 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7363; -exports.ids = [7363]; -exports.modules = { - -/***/ 7585: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ CreatePage), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_docs_CreatePageContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2378); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function CreatePage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_docs_CreatePageContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - data: data, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const docPages = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM docs_pages WHERE level=0`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - docPages: docPages - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 371: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdsClickTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6502: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 9361: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DoDisturbAltTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 328: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/HighlightAltTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 282: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipNextTwoTone"); - -/***/ }), - -/***/ 3729: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipPreviousTwoTone"); - -/***/ }), - -/***/ 723: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StyleTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 1358: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateUpTwoTone"); - -/***/ }), - -/***/ 4864: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateVerticalTwoTone"); - -/***/ }), - -/***/ 5139: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ViewTimelineTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,4480,424,1781,7901,4114,1503,5313,2378], () => (__webpack_exec__(7585))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=179,e.ids=[179,636],e.modules={52175:(e,r,t)=>{t.r(r),t.d(r,{config:()=>v,default:()=>S,getServerSideProps:()=>h,getStaticPaths:()=>f,getStaticProps:()=>y,reportWebVitals:()=>b,routeModule:()=>j,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>M});var s={};t.r(s),t.d(s,{default:()=>g,getServerSideProps:()=>P});var i=t(63865),u=t(9455),o=t(30671),p=t(49407),a=t(68268),l=t(8732);t(82015);var n=t(93615),m=t.n(n),x=t(64987),c=t(75260),d=t(67216),q=t.n(d);function g({user:e,data:r}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(x.A,{head:t,user:e,children:(0,l.jsx)(c.A,{data:r,user:e})})}async function P({req:e,res:r,query:t}){let s=await m()(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await q()("SELECT * FROM docs_pages WHERE level=0")}}}:{redirect:{destination:"/su/login",permanent:!1}}}let S=(0,o.M)(s,"default"),y=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),h=(0,o.M)(s,"getServerSideProps"),v=(0,o.M)(s,"config"),b=(0,o.M)(s,"reportWebVitals"),M=(0,o.M)(s,"unstable_getStaticProps"),E=(0,o.M)(s,"unstable_getStaticPaths"),_=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),R=(0,o.M)(s,"unstable_getServerSideProps"),j=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/docs/create-page",pathname:"/su/docs/create-page",bundlePath:"",filename:""},components:{App:a.default,Document:p.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},8919:e=>{e.exports=require("@mui/system/RtlProvider")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},98967:e=>{e.exports=require("@mui/utils/HTMLElementType")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,6806,8268,3737,615,8153],()=>t(52175));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json index 5269ab3..5e7cf8b 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/create-page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/4480.js","../../../chunks/424.js","../../../chunks/1781.js","../../../chunks/7901.js","../../../chunks/4114.js","../../../chunks/1503.js","../../../chunks/5313.js","../../../chunks/2378.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/material/node/index.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../node_modules/@mui/icons-material/StyleTwoTone.js","../../../../../node_modules/@mui/icons-material/Close.js","../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../node_modules/@mui/icons-material/AdsClickTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteTwoTone.js","../../../../../node_modules/@mui/icons-material/DoDisturbAltTwoTone.js","../../../../../node_modules/@mui/icons-material/HighlightAltTwoTone.js","../../../../../node_modules/@mui/icons-material/SkipNextTwoTone.js","../../../../../node_modules/@mui/icons-material/SkipPreviousTwoTone.js","../../../../../node_modules/@mui/icons-material/TextRotateUpTwoTone.js","../../../../../node_modules/@mui/icons-material/TextRotateVerticalTwoTone.js","../../../../../node_modules/@mui/icons-material/ViewTimelineTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../node_modules/@mui/material/node/List/index.js","../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/base/node/index.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../node_modules/@mui/material/node/List/List.js","../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../node_modules/@mui/base/Portal/package.json","../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/material/node/className/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/base/utils/package.json","../../../../../node_modules/@mui/base/Popper/package.json","../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../node_modules/@popperjs/core/package.json","../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@floating-ui/dom/package.json","../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/@floating-ui/core/package.json","../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js index c1577a4..dadc592 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js @@ -1,384 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3412; -exports.ids = [3412]; -exports.modules = { - -/***/ 6046: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ UpdatePage), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_docs_CreatePageContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2378); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function UpdatePage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_docs_CreatePageContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - data: data, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const targetDocPage = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM docs_pages WHERE id=?`, [ - query.id - ]); - if (!targetDocPage || !Array.isArray(targetDocPage) || !targetDocPage[0]) { - return { - redirect: { - destination: `/su/docs`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: targetDocPage[0] - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 371: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdsClickTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6502: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 9361: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DoDisturbAltTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 328: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/HighlightAltTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 282: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipNextTwoTone"); - -/***/ }), - -/***/ 3729: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipPreviousTwoTone"); - -/***/ }), - -/***/ 723: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StyleTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 1358: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateUpTwoTone"); - -/***/ }), - -/***/ 4864: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateVerticalTwoTone"); - -/***/ }), - -/***/ 5139: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ViewTimelineTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,4480,424,1781,7901,4114,1503,5313,2378], () => (__webpack_exec__(6046))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5700,e.ids=[636,5700],e.modules={3693:(e,r,t)=>{t.r(r),t.d(r,{config:()=>b,default:()=>S,getServerSideProps:()=>h,getStaticPaths:()=>f,getStaticProps:()=>y,reportWebVitals:()=>v,routeModule:()=>j,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>R,unstable_getStaticParams:()=>_,unstable_getStaticPaths:()=>E,unstable_getStaticProps:()=>M});var s={};t.r(s),t.d(s,{default:()=>g,getServerSideProps:()=>P});var i=t(63865),u=t(9455),o=t(30671),p=t(49407),a=t(68268),l=t(8732);t(82015);var n=t(93615),m=t.n(n),x=t(64987),c=t(75260),d=t(67216),q=t.n(d);function g({user:e,data:r}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(x.A,{head:t,user:e,children:(0,l.jsx)(c.A,{data:r,user:e})})}async function P({req:e,res:r,query:t}){let s=await m()(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let i=await q()("SELECT * FROM docs_pages WHERE id=?",[t.id]);return i&&Array.isArray(i)&&i[0]?{props:{user:s,data:i[0]}}:{redirect:{destination:"/su/docs",permanent:!1}}}let S=(0,o.M)(s,"default"),y=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),h=(0,o.M)(s,"getServerSideProps"),b=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),M=(0,o.M)(s,"unstable_getStaticProps"),E=(0,o.M)(s,"unstable_getStaticPaths"),_=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),R=(0,o.M)(s,"unstable_getServerSideProps"),j=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/docs/edit-page",pathname:"/su/docs/edit-page",bundlePath:"",filename:""},components:{App:a.default,Document:p.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},8919:e=>{e.exports=require("@mui/system/RtlProvider")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},98967:e=>{e.exports=require("@mui/utils/HTMLElementType")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,6806,8268,3737,615,8153],()=>t(3693));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json index 5269ab3..5e7cf8b 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/edit-page.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/4480.js","../../../chunks/424.js","../../../chunks/1781.js","../../../chunks/7901.js","../../../chunks/4114.js","../../../chunks/1503.js","../../../chunks/5313.js","../../../chunks/2378.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/material/node/index.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../node_modules/@mui/icons-material/StyleTwoTone.js","../../../../../node_modules/@mui/icons-material/Close.js","../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../node_modules/@mui/icons-material/AdsClickTwoTone.js","../../../../../node_modules/@mui/icons-material/DeleteTwoTone.js","../../../../../node_modules/@mui/icons-material/DoDisturbAltTwoTone.js","../../../../../node_modules/@mui/icons-material/HighlightAltTwoTone.js","../../../../../node_modules/@mui/icons-material/SkipNextTwoTone.js","../../../../../node_modules/@mui/icons-material/SkipPreviousTwoTone.js","../../../../../node_modules/@mui/icons-material/TextRotateUpTwoTone.js","../../../../../node_modules/@mui/icons-material/TextRotateVerticalTwoTone.js","../../../../../node_modules/@mui/icons-material/ViewTimelineTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../node_modules/@mui/material/node/List/index.js","../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/base/node/index.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../node_modules/@mui/material/node/List/List.js","../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../node_modules/@mui/base/Portal/package.json","../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/material/node/className/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/base/utils/package.json","../../../../../node_modules/@mui/base/Popper/package.json","../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../node_modules/@popperjs/core/package.json","../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@floating-ui/dom/package.json","../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/@floating-ui/core/package.json","../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages.js b/dsql-app/.local_dist/server/pages/su/docs/pages.js index 2f6fbcc..18243eb 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages.js +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js @@ -1,285 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3281; -exports.ids = [3281]; -exports.modules = { - -/***/ 6103: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ DocsPage), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_docs_SuDocsPageListContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2435); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function DocsPage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_docs_SuDocsPageListContent__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const docPages = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_5___default()(`SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - docPages: docPages, - env: "dev_dev" - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 4118: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AccountTreeTwoTone"); - -/***/ }), - -/***/ 1891: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArticleTwoTone"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,4480,1503,5313,2435], () => (__webpack_exec__(6103))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=99,e.ids=[99,636],e.modules={93836:(e,r,t)=>{t.r(r),t.d(r,{config:()=>h,default:()=>P,getServerSideProps:()=>b,getStaticPaths:()=>f,getStaticProps:()=>v,reportWebVitals:()=>y,routeModule:()=>w,unstable_getServerProps:()=>C,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>E,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>M});var s={};t.r(s),t.d(s,{default:()=>g,getServerSideProps:()=>S});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732);t(82015);var n=t(93615),m=t.n(n),d=t(64987),x=t(4545),c=t(67216),q=t.n(c);function g({user:e,data:r}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(d.A,{head:t,user:e,children:(0,l.jsx)(x.A,{data:r})})}async function S({req:e,res:r,query:t}){let s=await m()(e);return s?.logged_in_status?{props:{user:s,data:{docPages:await q()("SELECT * FROM docs_pages WHERE level=1 ORDER BY page_order ASC"),env:"dev_dev"}}}:{redirect:{destination:"/su/login",permanent:!1}}}let P=(0,o.M)(s,"default"),v=(0,o.M)(s,"getStaticProps"),f=(0,o.M)(s,"getStaticPaths"),b=(0,o.M)(s,"getServerSideProps"),h=(0,o.M)(s,"config"),y=(0,o.M)(s,"reportWebVitals"),M=(0,o.M)(s,"unstable_getStaticProps"),_=(0,o.M)(s,"unstable_getStaticPaths"),E=(0,o.M)(s,"unstable_getStaticParams"),C=(0,o.M)(s,"unstable_getServerProps"),j=(0,o.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/docs/pages",pathname:"/su/docs/pages",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615,9205],()=>t(93836));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json index 072f0fd..bd6cf87 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/pages.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/5449.js","../../../chunks/4480.js","../../../chunks/1503.js","../../../chunks/5313.js","../../../chunks/2435.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../node_modules/@mui/icons-material/ArticleTwoTone.js","../../../../../node_modules/@mui/icons-material/AccountTreeTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js index c91d6c4..1835ef3 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js @@ -1,450 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 9025; -exports.ids = [9025]; -exports.modules = { - -/***/ 9242: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ UpdatePage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/su/docs/CreatePageContent.jsx + 5 modules -var CreatePageContent = __webpack_require__(2378); -;// CONCATENATED MODULE: ./components/su/docs/SuSingleDocPageContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - * @param {any} props.user - */ function SuSingleDocPageContent({ data , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const { targetDocPage } = data; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx(CreatePageContent/* default */.Z, { - data: targetDocPage, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/su/docs/pages/[id].jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function UpdatePage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuSingleDocPageContent, { - data: data, - user: user - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const targetDocPage = await DB_HANDLER_default()(`SELECT * FROM docs_pages WHERE id=?`, [ - query.id - ]); - if (!targetDocPage || !Array.isArray(targetDocPage) || !targetDocPage[0]) { - return { - redirect: { - destination: `/su/docs`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - targetDocPage: targetDocPage[0] - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 371: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/AdsClickTwoTone"); - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 4173: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/Close"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6502: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DeleteTwoTone"); - -/***/ }), - -/***/ 930: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DifferenceTwoTone"); - -/***/ }), - -/***/ 9361: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DoDisturbAltTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 328: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/HighlightAltTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 282: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipNextTwoTone"); - -/***/ }), - -/***/ 3729: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/SkipPreviousTwoTone"); - -/***/ }), - -/***/ 723: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StyleTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 1358: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateUpTwoTone"); - -/***/ }), - -/***/ 4864: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TextRotateVerticalTwoTone"); - -/***/ }), - -/***/ 5139: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ViewTimelineTwoTone"); - -/***/ }), - -/***/ 5692: -/***/ ((module) => { - -module.exports = require("@mui/material"); - -/***/ }), - -/***/ 6451: -/***/ ((module) => { - -module.exports = require("@tinymce/tinymce-react"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,4480,424,1781,7901,4114,1503,5313,2378], () => (__webpack_exec__(9242))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=4795,e.ids=[636,4795],e.modules={81553:(e,r,t)=>{t.r(r),t.d(r,{config:()=>E,default:()=>h,getServerSideProps:()=>M,getStaticPaths:()=>v,getStaticProps:()=>b,reportWebVitals:()=>_,routeModule:()=>T,unstable_getServerProps:()=>A,unstable_getServerSideProps:()=>F,unstable_getStaticParams:()=>R,unstable_getStaticPaths:()=>C,unstable_getStaticProps:()=>j});var s={};t.r(s),t.d(s,{default:()=>y,getServerSideProps:()=>f});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),p=t(68268),l=t(8732),n=t(82015),m=t.n(n),x=t(93615),c=t.n(x),d=t(64987),q=t(75260);function g({data:e,user:r}){let{targetDocPage:t}=e;return(0,l.jsx)(m().Fragment,{children:(0,l.jsx)(q.A,{data:t,user:r})})}var P=t(67216),S=t.n(P);function y({user:e,data:r}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsx)(d.A,{head:t,user:e,children:(0,l.jsx)(g,{data:r,user:e})})}async function f({req:e,res:r,query:t}){let s=await c()(e);if(!s?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let i=await S()("SELECT * FROM docs_pages WHERE id=?",[t.id]);return i&&Array.isArray(i)&&i[0]?{props:{user:s,data:{targetDocPage:i[0]}}}:{redirect:{destination:"/su/docs",permanent:!1}}}let h=(0,o.M)(s,"default"),b=(0,o.M)(s,"getStaticProps"),v=(0,o.M)(s,"getStaticPaths"),M=(0,o.M)(s,"getServerSideProps"),E=(0,o.M)(s,"config"),_=(0,o.M)(s,"reportWebVitals"),j=(0,o.M)(s,"unstable_getStaticProps"),C=(0,o.M)(s,"unstable_getStaticPaths"),R=(0,o.M)(s,"unstable_getStaticParams"),A=(0,o.M)(s,"unstable_getServerProps"),F=(0,o.M)(s,"unstable_getServerSideProps"),T=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/docs/pages/[id]",pathname:"/su/docs/pages/[id]",bundlePath:"",filename:""},components:{App:p.default,Document:a.default},userland:s})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},8919:e=>{e.exports=require("@mui/system/RtlProvider")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},98967:e=>{e.exports=require("@mui/utils/HTMLElementType")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},40373:e=>{e.exports=require("@tinymce/tinymce-react")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,6806,8268,3737,615,8153],()=>t(81553));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json index 181549b..d83cfd2 100644 --- a/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/docs/pages/[id].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../../webpack-runtime.js","../../../../chunks/4017.js","../../../../chunks/8313.js","../../../../chunks/5264.js","../../../../chunks/6729.js","../../../../chunks/5449.js","../../../../chunks/4480.js","../../../../chunks/424.js","../../../../chunks/1781.js","../../../../chunks/7901.js","../../../../chunks/4114.js","../../../../chunks/1503.js","../../../../chunks/5313.js","../../../../chunks/2378.js","../../../../../package.json","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/lucide-react/package.json","../../../../../../node_modules/@mui/material/package.json","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../../node_modules/@mui/material/node/index.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../../node_modules/@mui/icons-material/package.json","../../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../../node_modules/@mui/icons-material/DifferenceTwoTone.js","../../../../../../node_modules/@mui/icons-material/StyleTwoTone.js","../../../../../../node_modules/@mui/icons-material/Close.js","../../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../../node_modules/@mui/icons-material/AdsClickTwoTone.js","../../../../../../node_modules/@mui/icons-material/DeleteTwoTone.js","../../../../../../node_modules/@mui/icons-material/DoDisturbAltTwoTone.js","../../../../../../node_modules/@mui/icons-material/HighlightAltTwoTone.js","../../../../../../node_modules/@mui/icons-material/SkipNextTwoTone.js","../../../../../../node_modules/@mui/icons-material/SkipPreviousTwoTone.js","../../../../../../node_modules/@mui/icons-material/TextRotateUpTwoTone.js","../../../../../../node_modules/@mui/icons-material/TextRotateVerticalTwoTone.js","../../../../../../node_modules/@mui/icons-material/ViewTimelineTwoTone.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../node_modules/@mui/material/node/colors/index.js","../../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../../node_modules/@mui/material/node/Accordion/index.js","../../../../../../node_modules/@mui/material/node/AccordionActions/index.js","../../../../../../node_modules/@mui/material/node/AccordionDetails/index.js","../../../../../../node_modules/@mui/material/node/AccordionSummary/index.js","../../../../../../node_modules/@mui/material/node/AlertTitle/index.js","../../../../../../node_modules/@mui/material/node/Alert/index.js","../../../../../../node_modules/@mui/material/node/AppBar/index.js","../../../../../../node_modules/@mui/material/node/Autocomplete/index.js","../../../../../../node_modules/@mui/material/node/Avatar/index.js","../../../../../../node_modules/@mui/material/node/AvatarGroup/index.js","../../../../../../node_modules/@mui/material/node/Badge/index.js","../../../../../../node_modules/@mui/material/node/Backdrop/index.js","../../../../../../node_modules/@mui/material/node/BottomNavigation/index.js","../../../../../../node_modules/@mui/material/node/BottomNavigationAction/index.js","../../../../../../node_modules/@mui/material/node/Box/index.js","../../../../../../node_modules/@mui/material/node/Button/index.js","../../../../../../node_modules/@mui/material/node/Breadcrumbs/index.js","../../../../../../node_modules/@mui/material/node/ButtonBase/index.js","../../../../../../node_modules/@mui/material/node/ButtonGroup/index.js","../../../../../../node_modules/@mui/material/node/Card/index.js","../../../../../../node_modules/@mui/material/node/CardActionArea/index.js","../../../../../../node_modules/@mui/material/node/CardActions/index.js","../../../../../../node_modules/@mui/material/node/CardContent/index.js","../../../../../../node_modules/@mui/material/node/CardHeader/index.js","../../../../../../node_modules/@mui/material/node/CardMedia/index.js","../../../../../../node_modules/@mui/material/node/Checkbox/index.js","../../../../../../node_modules/@mui/material/node/Chip/index.js","../../../../../../node_modules/@mui/material/node/CircularProgress/index.js","../../../../../../node_modules/@mui/material/node/ClickAwayListener/index.js","../../../../../../node_modules/@mui/material/node/Collapse/index.js","../../../../../../node_modules/@mui/material/node/Container/index.js","../../../../../../node_modules/@mui/material/node/CssBaseline/index.js","../../../../../../node_modules/@mui/material/node/darkScrollbar/index.js","../../../../../../node_modules/@mui/material/node/Dialog/index.js","../../../../../../node_modules/@mui/material/node/DialogActions/index.js","../../../../../../node_modules/@mui/material/node/DialogContent/index.js","../../../../../../node_modules/@mui/material/node/DialogContentText/index.js","../../../../../../node_modules/@mui/material/node/DialogTitle/index.js","../../../../../../node_modules/@mui/material/node/Divider/index.js","../../../../../../node_modules/@mui/material/node/Drawer/index.js","../../../../../../node_modules/@mui/material/node/Fab/index.js","../../../../../../node_modules/@mui/material/node/Fade/index.js","../../../../../../node_modules/@mui/material/node/FilledInput/index.js","../../../../../../node_modules/@mui/material/node/FormControl/index.js","../../../../../../node_modules/@mui/material/node/FormControlLabel/index.js","../../../../../../node_modules/@mui/material/node/FormGroup/index.js","../../../../../../node_modules/@mui/material/node/FormHelperText/index.js","../../../../../../node_modules/@mui/material/node/FormLabel/index.js","../../../../../../node_modules/@mui/material/node/Grid/index.js","../../../../../../node_modules/@mui/material/node/Unstable_Grid2/index.js","../../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../../node_modules/@mui/material/node/Hidden/index.js","../../../../../../node_modules/@mui/material/node/Icon/index.js","../../../../../../node_modules/@mui/material/node/IconButton/index.js","../../../../../../node_modules/@mui/material/node/ImageList/index.js","../../../../../../node_modules/@mui/material/node/ImageListItem/index.js","../../../../../../node_modules/@mui/material/node/ImageListItemBar/index.js","../../../../../../node_modules/@mui/material/node/Input/index.js","../../../../../../node_modules/@mui/material/node/InputAdornment/index.js","../../../../../../node_modules/@mui/material/node/InputBase/index.js","../../../../../../node_modules/@mui/material/node/InputLabel/index.js","../../../../../../node_modules/@mui/material/node/Link/index.js","../../../../../../node_modules/@mui/material/node/List/index.js","../../../../../../node_modules/@mui/material/node/LinearProgress/index.js","../../../../../../node_modules/@mui/material/node/ListItem/index.js","../../../../../../node_modules/@mui/material/node/ListItemAvatar/index.js","../../../../../../node_modules/@mui/material/node/ListItemButton/index.js","../../../../../../node_modules/@mui/material/node/ListItemIcon/index.js","../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/index.js","../../../../../../node_modules/@mui/material/node/ListItemText/index.js","../../../../../../node_modules/@mui/material/node/Menu/index.js","../../../../../../node_modules/@mui/material/node/ListSubheader/index.js","../../../../../../node_modules/@mui/material/node/MenuItem/index.js","../../../../../../node_modules/@mui/material/node/MenuList/index.js","../../../../../../node_modules/@mui/material/node/MobileStepper/index.js","../../../../../../node_modules/@mui/material/node/Modal/index.js","../../../../../../node_modules/@mui/material/node/NativeSelect/index.js","../../../../../../node_modules/@mui/material/node/NoSsr/index.js","../../../../../../node_modules/@mui/material/node/OutlinedInput/index.js","../../../../../../node_modules/@mui/material/node/Pagination/index.js","../../../../../../node_modules/@mui/material/node/PaginationItem/index.js","../../../../../../node_modules/@mui/material/node/Popover/index.js","../../../../../../node_modules/@mui/material/node/Popper/index.js","../../../../../../node_modules/@mui/material/node/Portal/index.js","../../../../../../node_modules/@mui/material/node/Radio/index.js","../../../../../../node_modules/@mui/material/node/RadioGroup/index.js","../../../../../../node_modules/@mui/material/node/Rating/index.js","../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/index.js","../../../../../../node_modules/@mui/material/node/Select/index.js","../../../../../../node_modules/@mui/material/node/Skeleton/index.js","../../../../../../node_modules/@mui/material/node/Slide/index.js","../../../../../../node_modules/@mui/material/node/Slider/index.js","../../../../../../node_modules/@mui/material/node/SpeedDial/index.js","../../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../../node_modules/@mui/material/node/SpeedDialAction/index.js","../../../../../../node_modules/@mui/material/node/SpeedDialIcon/index.js","../../../../../../node_modules/@mui/material/node/Stack/index.js","../../../../../../node_modules/@mui/material/node/Step/index.js","../../../../../../node_modules/@mui/material/node/StepButton/index.js","../../../../../../node_modules/@mui/material/node/StepConnector/index.js","../../../../../../node_modules/@mui/material/node/StepContent/index.js","../../../../../../node_modules/@mui/material/node/StepIcon/index.js","../../../../../../node_modules/@mui/material/node/StepLabel/index.js","../../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../../node_modules/@mui/material/node/SwipeableDrawer/index.js","../../../../../../node_modules/@mui/material/node/Stepper/index.js","../../../../../../node_modules/@mui/material/node/Switch/index.js","../../../../../../node_modules/@mui/material/node/Tab/index.js","../../../../../../node_modules/@mui/material/node/TableFooter/index.js","../../../../../../node_modules/@mui/material/node/TablePagination/index.js","../../../../../../node_modules/@mui/material/node/Tabs/index.js","../../../../../../node_modules/@mui/material/node/TableSortLabel/index.js","../../../../../../node_modules/@mui/material/node/TabScrollButton/index.js","../../../../../../node_modules/@mui/material/node/TextField/index.js","../../../../../../node_modules/@mui/material/node/TextareaAutosize/index.js","../../../../../../node_modules/@mui/material/node/ToggleButton/index.js","../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/index.js","../../../../../../node_modules/@mui/material/node/Toolbar/index.js","../../../../../../node_modules/@mui/material/node/Tooltip/index.js","../../../../../../node_modules/@mui/material/node/Typography/index.js","../../../../../../node_modules/@mui/material/node/useMediaQuery/index.js","../../../../../../node_modules/@mui/material/node/usePagination/index.js","../../../../../../node_modules/@mui/material/node/useScrollTrigger/index.js","../../../../../../node_modules/@mui/material/node/Zoom/index.js","../../../../../../node_modules/@mui/material/node/useAutocomplete/index.js","../../../../../../node_modules/@mui/material/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/material/node/generateUtilityClass/index.js","../../../../../../node_modules/@mui/material/node/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/material/node/Unstable_TrapFocus/index.js","../../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../../node_modules/@mui/base/package.json","../../../../../../node_modules/@mui/base/node/index.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../node_modules/@mui/material/node/AccordionActions/AccordionActions.js","../../../../../../node_modules/@mui/material/node/AccordionActions/accordionActionsClasses.js","../../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../../node_modules/@mui/material/node/colors/pink.js","../../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../../node_modules/@mui/material/node/colors/deepPurple.js","../../../../../../node_modules/@mui/material/node/colors/indigo.js","../../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../../node_modules/@mui/material/node/colors/cyan.js","../../../../../../node_modules/@mui/material/node/colors/teal.js","../../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../../node_modules/@mui/material/node/colors/lightGreen.js","../../../../../../node_modules/@mui/material/node/colors/lime.js","../../../../../../node_modules/@mui/material/node/colors/yellow.js","../../../../../../node_modules/@mui/material/node/colors/amber.js","../../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../../node_modules/@mui/material/node/colors/deepOrange.js","../../../../../../node_modules/@mui/material/node/colors/brown.js","../../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../../node_modules/@mui/material/node/colors/blueGrey.js","../../../../../../node_modules/@mui/material/node/Accordion/Accordion.js","../../../../../../node_modules/@mui/material/node/Accordion/accordionClasses.js","../../../../../../node_modules/@mui/material/node/AccordionDetails/AccordionDetails.js","../../../../../../node_modules/@mui/material/node/AccordionDetails/accordionDetailsClasses.js","../../../../../../node_modules/@mui/material/node/AccordionSummary/AccordionSummary.js","../../../../../../node_modules/@mui/material/node/AccordionSummary/accordionSummaryClasses.js","../../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/material/node/AlertTitle/AlertTitle.js","../../../../../../node_modules/@mui/material/node/AlertTitle/alertTitleClasses.js","../../../../../../node_modules/@mui/material/node/Alert/Alert.js","../../../../../../node_modules/@mui/material/node/Alert/alertClasses.js","../../../../../../node_modules/@mui/material/node/AppBar/AppBar.js","../../../../../../node_modules/@mui/material/node/AppBar/appBarClasses.js","../../../../../../node_modules/@mui/material/node/Autocomplete/Autocomplete.js","../../../../../../node_modules/@mui/material/node/Autocomplete/autocompleteClasses.js","../../../../../../node_modules/@mui/material/node/Avatar/Avatar.js","../../../../../../node_modules/@mui/material/node/Avatar/avatarClasses.js","../../../../../../node_modules/@mui/material/node/AvatarGroup/avatarGroupClasses.js","../../../../../../node_modules/@mui/material/node/AvatarGroup/AvatarGroup.js","../../../../../../node_modules/@mui/material/node/Badge/Badge.js","../../../../../../node_modules/@mui/material/node/Badge/badgeClasses.js","../../../../../../node_modules/@mui/material/node/Backdrop/Backdrop.js","../../../../../../node_modules/@mui/material/node/Backdrop/backdropClasses.js","../../../../../../node_modules/@mui/material/node/BottomNavigation/BottomNavigation.js","../../../../../../node_modules/@mui/material/node/BottomNavigation/bottomNavigationClasses.js","../../../../../../node_modules/@mui/material/node/BottomNavigationAction/BottomNavigationAction.js","../../../../../../node_modules/@mui/material/node/BottomNavigationAction/bottomNavigationActionClasses.js","../../../../../../node_modules/@mui/material/node/Box/boxClasses.js","../../../../../../node_modules/@mui/material/node/Box/Box.js","../../../../../../node_modules/@mui/material/node/Button/Button.js","../../../../../../node_modules/@mui/material/node/Button/buttonClasses.js","../../../../../../node_modules/@mui/material/node/Breadcrumbs/Breadcrumbs.js","../../../../../../node_modules/@mui/material/node/Breadcrumbs/breadcrumbsClasses.js","../../../../../../node_modules/@mui/material/node/ButtonBase/ButtonBase.js","../../../../../../node_modules/@mui/material/node/ButtonBase/buttonBaseClasses.js","../../../../../../node_modules/@mui/material/node/ButtonBase/touchRippleClasses.js","../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroup.js","../../../../../../node_modules/@mui/material/node/ButtonGroup/buttonGroupClasses.js","../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupContext.js","../../../../../../node_modules/@mui/material/node/ButtonGroup/ButtonGroupButtonContext.js","../../../../../../node_modules/@mui/material/node/Card/Card.js","../../../../../../node_modules/@mui/material/node/Card/cardClasses.js","../../../../../../node_modules/@mui/material/node/CardActionArea/cardActionAreaClasses.js","../../../../../../node_modules/@mui/material/node/CardActionArea/CardActionArea.js","../../../../../../node_modules/@mui/material/node/CardActions/CardActions.js","../../../../../../node_modules/@mui/material/node/CardActions/cardActionsClasses.js","../../../../../../node_modules/@mui/material/node/CardContent/CardContent.js","../../../../../../node_modules/@mui/material/node/CardContent/cardContentClasses.js","../../../../../../node_modules/@mui/material/node/CardHeader/CardHeader.js","../../../../../../node_modules/@mui/material/node/CardHeader/cardHeaderClasses.js","../../../../../../node_modules/@mui/material/node/CardMedia/CardMedia.js","../../../../../../node_modules/@mui/material/node/CardMedia/cardMediaClasses.js","../../../../../../node_modules/@mui/material/node/Checkbox/Checkbox.js","../../../../../../node_modules/@mui/material/node/Checkbox/checkboxClasses.js","../../../../../../node_modules/@mui/material/node/Chip/Chip.js","../../../../../../node_modules/@mui/material/node/Chip/chipClasses.js","../../../../../../node_modules/@mui/material/node/CircularProgress/CircularProgress.js","../../../../../../node_modules/@mui/material/node/CircularProgress/circularProgressClasses.js","../../../../../../node_modules/@mui/material/node/Collapse/Collapse.js","../../../../../../node_modules/@mui/material/node/Collapse/collapseClasses.js","../../../../../../node_modules/@mui/material/node/Container/Container.js","../../../../../../node_modules/@mui/material/node/Container/containerClasses.js","../../../../../../node_modules/@mui/material/node/CssBaseline/CssBaseline.js","../../../../../../node_modules/@mui/material/node/Dialog/Dialog.js","../../../../../../node_modules/@mui/material/node/Dialog/dialogClasses.js","../../../../../../node_modules/@mui/material/node/DialogActions/DialogActions.js","../../../../../../node_modules/@mui/material/node/DialogActions/dialogActionsClasses.js","../../../../../../node_modules/@mui/material/node/DialogContent/DialogContent.js","../../../../../../node_modules/@mui/material/node/DialogContent/dialogContentClasses.js","../../../../../../node_modules/@mui/material/node/DialogContentText/DialogContentText.js","../../../../../../node_modules/@mui/material/node/DialogContentText/dialogContentTextClasses.js","../../../../../../node_modules/@mui/material/node/Divider/Divider.js","../../../../../../node_modules/@mui/material/node/Divider/dividerClasses.js","../../../../../../node_modules/@mui/material/node/DialogTitle/DialogTitle.js","../../../../../../node_modules/@mui/material/node/DialogTitle/dialogTitleClasses.js","../../../../../../node_modules/@mui/material/node/Drawer/Drawer.js","../../../../../../node_modules/@mui/material/node/Drawer/drawerClasses.js","../../../../../../node_modules/@mui/material/node/Fab/Fab.js","../../../../../../node_modules/@mui/material/node/Fab/fabClasses.js","../../../../../../node_modules/@mui/material/node/Fade/Fade.js","../../../../../../node_modules/@mui/material/node/FilledInput/FilledInput.js","../../../../../../node_modules/@mui/material/node/FilledInput/filledInputClasses.js","../../../../../../node_modules/@mui/material/node/FormControl/FormControl.js","../../../../../../node_modules/@mui/material/node/FormControl/useFormControl.js","../../../../../../node_modules/@mui/material/node/FormControl/formControlClasses.js","../../../../../../node_modules/@mui/material/node/FormControlLabel/FormControlLabel.js","../../../../../../node_modules/@mui/material/node/FormControlLabel/formControlLabelClasses.js","../../../../../../node_modules/@mui/material/node/FormGroup/FormGroup.js","../../../../../../node_modules/@mui/material/node/FormGroup/formGroupClasses.js","../../../../../../node_modules/@mui/material/node/FormHelperText/FormHelperText.js","../../../../../../node_modules/@mui/material/node/FormHelperText/formHelperTextClasses.js","../../../../../../node_modules/@mui/material/node/Grid/Grid.js","../../../../../../node_modules/@mui/material/node/Grid/gridClasses.js","../../../../../../node_modules/@mui/material/node/FormLabel/FormLabel.js","../../../../../../node_modules/@mui/material/node/FormLabel/formLabelClasses.js","../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2.js","../../../../../../node_modules/@mui/material/node/Unstable_Grid2/Grid2Props.js","../../../../../../node_modules/@mui/material/node/Unstable_Grid2/grid2Classes.js","../../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../../node_modules/@mui/material/node/Hidden/Hidden.js","../../../../../../node_modules/@mui/material/node/Icon/Icon.js","../../../../../../node_modules/@mui/material/node/Icon/iconClasses.js","../../../../../../node_modules/@mui/material/node/IconButton/IconButton.js","../../../../../../node_modules/@mui/material/node/IconButton/iconButtonClasses.js","../../../../../../node_modules/@mui/material/node/ImageList/ImageList.js","../../../../../../node_modules/@mui/material/node/ImageList/imageListClasses.js","../../../../../../node_modules/@mui/material/node/ImageListItem/ImageListItem.js","../../../../../../node_modules/@mui/material/node/ImageListItem/imageListItemClasses.js","../../../../../../node_modules/@mui/material/node/Input/Input.js","../../../../../../node_modules/@mui/material/node/Input/inputClasses.js","../../../../../../node_modules/@mui/material/node/ImageListItemBar/ImageListItemBar.js","../../../../../../node_modules/@mui/material/node/ImageListItemBar/imageListItemBarClasses.js","../../../../../../node_modules/@mui/material/node/InputAdornment/InputAdornment.js","../../../../../../node_modules/@mui/material/node/InputAdornment/inputAdornmentClasses.js","../../../../../../node_modules/@mui/material/node/InputBase/InputBase.js","../../../../../../node_modules/@mui/material/node/InputBase/inputBaseClasses.js","../../../../../../node_modules/@mui/material/node/InputLabel/InputLabel.js","../../../../../../node_modules/@mui/material/node/InputLabel/inputLabelClasses.js","../../../../../../node_modules/@mui/material/node/List/List.js","../../../../../../node_modules/@mui/material/node/List/listClasses.js","../../../../../../node_modules/@mui/material/node/Link/Link.js","../../../../../../node_modules/@mui/material/node/Link/linkClasses.js","../../../../../../node_modules/@mui/material/node/LinearProgress/LinearProgress.js","../../../../../../node_modules/@mui/material/node/LinearProgress/linearProgressClasses.js","../../../../../../node_modules/@mui/material/node/ListItem/ListItem.js","../../../../../../node_modules/@mui/material/node/ListItem/listItemClasses.js","../../../../../../node_modules/@mui/material/node/ListItemAvatar/ListItemAvatar.js","../../../../../../node_modules/@mui/material/node/ListItemAvatar/listItemAvatarClasses.js","../../../../../../node_modules/@mui/material/node/ListItemButton/ListItemButton.js","../../../../../../node_modules/@mui/material/node/ListItemButton/listItemButtonClasses.js","../../../../../../node_modules/@mui/material/node/ListItemIcon/ListItemIcon.js","../../../../../../node_modules/@mui/material/node/ListItemIcon/listItemIconClasses.js","../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../../../node_modules/@mui/material/node/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../../../node_modules/@mui/material/node/ListItemText/ListItemText.js","../../../../../../node_modules/@mui/material/node/ListItemText/listItemTextClasses.js","../../../../../../node_modules/@mui/material/node/Menu/Menu.js","../../../../../../node_modules/@mui/material/node/Menu/menuClasses.js","../../../../../../node_modules/@mui/material/node/ListSubheader/ListSubheader.js","../../../../../../node_modules/@mui/material/node/ListSubheader/listSubheaderClasses.js","../../../../../../node_modules/@mui/material/node/MenuItem/MenuItem.js","../../../../../../node_modules/@mui/material/node/MenuItem/menuItemClasses.js","../../../../../../node_modules/@mui/material/node/MenuList/MenuList.js","../../../../../../node_modules/@mui/material/node/MobileStepper/MobileStepper.js","../../../../../../node_modules/@mui/material/node/MobileStepper/mobileStepperClasses.js","../../../../../../node_modules/@mui/material/node/Modal/Modal.js","../../../../../../node_modules/@mui/material/node/Modal/modalClasses.js","../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelect.js","../../../../../../node_modules/@mui/material/node/NativeSelect/nativeSelectClasses.js","../../../../../../node_modules/@mui/material/node/OutlinedInput/OutlinedInput.js","../../../../../../node_modules/@mui/material/node/OutlinedInput/outlinedInputClasses.js","../../../../../../node_modules/@mui/material/node/Pagination/Pagination.js","../../../../../../node_modules/@mui/material/node/Pagination/paginationClasses.js","../../../../../../node_modules/@mui/material/node/Popover/Popover.js","../../../../../../node_modules/@mui/material/node/Popover/popoverClasses.js","../../../../../../node_modules/@mui/material/node/PaginationItem/PaginationItem.js","../../../../../../node_modules/@mui/material/node/PaginationItem/paginationItemClasses.js","../../../../../../node_modules/@mui/material/node/Popper/Popper.js","../../../../../../node_modules/@mui/material/node/Radio/Radio.js","../../../../../../node_modules/@mui/material/node/Radio/radioClasses.js","../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroup.js","../../../../../../node_modules/@mui/material/node/RadioGroup/useRadioGroup.js","../../../../../../node_modules/@mui/material/node/Rating/Rating.js","../../../../../../node_modules/@mui/material/node/Rating/ratingClasses.js","../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/ScopedCssBaseline.js","../../../../../../node_modules/@mui/material/node/ScopedCssBaseline/scopedCssBaselineClasses.js","../../../../../../node_modules/@mui/material/node/Select/Select.js","../../../../../../node_modules/@mui/material/node/Select/selectClasses.js","../../../../../../node_modules/@mui/material/node/Skeleton/Skeleton.js","../../../../../../node_modules/@mui/material/node/Skeleton/skeletonClasses.js","../../../../../../node_modules/@mui/material/node/Slide/Slide.js","../../../../../../node_modules/@mui/material/node/Slider/Slider.js","../../../../../../node_modules/@mui/material/node/Slider/sliderClasses.js","../../../../../../node_modules/@mui/material/node/SpeedDial/SpeedDial.js","../../../../../../node_modules/@mui/material/node/SpeedDial/speedDialClasses.js","../../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../../node_modules/@mui/material/node/SpeedDialAction/SpeedDialAction.js","../../../../../../node_modules/@mui/material/node/SpeedDialAction/speedDialActionClasses.js","../../../../../../node_modules/@mui/material/node/SpeedDialIcon/SpeedDialIcon.js","../../../../../../node_modules/@mui/material/node/SpeedDialIcon/speedDialIconClasses.js","../../../../../../node_modules/@mui/material/node/Step/Step.js","../../../../../../node_modules/@mui/material/node/Step/stepClasses.js","../../../../../../node_modules/@mui/material/node/Step/StepContext.js","../../../../../../node_modules/@mui/material/node/Stack/Stack.js","../../../../../../node_modules/@mui/material/node/Stack/stackClasses.js","../../../../../../node_modules/@mui/material/node/StepButton/StepButton.js","../../../../../../node_modules/@mui/material/node/StepButton/stepButtonClasses.js","../../../../../../node_modules/@mui/material/node/StepConnector/StepConnector.js","../../../../../../node_modules/@mui/material/node/StepConnector/stepConnectorClasses.js","../../../../../../node_modules/@mui/material/node/StepContent/StepContent.js","../../../../../../node_modules/@mui/material/node/StepContent/stepContentClasses.js","../../../../../../node_modules/@mui/material/node/StepIcon/StepIcon.js","../../../../../../node_modules/@mui/material/node/StepIcon/stepIconClasses.js","../../../../../../node_modules/@mui/material/node/StepLabel/StepLabel.js","../../../../../../node_modules/@mui/material/node/StepLabel/stepLabelClasses.js","../../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeableDrawer.js","../../../../../../node_modules/@mui/material/node/Stepper/Stepper.js","../../../../../../node_modules/@mui/material/node/Stepper/stepperClasses.js","../../../../../../node_modules/@mui/material/node/Stepper/StepperContext.js","../../../../../../node_modules/@mui/material/node/Switch/Switch.js","../../../../../../node_modules/@mui/material/node/Switch/switchClasses.js","../../../../../../node_modules/@mui/material/node/Tab/Tab.js","../../../../../../node_modules/@mui/material/node/Tab/tabClasses.js","../../../../../../node_modules/@mui/material/node/TablePagination/TablePagination.js","../../../../../../node_modules/@mui/material/node/TablePagination/tablePaginationClasses.js","../../../../../../node_modules/@mui/material/node/TableFooter/TableFooter.js","../../../../../../node_modules/@mui/material/node/TableFooter/tableFooterClasses.js","../../../../../../node_modules/@mui/material/node/Tabs/Tabs.js","../../../../../../node_modules/@mui/material/node/Tabs/tabsClasses.js","../../../../../../node_modules/@mui/material/node/TableSortLabel/TableSortLabel.js","../../../../../../node_modules/@mui/material/node/TableSortLabel/tableSortLabelClasses.js","../../../../../../node_modules/@mui/material/node/TextField/TextField.js","../../../../../../node_modules/@mui/material/node/TextField/textFieldClasses.js","../../../../../../node_modules/@mui/material/node/TabScrollButton/TabScrollButton.js","../../../../../../node_modules/@mui/material/node/TabScrollButton/tabScrollButtonClasses.js","../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/ToggleButtonGroup.js","../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/toggleButtonGroupClasses.js","../../../../../../node_modules/@mui/material/node/Toolbar/Toolbar.js","../../../../../../node_modules/@mui/material/node/Toolbar/toolbarClasses.js","../../../../../../node_modules/@mui/material/node/ToggleButton/ToggleButton.js","../../../../../../node_modules/@mui/material/node/ToggleButton/toggleButtonClasses.js","../../../../../../node_modules/@mui/material/node/Typography/Typography.js","../../../../../../node_modules/@mui/material/node/Typography/typographyClasses.js","../../../../../../node_modules/@mui/material/node/Tooltip/Tooltip.js","../../../../../../node_modules/@mui/material/node/Tooltip/tooltipClasses.js","../../../../../../node_modules/@mui/material/node/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/material/node/usePagination/usePagination.js","../../../../../../node_modules/@mui/material/node/useScrollTrigger/useScrollTrigger.js","../../../../../../node_modules/@mui/material/node/Zoom/Zoom.js","../../../../../../node_modules/@mui/material/node/useAutocomplete/useAutocomplete.js","../../../../../../node_modules/@mui/material/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/@mui/material/utils/package.json","../../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../../node_modules/@mui/utils/refType.js","../../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../../node_modules/@mui/utils/setRef.js","../../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/material/node/Accordion/AccordionContext.js","../../../../../../node_modules/@mui/material/node/Breadcrumbs/BreadcrumbCollapsed.js","../../../../../../node_modules/@mui/material/node/ButtonBase/TouchRipple.js","../../../../../../node_modules/@mui/material/node/Dialog/DialogContext.js","../../../../../../node_modules/@mui/material/node/InputBase/utils.js","../../../../../../node_modules/@mui/material/node/FormControl/FormControlContext.js","../../../../../../node_modules/@mui/material/node/FormControl/formControlState.js","../../../../../../node_modules/@mui/material/node/Grid/GridContext.js","../../../../../../node_modules/@mui/material/node/Hidden/HiddenJs.js","../../../../../../node_modules/@mui/material/node/Hidden/HiddenCss.js","../../../../../../node_modules/@mui/material/node/ImageList/ImageListContext.js","../../../../../../node_modules/@mui/material/node/List/ListContext.js","../../../../../../node_modules/@mui/material/node/Link/getTextDecoration.js","../../../../../../node_modules/@mui/material/node/utils/getScrollbarSize.js","../../../../../../node_modules/@mui/material/node/NativeSelect/NativeSelectInput.js","../../../../../../node_modules/@mui/material/node/OutlinedInput/NotchedOutline.js","../../../../../../node_modules/@mui/material/node/Radio/RadioButtonIcon.js","../../../../../../node_modules/@mui/material/node/RadioGroup/RadioGroupContext.js","../../../../../../node_modules/@mui/material/node/Select/SelectInput.js","../../../../../../node_modules/@mui/material/node/Slider/SliderValueLabel.js","../../../../../../node_modules/@mui/material/node/utils/shouldSpreadAdditionalProps.js","../../../../../../node_modules/@mui/material/node/SwipeableDrawer/SwipeArea.js","../../../../../../node_modules/@mui/material/node/TablePagination/TablePaginationActions.js","../../../../../../node_modules/@mui/material/node/utils/scrollLeft.js","../../../../../../node_modules/@mui/material/node/Tabs/ScrollbarSize.js","../../../../../../node_modules/@mui/material/node/ToggleButtonGroup/isValueSelected.js","../../../../../../node_modules/@mui/material/node/internal/SwitchBase.js","../../../../../../node_modules/@mui/material/node/internal/animate.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/SuccessOutlined.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/ReportProblemOutlined.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/InfoOutlined.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Close.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/ErrorOutline.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDropDown.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Person.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckBox.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/IndeterminateCheckBox.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/LastPage.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Cancel.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/FirstPage.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateBefore.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Star.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/NavigateNext.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/StarBorder.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Add.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/CheckCircle.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/Warning.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/ArrowDownward.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowLeft.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/KeyboardArrowRight.js","../../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../../node_modules/@mui/base/unstable_useModal/package.json","../../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../../node_modules/@mui/base/NoSsr/package.json","../../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../../node_modules/@mui/base/Portal/package.json","../../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../../node_modules/@mui/base/TextareaAutosize/package.json","../../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../../node_modules/@mui/base/FocusTrap/package.json","../../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/@mui/material/node/className/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/base/utils/package.json","../../../../../../node_modules/@mui/base/Popper/package.json","../../../../../../node_modules/@mui/base/useBadge/package.json","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/@mui/base/useAutocomplete/package.json","../../../../../../node_modules/@mui/base/useSlider/package.json","../../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/MoreHoriz.js","../../../../../../node_modules/@mui/material/node/ButtonBase/Ripple.js","../../../../../../node_modules/@mui/material/node/Hidden/withWidth.js","../../../../../../node_modules/@mui/material/node/Hidden/hiddenCssClasses.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonUnchecked.js","../../../../../../node_modules/@mui/material/node/internal/svg-icons/RadioButtonChecked.js","../../../../../../node_modules/react-transition-group/package.json","../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../node_modules/@mui/material/node/internal/switchBaseClasses.js","../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../../node_modules/@popperjs/core/package.json","../../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../../node_modules/dom-helpers/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@floating-ui/dom/package.json","../../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/@floating-ui/core/package.json","../../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../../node_modules/@babel/runtime/package.json","../../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../../node_modules/@emotion/cache/package.json","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../../node_modules/@emotion/hash/package.json","../../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/memoize/package.json","../../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../../node_modules/@emotion/react/package.json","../../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../../node_modules/@emotion/serialize/package.json","../../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../../node_modules/@emotion/sheet/package.json","../../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../../node_modules/@emotion/styled/base/package.json","../../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../../node_modules/@emotion/styled/package.json","../../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../../node_modules/@emotion/unitless/package.json","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../../node_modules/@emotion/utils/package.json","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../../node_modules/@mui/private-theming/package.json","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../../node_modules/@mui/styled-engine/package.json","../../../../../../node_modules/@mui/system/Box/Box.js","../../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../../node_modules/@mui/system/Box/index.js","../../../../../../node_modules/@mui/system/Box/package.json","../../../../../../node_modules/@mui/system/Container/Container.js","../../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../../node_modules/@mui/system/Container/index.js","../../../../../../node_modules/@mui/system/Container/package.json","../../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../../node_modules/@mui/system/Stack/index.js","../../../../../../node_modules/@mui/system/Stack/package.json","../../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../../node_modules/@mui/system/borders.js","../../../../../../node_modules/@mui/system/breakpoints.js","../../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../../node_modules/@mui/system/compose.js","../../../../../../node_modules/@mui/system/createBox.js","../../../../../../node_modules/@mui/system/createStyled.js","../../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../../node_modules/@mui/system/cssGrid.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../../node_modules/@mui/system/display.js","../../../../../../node_modules/@mui/system/flexbox.js","../../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../../node_modules/@mui/system/index.js","../../../../../../node_modules/@mui/system/memoize.js","../../../../../../node_modules/@mui/system/merge.js","../../../../../../node_modules/@mui/system/package.json","../../../../../../node_modules/@mui/system/palette.js","../../../../../../node_modules/@mui/system/positions.js","../../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../../node_modules/@mui/system/shadows.js","../../../../../../node_modules/@mui/system/sizing.js","../../../../../../node_modules/@mui/system/spacing.js","../../../../../../node_modules/@mui/system/style.js","../../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../../node_modules/@mui/system/styled.js","../../../../../../node_modules/@mui/system/typography.js","../../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../../node_modules/@mui/system/useTheme.js","../../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../../node_modules/@mui/system/version/index.js","../../../../../../node_modules/@mui/system/version/package.json","../../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../../node_modules/@mui/utils/index.js","../../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../../node_modules/@mui/utils/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../../node_modules/@mui/utils/refType/index.js","../../../../../../node_modules/@mui/utils/refType/package.json","../../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../../node_modules/@mui/utils/types.js","../../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../../node_modules/@mui/utils/useId/index.js","../../../../../../node_modules/@mui/utils/useId/package.json","../../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../../node_modules/@swc/helpers/package.json","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/ScriptLoader2.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/TinyMCE.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/Utils.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/Editor.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/components/EditorPropTypes.js","../../../../../../node_modules/@tinymce/tinymce-react/lib/cjs/main/ts/index.js","../../../../../../node_modules/@tinymce/tinymce-react/package.json","../../../../../../node_modules/client-only/index.js","../../../../../../node_modules/client-only/package.json","../../../../../../node_modules/clsx/dist/clsx.js","../../../../../../node_modules/clsx/package.json","../../../../../../node_modules/core-util-is/lib/util.js","../../../../../../node_modules/core-util-is/package.json","../../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../../node_modules/dom-helpers/package.json","../../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../../node_modules/inherits/inherits.js","../../../../../../node_modules/inherits/inherits_browser.js","../../../../../../node_modules/inherits/package.json","../../../../../../node_modules/isarray/index.js","../../../../../../node_modules/isarray/package.json","../../../../../../node_modules/mysql/index.js","../../../../../../node_modules/mysql/lib/Connection.js","../../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../../node_modules/mysql/lib/Pool.js","../../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../../node_modules/mysql/package.json","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../../node_modules/next/head.js","../../../../../../node_modules/next/package.json","../../../../../../node_modules/object-assign/index.js","../../../../../../node_modules/object-assign/package.json","../../../../../../node_modules/process-nextick-args/index.js","../../../../../../node_modules/process-nextick-args/package.json","../../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../../node_modules/prop-types/index.js","../../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../../node_modules/prop-types/lib/has.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../../node_modules/prop-types/package.json","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../../node_modules/react-dom/index.js","../../../../../../node_modules/react-dom/package.json","../../../../../../node_modules/react-dom/server.browser.js","../../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../../node_modules/react-is/index.js","../../../../../../node_modules/react-is/package.json","../../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../../node_modules/react-transition-group/package.json","../../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../../node_modules/react/cjs/react.development.js","../../../../../../node_modules/react/cjs/react.production.min.js","../../../../../../node_modules/react/index.js","../../../../../../node_modules/react/jsx-runtime.js","../../../../../../node_modules/react/package.json","../../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../../node_modules/readable-stream/package.json","../../../../../../node_modules/readable-stream/readable.js","../../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../../node_modules/scheduler/index.js","../../../../../../node_modules/scheduler/package.json","../../../../../../node_modules/serverless-mysql/index.js","../../../../../../node_modules/serverless-mysql/package.json","../../../../../../node_modules/sqlstring/index.js","../../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../../node_modules/sqlstring/package.json","../../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../../node_modules/string_decoder/package.json","../../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../../node_modules/styled-jsx/index.js","../../../../../../node_modules/styled-jsx/package.json","../../../../../../node_modules/stylis/dist/umd/package.json","../../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../../node_modules/stylis/package.json","../../../../../../node_modules/util-deprecate/node.js","../../../../../../node_modules/util-deprecate/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/1137.js","../../../../chunks/1223.js","../../../../chunks/1790.js","../../../../chunks/2332.js","../../../../chunks/2414.js","../../../../chunks/2996.js","../../../../chunks/3247.js","../../../../chunks/3468.js","../../../../chunks/3737.js","../../../../chunks/4050.js","../../../../chunks/4237.js","../../../../chunks/4312.js","../../../../chunks/4417.js","../../../../chunks/5134.js","../../../../chunks/5212.js","../../../../chunks/5674.js","../../../../chunks/615.js","../../../../chunks/6154.js","../../../../chunks/6806.js","../../../../chunks/6946.js","../../../../chunks/7070.js","../../../../chunks/7318.js","../../../../chunks/7488.js","../../../../chunks/7665.js","../../../../chunks/7734.js","../../../../chunks/8153.js","../../../../chunks/8268.js","../../../../chunks/8370.js","../../../../chunks/883.js","../../../../chunks/8842.js","../../../../chunks/9205.js","../../../../chunks/9216.js","../../../../chunks/9621.js","../../../../chunks/9764.js","../../../../chunks/9810.js","../../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/envar.js b/dsql-app/.local_dist/server/pages/su/envar.js index 9596952..0b211ca 100644 --- a/dsql-app/.local_dist/server/pages/su/envar.js +++ b/dsql-app/.local_dist/server/pages/su/envar.js @@ -1,561 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7775; -exports.ids = [7775]; -exports.modules = { - -/***/ 5304: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 3667: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ Console), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -;// CONCATENATED MODULE: external "os" -const external_os_namespaceObject = require("os"); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -;// CONCATENATED MODULE: ./components/su/SuEnvCard.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -let isMouseInLogHistory = false; -/** @type {any} */ let timeout; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.envObject - * @param {string} props.envKey - */ function SuEnvCard({ envObject , envKey }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const [visible, setVisible] = external_react_default().useState(false); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [value, setValue] = external_react_default().useState(envObject[envKey]); - const [focused, setFocused] = external_react_default().useState(false); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("form", { - className: "grid grid-cols-2 items-center gap2 w-full hover:bg-slate-100 py-2 px-4 relative", - onSubmit: (e)=>{ - e.preventDefault(); - if (!visible) return; - setLoading(true); - setTimeout(()=>{ - setLoading(false); - }, 1000); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: envKey - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("input", { - type: visible ? "text" : "password", - onFocus: (e)=>{ - if (e.target.type == "password") { - e.target.type = "text"; - } - setFocused(true); - setVisible(true); - }, - onBlur: (e)=>{ - window.clearTimeout(timeout); - timeout = setTimeout(()=>{ - if (e.target.type == "text") { - e.target.type = "password"; - } - setFocused(false); - setVisible(false); - }, 2000); - }, - value: value, - onChange: (e)=>{ - setValue(e.target.value); - } - }), - focused ? /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button secondary", - onClick: (e)=>{ - e.preventDefault(); - if (!visible) return; - setLoading(true); - (0,fetchApi/* default */.Z)("/api/admin/updateEnv", { - method: "post", - body: { - key: envKey, - value: value - } - }).then((res)=>{ - if (res.success) { - window.location.reload(); - } else { - window.alert(res.error); - } - }).finally(()=>{ - setTimeout(()=>{ - setLoading(false); - }, 1000); - }); - }, - children: "Update" - }) : /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "button outlined", - onClick: (e)=>{ - setVisible(!visible); - setFocused(true); - }, - children: "Reveal" - }) - ] - }) - ] - }) - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/SuEnvContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -let SuEnvContent_isMouseInLogHistory = false; -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {{ envObject: any }} props.data - */ function SuEnvContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const { envObject } = data; - const [env, setEnv] = external_react_default().useState(envObject); - const envKeys = Object.keys(env); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-2xl m-0", - children: "Environment Variables" - }), - /*#__PURE__*/ jsx_runtime_.jsx("button", { - onClick: (e)=>{ - const newEnvName = window.prompt("What is the new ENV name?"); - const newEnvValue = window.prompt("ENV Value"); - if (newEnvName && newEnvValue) { - setEnv((/** @type {any} */ prev)=>{ - const newObject = { - ...prev - }; - newObject[newEnvName] = newEnvValue; - return newObject; - }); - } - }, - children: "Add Environment Variable" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: envKeys.map((key, index)=>/*#__PURE__*/ jsx_runtime_.jsx(SuEnvCard, { - envObject: env, - envKey: key - }, index)) - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./pages/su/envar.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -const fs = __webpack_require__(7147); -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} [props.data] - */ function Console({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Console | Datasquirel"; - const pageDescription = "Databases Console"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuEnvContent, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - if (false) {} - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const env = fs.readFileSync("./.env", "utf-8"); - const envLines = env.split(/\n|\r/); - /** @type {any} */ const envObject = {}; - envLines.forEach((line)=>{ - if (!line.match(/=/)) return; - if (line.match(/^\#/)) return; - const envArray = line.split("="); - envObject[envArray[0]] = envArray[1]; - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - envObject - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,1503,5313], () => (__webpack_exec__(3667))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3641,e.ids=[636,3641],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},65060:(e,t,r)=>{let i;r.r(t),r.d(t,{config:()=>j,default:()=>S,getServerSideProps:()=>M,getStaticPaths:()=>b,getStaticProps:()=>A,reportWebVitals:()=>w,routeModule:()=>G,unstable_getServerProps:()=>F,unstable_getServerSideProps:()=>V,unstable_getStaticParams:()=>C,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>E});var s={};r.r(s),r.d(s,{default:()=>k,getServerSideProps:()=>P});var u=r(63865),a=r(9455),n=r(30671),o=r(49407),l=r(68268),p=r(8732),d=r(82015),c=r.n(d),m=r(93615),x=r.n(m),y=r(64987),h=r(32415);require("os");var g=r(63715);function q({envObject:e,envKey:t}){let[r,s]=c().useState(!1),[u,a]=c().useState(!1),[n,o]=c().useState(e[t]),[l,d]=c().useState(!1);return(0,p.jsx)(c().Fragment,{children:(0,p.jsxs)("form",{className:"grid grid-cols-2 items-center gap2 w-full hover:bg-slate-100 py-2 px-4 relative",onSubmit:e=>{e.preventDefault(),r&&(a(!0),setTimeout(()=>{a(!1)},1e3))},children:[u&&(0,p.jsx)(h.A,{width:"20px"}),(0,p.jsx)("span",{children:t}),(0,p.jsxs)("div",{children:[(0,p.jsx)("input",{type:r?"text":"password",onFocus:e=>{"password"==e.target.type&&(e.target.type="text"),d(!0),s(!0)},onBlur:e=>{window.clearTimeout(i),i=setTimeout(()=>{"text"==e.target.type&&(e.target.type="password"),d(!1),s(!1)},2e3)},value:n,onChange:e=>{o(e.target.value)}}),l?(0,p.jsx)("div",{className:"button secondary",onClick:e=>{e.preventDefault(),r&&(a(!0),(0,g.A)("/api/admin/updateEnv",{method:"post",body:{key:t,value:n}}).then(e=>{e.success?window.location.reload():window.alert(e.error)}).finally(()=>{setTimeout(()=>{a(!1)},1e3)}))},children:"Update"}):(0,p.jsx)("div",{className:"button outlined",onClick:e=>{s(!r),d(!0)},children:"Reveal"})]})]})})}function v({data:e}){let{envObject:t}=e,[r,i]=c().useState(t),s=Object.keys(r);return(0,p.jsxs)(c().Fragment,{children:[(0,p.jsxs)("div",{className:"w-full justify-between",children:[(0,p.jsx)("h2",{className:"text-2xl m-0",children:"Environment Variables"}),(0,p.jsx)("button",{onClick:e=>{let t=window.prompt("What is the new ENV name?"),r=window.prompt("ENV Value");t&&r&&i(e=>{let i={...e};return i[t]=r,i})},children:"Add Environment Variable"})]}),(0,p.jsx)("section",{className:"paper",children:s.map((e,t)=>(0,p.jsx)(q,{envObject:r,envKey:e},t))})]})}let f=r(29021);function k({user:e,data:t}){let r=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"Console | Datasquirel"}),(0,p.jsx)("meta",{name:"description",content:"Databases Console"})]});return(0,p.jsx)(y.A,{head:r,user:e,children:(0,p.jsx)(v,{data:t})})}async function P({req:e,res:t,query:r}){let i=await x()(e);if(!i?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let s=f.readFileSync("./.env","utf-8").split(/\n|\r/),u={};return s.forEach(e=>{if(!e.match(/=/)||e.match(/^\#/))return;let t=e.split("=");u[t[0]]=t[1]}),{props:{user:i,data:{envObject:u}}}}let S=(0,n.M)(s,"default"),A=(0,n.M)(s,"getStaticProps"),b=(0,n.M)(s,"getStaticPaths"),M=(0,n.M)(s,"getServerSideProps"),j=(0,n.M)(s,"config"),w=(0,n.M)(s,"reportWebVitals"),E=(0,n.M)(s,"unstable_getStaticProps"),_=(0,n.M)(s,"unstable_getStaticPaths"),C=(0,n.M)(s,"unstable_getStaticParams"),F=(0,n.M)(s,"unstable_getServerProps"),V=(0,n.M)(s,"unstable_getServerSideProps"),G=new u.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/envar",pathname:"/su/envar",bundlePath:"",filename:""},components:{App:l.default,Document:o.default},userland:s})},67105:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>i});let i=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),i=t.X(0,[9764,883,8268,615],()=>r(65060));module.exports=i})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/envar.js.nft.json b/dsql-app/.local_dist/server/pages/su/envar.js.nft.json index fd8c597..c9117e8 100644 --- a/dsql-app/.local_dist/server/pages/su/envar.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/envar.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/1503.js","../../chunks/5313.js","../../../package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/error-logs.js b/dsql-app/.local_dist/server/pages/su/error-logs.js index 62fb868..602a25c 100644 --- a/dsql-app/.local_dist/server/pages/su/error-logs.js +++ b/dsql-app/.local_dist/server/pages/su/error-logs.js @@ -1,249 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 3753; -exports.ids = [3753]; -exports.modules = { - -/***/ 1300: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ ErrorLogs), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8282); -/* harmony import */ var _components_su_SuDashboardContent__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4187); -/* harmony import */ var _components_su_SuErrorLogsContent__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6251); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function ErrorLogs({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_SuAdminLayout__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - head: head, - user: user, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_su_SuErrorLogsContent__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, {}) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_2___default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,1503,5313,1336,4187,7838], () => (__webpack_exec__(1300))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=6257,e.ids=[636,6257],e.modules={93446:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>g,getServerSideProps:()=>P,getStaticPaths:()=>h,getStaticProps:()=>S,reportWebVitals:()=>v,routeModule:()=>w,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>_,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>b});var s={};t.r(s),t.d(s,{default:()=>d,getServerSideProps:()=>q});var i=t(63865),u=t(9455),o=t(30671),a=t(49407),l=t(68268),p=t(8732);t(82015);var n=t(93615),m=t.n(n),c=t(64987);t(36299);var x=t(19262);function d({user:e,data:r}){let t=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,p.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,p.jsx)(c.A,{head:t,user:e,children:(0,p.jsx)(x.A,{})})}async function q({req:e,res:r,query:t}){let s=await m()(e);return s?.logged_in_status?{props:{user:s}}:{redirect:{destination:"/su/login",permanent:!1}}}let g=(0,o.M)(s,"default"),S=(0,o.M)(s,"getStaticProps"),h=(0,o.M)(s,"getStaticPaths"),P=(0,o.M)(s,"getServerSideProps"),f=(0,o.M)(s,"config"),v=(0,o.M)(s,"reportWebVitals"),b=(0,o.M)(s,"unstable_getStaticProps"),y=(0,o.M)(s,"unstable_getStaticPaths"),j=(0,o.M)(s,"unstable_getStaticParams"),M=(0,o.M)(s,"unstable_getServerProps"),_=(0,o.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:u.A.PAGES,page:"/su/error-logs",pathname:"/su/error-logs",bundlePath:"",filename:""},components:{App:l.default,Document:a.default},userland:s})},19262:(e,r,t)=>{t.d(r,{A:()=>l});var s=t(8732),i=t(82015),u=t.n(i),o=t(63715),a=t(32415);function l(e){let[r,t]=u().useState(null),[i,l]=u().useState(!1),[p,n]=u().useState(0);return(0,s.jsxs)(u().Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,s.jsx)("div",{children:(0,s.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(l(!0),(0,o.A)("/api/admin/clearErrorLogs","post").then(e=>{console.log(e),n(e=>e+1)}),setTimeout(()=>{l(!1)},2e3))},className:"outlined gray relative",children:[i&&(0,s.jsx)(a.A,{width:"20px"}),"Clear Error Log"]})})]}),(0,s.jsxs)("section",{className:"paper",children:[r&&(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:r||"No Log"}}),!r&&(0,s.jsx)(a.A,{position:"relative",width:"25px"})]})]})}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615,9810],()=>t(93446));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json b/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json index 266d559..c9117e8 100644 --- a/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/error-logs.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/5264.js","../../chunks/6729.js","../../chunks/1503.js","../../chunks/5313.js","../../chunks/1336.js","../../chunks/4187.js","../../chunks/7838.js","../../../package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/load-balancing.js b/dsql-app/.local_dist/server/pages/su/load-balancing.js new file mode 100644 index 0000000..c5df0ff --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/load-balancing.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=9157,e.ids=[636,9157],e.modules={52093:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>h,default:()=>p,getServerSideProps:()=>m,getStaticPaths:()=>x,getStaticProps:()=>d,reportWebVitals:()=>g,routeModule:()=>q,unstable_getServerProps:()=>v,unstable_getServerSideProps:()=>S,unstable_getStaticParams:()=>j,unstable_getStaticPaths:()=>y,unstable_getStaticProps:()=>f});var i=t(63865),a=t(9455),n=t(30671),o=t(49407),u=t(68268),l=t(64232),c=e([l]);l=(c.then?(await c)():c)[0];let p=(0,n.M)(l,"default"),d=(0,n.M)(l,"getStaticProps"),x=(0,n.M)(l,"getStaticPaths"),m=(0,n.M)(l,"getServerSideProps"),h=(0,n.M)(l,"config"),g=(0,n.M)(l,"reportWebVitals"),f=(0,n.M)(l,"unstable_getStaticProps"),y=(0,n.M)(l,"unstable_getStaticPaths"),j=(0,n.M)(l,"unstable_getStaticParams"),v=(0,n.M)(l,"unstable_getServerProps"),S=(0,n.M)(l,"unstable_getServerSideProps"),q=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/load-balancing",pathname:"/su/load-balancing",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:l});s()}catch(e){s(e)}})},94010:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>u});var i=t(8732);t(82015);var a=t(96089),n=t(75979),o=e([n]);function u({slugText:e,justIcon:r,noIcon:t,title:s,outlined:o,extraClasses:u}){return(0,i.jsxs)("div",{className:(0,n.twMerge)("button small-text",o?" outlined gray bg-white":" ghost light-gray",u),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:o?void 0:{padding:0},children:[!t&&(0,i.jsx)(a.A,{size:o?15:20}),!r&&(0,i.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}n=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},19262:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(8732),i=t(82015),a=t.n(i),n=t(63715),o=t(32415);function u(e){let[r,t]=a().useState(null),[i,u]=a().useState(!1),[l,c]=a().useState(0);return(0,s.jsxs)(a().Fragment,{children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,s.jsx)("div",{children:(0,s.jsxs)("button",{onClick:e=>{window.confirm("Clear Error Logs?")&&(u(!0),(0,n.A)("/api/admin/clearErrorLogs","post").then(e=>{console.log(e),c(e=>e+1)}),setTimeout(()=>{u(!1)},2e3))},className:"outlined gray relative",children:[i&&(0,s.jsx)(o.A,{width:"20px"}),"Clear Error Log"]})})]}),(0,s.jsxs)("section",{className:"paper",children:[r&&(0,s.jsx)("p",{dangerouslySetInnerHTML:{__html:r||"No Log"}}),!r&&(0,s.jsx)(o.A,{position:"relative",width:"25px"})]})]})}},77306:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>l});var i=t(8732),a=t(94010),n=t(2459),o=t(75979),u=e([a,o]);function l({server:e,noLoadBalance:r}){return(0,i.jsxs)("div",{className:"stack w-full",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(n.A,{size:15,opacity:.5}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:e.host}),r?(0,i.jsx)(i.Fragment,{}):e.loadBalanced?(0,i.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,i.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,i.jsx)("div",{className:(0,o.twMerge)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,i.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>i.jsx(c,{user:e},r))})})]})}function c({user:e}){return(0,i.jsx)("li",{className:(0,o.twMerge)("w-full"),children:(0,i.jsxs)("div",{className:"stack gap-0",children:[(0,i.jsxs)("span",{children:["user: ",(0,i.jsx)("b",{children:e.name})]}),(0,i.jsxs)("span",{children:["pass:"," ",(0,i.jsx)("b",{children:(0,i.jsx)(a.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[a,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},72179:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>c});var i=t(8732),a=t(68268),n=t(82015),o=t.n(n),u=t(77306),l=e([u]);function c(){let e=o().useContext(a.AppContext).pageProps;e.user;let r=e.servers;return(0,i.jsxs)(o().Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,i.jsx)("h2",{className:"text-xl m-0",children:"Load Balancing"}),(0,i.jsx)("span",{children:"Distribute database load accross servers"})]}),(0,i.jsx)("div",{})]}),(0,i.jsxs)("section",{className:"paper",children:[(0,i.jsx)("h2",{className:"text-base m-0",children:"Servers"}),(0,i.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map((e,r)=>(0,i.jsx)(u.A,{server:e},r))})]})]})}u=(l.then?(await l)():l)[0],s()}catch(e){s(e)}})},92127:(e,r,t)=>{t(33873);let s=t(29021);t(56248);let i=t(70956);e.exports=function(){try{let e=i();if(!s.existsSync(e.path)){let r={host:"172.72.0.32",port:3306,primary:!0,loadBalanced:!0,users:[{host:"172.72.0.24",name:"root",password:process.env.DSQL_MARIADB_ROOT_PASSWORD||"password"}]};s.writeFileSync(e.path,JSON.stringify([r]))}return!0}catch(e){return console.log(`Error checking servers ${e.message}`),!1}}},70956:(e,r,t)=>{let s=t(33873);e.exports=function(){let e=process.env.DSQL_SU_USER_ID||"1",r=s.resolve(process.cwd(),`./jsonData/dbSchemas/users/user-${e}`),t=`${r}/servers.json`;return{dir:r,path:t}}},31511:(e,r,t)=>{t(33873);let s=t(29021),i=t(56248),a=t(92127),n=t(70956);e.exports=function(){try{a();let e=n();return i.parse(s.readFileSync(e.path,"utf-8"))}catch(e){console.log(`Error getting servers ${e.message}`);return}}},96089:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},56248:e=>{e.exports={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,t){try{return JSON.stringify(e,r,t)}catch(e){return}}}},64232:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{default:()=>d,getServerSideProps:()=>x});var i=t(8732);t(82015);var a=t(93615),n=t.n(a),o=t(64987);t(36299),t(19262);var u=t(72179),l=t(31511),c=t.n(l),p=e([u]);function d({user:e,data:r}){let t=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"Load Balancing"}),(0,i.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,i.jsx)(o.A,{head:t,user:e,children:(0,i.jsx)(u.A,{})})}async function x({req:e,res:r,query:t}){try{let r=await n()(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let t=c()();if(!t)throw Error("No servers found");return{props:{user:r,servers:t}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}u=(p.then?(await p)():p)[0],s()}catch(e){s(e)}})},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615,9810],()=>t(52093));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json b/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json new file mode 100644 index 0000000..9577a01 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/load-balancing.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/login.js b/dsql-app/.local_dist/server/pages/su/login.js index f5319f8..99edb81 100644 --- a/dsql-app/.local_dist/server/pages/su/login.js +++ b/dsql-app/.local_dist/server/pages/su/login.js @@ -1,306 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 7570; -exports.ids = [7570]; -exports.modules = { - -/***/ 4211: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Dashboard), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(968); -/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_2__); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1503); -/* harmony import */ var _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_3__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6729); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {null} props.user - */ function Dashboard({ user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Super User Login | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - className: "w-full h-screen justify-center items-center", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((next_head__WEBPACK_IMPORTED_MODULE_2___default()), { - children: head - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center", - children: [ - true && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(SuInfo, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - onSubmit: (e)=>{ - e.preventDefault(); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)("/api/admin/loginSuUser", { - method: "post", - body: { - email: formEl["email"].value, - password: formEl["password"].value, - authKey: formEl["auth-key"].value - } - }).then((res)=>{ - window.location.reload(); - }); - }, - className: "flex flex-col items-stretch gap-4 w-full", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "text", - name: "email", - id: "email", - placeholder: "Email Address" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "password", - id: "password", - placeholder: "Password" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "password", - name: "auth-key", - id: "auth-key", - placeholder: "Auth Key" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - children: "Login" - }) - ] - }) - ] - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res, true); - if (user?.id == 1 && "true") { - console.log("Admin User Detected ..."); - } - const suAdminUser = await _functions_backend_suAdminUserAuth__WEBPACK_IMPORTED_MODULE_3___default()(req); - if (suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -function SuInfo() { - return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex flex-col items-center gap-2 text-center", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "text-2xl text-center m-0", - children: "Super User Login" - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("span", { - children: [ - "This area is reserved only for the owner of this Admin. To login use the info in your ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: "dsql.env" - }), - " File. Use the env variables as follows. Your ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("i", { - children: "email address" - }), - " is the same address used to register the first user account" - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("ul", { - className: "p-0", - children: [ - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("li", { - children: [ - "Password:", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("i", { - className: "info small w-auto inline", - children: "dsql.env::" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: " DSQL_USER_KEY" - }) - ] - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("li", { - children: [ - "Auth Key:", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("i", { - className: "info small w-auto inline", - children: "dsql.env::" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("b", { - children: " DSQL_SPECIAL_KEY" - }) - ] - }) - ] - }) - ] - }); -} - - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [6729,4480,370,1503], () => (__webpack_exec__(4211))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=9634,e.ids=[636,9634],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,s){return s in t?t[s]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,s)):"function"==typeof t&&"default"===s?t:void 0}}})},80268:(e,t,s)=>{s.r(t),s.d(t,{config:()=>b,default:()=>v,getServerSideProps:()=>E,getStaticPaths:()=>j,getStaticProps:()=>P,reportWebVitals:()=>A,routeModule:()=>N,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>k,unstable_getStaticParams:()=>L,unstable_getStaticPaths:()=>w,unstable_getStaticProps:()=>D});var r={};s.r(r),s.d(r,{default:()=>y,getServerSideProps:()=>_});var i=s(63865),n=s(9455),o=s(30671),a=s(49407),u=s(68268),l=s(8732);s(82015);var c=s(27912),p=s.n(c),m=s(93615),d=s.n(m),x=s(63715),h=s(20048),f=s.n(h),g=s(72377),S=s.n(g);function y({user:e}){let t=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Super User Login | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,l.jsxs)("section",{className:"w-full h-screen justify-center items-center",children:[(0,l.jsx)(p(),{children:t}),(0,l.jsxs)("div",{className:"p-6 bg-slate-100 rounded w-full max-w-2xl flex flex-col items-center",children:[(0,l.jsx)(q,{}),(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=e.target;(0,x.A)("/api/admin/loginSuUser",{method:"post",body:{email:t.email.value,password:t.password.value,authKey:t["auth-key"].value}}).then(e=>{window.location.reload()})},className:"flex flex-col items-stretch gap-4 w-full",children:[(0,l.jsx)("input",{type:"text",name:"email",id:"email",placeholder:"Email Address"}),(0,l.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password"}),(0,l.jsx)("input",{type:"password",name:"auth-key",id:"auth-key",placeholder:"Auth Key"}),(0,l.jsx)("button",{children:"Login"})]})]})]})}async function _({req:e,res:t,query:s}){let r=await f()(e,t,!0);S()(r)&&console.log("Admin User Detected ...");let i=await d()(e);return i?.logged_in_status?{redirect:{destination:"/su",permanent:!1}}:{props:{user:i}}}function q(){return(0,l.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center",children:[(0,l.jsx)("h1",{className:"text-2xl text-center m-0",children:"Super User Login"}),(0,l.jsxs)("span",{children:["This area is reserved only for the owner of this Admin. To login use the info in your ",(0,l.jsx)("b",{children:"dsql.env"})," File. Use the env variables as follows. Your ",(0,l.jsx)("i",{children:"email address"})," is the same address used to register the first user account"]}),(0,l.jsxs)("ul",{className:"p-0",children:[(0,l.jsxs)("li",{children:["Password:"," ",(0,l.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,l.jsx)("b",{children:" DSQL_USER_KEY"})]}),(0,l.jsxs)("li",{children:["Auth Key:"," ",(0,l.jsx)("i",{className:"info small w-auto inline",children:"dsql.env::"}),(0,l.jsx)("b",{children:" DSQL_SPECIAL_KEY"})]})]})]})}let v=(0,o.M)(r,"default"),P=(0,o.M)(r,"getStaticProps"),j=(0,o.M)(r,"getStaticPaths"),E=(0,o.M)(r,"getServerSideProps"),b=(0,o.M)(r,"config"),A=(0,o.M)(r,"reportWebVitals"),D=(0,o.M)(r,"unstable_getStaticProps"),w=(0,o.M)(r,"unstable_getStaticPaths"),L=(0,o.M)(r,"unstable_getStaticParams"),M=(0,o.M)(r,"unstable_getServerProps"),k=(0,o.M)(r,"unstable_getServerSideProps"),N=new i.PagesRouteModule({definition:{kind:n.A.PAGES,page:"/su/login",pathname:"/su/login",bundlePath:"",filename:""},components:{App:u.default,Document:a.default},userland:r})},93615:(e,t,s)=>{let{IncomingMessage:r}=s(81630),i=s(83007);e.exports=async function(e){if(!e.cookies?.datasquirelSuAdminUserAuthKey)return console.log("No auth key cookie found"),null;let t=i(e.cookies.datasquirelSuAdminUserAuthKey);if(!t)return console.log("No user payload found"),null;let s=JSON.parse(t);return s.password!==process.env.DSQL_USER_KEY?(console.log("Invalid password"),null):s.authKey!==process.env.DSQL_SPECIAL_KEY?(console.log("Invalid auth key"),null):s}},20048:(e,t,s)=>{s(81630);let r=s(67216),i=s(83007),n=s(29021);async function o(e,t,s,o){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let a=i(e.cookies.datasquirelAuthKey);if(!a)return null;let u=JSON.parse(a);if(!u.csrf_k||s&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(s&&!n.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!s){let e=await r(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=o},72377:e=>{e.exports=function(e,t){return t?e?.id&&String(e?.id)==(process.env.DSQL_SU_USER_ID||"1")&&"true":e?.id&&"1"==String(e?.id)&&"true"}},83007:(e,t,s)=>{let{scryptSync:r,createDecipheriv:i}=s(55511),{Buffer:n}=s(79428);e.exports=e=>{let t=i("aes-192-cbc",r(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),n.alloc(16,0));try{let s=t.update(e,"hex","utf8");return s+=t.final("utf8")}catch(e){return null}}},67216:(e,t,s)=>{let r=s(9973),i=s(31976),n=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function o(...e){try{let t=await n.query(...e);return await n.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=o},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,s)=>{s.r(t),s.d(t,{default:()=>n});var r=s(8732);s(82015);var i=s(20883);function n(e){return(0,r.jsxs)(i.Html,{lang:"en",children:[(0,r.jsxs)(i.Head,{children:[(0,r.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,r.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,r.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,r.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,r.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,r.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,r.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,r.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,r.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,r.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,r.jsxs)("body",{children:[(0,r.jsx)(i.Main,{}),(0,r.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var s;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return s}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(s||(s={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,8268],()=>s(80268));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/login.js.nft.json b/dsql-app/.local_dist/server/pages/su/login.js.nft.json index 4b724f8..79cb907 100644 --- a/dsql-app/.local_dist/server/pages/su/login.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/login.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/6729.js","../../chunks/4480.js","../../chunks/370.js","../../chunks/1503.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/servers.js b/dsql-app/.local_dist/server/pages/su/servers.js new file mode 100644 index 0000000..38baf7d --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/servers.js @@ -0,0 +1 @@ +"use strict";(()=>{var e={};e.id=3821,e.ids=[636,3821],e.modules={30671:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},17021:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{config:()=>y,default:()=>p,getServerSideProps:()=>h,getStaticPaths:()=>x,getStaticProps:()=>d,reportWebVitals:()=>m,routeModule:()=>q,unstable_getServerProps:()=>S,unstable_getServerSideProps:()=>A,unstable_getStaticParams:()=>v,unstable_getStaticPaths:()=>f,unstable_getStaticProps:()=>g});var i=t(63865),a=t(9455),n=t(30671),o=t(49407),u=t(68268),l=t(95376),c=e([l]);l=(c.then?(await c)():c)[0];let p=(0,n.M)(l,"default"),d=(0,n.M)(l,"getStaticProps"),x=(0,n.M)(l,"getStaticPaths"),h=(0,n.M)(l,"getServerSideProps"),y=(0,n.M)(l,"config"),m=(0,n.M)(l,"reportWebVitals"),g=(0,n.M)(l,"unstable_getStaticProps"),f=(0,n.M)(l,"unstable_getStaticPaths"),v=(0,n.M)(l,"unstable_getStaticParams"),S=(0,n.M)(l,"unstable_getServerProps"),A=(0,n.M)(l,"unstable_getServerSideProps"),q=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/servers",pathname:"/su/servers",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:l});s()}catch(e){s(e)}})},94010:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>u});var i=t(8732);t(82015);var a=t(96089),n=t(75979),o=e([n]);function u({slugText:e,justIcon:r,noIcon:t,title:s,outlined:o,extraClasses:u}){return(0,i.jsxs)("div",{className:(0,n.twMerge)("button small-text",o?" outlined gray bg-white":" ghost light-gray",u),onClick:r=>{navigator.clipboard.writeText(e).then(()=>{alert(`Copied: "${e}"`)})},style:o?void 0:{padding:0},children:[!t&&(0,i.jsx)(a.A,{size:o?15:20}),!r&&(0,i.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}n=(o.then?(await o)():o)[0],s()}catch(e){s(e)}})},77306:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>l});var i=t(8732),a=t(94010),n=t(2459),o=t(75979),u=e([a,o]);function l({server:e,noLoadBalance:r}){return(0,i.jsxs)("div",{className:"stack w-full",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(n.A,{size:15,opacity:.5}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{children:e.host}),r?(0,i.jsx)(i.Fragment,{}):e.loadBalanced?(0,i.jsx)("span",{className:"info green small",children:"Load Balanced"}):(0,i.jsx)("button",{children:"Add to Load Balancer"})]})]}),(0,i.jsx)("div",{className:(0,o.twMerge)("stack border-0 border-l border-solid border-s-slate-200 dark:border-white/20","pl-6 ml-2 -mt-4 pt-2 w-full gap-0"),children:(0,i.jsx)("ul",{className:"p-0 m-0 pl-4",children:e.users?.map((e,r)=>i.jsx(c,{user:e},r))})})]})}function c({user:e}){return(0,i.jsx)("li",{className:(0,o.twMerge)("w-full"),children:(0,i.jsxs)("div",{className:"stack gap-0",children:[(0,i.jsxs)("span",{children:["user: ",(0,i.jsx)("b",{children:e.name})]}),(0,i.jsxs)("span",{children:["pass:"," ",(0,i.jsx)("b",{children:(0,i.jsx)(a.A,{slugText:e.password,title:"********",extraClasses:"inline",noIcon:!0})})]})]})})}[a,o]=u.then?(await u)():u,s()}catch(e){s(e)}})},2419:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.d(r,{A:()=>c});var i=t(8732),a=t(68268),n=t(82015),o=t.n(n),u=t(77306),l=e([u]);function c(){let e=o().useContext(a.AppContext).pageProps;e.user;let r=e.servers;return(0,i.jsxs)(o().Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsxs)("div",{className:"flex-col items-start gap-2",children:[(0,i.jsx)("h2",{className:"text-xl m-0",children:"Servers"}),(0,i.jsx)("span",{children:"All Servers"})]}),(0,i.jsx)("div",{children:(0,i.jsx)("button",{children:"Add Server"})})]}),(0,i.jsxs)("section",{className:"paper",children:[(0,i.jsx)("div",{className:"flex flex-col gap-2 w-full",children:r.map((e,r)=>(0,i.jsx)(u.A,{server:e,noLoadBalance:!0},r))}),(0,i.jsx)("button",{className:"w-full outlined dashed gray",children:"Add Server"})]})]})}u=(l.then?(await l)():l)[0],s()}catch(e){s(e)}})},92127:(e,r,t)=>{t(33873);let s=t(29021);t(56248);let i=t(70956);e.exports=function(){try{let e=i();if(!s.existsSync(e.path)){let r={host:"172.72.0.32",port:3306,primary:!0,loadBalanced:!0,users:[{host:"172.72.0.24",name:"root",password:process.env.DSQL_MARIADB_ROOT_PASSWORD||"password"}]};s.writeFileSync(e.path,JSON.stringify([r]))}return!0}catch(e){return console.log(`Error checking servers ${e.message}`),!1}}},70956:(e,r,t)=>{let s=t(33873);e.exports=function(){let e=process.env.DSQL_SU_USER_ID||"1",r=s.resolve(process.cwd(),`./jsonData/dbSchemas/users/user-${e}`),t=`${r}/servers.json`;return{dir:r,path:t}}},31511:(e,r,t)=>{t(33873);let s=t(29021),i=t(56248),a=t(92127),n=t(70956);e.exports=function(){try{a();let e=n();return i.parse(s.readFileSync(e.path,"utf-8"))}catch(e){console.log(`Error getting servers ${e.message}`);return}}},67105:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},96089:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},26628:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},67216:(e,r,t)=>{let s=t(9973),i=t(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},56248:e=>{e.exports={parse:function(e,r){if(e){if("object"==typeof e)return e;if("string"==typeof e)try{return JSON.parse(e,r)}catch(e){return}}},stringify:function(e,r,t){try{return JSON.stringify(e,r,t)}catch(e){return}}}},95376:(e,r,t)=>{t.a(e,async(e,s)=>{try{t.r(r),t.d(r,{default:()=>S,getServerSideProps:()=>A});var i=t(8732);t(82015);var a=t(29021),n=t.n(a),o=t(93615),u=t.n(o),l=t(64987),c=t(31511),p=t.n(c),d=t(2419),x=t(67216),h=t.n(x),y=t(33873),m=t.n(y),g=t(56248),f=t.n(g),v=e([d]);function S({user:e,data:r}){let t=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"Load Balancing"}),(0,i.jsx)("meta",{name:"description",content:"Distribute db load accross servers"})]});return(0,i.jsx)(l.A,{head:t,user:e,children:(0,i.jsx)(d.A,{})})}async function A({req:e,res:r,query:t}){try{let r=await u()(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let t=p()();if(!t)throw Error("No servers found");t.find(e=>e.primary);let s=(await h()("SELECT user,host,password FROM mysql.user")).filter(e=>e.User.match(/^dsql_user|^root/i));return n().writeFileSync(m().resolve(process.cwd(),"./.tmp/wrt.json"),String(f().stringify(s,null,4)),"utf8"),{props:{user:r,servers:t}}}catch(e){return{redirect:{destination:"/su",permanent:!1}}}}d=(v.then?(await v)():v)[0],s()}catch(e){s(e)}})},9455:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},75979:e=>{e.exports=import("tailwind-merge")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615],()=>t(17021));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/servers.js.nft.json b/dsql-app/.local_dist/server/pages/su/servers.js.nft.json new file mode 100644 index 0000000..105abd4 --- /dev/null +++ b/dsql-app/.local_dist/server/pages/su/servers.js.nft.json @@ -0,0 +1 @@ +{"version":1,"files":["../../../../.tmp/wrt.json","../../../../jsonData/dbSchemas/users/user-1/servers.json","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/tailwind-merge/dist/bundle-cjs.js","../../../../node_modules/tailwind-merge/dist/bundle-mjs.mjs","../../../../node_modules/tailwind-merge/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users.js b/dsql-app/.local_dist/server/pages/su/users.js index ed26b43..dd09725 100644 --- a/dsql-app/.local_dist/server/pages/su/users.js +++ b/dsql-app/.local_dist/server/pages/su/users.js @@ -1,355 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 6881; -exports.ids = [6881]; -exports.modules = { - -/***/ 2948: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ UsersPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/su/components/UserCard.jsx -var UserCard = __webpack_require__(1336); -;// CONCATENATED MODULE: ./components/su/SuUsersContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - */ function SuUsersContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "items-start justify-start p-6", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex flex-row items-center w-full gap-20 mb-6 justify-between", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Users" - }), - /*#__PURE__*/ jsx_runtime_.jsx("a", { - href: "/su/users/new", - className: "button", - children: "Add User" - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-stretch gap-10 w-full", - children: data.users.map((/** @type {import("@/package-shared/types").UserType} */ userObject, /** @type {Number} */ index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(UserCard/* default */.Z, { - userObject: userObject - }, index + 1); - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/su/users/index.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function UsersPage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuUsersContent, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const users = await DB_HANDLER_default()(`SELECT * FROM users`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - users: users.reverse() - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,4480,1503,5313,1336], () => (__webpack_exec__(2948))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5109,e.ids=[636,5109],e.modules={30671:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},93701:(e,r,t)=>{t.r(r),t.d(r,{config:()=>A,default:()=>v,getServerSideProps:()=>b,getStaticPaths:()=>k,getStaticProps:()=>P,reportWebVitals:()=>j,routeModule:()=>N,unstable_getServerProps:()=>D,unstable_getServerSideProps:()=>E,unstable_getStaticParams:()=>w,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>M});var s={};t.r(s),t.d(s,{default:()=>q,getServerSideProps:()=>S});var i=t(63865),a=t(9455),u=t(30671),l=t(49407),o=t(68268),n=t(8732),c=t(82015),p=t.n(c),d=t(93615),m=t.n(d),x=t(64987),h=t(21498);function y({data:e}){return(0,n.jsx)(p().Fragment,{children:(0,n.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Users"}),(0,n.jsx)("a",{href:"/su/users/new",className:"button",children:"Add User"})]}),(0,n.jsx)("div",{className:"flex-col items-stretch gap-10 w-full",children:e.users.map((e,r)=>(0,n.jsx)(h.A,{userObject:e},r+1))})]})})}var f=t(67216),g=t.n(f);function q({user:e,data:r}){let t=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,n.jsx)(x.A,{head:t,user:e,children:(0,n.jsx)(y,{data:r})})}async function S({req:e,res:r,query:t}){let s=await m()(e);return s?.logged_in_status?{props:{user:s,data:{users:(await g()("SELECT * FROM users")).reverse()}}}:{redirect:{destination:"/su/login",permanent:!1}}}let v=(0,u.M)(s,"default"),P=(0,u.M)(s,"getStaticProps"),k=(0,u.M)(s,"getStaticPaths"),b=(0,u.M)(s,"getServerSideProps"),A=(0,u.M)(s,"config"),j=(0,u.M)(s,"reportWebVitals"),M=(0,u.M)(s,"unstable_getStaticProps"),_=(0,u.M)(s,"unstable_getStaticPaths"),w=(0,u.M)(s,"unstable_getStaticParams"),D=(0,u.M)(s,"unstable_getServerProps"),E=(0,u.M)(s,"unstable_getServerSideProps"),N=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/users",pathname:"/su/users",bundlePath:"",filename:""},components:{App:o.default,Document:l.default},userland:s})},21498:(e,r,t)=>{t.d(r,{A:()=>u});var s=t(8732),i=t(82015),a=t.n(i);function u({userObject:e,userPage:r}){let t=Object.keys(e),[i,u]=a().useState(!1),[l,o]=a().useState(0),[n,c]=a().useState(!r);return(0,s.jsxs)("div",{className:"card col green w-full overflow-hidden"+(n?r?" h-[100px]":" h-[85px]":" "),children:[(0,s.jsxs)("div",{className:"items-center w-full",children:[(0,s.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(r?" w-16 h-16":" w-12 h-12")}),!r&&(0,s.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,s.jsxs)("div",{className:"ml-auto",children:[(0,s.jsx)("button",{className:"outlined gray small-text",onClick:e=>{n?c(!1):c(!0)},children:n?"More Details":"Collapse"}),!r&&(0,s.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,s.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:t.map((r,i)=>(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsxs)("span",{style:{wordBreak:"break-all"},children:[r,":"," ",(0,s.jsx)("b",{children:e[r]})]})}),i{c(!0)},children:"Collapse"})]})}},67105:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,r,t)=>{t.d(r,{A:()=>s});let s=(0,t(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},67216:(e,r,t)=>{let s=t(9973),i=t(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function u(...e){try{let r=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(r))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=u},31976:(e,r,t)=>{let s=t(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let r=`${e}/ca-cert.pem`;if(!s.existsSync(r)){console.log(`${r} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},9455:(e,r)=>{var t;Object.defineProperty(r,"A",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(t||(t={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[9764,883,8268,615],()=>t(93701));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users.js.nft.json b/dsql-app/.local_dist/server/pages/su/users.js.nft.json index f536cec..79cb907 100644 --- a/dsql-app/.local_dist/server/pages/su/users.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../webpack-runtime.js","../../chunks/4017.js","../../chunks/8313.js","../../chunks/4480.js","../../chunks/1503.js","../../chunks/5313.js","../../chunks/1336.js","../../../package.json","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/lucide-react/package.json","../../../../node_modules/@mui/material/package.json","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../node_modules/@mui/icons-material/package.json","../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../node_modules/react/package.json","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../node_modules/@mui/material/node/styles/styled.js","../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../node_modules/next/dist/shared/lib/utils.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/@mui/material/node/utils/index.js","../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../node_modules/mysql/index.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/index.js","../../../../node_modules/mysql/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../node_modules/@mui/base/package.json","../../../../node_modules/@mui/material/node/colors/common.js","../../../../node_modules/@mui/material/node/colors/red.js","../../../../node_modules/@mui/material/node/colors/purple.js","../../../../node_modules/@mui/material/node/colors/blue.js","../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../node_modules/@mui/material/node/colors/green.js","../../../../node_modules/@mui/material/node/colors/orange.js","../../../../node_modules/@mui/material/node/colors/grey.js","../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../node_modules/@mui/material/node/utils/useId.js","../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/base/composeClasses/package.json","../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/prop-types/package.json","../../../../node_modules/prop-types/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/material/utils/package.json","../../../../node_modules/clsx/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/utils/deepmerge.js","../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/getDisplayName.js","../../../../node_modules/@mui/utils/refType.js","../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../node_modules/@mui/utils/isMuiElement.js","../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../node_modules/@mui/utils/setRef.js","../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../node_modules/@mui/utils/scrollLeft.js","../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../node_modules/@mui/utils/integerPropType.js","../../../../node_modules/@mui/utils/resolveProps.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/propsToClassKey.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react-is/index.js","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/sqlstring/index.js","../../../../node_modules/object-assign/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/object-assign/package.json","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/inherits/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/util-deprecate/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/isarray/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/stylis/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../node_modules/@babel/runtime/package.json","../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../node_modules/@emotion/cache/package.json","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../node_modules/@emotion/hash/package.json","../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../node_modules/@emotion/memoize/package.json","../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../node_modules/@emotion/react/package.json","../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../node_modules/@emotion/serialize/package.json","../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../node_modules/@emotion/sheet/package.json","../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../node_modules/@emotion/styled/base/package.json","../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../node_modules/@emotion/styled/package.json","../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../node_modules/@emotion/unitless/package.json","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../node_modules/@emotion/utils/package.json","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../node_modules/@emotion/weak-memoize/package.json","../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../node_modules/@mui/private-theming/node/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../node_modules/@mui/private-theming/package.json","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../node_modules/@mui/styled-engine/node/index.js","../../../../node_modules/@mui/styled-engine/package.json","../../../../node_modules/@mui/system/Box/Box.js","../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../node_modules/@mui/system/Box/index.js","../../../../node_modules/@mui/system/Box/package.json","../../../../node_modules/@mui/system/Container/Container.js","../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../node_modules/@mui/system/Container/createContainer.js","../../../../node_modules/@mui/system/Container/index.js","../../../../node_modules/@mui/system/Container/package.json","../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../node_modules/@mui/system/Stack/Stack.js","../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../node_modules/@mui/system/Stack/createStack.js","../../../../node_modules/@mui/system/Stack/index.js","../../../../node_modules/@mui/system/Stack/package.json","../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../node_modules/@mui/system/borders.js","../../../../node_modules/@mui/system/breakpoints.js","../../../../node_modules/@mui/system/colorManipulator.js","../../../../node_modules/@mui/system/compose.js","../../../../node_modules/@mui/system/createBox.js","../../../../node_modules/@mui/system/createStyled.js","../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../node_modules/@mui/system/createTheme/index.js","../../../../node_modules/@mui/system/createTheme/package.json","../../../../node_modules/@mui/system/createTheme/shape.js","../../../../node_modules/@mui/system/cssGrid.js","../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../node_modules/@mui/system/cssVars/package.json","../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../node_modules/@mui/system/display.js","../../../../node_modules/@mui/system/flexbox.js","../../../../node_modules/@mui/system/getThemeValue.js","../../../../node_modules/@mui/system/index.js","../../../../node_modules/@mui/system/memoize.js","../../../../node_modules/@mui/system/merge.js","../../../../node_modules/@mui/system/package.json","../../../../node_modules/@mui/system/palette.js","../../../../node_modules/@mui/system/positions.js","../../../../node_modules/@mui/system/responsivePropType.js","../../../../node_modules/@mui/system/shadows.js","../../../../node_modules/@mui/system/sizing.js","../../../../node_modules/@mui/system/spacing.js","../../../../node_modules/@mui/system/style.js","../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../node_modules/@mui/system/styled.js","../../../../node_modules/@mui/system/typography.js","../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../node_modules/@mui/system/useTheme.js","../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../node_modules/@mui/system/version/index.js","../../../../node_modules/@mui/system/version/package.json","../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../node_modules/@mui/utils/capitalize/index.js","../../../../node_modules/@mui/utils/capitalize/package.json","../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../node_modules/@mui/utils/clamp/index.js","../../../../node_modules/@mui/utils/clamp/package.json","../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../node_modules/@mui/utils/debounce/index.js","../../../../node_modules/@mui/utils/debounce/package.json","../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../node_modules/@mui/utils/exactProp/index.js","../../../../node_modules/@mui/utils/exactProp/package.json","../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../node_modules/@mui/utils/index.js","../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../node_modules/@mui/utils/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../node_modules/@mui/utils/refType/index.js","../../../../node_modules/@mui/utils/refType/package.json","../../../../node_modules/@mui/utils/refType/refType.js","../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../node_modules/@mui/utils/setRef/index.js","../../../../node_modules/@mui/utils/setRef/package.json","../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../node_modules/@mui/utils/types.js","../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../node_modules/@mui/utils/useControlled/index.js","../../../../node_modules/@mui/utils/useControlled/package.json","../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../node_modules/@mui/utils/useId/index.js","../../../../node_modules/@mui/utils/useId/package.json","../../../../node_modules/@mui/utils/useId/useId.js","../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../node_modules/@swc/helpers/package.json","../../../../node_modules/client-only/index.js","../../../../node_modules/client-only/package.json","../../../../node_modules/clsx/dist/clsx.js","../../../../node_modules/clsx/package.json","../../../../node_modules/core-util-is/lib/util.js","../../../../node_modules/core-util-is/package.json","../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../node_modules/hoist-non-react-statics/package.json","../../../../node_modules/inherits/inherits.js","../../../../node_modules/inherits/inherits_browser.js","../../../../node_modules/inherits/package.json","../../../../node_modules/isarray/index.js","../../../../node_modules/isarray/package.json","../../../../node_modules/mysql/index.js","../../../../node_modules/mysql/lib/Connection.js","../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../node_modules/mysql/lib/Pool.js","../../../../node_modules/mysql/lib/PoolCluster.js","../../../../node_modules/mysql/lib/PoolConfig.js","../../../../node_modules/mysql/lib/PoolConnection.js","../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../node_modules/mysql/lib/PoolSelector.js","../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../node_modules/mysql/package.json","../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../node_modules/next/dist/lib/semver-noop.js","../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../node_modules/next/dist/shared/lib/head.js","../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../node_modules/next/head.js","../../../../node_modules/next/package.json","../../../../node_modules/object-assign/index.js","../../../../node_modules/object-assign/package.json","../../../../node_modules/process-nextick-args/index.js","../../../../node_modules/process-nextick-args/package.json","../../../../node_modules/prop-types/checkPropTypes.js","../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../node_modules/prop-types/index.js","../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../node_modules/prop-types/lib/has.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../node_modules/prop-types/package.json","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../node_modules/react-dom/index.js","../../../../node_modules/react-dom/package.json","../../../../node_modules/react-dom/server.browser.js","../../../../node_modules/react-is/cjs/react-is.development.js","../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../node_modules/react-is/index.js","../../../../node_modules/react-is/package.json","../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/react/cjs/react.development.js","../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../../../node_modules/react/jsx-runtime.js","../../../../node_modules/react/package.json","../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../node_modules/readable-stream/package.json","../../../../node_modules/readable-stream/readable.js","../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../node_modules/scheduler/index.js","../../../../node_modules/scheduler/package.json","../../../../node_modules/serverless-mysql/index.js","../../../../node_modules/serverless-mysql/package.json","../../../../node_modules/sqlstring/index.js","../../../../node_modules/sqlstring/lib/SqlString.js","../../../../node_modules/sqlstring/package.json","../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../node_modules/string_decoder/package.json","../../../../node_modules/styled-jsx/dist/index/index.js","../../../../node_modules/styled-jsx/index.js","../../../../node_modules/styled-jsx/package.json","../../../../node_modules/stylis/dist/umd/package.json","../../../../node_modules/stylis/dist/umd/stylis.js","../../../../node_modules/stylis/package.json","../../../../node_modules/util-deprecate/node.js","../../../../node_modules/util-deprecate/package.json","../../../../package.json","../../../package.json","../../chunks/1137.js","../../chunks/1223.js","../../chunks/1790.js","../../chunks/2332.js","../../chunks/2414.js","../../chunks/2996.js","../../chunks/3247.js","../../chunks/3468.js","../../chunks/3737.js","../../chunks/4050.js","../../chunks/4237.js","../../chunks/4312.js","../../chunks/4417.js","../../chunks/5134.js","../../chunks/5212.js","../../chunks/5674.js","../../chunks/615.js","../../chunks/6154.js","../../chunks/6806.js","../../chunks/6946.js","../../chunks/7070.js","../../chunks/7318.js","../../chunks/7488.js","../../chunks/7665.js","../../chunks/7734.js","../../chunks/8153.js","../../chunks/8268.js","../../chunks/8370.js","../../chunks/883.js","../../chunks/8842.js","../../chunks/9205.js","../../chunks/9216.js","../../chunks/9621.js","../../chunks/9764.js","../../chunks/9810.js","../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/[single].js b/dsql-app/.local_dist/server/pages/su/users/[single].js index fe55434..b979281 100644 --- a/dsql-app/.local_dist/server/pages/su/users/[single].js +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js @@ -1,1414 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 4916; -exports.ids = [4916]; -exports.modules = { - -/***/ 8858: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ UsersPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/su/components/UserCard.jsx -var UserCard = __webpack_require__(1336); -// EXTERNAL MODULE: ./components/general/BackButton.jsx -var BackButton = __webpack_require__(1781); -// EXTERNAL MODULE: ./components/general/LoadingBlock.jsx -var LoadingBlock = __webpack_require__(5264); -// EXTERNAL MODULE: ./functions/frontend/fetchApi.js -var fetchApi = __webpack_require__(6729); -// EXTERNAL MODULE: external "@mui/icons-material/StyleTwoTone" -var StyleTwoTone_ = __webpack_require__(723); -var StyleTwoTone_default = /*#__PURE__*/__webpack_require__.n(StyleTwoTone_); -;// CONCATENATED MODULE: ./components/su/components/UserBackups.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {number} props.refresh - * @param {React.Dispatch>} props.setRefresh - */ function UserBackups({ user , refresh , setRefresh }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - /** @type {[ backups: string[], setBackups: React.Dispatch> ]} */ // @ts-ignore - const [backups, setBackups] = external_react_default().useState([]); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/getUserBackups", { - method: "post", - body: { - user - } - }).then((res)=>{ - setBackups(res.backups); - }); - }, [ - refresh - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "User Backups" - }), - !backups && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px", - position: "relative" - }), - backups && !backups[0] && /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: "This user has no backups" - }), - backups && backups[0] && backups.sort((a, b)=>{ - if (parseInt(a) > parseInt(b)) return -1; - return 1; - }).map((backup, index)=>{ - const backupDate = new Date(parseInt(backup)); - return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("a", { - href: `/su/users/${user.id}/${backup}`, - className: "card w-full items-center", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((StyleTwoTone_default()), { - color: "inherit", - className: "opacity-40 text-slate-500" - }), - /*#__PURE__*/ jsx_runtime_.jsx("b", { - children: "Backup:" - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: backupDate.toString() - }) - ] - }, backup); - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -// EXTERNAL MODULE: ./components/general/CodeBlock.jsx -var CodeBlock = __webpack_require__(1095); -// EXTERNAL MODULE: external "@mui/icons-material/FolderCopyTwoTone" -var FolderCopyTwoTone_ = __webpack_require__(8398); -var FolderCopyTwoTone_default = /*#__PURE__*/__webpack_require__.n(FolderCopyTwoTone_); -;// CONCATENATED MODULE: external "@mui/icons-material/InsertDriveFileTwoTone" -const InsertDriveFileTwoTone_namespaceObject = require("@mui/icons-material/InsertDriveFileTwoTone"); -var InsertDriveFileTwoTone_default = /*#__PURE__*/__webpack_require__.n(InsertDriveFileTwoTone_namespaceObject); -;// CONCATENATED MODULE: external "@mui/icons-material/KeyboardArrowDownRounded" -const KeyboardArrowDownRounded_namespaceObject = require("@mui/icons-material/KeyboardArrowDownRounded"); -var KeyboardArrowDownRounded_default = /*#__PURE__*/__webpack_require__.n(KeyboardArrowDownRounded_namespaceObject); -;// CONCATENATED MODULE: ./components/su/components/UserSingleFile.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {object} props.user - * @param {import("@/package-shared/types").UserFileObject2} props.file - * @param {import("@/package-shared/types").UserFileObject} props.activeFile - * @param {React.Dispatch>} props.setActiveFile - */ function UserSingleFile({ user , file , activeFile , setActiveFile , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "justify-start gap-4" + (activeFile?.path === `${file.root}/${file.name}` ? " dark" : " light-gray"), - onClick: (e)=>{ - (0,fetchApi/* default */.Z)("/api/admin/grabFile", { - method: "post", - body: { - user, - type: "file", - path: `${file.root}/${file.name}` - } - }).then((res)=>{ - if (res.success) { - try { - setActiveFile({ - title: file.name, - path: `${file.root}/${file.name}`, - data: JSON.stringify(JSON.parse(res.data), null, 4) - }); - } catch (error) { - setActiveFile({ - title: file.name, - path: `${file.root}/${file.name}`, - data: res.data - }); - } - } - }); - }, - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((InsertDriveFileTwoTone_default()), { - fontSize: "small", - className: "text-slate-400" - }), - file.name - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/components/UserFolder.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {object} props.user - * @param {import("@/package-shared/types").UserFileObject2} props.file - * @param {import("@/package-shared/types").UserFileObject} props.activeFile - * @param {React.Dispatch>} props.setActiveFile - */ function UserFolder({ user , file , activeFile , setActiveFile }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [files, setFiles] = external_react_default().useState(null); - const [loading, setLoading] = external_react_default().useState(false); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "flex-col w-full items-start relative", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((FolderCopyTwoTone_default()), { - fontSize: "small", - className: "text-slate-400" - }), - file.name, - /*#__PURE__*/ jsx_runtime_.jsx((KeyboardArrowDownRounded_default()), { - className: "ml-auto absolute right-2" - }) - ] - }), - file.content && /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col w-full pl-4 items-start ml-2", - style: { - borderLeft: "1px solid var(--slate-200)" - }, - children: file.content.map((nest, index)=>{ - if (nest?.type?.match(/file/i)) { - return /*#__PURE__*/ jsx_runtime_.jsx(UserSingleFile, { - user: user, - file: nest, - activeFile: activeFile, - setActiveFile: setActiveFile - }, index); - } else { - return /*#__PURE__*/ jsx_runtime_.jsx(UserFolder, { - user: user, - file: nest, - activeFile: activeFile, - setActiveFile: setActiveFile - }, index); - } - }) - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/components/UserFiles.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any[]} props.rootFilesArray - */ function UserFiles({ user , rootFilesArray }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {[ activeFile: import("@/package-shared/types").UserFileObject, setActiveFile: React.Dispatch> ]} */ // @ts-ignore - const [activeFile, setActiveFile] = external_react_default().useState(null); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "paper", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "text-lg m-0", - children: "User Files" - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full items-start max-w-7xl", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex-col items-stretch w-[40%]", - children: rootFilesArray.map((/** @type {import("@/package-shared/types").UserFileObject2} */ file, index)=>{ - if (file?.type?.match(/file/)) { - return /*#__PURE__*/ jsx_runtime_.jsx(UserSingleFile, { - user: user, - file: file, - activeFile: activeFile, - setActiveFile: setActiveFile - }, index); - } else { - return /*#__PURE__*/ jsx_runtime_.jsx(UserFolder, { - user: user, - file: file, - activeFile: activeFile, - setActiveFile: setActiveFile - }, index); - } - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "grow flex-col items-start justify-start w-[60%] h-full -mt-4", - children: activeFile && /*#__PURE__*/ jsx_runtime_.jsx(CodeBlock/* default */.Z, { - content: activeFile.data || "", - language: "javascript" - }) - }) - ] - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -// EXTERNAL MODULE: ./components/general/Breadcrumbs.jsx -var Breadcrumbs = __webpack_require__(424); -// EXTERNAL MODULE: external "@mui/material/styles" -var styles_ = __webpack_require__(8442); -// EXTERNAL MODULE: external "@mui/material/Table" -var Table_ = __webpack_require__(9181); -var Table_default = /*#__PURE__*/__webpack_require__.n(Table_); -// EXTERNAL MODULE: external "@mui/material/TableBody" -var TableBody_ = __webpack_require__(8823); -var TableBody_default = /*#__PURE__*/__webpack_require__.n(TableBody_); -// EXTERNAL MODULE: external "@mui/material/TableCell" -var TableCell_ = __webpack_require__(5612); -var TableCell_default = /*#__PURE__*/__webpack_require__.n(TableCell_); -// EXTERNAL MODULE: external "@mui/material/TableContainer" -var TableContainer_ = __webpack_require__(443); -var TableContainer_default = /*#__PURE__*/__webpack_require__.n(TableContainer_); -// EXTERNAL MODULE: external "@mui/material/TableHead" -var TableHead_ = __webpack_require__(5953); -var TableHead_default = /*#__PURE__*/__webpack_require__.n(TableHead_); -// EXTERNAL MODULE: external "@mui/material/TableRow" -var TableRow_ = __webpack_require__(4848); -var TableRow_default = /*#__PURE__*/__webpack_require__.n(TableRow_); -// EXTERNAL MODULE: external "@mui/material/Paper" -var Paper_ = __webpack_require__(1168); -var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_); -;// CONCATENATED MODULE: ./components/su/components/UserDbShellQueryResult.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ const StyledTableCell = (0,styles_.styled)((TableCell_default()))(({ theme })=>({ - [`&.${TableCell_.tableCellClasses.head}`]: { - backgroundColor: "var(--slate-800)", - color: "white" - }, - [`&.${TableCell_.tableCellClasses.body}`]: { - } - })); -/** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - * @param {import("@/package-shared/types").UserType} [props.user] - */ function UserDbShellQueryResult({ data , user }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const headers = Object.keys(data[0]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl", - children: /*#__PURE__*/ jsx_runtime_.jsx((TableContainer_default()), { - component: (Paper_default()), - sx: { - width: "100%" - }, - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)((Table_default()), { - sx: { - minWidth: 650 - }, - "aria-label": "simple table", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx((TableHead_default()), { - children: /*#__PURE__*/ jsx_runtime_.jsx((TableRow_default()), { - children: headers && headers[0] && headers.map((header, index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(StyledTableCell, { - align: "left", - children: header - }, index + 1); - }) - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx((TableBody_default()), { - children: data && data[0] && data.map((/** @type {any} */ dataObject, /** @type {Number} */ index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx((TableRow_default()), { - sx: { - "&:last-child td, &:last-child th": { - border: 0 - } - }, - children: headers.map((header, _index)=>{ - return /*#__PURE__*/ jsx_runtime_.jsx(StyledTableCell, { - align: "left", - children: dataObject[header] - }, _index + 1); - }) - }, index + 1); - }) - }) - ] - }) - }) - }) - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "No results" - }) - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./components/form/FormSelect.jsx -var FormSelect = __webpack_require__(4114); -;// CONCATENATED MODULE: ./components/su/components/UserDbShell.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {string[]} props.databases - */ function UserDbShell({ user , databases }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - try { - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ /** @type {React.MutableRefObject} */ const sqlEditorRef = external_react_default().useRef(); - /** @type {React.MutableRefObject} */ const editorRef = external_react_default().useRef(); - const dbRef = external_react_default().useRef(databases[0]); - const [loading, setLoading] = external_react_default().useState(false); - const [data, setData] = external_react_default().useState(false); - const [refresh, setRefresh] = external_react_default().useState(0); - const [targetDb, setTargetDb] = external_react_default().useState(databases[0]); - function runQuery() { - setLoading(true); - const query = editorRef.current ? editorRef.current.getValue() : null; - if (!query?.match(/./)) return; - const formattedQuery = query.replace(/^--.*/gm, "").replace(/\n|\r|\n\r/gm, "").replace(/ {2,}/g, " "); - (0,fetchApi/* default */.Z)("/api/admin/runUserDbQuery", { - method: "post", - body: { - database: dbRef.current, - query: formattedQuery - } - }, true).then((res)=>{ - if (res.success) { - setData(res.result); - } else if (res.msg) { - window.alert(res.msg); - } - setTimeout(()=>{ - setLoading(false); - }, 500); - }); - } - external_react_default().useEffect(()=>{ - if (!ace?.edit) { - setTimeout(()=>{ - setRefresh((prev)=>prev + 1); - }, 1000); - return; - } - const editor = ace.edit("ace-editor-wrapper"); - editor.setOptions({ - mode: "ace/mode/mysql", - theme: "ace/theme/twilight", - value: `SELECT * FROM table_name`, - placeholder: "Type an SQL query", - enableBasicAutocompletion: true, - enableLiveAutocompletion: true - }); - editor.commands.addCommand({ - name: "myCommand", - bindKey: { - win: "Ctrl-Enter", - mac: "Command-Enter" - }, - exec: function(editor) { - runQuery(); - }, - readOnly: true - }); - editorRef.current = editor; - }, [ - refresh - ]); - /** @type {[dbTables: string[], setDbTables: React.Dispatch> ]} */ // @ts-ignore - const [dbTables, setDbTables] = external_react_default().useState([]); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)(`/api/admin/getTablesForUserDatabase?database=${targetDb}`).then((res)=>{ - if (res.success) { - setDbTables(res.tables); - } - }); - }, [ - targetDb, - refresh - ]); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h3", { - className: "text-lg m-0", - children: /*#__PURE__*/ jsx_runtime_.jsx("span", { - children: "Database Shell" - }) - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: databases.map((db)=>{ - return { - payload: db, - title: db?.replace(new RegExp(`datasquirel_user_${user.id}_`), "") - }; - }), - name: "select-database", - onChangeHandler: (e)=>{ - setTargetDb(e.target.value); - dbRef.current = e.target.value; - }, - title: "Databases" - }), - targetDb && dbTables && /*#__PURE__*/ jsx_runtime_.jsx(FormSelect/* default */.Z, { - selectOptions: dbTables.map((table)=>{ - return { - payload: table, - title: table - }; - }), - name: "select-database-table", - title: "Tables" - }) - ] - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full flex-col relative", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - // @ts-ignore - ref: sqlEditorRef, - id: "ace-editor-wrapper", - style: { - height: "100px" - } - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - className: "absolute right-4 bottom-4" + (loading ? " pointer-events-none opacity-70" : ""), - onClick: (e)=>{ - runQuery(); - }, - children: [ - loading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - position: "relative", - width: "15px", - borderWidth: "3px", - style: { - backgroundColor: "transparent" - } - }), - loading ? "Running Query ..." : "Run Query" - ] - }) - ] - }), - data && !loading && /*#__PURE__*/ jsx_runtime_.jsx(UserDbShellQueryResult, { - data: data, - user: user - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - } catch (error) { - console.log(error); - return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "card", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "Shell not available at this time" - }) - }) - }); - } -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./components/su/components/UserData.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -////////////////////////////////////////////////////////////////////////////////// -/** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {number} props.refresh - * @param {React.Dispatch>} [props.setRefresh] - */ function UserData({ user , refresh , setRefresh }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = external_react_default().useState(false); - const [userData, setUserData] = external_react_default().useState(null); - const [userDbs, setUserDbs] = external_react_default().useState(null); - external_react_default().useEffect(()=>{ - (0,fetchApi/* default */.Z)("/api/admin/getUserData", { - method: "post", - body: { - user - } - }).then((res)=>{ - console.log(res); - if (res.success) { - setUserData(res.data); - setUserDbs(res.databases); - } - }); - }, [ - refresh - ]); - //////////////////////////////////////////////// - //////////////////////////////////////////////// - //////////////////////////////////////////////// - /** - * Function Return - * - * @description Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "paper w-full", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "User Data" - }), - userData && /*#__PURE__*/ jsx_runtime_.jsx(UserFiles, { - user: user, - rootFilesArray: userData - }), - userDbs && /*#__PURE__*/ jsx_runtime_.jsx(UserDbShell, { - user: user, - databases: userDbs - }) - ] - }); -//////////////////////////////////////////////// -//////////////////////////////////////////////// -//////////////////////////////////////////////// -} ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - ////////////////////////////////////////////////////////////////////////////////// - -;// CONCATENATED MODULE: ./components/su/SuSingleUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - */ function SuSingleUserContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const user = data.user; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [refresh, setRefresh] = external_react_default().useState(0); - const [addBackupLoading, setAddBackupLoading] = external_react_default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - className: "w-full justify-between", - children: [ - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("div", { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx(BackButton/* default */.Z, {}), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)("h1", { - className: "text-3xl m-0", - children: [ - user.first_name, - " ", - user.last_name - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("span", { - className: "info w-auto gray font-normal", - children: user.email - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx("div", { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("button", { - onClick: (e)=>{ - if (window.confirm(`Create a new backup for ${user.first_name}?`)) { - setAddBackupLoading(true); - (0,fetchApi/* default */.Z)("/api/admin/addUserBackup", { - method: "post", - body: { - user - } - }).then((res)=>{ - console.log(res); - if (res.success) { - setRefresh((prev)=>prev + 1); - } - setTimeout(()=>{ - setAddBackupLoading(false); - }, 1000); - }); - } - }, - className: "relative", - children: [ - addBackupLoading && /*#__PURE__*/ jsx_runtime_.jsx(LoadingBlock/* default */.Z, { - width: "20px" - }), - "Backup User" - ] - }) - }) - ] - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserCard/* default */.Z, { - userObject: user, - userPage: true - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserBackups, { - user: user, - refresh: refresh, - setRefresh: setRefresh - }), - /*#__PURE__*/ jsx_runtime_.jsx(UserData, { - user: user, - refresh: refresh, - setRefresh: setRefresh - }) - ] - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -// EXTERNAL MODULE: ./package-shared/utils/backend/global-db/DB_HANDLER.js -var DB_HANDLER = __webpack_require__(9395); -var DB_HANDLER_default = /*#__PURE__*/__webpack_require__.n(DB_HANDLER); -;// CONCATENATED MODULE: ./pages/su/users/[single].jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function UsersPage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ (0,jsx_runtime_.jsxs)((external_react_default()).Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js", - integrity: "sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }), - /*#__PURE__*/ jsx_runtime_.jsx("script", { - src: "https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js", - integrity: "sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==", - crossOrigin: "anonymous", - referrerPolicy: "no-referrer" - }) - ] - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuSingleUserContent, { - data: data - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const user = await DB_HANDLER_default()(`SELECT * FROM users WHERE id='${query.single}'`); - if (!user?.[0]) return { - redirect: { - destination: "/su/users", - permanent: false - } - }; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser, - data: { - user: user?.[0] || {} - } - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 3257: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ArrowBackIosRounded"); - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 6843: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ContentCopy"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 8398: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/FolderCopyTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 723: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/StyleTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 1168: -/***/ ((module) => { - -module.exports = require("@mui/material/Paper"); - -/***/ }), - -/***/ 9174: -/***/ ((module) => { - -module.exports = require("@mui/material/Snackbar"); - -/***/ }), - -/***/ 9181: -/***/ ((module) => { - -module.exports = require("@mui/material/Table"); - -/***/ }), - -/***/ 8823: -/***/ ((module) => { - -module.exports = require("@mui/material/TableBody"); - -/***/ }), - -/***/ 5612: -/***/ ((module) => { - -module.exports = require("@mui/material/TableCell"); - -/***/ }), - -/***/ 443: -/***/ ((module) => { - -module.exports = require("@mui/material/TableContainer"); - -/***/ }), - -/***/ 5953: -/***/ ((module) => { - -module.exports = require("@mui/material/TableHead"); - -/***/ }), - -/***/ 4848: -/***/ ((module) => { - -module.exports = require("@mui/material/TableRow"); - -/***/ }), - -/***/ 8442: -/***/ ((module) => { - -module.exports = require("@mui/material/styles"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,4480,424,1781,4114,1503,5313,1336,2434], () => (__webpack_exec__(8858))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3632,e.ids=[636,3632],e.modules={63709:(e,t,s)=>{s.r(t),s.d(t,{config:()=>er,default:()=>X,getServerSideProps:()=>es,getStaticPaths:()=>et,getStaticProps:()=>ee,reportWebVitals:()=>ea,routeModule:()=>eu,unstable_getServerProps:()=>ec,unstable_getServerSideProps:()=>eo,unstable_getStaticParams:()=>en,unstable_getStaticPaths:()=>el,unstable_getStaticProps:()=>ei});var r={};s.r(r),s.d(r,{default:()=>Y,getServerSideProps:()=>Z});var a=s(63865),i=s(9455),l=s(30671),n=s(49407),c=s(68268),o=s(8732),u=s(82015),d=s.n(u),p=s(93615),x=s.n(p),h=s(64987),m=s(21498),j=s(46437),f=s(32415),y=s(63715),g=s(94081);function v({user:e,refresh:t,setRefresh:s}){let[r,a]=d().useState(!1),[i,l]=d().useState([]);return(0,o.jsxs)("section",{className:"paper",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"User Backups"}),!i&&(0,o.jsx)(f.A,{width:"20px",position:"relative"}),i&&!i[0]&&(0,o.jsx)("div",{children:"This user has no backups"}),i&&i[0]&&i.sort((e,t)=>parseInt(e)>parseInt(t)?-1:1).map((t,s)=>{let r=new Date(parseInt(t));return(0,o.jsxs)("a",{href:`/su/users/${e.id}/${t}`,className:"card w-full items-center",children:[(0,o.jsx)(g.A,{color:"inherit",className:"opacity-40 text-slate-500"}),(0,o.jsx)("b",{children:"Backup:"}),(0,o.jsx)("span",{children:r.toString()})]},t)})]})}var b=s(34844),w=s(8203),S=s(48407),q=s(85781);function k({user:e,file:t,activeFile:s,setActiveFile:r}){return(0,o.jsxs)("button",{className:"justify-start gap-4"+(s?.path===`${t.root}/${t.name}`?" dark":" light-gray"),onClick:s=>{(0,y.A)("/api/admin/grabFile",{method:"post",body:{user:e,type:"file",path:`${t.root}/${t.name}`}}).then(e=>{if(e.success)try{r({title:t.name,path:`${t.root}/${t.name}`,data:JSON.stringify(JSON.parse(e.data),null,4)})}catch(s){r({title:t.name,path:`${t.root}/${t.name}`,data:e.data})}})},children:[(0,o.jsx)(q.A,{fontSize:"small",className:"text-slate-400"}),t.name]})}function N({user:e,file:t,activeFile:s,setActiveFile:r}){let[a,i]=d().useState(null),[l,n]=d().useState(!1);return(0,o.jsxs)("div",{className:"flex-col w-full items-start relative",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(w.A,{fontSize:"small",className:"text-slate-400"}),t.name,(0,o.jsx)(S.A,{className:"ml-auto absolute right-2"})]}),t.content&&(0,o.jsx)("div",{className:"flex-col w-full pl-4 items-start ml-2",style:{borderLeft:"1px solid var(--slate-200)"},children:t.content.map((t,a)=>t?.type?.match(/file/i)?(0,o.jsx)(k,{user:e,file:t,activeFile:s,setActiveFile:r},a):(0,o.jsx)(N,{user:e,file:t,activeFile:s,setActiveFile:r},a))})]})}function A({user:e,rootFilesArray:t}){let[s,r]=d().useState(null);return(0,o.jsxs)("section",{className:"paper",children:[(0,o.jsx)("h3",{className:"text-lg m-0",children:"User Files"}),(0,o.jsxs)("div",{className:"w-full items-start max-w-7xl",children:[(0,o.jsx)("div",{className:"flex-col items-stretch w-[40%]",children:t.map((t,a)=>t?.type?.match(/file/)?(0,o.jsx)(k,{user:e,file:t,activeFile:s,setActiveFile:r},a):(0,o.jsx)(N,{user:e,file:t,activeFile:s,setActiveFile:r},a))}),(0,o.jsx)("div",{className:"grow flex-col items-start justify-start w-[60%] h-full -mt-4",children:s&&(0,o.jsx)(b.A,{content:s.data||"",language:"javascript"})})]})]})}s(58548);var M=s(90627),C=s(34043),F=s.n(C),P=s(7299),_=s.n(P),D=s(61919),L=s.n(D),R=s(34350),T=s.n(R),z=s(71757),E=s.n(z),H=s(79005),$=s.n(H),O=s(45561),V=s.n(O);let B=(0,M.styled)(L())(({theme:e})=>({[`&.${D.tableCellClasses.head}`]:{backgroundColor:"var(--slate-800)",color:"white"},[`&.${D.tableCellClasses.body}`]:{}}));function Q({data:e,user:t}){try{let t=Object.keys(e[0]);return(0,o.jsx)(d().Fragment,{children:(0,o.jsx)("div",{className:"p-4 bg-slate-200 rounded-md overflow-hidden w-full max-w-6xl",children:(0,o.jsx)(T(),{component:V(),sx:{width:"100%"},children:(0,o.jsxs)(F(),{sx:{minWidth:650},"aria-label":"simple table",children:[(0,o.jsx)(E(),{children:(0,o.jsx)($(),{children:t&&t[0]&&t.map((e,t)=>(0,o.jsx)(B,{align:"left",children:e},t+1))})}),(0,o.jsx)(_(),{children:e&&e[0]&&e.map((e,s)=>(0,o.jsx)($(),{sx:{"&:last-child td, &:last-child th":{border:0}},children:t.map((t,s)=>(0,o.jsx)(B,{align:"left",children:e[t]},s+1))},s+1))})]})})})})}catch(e){return(0,o.jsx)(d().Fragment,{children:(0,o.jsx)("span",{children:"No results"})})}}var U=s(51548);function W({user:e,databases:t}){try{let s=d().useRef(),r=d().useRef(),a=d().useRef(t[0]),[i,l]=d().useState(!1),[n,c]=d().useState(!1),[u,p]=d().useState(0),[x,h]=d().useState(t[0]),[m,j]=d().useState([]);return(0,o.jsxs)("div",{className:"paper w-full",children:[(0,o.jsx)("h3",{className:"text-lg m-0",children:(0,o.jsx)("span",{children:"Database Shell"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)(U.A,{selectOptions:t.map(t=>({payload:t,title:t?.replace(RegExp(`datasquirel_user_${e.id}_`),"")})),name:"select-database",onChangeHandler:e=>{h(e.target.value),a.current=e.target.value},title:"Databases"}),x&&m&&(0,o.jsx)(U.A,{selectOptions:m.map(e=>({payload:e,title:e})),name:"select-database-table",title:"Tables"})]}),(0,o.jsxs)("div",{className:"w-full flex-col relative",children:[(0,o.jsx)("div",{ref:s,id:"ace-editor-wrapper",style:{height:"100px"}}),(0,o.jsxs)("button",{className:"absolute right-4 bottom-4"+(i?" pointer-events-none opacity-70":""),onClick:e=>{!function(){l(!0);let e=r.current?r.current.getValue():null;if(!e?.match(/./))return;let t=e.replace(/^--.*/gm,"").replace(/\n|\r|\n\r/gm,"").replace(/ {2,}/g," ");(0,y.A)("/api/admin/runUserDbQuery",{method:"post",body:{database:a.current,query:t}},!0).then(e=>{e.success?c(e.result):e.msg&&window.alert(e.msg),setTimeout(()=>{l(!1)},500)})}()},children:[i&&(0,o.jsx)(f.A,{position:"relative",width:"15px",borderWidth:"3px",style:{backgroundColor:"transparent"}}),i?"Running Query ...":"Run Query"]})]}),n&&!i&&(0,o.jsx)(Q,{data:n,user:e})]})}catch(e){return console.log(e),(0,o.jsx)(d().Fragment,{children:(0,o.jsx)("section",{className:"card",children:(0,o.jsx)("h2",{className:"text-xl m-0",children:"Shell not available at this time"})})})}}function I({user:e,refresh:t,setRefresh:s}){let[r,a]=d().useState(!1),[i,l]=d().useState(null),[n,c]=d().useState(null);return(0,o.jsxs)("div",{className:"paper w-full",children:[(0,o.jsx)("h2",{className:"text-xl m-0",children:"User Data"}),i&&(0,o.jsx)(A,{user:e,rootFilesArray:i}),n&&(0,o.jsx)(W,{user:e,databases:n})]})}function J({data:e}){let t=e.user,[s,r]=d().useState(0),[a,i]=d().useState(!1);return(0,o.jsxs)(d().Fragment,{children:[(0,o.jsxs)("div",{className:"w-full justify-between",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)(j.A,{}),(0,o.jsxs)("h1",{className:"text-3xl m-0",children:[t.first_name," ",t.last_name]}),(0,o.jsx)("span",{className:"info w-auto gray font-normal",children:t.email})]}),(0,o.jsx)("div",{children:(0,o.jsxs)("button",{onClick:e=>{window.confirm(`Create a new backup for ${t.first_name}?`)&&(i(!0),(0,y.A)("/api/admin/addUserBackup",{method:"post",body:{user:t}}).then(e=>{console.log(e),e.success&&r(e=>e+1),setTimeout(()=>{i(!1)},1e3)}))},className:"relative",children:[a&&(0,o.jsx)(f.A,{width:"20px"}),"Backup User"]})})]}),(0,o.jsx)(m.A,{userObject:t,userPage:!0}),(0,o.jsx)(v,{user:t,refresh:s,setRefresh:r}),(0,o.jsx)(I,{user:t,refresh:s,setRefresh:r})]})}var G=s(67216),K=s.n(G);function Y({user:e,data:t}){let s=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"}),(0,o.jsxs)(d().Fragment,{children:[(0,o.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,o.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]});return(0,o.jsx)(h.A,{head:s,user:e,children:(0,o.jsx)(J,{data:t})})}async function Z({req:e,res:t,query:s}){let r=await x()(e);if(!r?.logged_in_status)return{redirect:{destination:"/su/login",permanent:!1}};let a=await K()(`SELECT * FROM users WHERE id='${s.single}'`);return a?.[0]?{props:{user:r,data:{user:a?.[0]||{}}}}:{redirect:{destination:"/su/users",permanent:!1}}}let X=(0,l.M)(r,"default"),ee=(0,l.M)(r,"getStaticProps"),et=(0,l.M)(r,"getStaticPaths"),es=(0,l.M)(r,"getServerSideProps"),er=(0,l.M)(r,"config"),ea=(0,l.M)(r,"reportWebVitals"),ei=(0,l.M)(r,"unstable_getStaticProps"),el=(0,l.M)(r,"unstable_getStaticPaths"),en=(0,l.M)(r,"unstable_getStaticParams"),ec=(0,l.M)(r,"unstable_getServerProps"),eo=(0,l.M)(r,"unstable_getServerSideProps"),eu=new a.PagesRouteModule({definition:{kind:i.A.PAGES,page:"/su/users/[single]",pathname:"/su/users/[single]",bundlePath:"",filename:""},components:{App:c.default,Document:n.default},userland:r})},51548:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732),a=s(58526);function i({selectOptions:e,name:t,onChangeHandler:s,required:i,setAlert:l,title:n,defaultValue:c,info:o,id:u}){try{function d(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,r.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[n&&(0,r.jsxs)("label",{htmlFor:t,children:[n,i?"":" (optional)"]}),(0,r.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,r.jsx)("select",{name:t,id:u||t,className:"w-full bg-white",required:i,onChange:e=>{l&&l(null),e.target.classList.remove("warning"),s&&s(e)},defaultValue:c||void 0,children:e.map((e,t)=>{let{payload:s,title:a}=e;return(0,r.jsx)("option",{value:s,selected:!!e.default,children:a},t+1)})}),(0,r.jsx)(a.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,r.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:d,onMouseLeave:d,onClick:d,children:[(0,r.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,r.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,r.jsx)("span",{children:o})}),(0,r.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,r.jsx)("div",{children:"Form Select Error"})}}s(82015)},46437:(e,t,s)=>{s.d(t,{A:()=>i});var r=s(8732);s(82015);var a=s(42178);function i(){return(0,r.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,r.jsx)(a.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},58548:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),i=s.n(a);function l({confirmedDelegetedUser:e,linksArray:t,user:s}){e?.delegated,e?.priviledges?.match(/Edit Tables/i),e?.priviledges?.match(/Delete Tables/i),e?.priviledges?.match(/Create Tables/i);let[a,l]=i().useState(t||null);return a&&a[1]?(0,r.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:a.map((e,t,s)=>t===a.length-1?(0,r.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,r.jsxs)(i().Fragment,{children:[(0,r.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,r.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,r.jsx)(i().Fragment,{})}},34844:(e,t,s)=>{s.d(t,{A:()=>o});var r=s(8732),a=s(82015),i=s.n(a),l=s(11790),n=s.n(l),c=s(96089);function o({content:e,language:t,style:s,showCopy:a}){let[l,o]=i().useState(!1),u=()=>{o(!0)},d=(e,t)=>{"clickaway"!==t&&o(!1)},p=(0,r.jsx)(i().Fragment,{children:(0,r.jsx)("button",{className:"outlined gray",style:{border:"none",padding:"2px",width:"20px",height:"20px",color:"white"},onClick:d,children:"✖"})}),x={};return(0,r.jsxs)("pre",{className:`language-${t||"javascript"} w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center`,style:s?{...s,...x}:x,children:[(0,r.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:e}),(0,r.jsx)("button",{className:"outlined copy-code "+(a?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:t=>{navigator.clipboard.writeText(e).then(()=>{u()})},children:(0,r.jsx)(c.A,{className:"text-white",size:20})}),(0,r.jsx)(n(),{open:l,autoHideDuration:2e3,onClose:d,children:(0,r.jsxs)("div",{className:"h-full text-white px-4 py-2 justify-between rounded",style:{maxWidth:"250px",width:"250px",backgroundColor:"#0b8862"},children:[(0,r.jsx)("span",{children:"Code Copied!"}),p]})})]})}},21498:(e,t,s)=>{s.d(t,{A:()=>l});var r=s(8732),a=s(82015),i=s.n(a);function l({userObject:e,userPage:t}){let s=Object.keys(e),[a,l]=i().useState(!1),[n,c]=i().useState(0),[o,u]=i().useState(!t);return(0,r.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,r.jsxs)("div",{className:"items-center w-full",children:[(0,r.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,r.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,r.jsxs)("div",{className:"ml-auto",children:[(0,r.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?u(!1):u(!0)},children:o?"More Details":"Collapse"}),!t&&(0,r.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,r.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:s.map((t,a)=>(0,r.jsxs)(i().Fragment,{children:[(0,r.jsx)("div",{children:(0,r.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,r.jsx)("b",{children:e[t]})]})}),a{u(!0)},children:"Collapse"})]})}},8203:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M11.17 4H7v11h14V6h-7.83z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 11H7V4h4.17l2 2H21z"},"1"),(0,i.jsx)("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3z"},"2")],"FolderCopyTwoTone")},85781:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M13 4H6v16h12V9h-5z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m20 8-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2zm-2 12H6V4h7v5h5z"},"1")],"InsertDriveFileTwoTone")},48407:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)((0,i.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded")},94081:(e,t,s)=>{var r=s(24994);t.A=void 0;var a=r(s(30887)),i=s(8732);t.A=(0,a.default)([(0,i.jsx)("path",{d:"M15.22 4.75 7.87 7.79l4.96 11.96 7.35-3.05zM11 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m3.87 11.18-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61l1.34.56zm18.16 4.77L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6m-9.2 3.8L7.87 7.79l7.35-3.04h.01l4.95 11.95z"},"1"),(0,i.jsx)("circle",{cx:"11",cy:"9",r:"1"},"2"),(0,i.jsx)("path",{d:"m9.33 21.75-3.45-8.34v6.34c0 1.1.9 2 2 2z"},"3")],"StyleTwoTone")},67105:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,s)=>{s.d(t,{A:()=>r});let r=(0,s(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},67216:(e,t,s)=>{let r=s(9973),a=s(31976),i=r({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:a()}});async function l(...e){try{let t=await i.query(...e);return await i.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=l},31976:(e,t,s)=>{let r=s(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!r.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:r.readFileSync(`${e}/ca-cert.pem`)}}},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},54341:e=>{e.exports=require("@mui/utils/chainPropTypes")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},30729:e=>{e.exports=require("@mui/utils/elementAcceptingRef")},47822:e=>{e.exports=require("@mui/utils/extractEventHandlers")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},16362:e=>{e.exports=require("@mui/utils/getReactElementRef")},71291:e=>{e.exports=require("@mui/utils/integerPropType")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},10179:e=>{e.exports=require("@mui/utils/useSlotProps")},710:e=>{e.exports=require("@mui/utils/useTimeout")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},37727:e=>{e.exports=require("react-transition-group")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),r=t.X(0,[9764,883,1790,6154,8268,615],()=>s(63709));module.exports=r})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json b/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json index ee4474c..210322a 100644 --- a/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users/[single].js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/5264.js","../../../chunks/6729.js","../../../chunks/4480.js","../../../chunks/424.js","../../../chunks/1781.js","../../../chunks/4114.js","../../../chunks/1503.js","../../../chunks/5313.js","../../../chunks/1336.js","../../../chunks/2434.js","../../../../package.json","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/@mui/material/styles/package.json","../../../../../node_modules/@mui/material/Snackbar/package.json","../../../../../node_modules/@mui/material/Paper/package.json","../../../../../node_modules/@mui/material/Table/package.json","../../../../../node_modules/@mui/material/TableBody/package.json","../../../../../node_modules/@mui/material/TableCell/package.json","../../../../../node_modules/@mui/material/TableContainer/package.json","../../../../../node_modules/@mui/material/TableHead/package.json","../../../../../node_modules/@mui/material/TableRow/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/@mui/material/node/styles/index.js","../../../../../node_modules/@mui/material/node/Snackbar/index.js","../../../../../node_modules/@mui/material/node/Paper/index.js","../../../../../node_modules/@mui/material/node/Table/index.js","../../../../../node_modules/@mui/material/node/TableBody/index.js","../../../../../node_modules/@mui/material/node/TableCell/index.js","../../../../../node_modules/@mui/material/node/TableContainer/index.js","../../../../../node_modules/@mui/material/node/TableHead/index.js","../../../../../node_modules/@mui/material/node/TableRow/index.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../node_modules/@mui/icons-material/ContentCopy.js","../../../../../node_modules/@mui/icons-material/StyleTwoTone.js","../../../../../node_modules/@mui/icons-material/FolderCopyTwoTone.js","../../../../../node_modules/@mui/icons-material/ArrowBackIosRounded.js","../../../../../node_modules/@mui/icons-material/InsertDriveFileTwoTone.js","../../../../../node_modules/@mui/icons-material/KeyboardArrowDownRounded.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/adaptV4Theme.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createMuiStrictModeTheme.js","../../../../../node_modules/@mui/material/node/styles/createStyles.js","../../../../../node_modules/@mui/material/node/styles/cssUtils.js","../../../../../node_modules/@mui/material/node/styles/responsiveFontSizes.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useTheme.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/ThemeProvider.js","../../../../../node_modules/@mui/material/node/styles/makeStyles.js","../../../../../node_modules/@mui/material/node/styles/withStyles.js","../../../../../node_modules/@mui/material/node/styles/withTheme.js","../../../../../node_modules/@mui/material/node/styles/CssVarsProvider.js","../../../../../node_modules/@mui/material/node/styles/experimental_extendTheme.js","../../../../../node_modules/@mui/material/node/styles/getOverlayAlpha.js","../../../../../node_modules/@mui/material/node/styles/shouldSkipGeneratingVar.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/material/node/styles/excludeVariablesFromRoot.js","../../../../../node_modules/@mui/material/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/material/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/material/node/Paper/Paper.js","../../../../../node_modules/@mui/material/node/Paper/paperClasses.js","../../../../../node_modules/@mui/material/node/TableBody/TableBody.js","../../../../../node_modules/@mui/material/node/TableBody/tableBodyClasses.js","../../../../../node_modules/@mui/material/node/Table/Table.js","../../../../../node_modules/@mui/material/node/Table/tableClasses.js","../../../../../node_modules/@mui/material/node/TableCell/TableCell.js","../../../../../node_modules/@mui/material/node/TableCell/tableCellClasses.js","../../../../../node_modules/@mui/material/node/TableContainer/TableContainer.js","../../../../../node_modules/@mui/material/node/TableContainer/tableContainerClasses.js","../../../../../node_modules/@mui/material/node/TableRow/TableRow.js","../../../../../node_modules/@mui/material/node/TableRow/tableRowClasses.js","../../../../../node_modules/@mui/material/node/TableHead/TableHead.js","../../../../../node_modules/@mui/material/node/TableHead/tableHeadClasses.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/Grow/index.js","../../../../../node_modules/@mui/material/node/SnackbarContent/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/@mui/material/node/Table/Tablelvl2Context.js","../../../../../node_modules/@mui/material/node/Table/TableContext.js","../../../../../node_modules/mysql/index.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/mysql/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/base/node/index.js","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/Grow/Grow.js","../../../../../node_modules/@mui/material/node/SnackbarContent/SnackbarContent.js","../../../../../node_modules/@mui/material/node/SnackbarContent/snackbarContentClasses.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/@mui/base/useSnackbar/package.json","../../../../../node_modules/@mui/base/node/useSnackbar/index.js","../../../../../node_modules/@mui/base/ClickAwayListener/package.json","../../../../../node_modules/@mui/base/node/ClickAwayListener/index.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/material/node/transitions/utils.js","../../../../../node_modules/@mui/base/node/unstable_useModal/index.js","../../../../../node_modules/@mui/base/node/NoSsr/index.js","../../../../../node_modules/@mui/base/node/Portal/index.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/index.js","../../../../../node_modules/@mui/base/node/FocusTrap/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.js","../../../../../node_modules/@mui/base/node/useSnackbar/useSnackbar.types.js","../../../../../node_modules/@mui/base/node/ClickAwayListener/ClickAwayListener.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/base/node/utils/index.js","../../../../../node_modules/@mui/base/node/Badge/index.js","../../../../../node_modules/@mui/base/node/Button/index.js","../../../../../node_modules/@mui/base/node/FormControl/index.js","../../../../../node_modules/@mui/base/node/Dropdown/index.js","../../../../../node_modules/@mui/base/node/Input/index.js","../../../../../node_modules/@mui/base/node/Menu/index.js","../../../../../node_modules/@mui/base/node/MenuButton/index.js","../../../../../node_modules/@mui/base/node/MenuItem/index.js","../../../../../node_modules/@mui/base/node/Modal/index.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/index.js","../../../../../node_modules/@mui/base/node/OptionGroup/index.js","../../../../../node_modules/@mui/base/node/Option/index.js","../../../../../node_modules/@mui/base/node/Popper/index.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/index.js","../../../../../node_modules/@mui/base/node/Select/index.js","../../../../../node_modules/@mui/base/node/Slider/index.js","../../../../../node_modules/@mui/base/node/Snackbar/index.js","../../../../../node_modules/@mui/base/node/Switch/index.js","../../../../../node_modules/@mui/base/node/TablePagination/index.js","../../../../../node_modules/@mui/base/node/TabPanel/index.js","../../../../../node_modules/@mui/base/node/TabsList/index.js","../../../../../node_modules/@mui/base/node/Tabs/index.js","../../../../../node_modules/@mui/base/node/Tab/index.js","../../../../../node_modules/@mui/base/node/Transitions/index.js","../../../../../node_modules/@mui/base/node/useAutocomplete/index.js","../../../../../node_modules/@mui/base/node/useBadge/index.js","../../../../../node_modules/@mui/base/node/useButton/index.js","../../../../../node_modules/@mui/base/node/useDropdown/index.js","../../../../../node_modules/@mui/base/node/useInput/index.js","../../../../../node_modules/@mui/base/node/useMenu/index.js","../../../../../node_modules/@mui/base/node/useMenuButton/index.js","../../../../../node_modules/@mui/base/node/useMenuItem/index.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/index.js","../../../../../node_modules/@mui/base/node/useOption/index.js","../../../../../node_modules/@mui/base/node/useSelect/index.js","../../../../../node_modules/@mui/base/node/useSlider/index.js","../../../../../node_modules/@mui/base/node/useSwitch/index.js","../../../../../node_modules/@mui/base/node/useTab/index.js","../../../../../node_modules/@mui/base/node/useTabPanel/index.js","../../../../../node_modules/@mui/base/node/useTabs/index.js","../../../../../node_modules/@mui/base/node/useTabsList/index.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.js","../../../../../node_modules/@mui/base/node/unstable_useModal/ModalManager.js","../../../../../node_modules/@mui/base/node/unstable_useModal/useModal.types.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.js","../../../../../node_modules/@mui/base/node/NoSsr/NoSsr.types.js","../../../../../node_modules/@mui/base/node/Portal/Portal.js","../../../../../node_modules/@mui/base/node/Portal/Portal.types.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.js","../../../../../node_modules/@mui/base/node/TextareaAutosize/TextareaAutosize.types.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.js","../../../../../node_modules/@mui/base/node/FocusTrap/FocusTrap.types.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/@mui/base/node/utils/extractEventHandlers.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/base/node/utils/appendOwnerState.js","../../../../../node_modules/@mui/base/node/utils/areArraysEqual.js","../../../../../node_modules/@mui/base/node/utils/ClassNameConfigurator.js","../../../../../node_modules/@mui/base/node/utils/isHostComponent.js","../../../../../node_modules/@mui/base/node/utils/resolveComponentProps.js","../../../../../node_modules/@mui/base/node/utils/useSlotProps.js","../../../../../node_modules/@mui/base/node/utils/mergeSlotProps.js","../../../../../node_modules/@mui/base/node/utils/prepareForSlot.js","../../../../../node_modules/@mui/base/node/utils/PolymorphicComponent.js","../../../../../node_modules/@mui/base/node/utils/types.js","../../../../../node_modules/@mui/base/node/Badge/Badge.js","../../../../../node_modules/@mui/base/node/Badge/Badge.types.js","../../../../../node_modules/@mui/base/node/Badge/badgeClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.js","../../../../../node_modules/@mui/base/node/Button/buttonClasses.js","../../../../../node_modules/@mui/base/node/Button/Button.types.js","../../../../../node_modules/@mui/base/node/FormControl/FormControlContext.js","../../../../../node_modules/@mui/base/node/FormControl/FormControl.js","../../../../../node_modules/@mui/base/node/FormControl/formControlClasses.js","../../../../../node_modules/@mui/base/node/FormControl/useFormControlContext.js","../../../../../node_modules/@mui/base/node/Input/Input.js","../../../../../node_modules/@mui/base/node/Input/Input.types.js","../../../../../node_modules/@mui/base/node/Input/inputClasses.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.js","../../../../../node_modules/@mui/base/node/Dropdown/Dropdown.types.js","../../../../../node_modules/@mui/base/node/Menu/Menu.js","../../../../../node_modules/@mui/base/node/Menu/menuClasses.js","../../../../../node_modules/@mui/base/node/Menu/Menu.types.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.js","../../../../../node_modules/@mui/base/node/MenuButton/MenuButton.types.js","../../../../../node_modules/@mui/base/node/MenuButton/menuButtonClasses.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.js","../../../../../node_modules/@mui/base/node/MenuItem/MenuItem.types.js","../../../../../node_modules/@mui/base/node/MenuItem/menuItemClasses.js","../../../../../node_modules/@mui/base/node/Modal/Modal.js","../../../../../node_modules/@mui/base/node/Modal/Modal.types.js","../../../../../node_modules/@mui/base/node/Modal/modalClasses.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/NumberInput.types.js","../../../../../node_modules/@mui/base/node/Unstable_NumberInput/numberInputClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.js","../../../../../node_modules/@mui/base/node/OptionGroup/optionGroupClasses.js","../../../../../node_modules/@mui/base/node/OptionGroup/OptionGroup.types.js","../../../../../node_modules/@mui/base/node/Option/Option.js","../../../../../node_modules/@mui/base/node/Option/Option.types.js","../../../../../node_modules/@mui/base/node/Option/optionClasses.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/Popup.types.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/popupClasses.js","../../../../../node_modules/@mui/base/node/Popper/Popper.js","../../../../../node_modules/@mui/base/node/Popper/popperClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.js","../../../../../node_modules/@mui/base/node/Switch/switchClasses.js","../../../../../node_modules/@mui/base/node/Switch/Switch.types.js","../../../../../node_modules/@mui/base/node/Select/Select.js","../../../../../node_modules/@mui/base/node/Select/selectClasses.js","../../../../../node_modules/@mui/base/node/Select/Select.types.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.js","../../../../../node_modules/@mui/base/node/Snackbar/Snackbar.types.js","../../../../../node_modules/@mui/base/node/Snackbar/snackbarClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePagination.types.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.js","../../../../../node_modules/@mui/base/node/TablePagination/TablePaginationActions.types.js","../../../../../node_modules/@mui/base/node/TablePagination/tablePaginationClasses.js","../../../../../node_modules/@mui/base/node/TablePagination/common.types.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.js","../../../../../node_modules/@mui/base/node/TabPanel/TabPanel.types.js","../../../../../node_modules/@mui/base/node/TabPanel/tabPanelClasses.js","../../../../../node_modules/@mui/base/node/Slider/Slider.js","../../../../../node_modules/@mui/base/node/Slider/Slider.types.js","../../../../../node_modules/@mui/base/node/Slider/sliderClasses.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.js","../../../../../node_modules/@mui/base/node/Tabs/tabsClasses.js","../../../../../node_modules/@mui/base/node/Tabs/TabsContext.js","../../../../../node_modules/@mui/base/node/Tabs/Tabs.types.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.js","../../../../../node_modules/@mui/base/node/TabsList/TabsList.types.js","../../../../../node_modules/@mui/base/node/TabsList/tabsListClasses.js","../../../../../node_modules/@mui/base/node/Tab/Tab.js","../../../../../node_modules/@mui/base/node/Tab/Tab.types.js","../../../../../node_modules/@mui/base/node/Tab/tabClasses.js","../../../../../node_modules/@mui/base/node/useAutocomplete/useAutocomplete.js","../../../../../node_modules/@mui/base/node/Transitions/CssAnimation.js","../../../../../node_modules/@mui/base/node/Transitions/CssTransition.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.js","../../../../../node_modules/@mui/base/node/useBadge/useBadge.types.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.js","../../../../../node_modules/@mui/base/node/useDropdown/useDropdown.types.js","../../../../../node_modules/@mui/base/node/useDropdown/DropdownContext.js","../../../../../node_modules/@mui/base/node/useButton/useButton.js","../../../../../node_modules/@mui/base/node/useButton/useButton.types.js","../../../../../node_modules/@mui/base/node/useInput/useInput.js","../../../../../node_modules/@mui/base/node/useInput/useInput.types.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.js","../../../../../node_modules/@mui/base/node/useMenu/useMenu.types.js","../../../../../node_modules/@mui/base/node/useMenu/MenuProvider.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.types.js","../../../../../node_modules/@mui/base/node/useMenuButton/useMenuButton.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItem.types.js","../../../../../node_modules/@mui/base/node/useMenuItem/useMenuItemContextStabilizer.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/useNumberInput.types.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.js","../../../../../node_modules/@mui/base/node/useSelect/useSelect.types.js","../../../../../node_modules/@mui/base/node/useSelect/SelectProvider.js","../../../../../node_modules/@mui/base/node/useOption/useOption.js","../../../../../node_modules/@mui/base/node/useOption/useOption.types.js","../../../../../node_modules/@mui/base/node/useOption/useOptionContextStabilizer.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.js","../../../../../node_modules/@mui/base/node/useSlider/useSlider.types.js","../../../../../node_modules/@mui/base/node/useTab/useTab.js","../../../../../node_modules/@mui/base/node/useTab/useTab.types.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.js","../../../../../node_modules/@mui/base/node/useSwitch/useSwitch.types.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.js","../../../../../node_modules/@mui/base/node/useTabPanel/useTabPanel.types.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.js","../../../../../node_modules/@mui/base/node/useTabs/useTabs.types.js","../../../../../node_modules/@mui/base/node/useTabs/TabsProvider.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.js","../../../../../node_modules/@mui/base/node/useTabsList/useTabsList.types.js","../../../../../node_modules/@mui/base/node/useTabsList/TabsListProvider.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/base/node/utils/omitEventHandlers.js","../../../../../node_modules/@mui/base/node/Unstable_Popup/PopupContext.js","../../../../../node_modules/@mui/base/node/useSelect/defaultOptionStringifier.js","../../../../../node_modules/@mui/base/node/utils/useControllableReducer.js","../../../../../node_modules/@mui/base/node/useDropdown/dropdownReducer.js","../../../../../node_modules/@mui/base/node/useMenu/menuReducer.js","../../../../../node_modules/@mui/base/node/utils/combineHooksSlotProps.js","../../../../../node_modules/@mui/base/node/useList/ListContext.js","../../../../../node_modules/@mui/base/node/unstable_useNumberInput/utils.js","../../../../../node_modules/@mui/base/node/useSelect/selectReducer.js","../../../../../node_modules/@mui/base/node/useTabsList/tabsListReducer.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@mui/base/node/generateUtilityClasses/index.js","../../../../../node_modules/@mui/base/node/generateUtilityClass/index.js","../../../../../node_modules/@mui/base/node/useList/index.js","../../../../../node_modules/@mui/base/node/useTransition/index.js","../../../../../node_modules/@mui/base/node/useCompound/index.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/@floating-ui/react-dom/package.json","../../../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.umd.js","../../../../../node_modules/@popperjs/core/package.json","../../../../../node_modules/@popperjs/core/dist/cjs/popper.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/base/node/useList/useList.js","../../../../../node_modules/@mui/base/node/useList/useList.types.js","../../../../../node_modules/@mui/base/node/useList/useListItem.js","../../../../../node_modules/@mui/base/node/useList/useListItem.types.js","../../../../../node_modules/@mui/base/node/useList/listReducer.js","../../../../../node_modules/@mui/base/node/useList/listActions.types.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionStateManager.js","../../../../../node_modules/@mui/base/node/useTransition/useTransitionTrigger.js","../../../../../node_modules/@mui/base/node/useTransition/TransitionContext.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundParent.js","../../../../../node_modules/@mui/base/node/useCompound/useCompoundItem.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/base/node/utils/useTextNavigation.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@floating-ui/dom/package.json","../../../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.umd.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/util-deprecate/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/@floating-ui/core/package.json","../../../../../node_modules/@floating-ui/core/dist/floating-ui.core.umd.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/core-util-is/lib/util.js","../../../../../node_modules/core-util-is/package.json","../../../../../node_modules/dom-helpers/addClass/package.json","../../../../../node_modules/dom-helpers/cjs/addClass.js","../../../../../node_modules/dom-helpers/cjs/hasClass.js","../../../../../node_modules/dom-helpers/cjs/removeClass.js","../../../../../node_modules/dom-helpers/package.json","../../../../../node_modules/dom-helpers/removeClass/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/inherits/inherits.js","../../../../../node_modules/inherits/inherits_browser.js","../../../../../node_modules/inherits/package.json","../../../../../node_modules/isarray/index.js","../../../../../node_modules/isarray/package.json","../../../../../node_modules/mysql/index.js","../../../../../node_modules/mysql/lib/Connection.js","../../../../../node_modules/mysql/lib/ConnectionConfig.js","../../../../../node_modules/mysql/lib/Pool.js","../../../../../node_modules/mysql/lib/PoolCluster.js","../../../../../node_modules/mysql/lib/PoolConfig.js","../../../../../node_modules/mysql/lib/PoolConnection.js","../../../../../node_modules/mysql/lib/PoolNamespace.js","../../../../../node_modules/mysql/lib/PoolSelector.js","../../../../../node_modules/mysql/lib/protocol/Auth.js","../../../../../node_modules/mysql/lib/protocol/BufferList.js","../../../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../../../node_modules/mysql/lib/protocol/Parser.js","../../../../../node_modules/mysql/lib/protocol/Protocol.js","../../../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../../../node_modules/mysql/lib/protocol/SqlString.js","../../../../../node_modules/mysql/lib/protocol/Timer.js","../../../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../../../node_modules/mysql/lib/protocol/constants/client.js","../../../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../../../node_modules/mysql/lib/protocol/constants/types.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../../../node_modules/mysql/lib/protocol/packets/index.js","../../../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../../../node_modules/mysql/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/process-nextick-args/index.js","../../../../../node_modules/process-nextick-args/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-transition-group/cjs/CSSTransition.js","../../../../../node_modules/react-transition-group/cjs/ReplaceTransition.js","../../../../../node_modules/react-transition-group/cjs/SwitchTransition.js","../../../../../node_modules/react-transition-group/cjs/Transition.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroup.js","../../../../../node_modules/react-transition-group/cjs/TransitionGroupContext.js","../../../../../node_modules/react-transition-group/cjs/config.js","../../../../../node_modules/react-transition-group/cjs/index.js","../../../../../node_modules/react-transition-group/cjs/utils/ChildMapping.js","../../../../../node_modules/react-transition-group/cjs/utils/PropTypes.js","../../../../../node_modules/react-transition-group/cjs/utils/reflow.js","../../../../../node_modules/react-transition-group/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../../../node_modules/readable-stream/lib/_stream_readable.js","../../../../../node_modules/readable-stream/lib/_stream_transform.js","../../../../../node_modules/readable-stream/lib/_stream_writable.js","../../../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../../../node_modules/readable-stream/package.json","../../../../../node_modules/readable-stream/readable.js","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/serverless-mysql/index.js","../../../../../node_modules/serverless-mysql/package.json","../../../../../node_modules/sqlstring/index.js","../../../../../node_modules/sqlstring/lib/SqlString.js","../../../../../node_modules/sqlstring/package.json","../../../../../node_modules/string_decoder/lib/string_decoder.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../../../node_modules/string_decoder/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/util-deprecate/node.js","../../../../../node_modules/util-deprecate/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/new.js b/dsql-app/.local_dist/server/pages/su/users/new.js index 1b428b1..b9b9b9f 100644 --- a/dsql-app/.local_dist/server/pages/su/users/new.js +++ b/dsql-app/.local_dist/server/pages/su/users/new.js @@ -1,346 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 8021; -exports.ids = [8021]; -exports.modules = { - -/***/ 5304: -/***/ ((module, __unused_webpack_exports, __webpack_require__) => { - -// @ts-check - -const { scryptSync , createDecipheriv } = __webpack_require__(6113); -const { Buffer } = __webpack_require__(4300); -/** - * @param {string} encryptedString - * @returns {string | null} - */ const decrypt = (encryptedString)=>{ - const algorithm = "aes-192-cbc"; - const password = process.env.DSQL_ENCRYPTION_PASSWORD || ""; - const salt = process.env.DSQL_ENCRYPTION_SALT || ""; - let key = scryptSync(password, salt, 24); - let iv = Buffer.alloc(16, 0); - // @ts-ignore - const decipher = createDecipheriv(algorithm, key, iv); - try { - let decrypted = decipher.update(encryptedString, "hex", "utf8"); - decrypted += decipher.final("utf8"); - return decrypted; - } catch (error) { - return null; - } -}; -module.exports = decrypt; - - -/***/ }), - -/***/ 5740: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -// ESM COMPAT FLAG -__webpack_require__.r(__webpack_exports__); - -// EXPORTS -__webpack_require__.d(__webpack_exports__, { - "default": () => (/* binding */ UsersPage), - "getServerSideProps": () => (/* binding */ getServerSideProps) -}); - -// EXTERNAL MODULE: external "react/jsx-runtime" -var jsx_runtime_ = __webpack_require__(997); -// EXTERNAL MODULE: external "react" -var external_react_ = __webpack_require__(6689); -var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_); -// EXTERNAL MODULE: ./functions/backend/suAdminUserAuth.js -var suAdminUserAuth = __webpack_require__(1503); -var suAdminUserAuth_default = /*#__PURE__*/__webpack_require__.n(suAdminUserAuth); -// EXTERNAL MODULE: ./layouts/SuAdminLayout.jsx + 2 modules -var SuAdminLayout = __webpack_require__(8282); -// EXTERNAL MODULE: ./components/su/components/UserCard.jsx -var UserCard = __webpack_require__(1336); -;// CONCATENATED MODULE: ./components/su/SuNewUserContent.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {any} props.data - */ function SuNewUserContent({ data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx((external_react_default()).Fragment, { - children: /*#__PURE__*/ (0,jsx_runtime_.jsxs)("section", { - className: "items-start justify-start p-6", - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("div", { - className: "flex flex-row items-center w-full gap-20 mb-6 justify-between", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-xl m-0", - children: "New User" - }) - }), - /*#__PURE__*/ jsx_runtime_.jsx("section", { - className: "paper", - children: /*#__PURE__*/ jsx_runtime_.jsx("h2", { - className: "text-base m-0", - children: "Info" - }) - }) - ] - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ - -;// CONCATENATED MODULE: ./pages/su/users/new.jsx -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType} props.user - * @param {any} props.data - */ function UsersPage({ user , data }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "User Dashboard | Datasquirel"; - const pageDescription = "Welcome to your data app"; - let head = /*#__PURE__*/ (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, { - children: [ - /*#__PURE__*/ jsx_runtime_.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ jsx_runtime_.jsx("meta", { - name: "description", - content: pageDescription - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ jsx_runtime_.jsx(SuAdminLayout/* default */.Z, { - head: head, - user: user, - children: /*#__PURE__*/ jsx_runtime_.jsx(SuNewUserContent, { - data: data - }) - }); -} -/** - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - /** - * User Auth - * - * @description User Auth - */ const suAdminUser = await suAdminUserAuth_default()(req); - if (!suAdminUser?.logged_in_status) { - return { - redirect: { - destination: `/su/login`, - permanent: false - } - }; - } - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: suAdminUser - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 9318: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/BackupTwoTone"); - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 6817: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/DocumentScannerTwoTone"); - -/***/ }), - -/***/ 6094: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/ErrorTwoTone"); - -/***/ }), - -/***/ 6547: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/LockPersonTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 8245: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/PeopleAltTwoTone"); - -/***/ }), - -/***/ 415: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/TerminalTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../../../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,1503,5313,1336], () => (__webpack_exec__(5740))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=5682,e.ids=[636,5682],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},45158:(e,t,r)=>{r.r(t),r.d(t,{config:()=>v,default:()=>f,getServerSideProps:()=>P,getStaticPaths:()=>k,getStaticProps:()=>q,reportWebVitals:()=>j,routeModule:()=>_,unstable_getServerProps:()=>M,unstable_getServerSideProps:()=>w,unstable_getStaticParams:()=>S,unstable_getStaticPaths:()=>A,unstable_getStaticProps:()=>b});var s={};r.r(s),r.d(s,{default:()=>y,getServerSideProps:()=>g});var i=r(63865),a=r(9455),u=r(30671),l=r(49407),n=r(68268),o=r(8732),p=r(82015),c=r.n(p),d=r(93615),m=r.n(d),x=r(64987);function h({data:e}){return(0,o.jsx)(c().Fragment,{children:(0,o.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,o.jsx)("div",{className:"flex flex-row items-center w-full gap-20 mb-6 justify-between",children:(0,o.jsx)("h2",{className:"text-xl m-0",children:"New User"})}),(0,o.jsx)("section",{className:"paper",children:(0,o.jsx)("h2",{className:"text-base m-0",children:"Info"})})]})})}function y({user:e,data:t}){let r=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,o.jsx)("meta",{name:"description",content:"Welcome to your data app"})]});return(0,o.jsx)(x.A,{head:r,user:e,children:(0,o.jsx)(h,{data:t})})}async function g({req:e,res:t,query:r}){let s=await m()(e);return s?.logged_in_status?{props:{user:s}}:{redirect:{destination:"/su/login",permanent:!1}}}r(21498);let f=(0,u.M)(s,"default"),q=(0,u.M)(s,"getStaticProps"),k=(0,u.M)(s,"getStaticPaths"),P=(0,u.M)(s,"getServerSideProps"),v=(0,u.M)(s,"config"),j=(0,u.M)(s,"reportWebVitals"),b=(0,u.M)(s,"unstable_getStaticProps"),A=(0,u.M)(s,"unstable_getStaticPaths"),S=(0,u.M)(s,"unstable_getStaticParams"),M=(0,u.M)(s,"unstable_getServerProps"),w=(0,u.M)(s,"unstable_getServerSideProps"),_=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/su/users/new",pathname:"/su/users/new",bundlePath:"",filename:""},components:{App:n.default,Document:l.default},userland:s})},21498:(e,t,r)=>{r.d(t,{A:()=>u});var s=r(8732),i=r(82015),a=r.n(i);function u({userObject:e,userPage:t}){let r=Object.keys(e),[i,u]=a().useState(!1),[l,n]=a().useState(0),[o,p]=a().useState(!t);return(0,s.jsxs)("div",{className:"card col green w-full overflow-hidden"+(o?t?" h-[100px]":" h-[85px]":" "),children:[(0,s.jsxs)("div",{className:"items-center w-full",children:[(0,s.jsx)("img",{src:e.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,s.jsxs)("h3",{className:"m-0 text-xl",children:[e.first_name," ",e.last_name," "]}),(0,s.jsxs)("div",{className:"ml-auto",children:[(0,s.jsx)("button",{className:"outlined gray small-text",onClick:e=>{o?p(!1):p(!0)},children:o?"More Details":"Collapse"}),!t&&(0,s.jsx)("a",{href:`/su/users/${e.id}`,className:"button outlined gray small-text",children:"View User"})]})]}),(0,s.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:r.map((t,i)=>(0,s.jsxs)(a().Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsxs)("span",{style:{wordBreak:"break-all"},children:[t,":"," ",(0,s.jsx)("b",{children:e[t]})]})}),i{p(!0)},children:"Collapse"})]})}},67105:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},26628:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},34479:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},20427:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},62011:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2459:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},80006:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},25294:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(82544).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268,615],()=>r(45158));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json b/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json index c97e007..25fe9e3 100644 --- a/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json +++ b/dsql-app/.local_dist/server/pages/su/users/new.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../../../webpack-runtime.js","../../../chunks/4017.js","../../../chunks/8313.js","../../../chunks/1503.js","../../../chunks/5313.js","../../../chunks/1336.js","../../../../package.json","../../../../../node_modules/lucide-react/package.json","../../../../../node_modules/@mui/material/package.json","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../../../node_modules/@mui/icons-material/package.json","../../../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/@mui/icons-material/BackupTwoTone.js","../../../../../node_modules/@mui/icons-material/DocumentScannerTwoTone.js","../../../../../node_modules/@mui/icons-material/ErrorTwoTone.js","../../../../../node_modules/@mui/icons-material/LockPersonTwoTone.js","../../../../../node_modules/@mui/icons-material/PeopleAltTwoTone.js","../../../../../node_modules/@mui/icons-material/TerminalTwoTone.js","../../../../../node_modules/react/package.json","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/@mui/material/node/styles/identifier.js","../../../../../node_modules/@mui/material/node/styles/createTheme.js","../../../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../../../node_modules/@mui/material/node/styles/styled.js","../../../../../node_modules/@mui/material/node/styles/createTypography.js","../../../../../node_modules/@mui/material/node/styles/createMixins.js","../../../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/amp-context.js","../../../../../node_modules/next/dist/shared/lib/utils.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/@mui/material/node/utils/index.js","../../../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../../../node_modules/@swc/helpers/lib/_extends.js","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../../../node_modules/@mui/material/node/styles/createPalette.js","../../../../../node_modules/@mui/material/node/styles/shadows.js","../../../../../node_modules/@mui/material/node/styles/zIndex.js","../../../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../../../node_modules/@mui/material/node/utils/capitalize.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../../../node_modules/@mui/base/package.json","../../../../../node_modules/@mui/material/node/colors/common.js","../../../../../node_modules/@mui/material/node/colors/red.js","../../../../../node_modules/@mui/material/node/colors/purple.js","../../../../../node_modules/@mui/material/node/colors/blue.js","../../../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../../../node_modules/@mui/material/node/colors/green.js","../../../../../node_modules/@mui/material/node/colors/orange.js","../../../../../node_modules/@mui/material/node/colors/grey.js","../../../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../../../node_modules/@mui/material/node/utils/debounce.js","../../../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../../../node_modules/@mui/material/node/utils/setRef.js","../../../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../../../node_modules/@mui/material/node/utils/useId.js","../../../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../../../node_modules/@mui/material/node/utils/useControlled.js","../../../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/base/composeClasses/package.json","../../../../../node_modules/@mui/base/node/composeClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/material/utils/package.json","../../../../../node_modules/clsx/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/utils/deepmerge.js","../../../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/getDisplayName.js","../../../../../node_modules/@mui/utils/refType.js","../../../../../node_modules/@mui/utils/createChainedFunction.js","../../../../../node_modules/@mui/utils/deprecatedPropType.js","../../../../../node_modules/@mui/utils/isMuiElement.js","../../../../../node_modules/@mui/utils/requirePropFactory.js","../../../../../node_modules/@mui/utils/setRef.js","../../../../../node_modules/@mui/utils/unsupportedProp.js","../../../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/getScrollbarSize.js","../../../../../node_modules/@mui/utils/scrollLeft.js","../../../../../node_modules/@mui/utils/usePreviousProps.js","../../../../../node_modules/@mui/utils/getValidReactChildren.js","../../../../../node_modules/@mui/utils/visuallyHidden.js","../../../../../node_modules/@mui/utils/integerPropType.js","../../../../../node_modules/@mui/utils/resolveProps.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/propsToClassKey.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react-is/index.js","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/stylis/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../../../node_modules/@babel/runtime/helpers/extends.js","../../../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../../../node_modules/@babel/runtime/helpers/typeof.js","../../../../../node_modules/@babel/runtime/package.json","../../../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../../../node_modules/@emotion/cache/package.json","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../../../node_modules/@emotion/hash/package.json","../../../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../../../node_modules/@emotion/is-prop-valid/package.json","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../../../node_modules/@emotion/memoize/package.json","../../../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../../../node_modules/@emotion/react/package.json","../../../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../../../node_modules/@emotion/serialize/package.json","../../../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../../../node_modules/@emotion/sheet/package.json","../../../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../../../node_modules/@emotion/styled/base/package.json","../../../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../../../node_modules/@emotion/styled/package.json","../../../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../../../node_modules/@emotion/unitless/package.json","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../../../node_modules/@emotion/utils/package.json","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../../../node_modules/@emotion/weak-memoize/package.json","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../../../node_modules/@mui/private-theming/node/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../../../node_modules/@mui/private-theming/package.json","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../../../node_modules/@mui/styled-engine/node/index.js","../../../../../node_modules/@mui/styled-engine/package.json","../../../../../node_modules/@mui/system/Box/Box.js","../../../../../node_modules/@mui/system/Box/boxClasses.js","../../../../../node_modules/@mui/system/Box/index.js","../../../../../node_modules/@mui/system/Box/package.json","../../../../../node_modules/@mui/system/Container/Container.js","../../../../../node_modules/@mui/system/Container/containerClasses.js","../../../../../node_modules/@mui/system/Container/createContainer.js","../../../../../node_modules/@mui/system/Container/index.js","../../../../../node_modules/@mui/system/Container/package.json","../../../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../../node_modules/@mui/system/GlobalStyles/index.js","../../../../../node_modules/@mui/system/GlobalStyles/package.json","../../../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../../../node_modules/@mui/system/RtlProvider/index.js","../../../../../node_modules/@mui/system/RtlProvider/package.json","../../../../../node_modules/@mui/system/Stack/Stack.js","../../../../../node_modules/@mui/system/Stack/StackProps.js","../../../../../node_modules/@mui/system/Stack/createStack.js","../../../../../node_modules/@mui/system/Stack/index.js","../../../../../node_modules/@mui/system/Stack/package.json","../../../../../node_modules/@mui/system/Stack/stackClasses.js","../../../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../../node_modules/@mui/system/ThemeProvider/index.js","../../../../../node_modules/@mui/system/ThemeProvider/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../../../node_modules/@mui/system/borders.js","../../../../../node_modules/@mui/system/breakpoints.js","../../../../../node_modules/@mui/system/colorManipulator.js","../../../../../node_modules/@mui/system/compose.js","../../../../../node_modules/@mui/system/createBox.js","../../../../../node_modules/@mui/system/createStyled.js","../../../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../../../node_modules/@mui/system/createTheme/createTheme.js","../../../../../node_modules/@mui/system/createTheme/index.js","../../../../../node_modules/@mui/system/createTheme/package.json","../../../../../node_modules/@mui/system/createTheme/shape.js","../../../../../node_modules/@mui/system/cssGrid.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../../node_modules/@mui/system/cssVars/package.json","../../../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../../node_modules/@mui/system/display.js","../../../../../node_modules/@mui/system/flexbox.js","../../../../../node_modules/@mui/system/getThemeValue.js","../../../../../node_modules/@mui/system/index.js","../../../../../node_modules/@mui/system/memoize.js","../../../../../node_modules/@mui/system/merge.js","../../../../../node_modules/@mui/system/package.json","../../../../../node_modules/@mui/system/palette.js","../../../../../node_modules/@mui/system/positions.js","../../../../../node_modules/@mui/system/responsivePropType.js","../../../../../node_modules/@mui/system/shadows.js","../../../../../node_modules/@mui/system/sizing.js","../../../../../node_modules/@mui/system/spacing.js","../../../../../node_modules/@mui/system/style.js","../../../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../../node_modules/@mui/system/styled.js","../../../../../node_modules/@mui/system/typography.js","../../../../../node_modules/@mui/system/useMediaQuery/index.js","../../../../../node_modules/@mui/system/useMediaQuery/package.json","../../../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../../../node_modules/@mui/system/useTheme.js","../../../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../../node_modules/@mui/system/useThemeProps/index.js","../../../../../node_modules/@mui/system/useThemeProps/package.json","../../../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../../../node_modules/@mui/system/version/index.js","../../../../../node_modules/@mui/system/version/package.json","../../../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../../../node_modules/@mui/utils/capitalize/index.js","../../../../../node_modules/@mui/utils/capitalize/package.json","../../../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../../../node_modules/@mui/utils/clamp/clamp.js","../../../../../node_modules/@mui/utils/clamp/index.js","../../../../../node_modules/@mui/utils/clamp/package.json","../../../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../../../node_modules/@mui/utils/composeClasses/index.js","../../../../../node_modules/@mui/utils/composeClasses/package.json","../../../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../../../node_modules/@mui/utils/debounce/debounce.js","../../../../../node_modules/@mui/utils/debounce/index.js","../../../../../node_modules/@mui/utils/debounce/package.json","../../../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../../../node_modules/@mui/utils/deepmerge/index.js","../../../../../node_modules/@mui/utils/deepmerge/package.json","../../../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../../../node_modules/@mui/utils/exactProp/index.js","../../../../../node_modules/@mui/utils/exactProp/package.json","../../../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../../../node_modules/@mui/utils/getDisplayName/index.js","../../../../../node_modules/@mui/utils/getDisplayName/package.json","../../../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../../../node_modules/@mui/utils/index.js","../../../../../node_modules/@mui/utils/integerPropType/index.js","../../../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../../../node_modules/@mui/utils/integerPropType/package.json","../../../../../node_modules/@mui/utils/isHostComponent/index.js","../../../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../../../node_modules/@mui/utils/isHostComponent/package.json","../../../../../node_modules/@mui/utils/isMuiElement/index.js","../../../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../../../node_modules/@mui/utils/isMuiElement/package.json","../../../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../../../node_modules/@mui/utils/ownerDocument/index.js","../../../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../../../node_modules/@mui/utils/ownerDocument/package.json","../../../../../node_modules/@mui/utils/ownerWindow/index.js","../../../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../../../node_modules/@mui/utils/ownerWindow/package.json","../../../../../node_modules/@mui/utils/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../../../node_modules/@mui/utils/refType/index.js","../../../../../node_modules/@mui/utils/refType/package.json","../../../../../node_modules/@mui/utils/refType/refType.js","../../../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../../../node_modules/@mui/utils/resolveProps/index.js","../../../../../node_modules/@mui/utils/resolveProps/package.json","../../../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../../../node_modules/@mui/utils/scrollLeft/index.js","../../../../../node_modules/@mui/utils/scrollLeft/package.json","../../../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../../../node_modules/@mui/utils/setRef/index.js","../../../../../node_modules/@mui/utils/setRef/package.json","../../../../../node_modules/@mui/utils/setRef/setRef.js","../../../../../node_modules/@mui/utils/types.js","../../../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../../../node_modules/@mui/utils/useControlled/index.js","../../../../../node_modules/@mui/utils/useControlled/package.json","../../../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../../../node_modules/@mui/utils/useEventCallback/index.js","../../../../../node_modules/@mui/utils/useEventCallback/package.json","../../../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../../../node_modules/@mui/utils/useForkRef/index.js","../../../../../node_modules/@mui/utils/useForkRef/package.json","../../../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../../../node_modules/@mui/utils/useId/index.js","../../../../../node_modules/@mui/utils/useId/package.json","../../../../../node_modules/@mui/utils/useId/useId.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../../../node_modules/@mui/utils/useLazyRef/index.js","../../../../../node_modules/@mui/utils/useLazyRef/package.json","../../../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../../../node_modules/@mui/utils/useOnMount/index.js","../../../../../node_modules/@mui/utils/useOnMount/package.json","../../../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../../../node_modules/@mui/utils/useSlotProps/index.js","../../../../../node_modules/@mui/utils/useSlotProps/package.json","../../../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../../../node_modules/@mui/utils/useTimeout/index.js","../../../../../node_modules/@mui/utils/useTimeout/package.json","../../../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../../../node_modules/@swc/helpers/package.json","../../../../../node_modules/client-only/index.js","../../../../../node_modules/client-only/package.json","../../../../../node_modules/clsx/dist/clsx.js","../../../../../node_modules/clsx/package.json","../../../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../../../node_modules/hoist-non-react-statics/package.json","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../../../node_modules/next/dist/shared/lib/head.js","../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../node_modules/next/dist/shared/lib/side-effect.js","../../../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../../../node_modules/next/head.js","../../../../../node_modules/next/package.json","../../../../../node_modules/object-assign/index.js","../../../../../node_modules/object-assign/package.json","../../../../../node_modules/prop-types/checkPropTypes.js","../../../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../../../node_modules/prop-types/index.js","../../../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../../../node_modules/prop-types/lib/has.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/prop-types/node_modules/react-is/index.js","../../../../../node_modules/prop-types/node_modules/react-is/package.json","../../../../../node_modules/prop-types/package.json","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../../../node_modules/react-dom/cjs/react-dom.development.js","../../../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../../../node_modules/react-dom/index.js","../../../../../node_modules/react-dom/package.json","../../../../../node_modules/react-dom/server.browser.js","../../../../../node_modules/react-is/cjs/react-is.development.js","../../../../../node_modules/react-is/cjs/react-is.production.min.js","../../../../../node_modules/react-is/index.js","../../../../../node_modules/react-is/package.json","../../../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../../node_modules/react/cjs/react.development.js","../../../../../node_modules/react/cjs/react.production.min.js","../../../../../node_modules/react/index.js","../../../../../node_modules/react/jsx-runtime.js","../../../../../node_modules/react/package.json","../../../../../node_modules/scheduler/cjs/scheduler.development.js","../../../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../../../node_modules/scheduler/index.js","../../../../../node_modules/scheduler/package.json","../../../../../node_modules/styled-jsx/dist/index/index.js","../../../../../node_modules/styled-jsx/index.js","../../../../../node_modules/styled-jsx/package.json","../../../../../node_modules/stylis/dist/umd/package.json","../../../../../node_modules/stylis/dist/umd/stylis.js","../../../../../node_modules/stylis/package.json","../../../../../package.json","../../../../package.json","../../../chunks/1137.js","../../../chunks/1223.js","../../../chunks/1790.js","../../../chunks/2332.js","../../../chunks/2414.js","../../../chunks/2996.js","../../../chunks/3247.js","../../../chunks/3468.js","../../../chunks/3737.js","../../../chunks/4050.js","../../../chunks/4237.js","../../../chunks/4312.js","../../../chunks/4417.js","../../../chunks/5134.js","../../../chunks/5212.js","../../../chunks/5674.js","../../../chunks/615.js","../../../chunks/6154.js","../../../chunks/6806.js","../../../chunks/6946.js","../../../chunks/7070.js","../../../chunks/7318.js","../../../chunks/7488.js","../../../chunks/7665.js","../../../chunks/7734.js","../../../chunks/8153.js","../../../chunks/8268.js","../../../chunks/8370.js","../../../chunks/883.js","../../../chunks/8842.js","../../../chunks/9205.js","../../../chunks/9216.js","../../../chunks/9621.js","../../../chunks/9764.js","../../../chunks/9810.js","../../../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/terms.html b/dsql-app/.local_dist/server/pages/terms.html index 6604528..0485770 100644 --- a/dsql-app/.local_dist/server/pages/terms.html +++ b/dsql-app/.local_dist/server/pages/terms.html @@ -1 +1 @@ -Terms and Conditions | Datasquirel

Terms and Conditions

Welcome to datasquirel.com!
Dotted image background

These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com.

By accessing this website we assume you accept these terms and conditions. Do not continue to use datasquirel.com if you do not agree to take all of the terms and conditions stated on this page.

The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with and subject to, prevailing law of Netherlands. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.

Cookies

We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.

License

Unless otherwise stated, Datasquirel and/or its licensors own the intellectual property rights for all material on datasquirel.com. All intellectual property rights are reserved. You may access this from datasquirel.com for your own personal use subjected to restrictions set in these terms and conditions.

You must not:

  • Republish material from datasquirel.com
  • Sell, rent or sub-license material from datasquirel.com
  • Reproduce, duplicate or copy material from datasquirel.com
  • Redistribute content from datasquirel.com

This Agreement shall begin on the date hereof.

Parts of this website offer an opportunity for users to post and exchange opinions and information in certain areas of the website. Datasquirel does not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views and opinions of Datasquirel,its agents and/or affiliates. Comments reflect the views and opinions of the person who post their views and opinions. To the extent permitted by applicable laws, Datasquirel shall not be liable for the Comments or for any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website.

Datasquirel reserves the right to monitor all Comments and to remove any Comments which can be considered inappropriate, offensive or causes breach of these Terms and Conditions.

You warrant and represent that:

  • You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;
  • The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;
  • The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy
  • The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.

You hereby grant Datasquirel a non-exclusive license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.

Hyperlinking to our Content

The following organizations may link to our Website without prior written approval:

  • Government agencies;
  • Search engines;
  • News organizations;
  • Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and
  • System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.

These organizations may link to our home page, to publications or to other Website information so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products and/or services; and (c) fits within the context of the linking party’s site.

We may consider and approve other link requests from the following types of organizations:

  • commonly-known consumer and/or business information sources;
  • dot.com community sites;
  • associations or other groups representing charities;
  • online directory distributors;
  • internet portals;
  • accounting, law and consulting firms; and
  • educational institutions and trade associations.

We will approve link requests from these organizations if we decide that: (a) the link would not make us look unfavorably to ourselves or to our accredited businesses; (b) the organization does not have any negative records with us; (c) the benefit to us from the visibility of the hyperlink compensates the absence of Datasquirel; and (d) the link is in the context of general resource information.

These organizations may link to our home page so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party’s site.

If you are one of the organizations listed in paragraph 2 above and are interested in linking to our website, you must inform us by sending an e-mail to Datasquirel. Please include your name, your organization name, contact information as well as the URL of your site, a list of any URLs from which you intend to link to our Website, and a list of the URLs on our site to which you would like to link. Wait 2-3 weeks for a response.

Approved organizations may hyperlink to our Website as follows:

  • By use of our corporate name; or
  • By use of the uniform resource locator being linked to; or
  • By use of any other description of our Website being linked to that makes sense within the context and format of content on the linking party’s site.

No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement.

iFrames

Without prior approval and written permission, you may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website.

Content Liability

We shall not be hold responsible for any content that appears on your Website. You agree to protect and defend us against all claims that is rising on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights.

Your Privacy

Please read Privacy Policy

Reservation of Rights

We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amen these terms and conditions and it’s linking policy at any time. By continuously linking to our Website, you agree to be bound to and follow these linking terms and conditions.

Removal of links from our website

If you find any link on our Website that is offensive for any reason, you are free to contact and inform us any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly.

We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up to date.

Disclaimer

To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website. Nothing in this disclaimer will:

  • limit or exclude our or your liability for death or personal injury;
  • limit or exclude our or your liability for fraud or fraudulent misrepresentation;
  • limit any of our or your liabilities in any way that is not permitted under applicable law; or
  • exclude any of our or your liabilities that may not be excluded under applicable law.

The limitations and prohibitions of liability set in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort and for breach of statutory duty.

As long as the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature.

\ No newline at end of file +Terms and Conditions | Datasquirel

Terms and Conditions

Welcome to datasquirel.com!
Dotted image background

These terms and conditions outline the rules and regulations for the use of Datasquirel's Website, located at https://datasquirel.com.

By accessing this website we assume you accept these terms and conditions. Do not continue to use datasquirel.com if you do not agree to take all of the terms and conditions stated on this page.

The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and all Agreements: "Client", "You" and "Your" refers to you, the person log on this website and compliant to the Company’s terms and conditions. "The Company", "Ourselves", "We", "Our" and "Us", refers to our Company. "Party", "Parties", or "Us", refers to both the Client and ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services, in accordance with and subject to, prevailing law of Netherlands. Any use of the above terminology or other words in the singular, plural, capitalization and/or he/she or they, are taken as interchangeable and therefore as referring to same.

Cookies

We employ the use of cookies. By accessing datasquirel.com, you agreed to use cookies in agreement with the Datasquirel's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.

License

Unless otherwise stated, Datasquirel and/or its licensors own the intellectual property rights for all material on datasquirel.com. All intellectual property rights are reserved. You may access this from datasquirel.com for your own personal use subjected to restrictions set in these terms and conditions.

You must not:

  • Republish material from datasquirel.com
  • Sell, rent or sub-license material from datasquirel.com
  • Reproduce, duplicate or copy material from datasquirel.com
  • Redistribute content from datasquirel.com

This Agreement shall begin on the date hereof.

Parts of this website offer an opportunity for users to post and exchange opinions and information in certain areas of the website. Datasquirel does not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views and opinions of Datasquirel,its agents and/or affiliates. Comments reflect the views and opinions of the person who post their views and opinions. To the extent permitted by applicable laws, Datasquirel shall not be liable for the Comments or for any liability, damages or expenses caused and/or suffered as a result of any use of and/or posting of and/or appearance of the Comments on this website.

Datasquirel reserves the right to monitor all Comments and to remove any Comments which can be considered inappropriate, offensive or causes breach of these Terms and Conditions.

You warrant and represent that:

  • You are entitled to post the Comments on our website and have all necessary licenses and consents to do so;
  • The Comments do not invade any intellectual property right, including without limitation copyright, patent or trademark of any third party;
  • The Comments do not contain any defamatory, libelous, offensive, indecent or otherwise unlawful material which is an invasion of privacy
  • The Comments will not be used to solicit or promote business or custom or present commercial activities or unlawful activity.

You hereby grant Datasquirel a non-exclusive license to use, reproduce, edit and authorize others to use, reproduce and edit any of your Comments in any and all forms, formats or media.

Hyperlinking to our Content

The following organizations may link to our Website without prior written approval:

  • Government agencies;
  • Search engines;
  • News organizations;
  • Online directory distributors may link to our Website in the same manner as they hyperlink to the Websites of other listed businesses; and
  • System wide Accredited Businesses except soliciting non-profit organizations, charity shopping malls, and charity fundraising groups which may not hyperlink to our Web site.

These organizations may link to our home page, to publications or to other Website information so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products and/or services; and (c) fits within the context of the linking party’s site.

We may consider and approve other link requests from the following types of organizations:

  • commonly-known consumer and/or business information sources;
  • dot.com community sites;
  • associations or other groups representing charities;
  • online directory distributors;
  • internet portals;
  • accounting, law and consulting firms; and
  • educational institutions and trade associations.

We will approve link requests from these organizations if we decide that: (a) the link would not make us look unfavorably to ourselves or to our accredited businesses; (b) the organization does not have any negative records with us; (c) the benefit to us from the visibility of the hyperlink compensates the absence of Datasquirel; and (d) the link is in the context of general resource information.

These organizations may link to our home page so long as the link: (a) is not in any way deceptive; (b) does not falsely imply sponsorship, endorsement or approval of the linking party and its products or services; and (c) fits within the context of the linking party’s site.

If you are one of the organizations listed in paragraph 2 above and are interested in linking to our website, you must inform us by sending an e-mail to Datasquirel. Please include your name, your organization name, contact information as well as the URL of your site, a list of any URLs from which you intend to link to our Website, and a list of the URLs on our site to which you would like to link. Wait 2-3 weeks for a response.

Approved organizations may hyperlink to our Website as follows:

  • By use of our corporate name; or
  • By use of the uniform resource locator being linked to; or
  • By use of any other description of our Website being linked to that makes sense within the context and format of content on the linking party’s site.

No use of Datasquirel's logo or other artwork will be allowed for linking absent a trademark license agreement.

iFrames

Without prior approval and written permission, you may not create frames around our Webpages that alter in any way the visual presentation or appearance of our Website.

Content Liability

We shall not be hold responsible for any content that appears on your Website. You agree to protect and defend us against all claims that is rising on your Website. No link(s) should appear on any Website that may be interpreted as libelous, obscene or criminal, or which infringes, otherwise violates, or advocates the infringement or other violation of, any third party rights.

Your Privacy

Please read Privacy Policy

Reservation of Rights

We reserve the right to request that you remove all links or any particular link to our Website. You approve to immediately remove all links to our Website upon request. We also reserve the right to amen these terms and conditions and it’s linking policy at any time. By continuously linking to our Website, you agree to be bound to and follow these linking terms and conditions.

Removal of links from our website

If you find any link on our Website that is offensive for any reason, you are free to contact and inform us any moment. We will consider requests to remove links but we are not obligated to or so or to respond to you directly.

We do not ensure that the information on this website is correct, we do not warrant its completeness or accuracy; nor do we promise to ensure that the website remains available or that the material on the website is kept up to date.

Disclaimer

To the maximum extent permitted by applicable law, we exclude all representations, warranties and conditions relating to our website and the use of this website. Nothing in this disclaimer will:

  • limit or exclude our or your liability for death or personal injury;
  • limit or exclude our or your liability for fraud or fraudulent misrepresentation;
  • limit any of our or your liabilities in any way that is not permitted under applicable law; or
  • exclude any of our or your liabilities that may not be excluded under applicable law.

The limitations and prohibitions of liability set in this Section and elsewhere in this disclaimer: (a) are subject to the preceding paragraph; and (b) govern all liabilities arising under the disclaimer, including liabilities arising in contract, in tort and for breach of statutory duty.

As long as the website and the information and services on the website are provided free of charge, we will not be liable for any loss or damage of any nature.

\ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/terms.js.nft.json b/dsql-app/.local_dist/server/pages/terms.js.nft.json index 3305a07..f3e8c38 100644 --- a/dsql-app/.local_dist/server/pages/terms.js.nft.json +++ b/dsql-app/.local_dist/server/pages/terms.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../chunks/9922.js","../chunks/4598.js","../../package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../webpack-runtime.js","../chunks/9764.js","../chunks/883.js","../chunks/8268.js","../../../package.json"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/unsubscribe.js b/dsql-app/.local_dist/server/pages/unsubscribe.js index 2dd807f..0907016 100644 --- a/dsql-app/.local_dist/server/pages/unsubscribe.js +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js @@ -1,326 +1 @@ -"use strict"; -(() => { -var exports = {}; -exports.id = 5785; -exports.ids = [5785]; -exports.modules = { - -/***/ 5591: -/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { - -__webpack_require__.r(__webpack_exports__); -/* harmony export */ __webpack_require__.d(__webpack_exports__, { -/* harmony export */ "default": () => (/* binding */ Contact), -/* harmony export */ "getServerSideProps": () => (/* binding */ getServerSideProps) -/* harmony export */ }); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(997); -/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6689); -/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); -/* harmony import */ var _components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5264); -/* harmony import */ var _components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4097); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(370); -/* harmony import */ var _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6729); -/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6217); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(9395); -/* harmony import */ var _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6__); -// @ts-check -/** - * ============================================================================== - * Imports - * ============================================================================== - */ - - - - - -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// - - -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Main Component { Functional } - * ============================================================================== - * @param {Object} props - Server props - * @param {import("@/package-shared/types").UserType | null} props.user - * @param {string | null} props.email - * @param {string} props.productionEnvironment - * @param {any} props.existingAlerts - */ function Contact({ user , email , productionEnvironment , existingAlerts , }) { - /** - * Get Contexts - * - * @abstract { React.useContext } - */ //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Javascript Variables - * - * @abstract Non hook variables and functions - */ const pageTitle = "Unsubscribe | Datasquirel"; - const pageDescription = "Unsubscribe from email alerts"; - let head = /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, { - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("title", { - children: pageTitle - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("meta", { - name: "description", - content: pageDescription - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z, { - pageTitle: pageTitle, - pageDescription: pageDescription, - pagePathname: "/unsubscribe" - }) - ] - }); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * React Hooks - * - * @abstract { useState, useEffect, useRef, etc ... } - */ const [loading, setLoading] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(false); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Function Return - * - * @abstract Main Function Return - */ return /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), { - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z, { - head: head, - user: user, - productionEnvironment: productionEnvironment, - children: /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("main", { - children: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("section", { - children: [ - loading && /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx(_components_general_LoadingBlock__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z, {}), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex-col", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("h1", { - className: "text-2xl", - children: "Unsubscribe from Email alerts" - }), - !email && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("p", { - className: "max-w-md", - children: [ - "No email please ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("a", { - href: "/login", - children: "Login" - }), - " ", - "to Access Email Subscriptions or click on", - " ", - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("i", { - children: '"unsubscribe"' - }), - " from your mail box" - ] - }), - email && /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("form", { - className: "flex flex-col items-start gap-4", - onSubmit: (e)=>{ - e.preventDefault(); - setLoading(true); - /** @type {HTMLFormElement} */ // @ts-ignore - const formEl = e.target; - (0,_functions_frontend_fetchApi__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)("/api/unsubscribe", { - method: "post", - body: { - email: email, - alerts: formEl["alerts_checkbox"].checked, - userId: user?.id ? user.id : null - } - }).then((res)=>{ - console.log(res); - setLoading(false); - }); - }, - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("span", { - className: "bg-slate-100 py-1 px-3 rounded-full", - children: email - }), - /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { - className: "flex items-center gap-1", - children: [ - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("input", { - type: "checkbox", - name: "alerts_checkbox", - id: "alerts_checkbox", - defaultChecked: existingAlerts ? true : false, - className: "w-6 h-6" - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("label", { - htmlFor: "alerts_checkbox", - className: "text-base whitespace-nowrap text-slate-800", - children: "Alerts" - }) - ] - }), - /*#__PURE__*/ react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx("button", { - children: "Save Settings" - }) - ] - }) - ] - }) - ] - }) - }) - }) - }); -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} -/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** - * ============================================================================== - * Server Side Props or Static Props - * ============================================================================== - * @type {import("next").GetServerSideProps} - */ async function getServerSideProps({ req , res , query }) { - // ## Environment processes - const productionEnvironment = process.env.DSQL_HOST_ENV; - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * User Authentication - * - * @description User authentication - */ const user = await _functions_backend_userAuth__WEBPACK_IMPORTED_MODULE_4___default()(req, res); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Page/Site Data Data Fetching - * - * @description Fetch data on the server before returning - */ const email = query.email ? query.email : user?.email ? user.email : null; - let existingAlerts = await _package_shared_utils_backend_global_db_DB_HANDLER__WEBPACK_IMPORTED_MODULE_6___default()(`SELECT email FROM unsubscribes WHERE email='${email}' AND type='alerts'`); - //////////////////////////////////////// - //////////////////////////////////////// - //////////////////////////////////////// - /** - * Server props return - * - * @description Return data fetched on the server side - */ return { - props: { - user: user, - email: email, - productionEnvironment, - existingAlerts: existingAlerts[0] ? false : true - } - }; -//////////////////////////////////////// -//////////////////////////////////////// -//////////////////////////////////////// -} - - -/***/ }), - -/***/ 386: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/CottageTwoTone"); - -/***/ }), - -/***/ 5557: -/***/ ((module) => { - -module.exports = require("@mui/icons-material/MenuBookTwoTone"); - -/***/ }), - -/***/ 2423: -/***/ ((module) => { - -module.exports = require("lucide-react"); - -/***/ }), - -/***/ 968: -/***/ ((module) => { - -module.exports = require("next/head"); - -/***/ }), - -/***/ 6689: -/***/ ((module) => { - -module.exports = require("react"); - -/***/ }), - -/***/ 997: -/***/ ((module) => { - -module.exports = require("react/jsx-runtime"); - -/***/ }), - -/***/ 2261: -/***/ ((module) => { - -module.exports = require("serverless-mysql"); - -/***/ }), - -/***/ 4300: -/***/ ((module) => { - -module.exports = require("buffer"); - -/***/ }), - -/***/ 6113: -/***/ ((module) => { - -module.exports = require("crypto"); - -/***/ }), - -/***/ 7147: -/***/ ((module) => { - -module.exports = require("fs"); - -/***/ }), - -/***/ 3685: -/***/ ((module) => { - -module.exports = require("http"); - -/***/ }) - -}; -; - -// load runtime -var __webpack_require__ = require("../webpack-runtime.js"); -__webpack_require__.C(exports); -var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) -var __webpack_exports__ = __webpack_require__.X(0, [4017,8313,5264,6729,5449,913,4480,370,9360,6217,4097], () => (__webpack_exec__(5591))); -module.exports = __webpack_exports__; - -})(); \ No newline at end of file +"use strict";(()=>{var e={};e.id=3751,e.ids=[636,3751],e.modules={30671:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},76048:(e,t,r)=>{r.r(t),r.d(t,{config:()=>E,default:()=>P,getServerSideProps:()=>v,getStaticPaths:()=>j,getStaticProps:()=>q,reportWebVitals:()=>A,routeModule:()=>w,unstable_getServerProps:()=>N,unstable_getServerSideProps:()=>L,unstable_getStaticParams:()=>k,unstable_getStaticPaths:()=>M,unstable_getStaticProps:()=>D});var s={};r.r(s),r.d(s,{default:()=>y,getServerSideProps:()=>_});var i=r(63865),a=r(9455),n=r(30671),o=r(49407),u=r(68268),l=r(8732),c=r(82015),p=r.n(c),m=r(32415),x=r(87472),d=r(20048),h=r.n(d),f=r(63715),g=r(71457),S=r(67216),b=r.n(S);function y({user:e,email:t,productionEnvironment:r,existingAlerts:s}){let i="Unsubscribe | Datasquirel",a="Unsubscribe from email alerts",n=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:i}),(0,l.jsx)("meta",{name:"description",content:a}),(0,l.jsx)(x.A,{pageTitle:i,pageDescription:a,pagePathname:"/unsubscribe"})]}),[o,u]=p().useState(!1);return(0,l.jsx)(p().Fragment,{children:(0,l.jsx)(g.A,{head:n,user:e,productionEnvironment:r,children:(0,l.jsx)("main",{children:(0,l.jsxs)("section",{children:[o&&(0,l.jsx)(m.A,{}),(0,l.jsxs)("div",{className:"flex-col",children:[(0,l.jsx)("h1",{className:"text-2xl",children:"Unsubscribe from Email alerts"}),!t&&(0,l.jsxs)("p",{className:"max-w-md",children:["No email please ",(0,l.jsx)("a",{href:"/login",children:"Login"})," ","to Access Email Subscriptions or click on"," ",(0,l.jsx)("i",{children:'"unsubscribe"'})," from your mail box"]}),t&&(0,l.jsxs)("form",{className:"flex flex-col items-start gap-4",onSubmit:r=>{r.preventDefault(),u(!0);let s=r.target;(0,f.A)("/api/unsubscribe",{method:"post",body:{email:t,alerts:s.alerts_checkbox.checked,userId:e?.id?e.id:null}}).then(e=>{console.log(e),u(!1)})},children:[(0,l.jsx)("span",{className:"bg-slate-100 py-1 px-3 rounded-full",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)("input",{type:"checkbox",name:"alerts_checkbox",id:"alerts_checkbox",defaultChecked:!!s,className:"w-6 h-6"}),(0,l.jsx)("label",{htmlFor:"alerts_checkbox",className:"text-base whitespace-nowrap text-slate-800",children:"Alerts"})]}),(0,l.jsx)("button",{children:"Save Settings"})]})]})]})})})})}async function _({req:e,res:t,query:r}){let s=process.env.DSQL_HOST_ENV,i=await h()(e,t),a=r.email?r.email:i?.email?i.email:null,n=await b()(`SELECT email FROM unsubscribes WHERE email='${a}' AND type='alerts'`);return{props:{user:i,email:a,productionEnvironment:s,existingAlerts:!n[0]}}}let P=(0,n.M)(s,"default"),q=(0,n.M)(s,"getStaticProps"),j=(0,n.M)(s,"getStaticPaths"),v=(0,n.M)(s,"getServerSideProps"),E=(0,n.M)(s,"config"),A=(0,n.M)(s,"reportWebVitals"),D=(0,n.M)(s,"unstable_getStaticProps"),M=(0,n.M)(s,"unstable_getStaticPaths"),k=(0,n.M)(s,"unstable_getStaticParams"),N=(0,n.M)(s,"unstable_getServerProps"),L=(0,n.M)(s,"unstable_getServerSideProps"),w=new i.PagesRouteModule({definition:{kind:a.A.PAGES,page:"/unsubscribe",pathname:"/unsubscribe",bundlePath:"",filename:""},components:{App:u.default,Document:o.default},userland:s})},20048:(e,t,r)=>{r(81630);let s=r(67216),i=r(83007),a=r(29021);async function n(e,t,r,n){if(!e.cookies?.datasquirelAuthKey?.match(/./))return null;let o=i(e.cookies.datasquirelAuthKey);if(!o)return null;let u=JSON.parse(o);if(!u.csrf_k||r&&!e.headers["x-csrf-auth"]?.match(RegExp(`${u.csrf_k}`)))return null;let l=process.env.DSQL_USER_LOGIN_KEYS_PATH;if(!l)return console.log("DSQL_USER_LOGIN_KEYS_PATH env variable not found. Please set this variable."),null;if(r&&!a.existsSync(`${l}/${u.csrf_k}`))return null;if(0==u.verification_status&&!r){let e=await s(`SELECT verification_status FROM users WHERE id='${u.id}'`);e&&e[0]&&1==e[0].verification_status&&t.setHeader("Set-Cookie",["user_refresh=1"])}return u?.date&&Date.now()-u.date>6048e5?null:u}e.exports=n},83007:(e,t,r)=>{let{scryptSync:s,createDecipheriv:i}=r(55511),{Buffer:a}=r(79428);e.exports=e=>{let t=i("aes-192-cbc",s(process.env.DSQL_ENCRYPTION_PASSWORD||"",process.env.DSQL_ENCRYPTION_SALT||"",24),a.alloc(16,0));try{let r=t.update(e,"hex","utf8");return r+=t.final("utf8")}catch(e){return null}}},67216:(e,t,r)=>{let s=r(9973),i=r(31976),a=s({config:{host:process.env.DSQL_DB_HOST,user:process.env.DSQL_DB_USERNAME,password:process.env.DSQL_DB_PASSWORD,database:process.env.DSQL_DB_NAME,port:process.env.DSQL_DB_PORT?Number(process.env.DSQL_DB_PORT):void 0,charset:"utf8mb4",ssl:i()}});async function n(...e){try{let t=await a.query(...e);return await a.end(),JSON.parse(JSON.stringify(t))}catch(e){return console.log("DB Error =>",e),{success:!1,error:e.message}}}e.exports=n},31976:(e,t,r)=>{let s=r(29021);e.exports=function(){let e=process.env.DSQL_SSL_DIR;if(!e?.match(/./))return;let t=`${e}/ca-cert.pem`;if(!s.existsSync(t)){console.log(`${t} does not exist`);return}return{ca:s.readFileSync(`${e}/ca-cert.pem`)}}},49407:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});var s=r(8732);r(82015);var i=r(20883);function a(e){return(0,s.jsxs)(i.Html,{lang:"en",children:[(0,s.jsxs)(i.Head,{children:[(0,s.jsx)("meta",{name:"author",content:"Datasquirel"}),(0,s.jsx)("meta",{name:"Copyright",content:`Copyright (c) ${new Date().getFullYear()} Datasquirel`}),"dev_dev".match(/dev/)&&(0,s.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.googleapis.com/",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Poppins"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=Inter"}),(0,s.jsx)("link",{rel:"stylesheet",href:"https://fonts.googleapis.com/css?family=IBM+Plex+Mono"}),(0,s.jsx)("script",{src:"/scripts/themeSelector.js"}),(0,s.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=UTF-8"}),(0,s.jsx)("meta",{property:"og:site_name",content:"DATASQUIREL"}),(0,s.jsx)("meta",{property:"og:type",content:"website"}),(0,s.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,s.jsx)("meta",{property:"og:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{itemProp:"image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("meta",{name:"twitter:image",content:"https://static.datasquirel.com/images/user-images/user-2/email-banner.jpeg"}),(0,s.jsx)("link",{rel:"stylesheet",href:"/styles/prism.css"}),(0,s.jsx)("script",{src:"/scripts/prism.js",async:!0}),(0,s.jsx)("script",{dangerouslySetInnerHTML:{__html:"var DSQL = {}"}})]}),(0,s.jsxs)("body",{children:[(0,s.jsx)(i.Main,{}),(0,s.jsx)(i.NextScript,{})]})]})}},9455:(e,t)=>{var r;Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(r||(r={}))},66099:e=>{e.exports=require("@mui/system")},37616:e=>{e.exports=require("@mui/system/DefaultPropsProvider")},24509:e=>{e.exports=require("@mui/system/InitColorSchemeScript")},84781:e=>{e.exports=require("@mui/system/colorManipulator")},18215:e=>{e.exports=require("@mui/system/createStyled")},59989:e=>{e.exports=require("@mui/system/createTheme")},16670:e=>{e.exports=require("@mui/system/styleFunctionSx")},88698:e=>{e.exports=require("@mui/system/useThemeProps")},76831:e=>{e.exports=require("@mui/utils")},28578:e=>{e.exports=require("@mui/utils/capitalize")},14036:e=>{e.exports=require("@mui/utils/composeClasses")},31112:e=>{e.exports=require("@mui/utils/createChainedFunction")},21763:e=>{e.exports=require("@mui/utils/debounce")},7546:e=>{e.exports=require("@mui/utils/deepmerge")},5928:e=>{e.exports=require("@mui/utils/deprecatedPropType")},20985:e=>{e.exports=require("@mui/utils/formatMuiErrorMessage")},61119:e=>{e.exports=require("@mui/utils/generateUtilityClass")},81699:e=>{e.exports=require("@mui/utils/generateUtilityClasses")},29823:e=>{e.exports=require("@mui/utils/isMuiElement")},55402:e=>{e.exports=require("@mui/utils/ownerDocument")},46875:e=>{e.exports=require("@mui/utils/ownerWindow")},48080:e=>{e.exports=require("@mui/utils/requirePropFactory")},39597:e=>{e.exports=require("@mui/utils/setRef")},88190:e=>{e.exports=require("@mui/utils/unsupportedProp")},83889:e=>{e.exports=require("@mui/utils/useControlled")},21956:e=>{e.exports=require("@mui/utils/useEnhancedEffect")},4926:e=>{e.exports=require("@mui/utils/useEventCallback")},7376:e=>{e.exports=require("@mui/utils/useForkRef")},63310:e=>{e.exports=require("@mui/utils/useId")},10977:e=>{e.exports=require("@mui/utils/useIsFocusVisible")},74956:e=>{e.exports=require("clsx")},40361:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},27912:e=>{e.exports=require("next/head")},29825:e=>{e.exports=require("prop-types")},82015:e=>{e.exports=require("react")},22326:e=>{e.exports=require("react-dom")},8732:e=>{e.exports=require("react/jsx-runtime")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")}};var t=require("../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[9764,883,8268],()=>r(76048));module.exports=s})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json b/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json index 7649566..10fba85 100644 --- a/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json +++ b/dsql-app/.local_dist/server/pages/unsubscribe.js.nft.json @@ -1 +1 @@ -{"version":1,"files":["../webpack-runtime.js","../chunks/4017.js","../chunks/8313.js","../chunks/5264.js","../chunks/6729.js","../chunks/5449.js","../chunks/913.js","../chunks/4480.js","../chunks/370.js","../chunks/9360.js","../chunks/6217.js","../chunks/4097.js","../../package.json","../../../node_modules/serverless-mysql/package.json","../../../node_modules/lucide-react/package.json","../../../node_modules/@mui/material/package.json","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/head-manager-context.js","../../../node_modules/serverless-mysql/index.js","../../../node_modules/lucide-react/dist/cjs/lucide-react.js","../../../node_modules/@mui/icons-material/MenuBookTwoTone.js","../../../node_modules/@mui/icons-material/package.json","../../../node_modules/@mui/icons-material/CottageTwoTone.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/react/package.json","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/@mui/material/node/styles/identifier.js","../../../node_modules/@mui/material/node/styles/createTheme.js","../../../node_modules/@mui/material/node/styles/createTransitions.js","../../../node_modules/@mui/material/node/styles/useThemeProps.js","../../../node_modules/@mui/material/node/styles/styled.js","../../../node_modules/@mui/material/node/styles/createTypography.js","../../../node_modules/@mui/material/node/styles/createMixins.js","../../../node_modules/@mui/icons-material/utils/createSvgIcon.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/amp-context.js","../../../node_modules/next/dist/shared/lib/utils.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/@mui/material/node/utils/index.js","../../../node_modules/@mui/material/node/SvgIcon/index.js","../../../node_modules/@swc/helpers/lib/_extends.js","../../../node_modules/@swc/helpers/package.json","../../../node_modules/@swc/helpers/lib/_interop_require_default.js","../../../node_modules/@swc/helpers/lib/_interop_require_wildcard.js","../../../node_modules/@mui/material/node/styles/createPalette.js","../../../node_modules/@mui/material/node/styles/shadows.js","../../../node_modules/@mui/material/node/styles/zIndex.js","../../../node_modules/@mui/material/node/styles/defaultTheme.js","../../../node_modules/@mui/material/node/utils/capitalize.js","../../../node_modules/mysql/index.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/index.js","../../../node_modules/mysql/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@swc/helpers/lib/_async_to_generator.js","../../../node_modules/@mui/base/package.json","../../../node_modules/@mui/material/node/colors/common.js","../../../node_modules/@mui/material/node/colors/red.js","../../../node_modules/@mui/material/node/colors/purple.js","../../../node_modules/@mui/material/node/colors/blue.js","../../../node_modules/@mui/material/node/colors/lightBlue.js","../../../node_modules/@mui/material/node/colors/green.js","../../../node_modules/@mui/material/node/colors/orange.js","../../../node_modules/@mui/material/node/colors/grey.js","../../../node_modules/@mui/material/node/utils/createChainedFunction.js","../../../node_modules/@mui/material/node/utils/createSvgIcon.js","../../../node_modules/@mui/material/node/utils/debounce.js","../../../node_modules/@mui/material/node/utils/deprecatedPropType.js","../../../node_modules/@mui/material/node/utils/isMuiElement.js","../../../node_modules/@mui/material/node/utils/ownerWindow.js","../../../node_modules/@mui/material/node/utils/ownerDocument.js","../../../node_modules/@mui/material/node/utils/requirePropFactory.js","../../../node_modules/@mui/material/node/utils/setRef.js","../../../node_modules/@mui/material/node/utils/useEnhancedEffect.js","../../../node_modules/@mui/material/node/utils/useId.js","../../../node_modules/@mui/material/node/utils/unsupportedProp.js","../../../node_modules/@mui/material/node/utils/useControlled.js","../../../node_modules/@mui/material/node/utils/useEventCallback.js","../../../node_modules/@mui/material/node/utils/useForkRef.js","../../../node_modules/@mui/material/node/utils/useIsFocusVisible.js","../../../node_modules/@mui/material/node/SvgIcon/SvgIcon.js","../../../node_modules/@mui/material/node/SvgIcon/svgIconClasses.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/base/composeClasses/package.json","../../../node_modules/@mui/base/node/composeClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/prop-types/package.json","../../../node_modules/prop-types/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/material/utils/package.json","../../../node_modules/clsx/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/utils/deepmerge.js","../../../node_modules/@mui/utils/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/getDisplayName.js","../../../node_modules/@mui/utils/refType.js","../../../node_modules/@mui/utils/createChainedFunction.js","../../../node_modules/@mui/utils/deprecatedPropType.js","../../../node_modules/@mui/utils/isMuiElement.js","../../../node_modules/@mui/utils/requirePropFactory.js","../../../node_modules/@mui/utils/setRef.js","../../../node_modules/@mui/utils/unsupportedProp.js","../../../node_modules/@mui/utils/useIsFocusVisible.js","../../../node_modules/@mui/utils/getScrollbarSize.js","../../../node_modules/@mui/utils/scrollLeft.js","../../../node_modules/@mui/utils/usePreviousProps.js","../../../node_modules/@mui/utils/getValidReactChildren.js","../../../node_modules/@mui/utils/visuallyHidden.js","../../../node_modules/@mui/utils/integerPropType.js","../../../node_modules/@mui/utils/resolveProps.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/base/ClassNameGenerator/package.json","../../../node_modules/@mui/base/node/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/propsToClassKey.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/@mui/system/cssVars/getInitColorSchemeScript.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/react-is/package.json","../../../node_modules/react-is/index.js","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/sqlstring/index.js","../../../node_modules/object-assign/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/sqlstring/package.json","../../../node_modules/object-assign/package.json","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.prod.js","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.dev.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/@emotion/react/dist/emotion-element-4300ad44.cjs.prod.js","../../../node_modules/@emotion/react/dist/emotion-element-48d2c2e4.cjs.dev.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.prod.js","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.dev.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.prod.js","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.dev.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.prod.js","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.prod.js","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.dev.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.prod.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.dev.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.prod.js","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.dev.js","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/inherits/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/util-deprecate/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/isarray/package.json","../../../node_modules/isarray/index.js","../../../node_modules/core-util-is/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/stylis/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.prod.js","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.prod.js","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.dev.js","../../../package.json"]} \ No newline at end of file +{"version":1,"files":["../../../node_modules/@babel/runtime/helpers/extends.js","../../../node_modules/@babel/runtime/helpers/interopRequireDefault.js","../../../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","../../../node_modules/@babel/runtime/helpers/toPrimitive.js","../../../node_modules/@babel/runtime/helpers/toPropertyKey.js","../../../node_modules/@babel/runtime/helpers/typeof.js","../../../node_modules/@babel/runtime/package.json","../../../node_modules/@emotion/cache/dist/emotion-cache.cjs.js","../../../node_modules/@emotion/cache/package.json","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.dev.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.js","../../../node_modules/@emotion/hash/dist/emotion-hash.cjs.prod.js","../../../node_modules/@emotion/hash/package.json","../../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.cjs.js","../../../node_modules/@emotion/is-prop-valid/package.json","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.dev.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.js","../../../node_modules/@emotion/memoize/dist/emotion-memoize.cjs.prod.js","../../../node_modules/@emotion/memoize/package.json","../../../node_modules/@emotion/react/_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js","../../../node_modules/@emotion/react/_isolated-hnrs/package.json","../../../node_modules/@emotion/react/dist/emotion-element-b1930563.cjs.js","../../../node_modules/@emotion/react/dist/emotion-react.cjs.js","../../../node_modules/@emotion/react/package.json","../../../node_modules/@emotion/serialize/dist/emotion-serialize.cjs.js","../../../node_modules/@emotion/serialize/package.json","../../../node_modules/@emotion/sheet/dist/emotion-sheet.cjs.js","../../../node_modules/@emotion/sheet/package.json","../../../node_modules/@emotion/styled/base/dist/emotion-styled-base.cjs.js","../../../node_modules/@emotion/styled/base/package.json","../../../node_modules/@emotion/styled/dist/emotion-styled.cjs.js","../../../node_modules/@emotion/styled/package.json","../../../node_modules/@emotion/unitless/dist/emotion-unitless.cjs.js","../../../node_modules/@emotion/unitless/package.json","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.cjs.js","../../../node_modules/@emotion/use-insertion-effect-with-fallbacks/package.json","../../../node_modules/@emotion/utils/dist/emotion-utils.cjs.js","../../../node_modules/@emotion/utils/package.json","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.dev.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.js","../../../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.cjs.prod.js","../../../node_modules/@emotion/weak-memoize/package.json","../../../node_modules/@mui/private-theming/node/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/index.js","../../../node_modules/@mui/private-theming/node/ThemeProvider/nested.js","../../../node_modules/@mui/private-theming/node/index.js","../../../node_modules/@mui/private-theming/node/useTheme/ThemeContext.js","../../../node_modules/@mui/private-theming/node/useTheme/index.js","../../../node_modules/@mui/private-theming/node/useTheme/useTheme.js","../../../node_modules/@mui/private-theming/package.json","../../../node_modules/@mui/styled-engine/node/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/styled-engine/node/GlobalStyles/index.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/StyledEngineProvider.js","../../../node_modules/@mui/styled-engine/node/StyledEngineProvider/index.js","../../../node_modules/@mui/styled-engine/node/index.js","../../../node_modules/@mui/styled-engine/package.json","../../../node_modules/@mui/system/Box/Box.js","../../../node_modules/@mui/system/Box/boxClasses.js","../../../node_modules/@mui/system/Box/index.js","../../../node_modules/@mui/system/Box/package.json","../../../node_modules/@mui/system/Container/Container.js","../../../node_modules/@mui/system/Container/containerClasses.js","../../../node_modules/@mui/system/Container/createContainer.js","../../../node_modules/@mui/system/Container/index.js","../../../node_modules/@mui/system/Container/package.json","../../../node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../node_modules/@mui/system/DefaultPropsProvider/index.js","../../../node_modules/@mui/system/DefaultPropsProvider/package.json","../../../node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../node_modules/@mui/system/GlobalStyles/index.js","../../../node_modules/@mui/system/GlobalStyles/package.json","../../../node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../node_modules/@mui/system/InitColorSchemeScript/index.js","../../../node_modules/@mui/system/InitColorSchemeScript/package.json","../../../node_modules/@mui/system/RtlProvider/index.js","../../../node_modules/@mui/system/RtlProvider/package.json","../../../node_modules/@mui/system/Stack/Stack.js","../../../node_modules/@mui/system/Stack/StackProps.js","../../../node_modules/@mui/system/Stack/createStack.js","../../../node_modules/@mui/system/Stack/index.js","../../../node_modules/@mui/system/Stack/package.json","../../../node_modules/@mui/system/Stack/stackClasses.js","../../../node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../node_modules/@mui/system/ThemeProvider/index.js","../../../node_modules/@mui/system/ThemeProvider/package.json","../../../node_modules/@mui/system/Unstable_Grid/Grid.js","../../../node_modules/@mui/system/Unstable_Grid/GridProps.js","../../../node_modules/@mui/system/Unstable_Grid/createGrid.js","../../../node_modules/@mui/system/Unstable_Grid/gridClasses.js","../../../node_modules/@mui/system/Unstable_Grid/gridGenerator.js","../../../node_modules/@mui/system/Unstable_Grid/index.js","../../../node_modules/@mui/system/Unstable_Grid/package.json","../../../node_modules/@mui/system/Unstable_Grid/traverseBreakpoints.js","../../../node_modules/@mui/system/borders.js","../../../node_modules/@mui/system/breakpoints.js","../../../node_modules/@mui/system/colorManipulator.js","../../../node_modules/@mui/system/compose.js","../../../node_modules/@mui/system/createBox.js","../../../node_modules/@mui/system/createStyled.js","../../../node_modules/@mui/system/createTheme/applyStyles.js","../../../node_modules/@mui/system/createTheme/createBreakpoints.js","../../../node_modules/@mui/system/createTheme/createSpacing.js","../../../node_modules/@mui/system/createTheme/createTheme.js","../../../node_modules/@mui/system/createTheme/index.js","../../../node_modules/@mui/system/createTheme/package.json","../../../node_modules/@mui/system/createTheme/shape.js","../../../node_modules/@mui/system/cssGrid.js","../../../node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../node_modules/@mui/system/cssVars/createCssVarsTheme.js","../../../node_modules/@mui/system/cssVars/createGetCssVar.js","../../../node_modules/@mui/system/cssVars/cssVarsParser.js","../../../node_modules/@mui/system/cssVars/package.json","../../../node_modules/@mui/system/cssVars/prepareCssVars.js","../../../node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../node_modules/@mui/system/display.js","../../../node_modules/@mui/system/flexbox.js","../../../node_modules/@mui/system/getThemeValue.js","../../../node_modules/@mui/system/index.js","../../../node_modules/@mui/system/memoize.js","../../../node_modules/@mui/system/merge.js","../../../node_modules/@mui/system/package.json","../../../node_modules/@mui/system/palette.js","../../../node_modules/@mui/system/positions.js","../../../node_modules/@mui/system/responsivePropType.js","../../../node_modules/@mui/system/shadows.js","../../../node_modules/@mui/system/sizing.js","../../../node_modules/@mui/system/spacing.js","../../../node_modules/@mui/system/style.js","../../../node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../node_modules/@mui/system/styleFunctionSx/index.js","../../../node_modules/@mui/system/styleFunctionSx/package.json","../../../node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../node_modules/@mui/system/styled.js","../../../node_modules/@mui/system/typography.js","../../../node_modules/@mui/system/useMediaQuery/index.js","../../../node_modules/@mui/system/useMediaQuery/package.json","../../../node_modules/@mui/system/useMediaQuery/useMediaQuery.js","../../../node_modules/@mui/system/useTheme.js","../../../node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../node_modules/@mui/system/useThemeProps/index.js","../../../node_modules/@mui/system/useThemeProps/package.json","../../../node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../node_modules/@mui/system/useThemeWithoutDefault.js","../../../node_modules/@mui/system/version/index.js","../../../node_modules/@mui/system/version/package.json","../../../node_modules/@mui/utils/ClassNameGenerator/ClassNameGenerator.js","../../../node_modules/@mui/utils/ClassNameGenerator/index.js","../../../node_modules/@mui/utils/ClassNameGenerator/package.json","../../../node_modules/@mui/utils/HTMLElementType/HTMLElementType.js","../../../node_modules/@mui/utils/HTMLElementType/index.js","../../../node_modules/@mui/utils/HTMLElementType/package.json","../../../node_modules/@mui/utils/appendOwnerState/appendOwnerState.js","../../../node_modules/@mui/utils/appendOwnerState/index.js","../../../node_modules/@mui/utils/appendOwnerState/package.json","../../../node_modules/@mui/utils/capitalize/capitalize.js","../../../node_modules/@mui/utils/capitalize/index.js","../../../node_modules/@mui/utils/capitalize/package.json","../../../node_modules/@mui/utils/chainPropTypes/chainPropTypes.js","../../../node_modules/@mui/utils/chainPropTypes/index.js","../../../node_modules/@mui/utils/chainPropTypes/package.json","../../../node_modules/@mui/utils/clamp/clamp.js","../../../node_modules/@mui/utils/clamp/index.js","../../../node_modules/@mui/utils/clamp/package.json","../../../node_modules/@mui/utils/composeClasses/composeClasses.js","../../../node_modules/@mui/utils/composeClasses/index.js","../../../node_modules/@mui/utils/composeClasses/package.json","../../../node_modules/@mui/utils/createChainedFunction/createChainedFunction.js","../../../node_modules/@mui/utils/createChainedFunction/index.js","../../../node_modules/@mui/utils/createChainedFunction/package.json","../../../node_modules/@mui/utils/debounce/debounce.js","../../../node_modules/@mui/utils/debounce/index.js","../../../node_modules/@mui/utils/debounce/package.json","../../../node_modules/@mui/utils/deepmerge/deepmerge.js","../../../node_modules/@mui/utils/deepmerge/index.js","../../../node_modules/@mui/utils/deepmerge/package.json","../../../node_modules/@mui/utils/deprecatedPropType/deprecatedPropType.js","../../../node_modules/@mui/utils/deprecatedPropType/index.js","../../../node_modules/@mui/utils/deprecatedPropType/package.json","../../../node_modules/@mui/utils/elementAcceptingRef/elementAcceptingRef.js","../../../node_modules/@mui/utils/elementAcceptingRef/index.js","../../../node_modules/@mui/utils/elementAcceptingRef/package.json","../../../node_modules/@mui/utils/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/index.js","../../../node_modules/@mui/utils/elementTypeAcceptingRef/package.json","../../../node_modules/@mui/utils/exactProp/exactProp.js","../../../node_modules/@mui/utils/exactProp/index.js","../../../node_modules/@mui/utils/exactProp/package.json","../../../node_modules/@mui/utils/extractEventHandlers/extractEventHandlers.js","../../../node_modules/@mui/utils/extractEventHandlers/index.js","../../../node_modules/@mui/utils/extractEventHandlers/package.json","../../../node_modules/@mui/utils/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/index.js","../../../node_modules/@mui/utils/formatMuiErrorMessage/package.json","../../../node_modules/@mui/utils/generateUtilityClass/generateUtilityClass.js","../../../node_modules/@mui/utils/generateUtilityClass/index.js","../../../node_modules/@mui/utils/generateUtilityClass/package.json","../../../node_modules/@mui/utils/generateUtilityClasses/generateUtilityClasses.js","../../../node_modules/@mui/utils/generateUtilityClasses/index.js","../../../node_modules/@mui/utils/generateUtilityClasses/package.json","../../../node_modules/@mui/utils/getDisplayName/getDisplayName.js","../../../node_modules/@mui/utils/getDisplayName/index.js","../../../node_modules/@mui/utils/getDisplayName/package.json","../../../node_modules/@mui/utils/getReactElementRef/getReactElementRef.js","../../../node_modules/@mui/utils/getReactElementRef/index.js","../../../node_modules/@mui/utils/getReactElementRef/package.json","../../../node_modules/@mui/utils/getScrollbarSize/getScrollbarSize.js","../../../node_modules/@mui/utils/getScrollbarSize/index.js","../../../node_modules/@mui/utils/getScrollbarSize/package.json","../../../node_modules/@mui/utils/getValidReactChildren/getValidReactChildren.js","../../../node_modules/@mui/utils/getValidReactChildren/index.js","../../../node_modules/@mui/utils/getValidReactChildren/package.json","../../../node_modules/@mui/utils/index.js","../../../node_modules/@mui/utils/integerPropType/index.js","../../../node_modules/@mui/utils/integerPropType/integerPropType.js","../../../node_modules/@mui/utils/integerPropType/package.json","../../../node_modules/@mui/utils/isHostComponent/index.js","../../../node_modules/@mui/utils/isHostComponent/isHostComponent.js","../../../node_modules/@mui/utils/isHostComponent/package.json","../../../node_modules/@mui/utils/isMuiElement/index.js","../../../node_modules/@mui/utils/isMuiElement/isMuiElement.js","../../../node_modules/@mui/utils/isMuiElement/package.json","../../../node_modules/@mui/utils/mergeSlotProps/index.js","../../../node_modules/@mui/utils/mergeSlotProps/mergeSlotProps.js","../../../node_modules/@mui/utils/mergeSlotProps/package.json","../../../node_modules/@mui/utils/omitEventHandlers/index.js","../../../node_modules/@mui/utils/omitEventHandlers/omitEventHandlers.js","../../../node_modules/@mui/utils/omitEventHandlers/package.json","../../../node_modules/@mui/utils/ownerDocument/index.js","../../../node_modules/@mui/utils/ownerDocument/ownerDocument.js","../../../node_modules/@mui/utils/ownerDocument/package.json","../../../node_modules/@mui/utils/ownerWindow/index.js","../../../node_modules/@mui/utils/ownerWindow/ownerWindow.js","../../../node_modules/@mui/utils/ownerWindow/package.json","../../../node_modules/@mui/utils/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/index.js","../../../node_modules/@mui/utils/ponyfillGlobal/package.json","../../../node_modules/@mui/utils/ponyfillGlobal/ponyfillGlobal.js","../../../node_modules/@mui/utils/refType/index.js","../../../node_modules/@mui/utils/refType/package.json","../../../node_modules/@mui/utils/refType/refType.js","../../../node_modules/@mui/utils/requirePropFactory/index.js","../../../node_modules/@mui/utils/requirePropFactory/package.json","../../../node_modules/@mui/utils/requirePropFactory/requirePropFactory.js","../../../node_modules/@mui/utils/resolveComponentProps/index.js","../../../node_modules/@mui/utils/resolveComponentProps/package.json","../../../node_modules/@mui/utils/resolveComponentProps/resolveComponentProps.js","../../../node_modules/@mui/utils/resolveProps/index.js","../../../node_modules/@mui/utils/resolveProps/package.json","../../../node_modules/@mui/utils/resolveProps/resolveProps.js","../../../node_modules/@mui/utils/scrollLeft/index.js","../../../node_modules/@mui/utils/scrollLeft/package.json","../../../node_modules/@mui/utils/scrollLeft/scrollLeft.js","../../../node_modules/@mui/utils/setRef/index.js","../../../node_modules/@mui/utils/setRef/package.json","../../../node_modules/@mui/utils/setRef/setRef.js","../../../node_modules/@mui/utils/types.js","../../../node_modules/@mui/utils/unsupportedProp/index.js","../../../node_modules/@mui/utils/unsupportedProp/package.json","../../../node_modules/@mui/utils/unsupportedProp/unsupportedProp.js","../../../node_modules/@mui/utils/useControlled/index.js","../../../node_modules/@mui/utils/useControlled/package.json","../../../node_modules/@mui/utils/useControlled/useControlled.js","../../../node_modules/@mui/utils/useEnhancedEffect/index.js","../../../node_modules/@mui/utils/useEnhancedEffect/package.json","../../../node_modules/@mui/utils/useEnhancedEffect/useEnhancedEffect.js","../../../node_modules/@mui/utils/useEventCallback/index.js","../../../node_modules/@mui/utils/useEventCallback/package.json","../../../node_modules/@mui/utils/useEventCallback/useEventCallback.js","../../../node_modules/@mui/utils/useForkRef/index.js","../../../node_modules/@mui/utils/useForkRef/package.json","../../../node_modules/@mui/utils/useForkRef/useForkRef.js","../../../node_modules/@mui/utils/useId/index.js","../../../node_modules/@mui/utils/useId/package.json","../../../node_modules/@mui/utils/useId/useId.js","../../../node_modules/@mui/utils/useIsFocusVisible/index.js","../../../node_modules/@mui/utils/useIsFocusVisible/package.json","../../../node_modules/@mui/utils/useIsFocusVisible/useIsFocusVisible.js","../../../node_modules/@mui/utils/useLazyRef/index.js","../../../node_modules/@mui/utils/useLazyRef/package.json","../../../node_modules/@mui/utils/useLazyRef/useLazyRef.js","../../../node_modules/@mui/utils/useOnMount/index.js","../../../node_modules/@mui/utils/useOnMount/package.json","../../../node_modules/@mui/utils/useOnMount/useOnMount.js","../../../node_modules/@mui/utils/usePreviousProps/index.js","../../../node_modules/@mui/utils/usePreviousProps/package.json","../../../node_modules/@mui/utils/usePreviousProps/usePreviousProps.js","../../../node_modules/@mui/utils/useSlotProps/index.js","../../../node_modules/@mui/utils/useSlotProps/package.json","../../../node_modules/@mui/utils/useSlotProps/useSlotProps.js","../../../node_modules/@mui/utils/useTimeout/index.js","../../../node_modules/@mui/utils/useTimeout/package.json","../../../node_modules/@mui/utils/useTimeout/useTimeout.js","../../../node_modules/@mui/utils/visuallyHidden/index.js","../../../node_modules/@mui/utils/visuallyHidden/package.json","../../../node_modules/@mui/utils/visuallyHidden/visuallyHidden.js","../../../node_modules/@swc/helpers/_/_interop_require_default/package.json","../../../node_modules/@swc/helpers/_/_interop_require_wildcard/package.json","../../../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../../../node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs","../../../node_modules/@swc/helpers/package.json","../../../node_modules/client-only/index.js","../../../node_modules/client-only/package.json","../../../node_modules/clsx/dist/clsx.js","../../../node_modules/clsx/package.json","../../../node_modules/core-util-is/lib/util.js","../../../node_modules/core-util-is/package.json","../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../node_modules/hoist-non-react-statics/node_modules/react-is/package.json","../../../node_modules/hoist-non-react-statics/package.json","../../../node_modules/inherits/inherits.js","../../../node_modules/inherits/inherits_browser.js","../../../node_modules/inherits/package.json","../../../node_modules/isarray/index.js","../../../node_modules/isarray/package.json","../../../node_modules/mysql/index.js","../../../node_modules/mysql/lib/Connection.js","../../../node_modules/mysql/lib/ConnectionConfig.js","../../../node_modules/mysql/lib/Pool.js","../../../node_modules/mysql/lib/PoolCluster.js","../../../node_modules/mysql/lib/PoolConfig.js","../../../node_modules/mysql/lib/PoolConnection.js","../../../node_modules/mysql/lib/PoolNamespace.js","../../../node_modules/mysql/lib/PoolSelector.js","../../../node_modules/mysql/lib/protocol/Auth.js","../../../node_modules/mysql/lib/protocol/BufferList.js","../../../node_modules/mysql/lib/protocol/PacketHeader.js","../../../node_modules/mysql/lib/protocol/PacketWriter.js","../../../node_modules/mysql/lib/protocol/Parser.js","../../../node_modules/mysql/lib/protocol/Protocol.js","../../../node_modules/mysql/lib/protocol/ResultSet.js","../../../node_modules/mysql/lib/protocol/SqlString.js","../../../node_modules/mysql/lib/protocol/Timer.js","../../../node_modules/mysql/lib/protocol/constants/charsets.js","../../../node_modules/mysql/lib/protocol/constants/client.js","../../../node_modules/mysql/lib/protocol/constants/errors.js","../../../node_modules/mysql/lib/protocol/constants/server_status.js","../../../node_modules/mysql/lib/protocol/constants/ssl_profiles.js","../../../node_modules/mysql/lib/protocol/constants/types.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/AuthSwitchResponsePacket.js","../../../node_modules/mysql/lib/protocol/packets/ClientAuthenticationPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComChangeUserPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComPingPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQueryPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComQuitPacket.js","../../../node_modules/mysql/lib/protocol/packets/ComStatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/EmptyPacket.js","../../../node_modules/mysql/lib/protocol/packets/EofPacket.js","../../../node_modules/mysql/lib/protocol/packets/ErrorPacket.js","../../../node_modules/mysql/lib/protocol/packets/Field.js","../../../node_modules/mysql/lib/protocol/packets/FieldPacket.js","../../../node_modules/mysql/lib/protocol/packets/HandshakeInitializationPacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalDataFilePacket.js","../../../node_modules/mysql/lib/protocol/packets/LocalInfileRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/OkPacket.js","../../../node_modules/mysql/lib/protocol/packets/OldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/ResultSetHeaderPacket.js","../../../node_modules/mysql/lib/protocol/packets/RowDataPacket.js","../../../node_modules/mysql/lib/protocol/packets/SSLRequestPacket.js","../../../node_modules/mysql/lib/protocol/packets/StatisticsPacket.js","../../../node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js","../../../node_modules/mysql/lib/protocol/packets/index.js","../../../node_modules/mysql/lib/protocol/sequences/ChangeUser.js","../../../node_modules/mysql/lib/protocol/sequences/Handshake.js","../../../node_modules/mysql/lib/protocol/sequences/Ping.js","../../../node_modules/mysql/lib/protocol/sequences/Query.js","../../../node_modules/mysql/lib/protocol/sequences/Quit.js","../../../node_modules/mysql/lib/protocol/sequences/Sequence.js","../../../node_modules/mysql/lib/protocol/sequences/Statistics.js","../../../node_modules/mysql/lib/protocol/sequences/index.js","../../../node_modules/mysql/node_modules/bignumber.js/bignumber.js","../../../node_modules/mysql/node_modules/bignumber.js/package.json","../../../node_modules/mysql/node_modules/safe-buffer/index.js","../../../node_modules/mysql/node_modules/safe-buffer/package.json","../../../node_modules/mysql/package.json","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../node_modules/next/dist/compiled/next-server/pages.runtime.prod.js","../../../node_modules/next/dist/lib/semver-noop.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/dist/shared/lib/amp-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/amp-mode.js","../../../node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js","../../../node_modules/next/dist/shared/lib/head.js","../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../node_modules/next/dist/shared/lib/side-effect.js","../../../node_modules/next/dist/shared/lib/utils/warn-once.js","../../../node_modules/next/head.js","../../../node_modules/next/package.json","../../../node_modules/object-assign/index.js","../../../node_modules/object-assign/package.json","../../../node_modules/process-nextick-args/index.js","../../../node_modules/process-nextick-args/package.json","../../../node_modules/prop-types/checkPropTypes.js","../../../node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/prop-types/factoryWithTypeCheckers.js","../../../node_modules/prop-types/index.js","../../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../../node_modules/prop-types/lib/has.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/prop-types/node_modules/react-is/index.js","../../../node_modules/prop-types/node_modules/react-is/package.json","../../../node_modules/prop-types/package.json","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.development.js","../../../node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","../../../node_modules/react-dom/cjs/react-dom.development.js","../../../node_modules/react-dom/cjs/react-dom.production.min.js","../../../node_modules/react-dom/index.js","../../../node_modules/react-dom/package.json","../../../node_modules/react-dom/server.browser.js","../../../node_modules/react-is/cjs/react-is.development.js","../../../node_modules/react-is/cjs/react-is.production.min.js","../../../node_modules/react-is/index.js","../../../node_modules/react-is/package.json","../../../node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../node_modules/react/cjs/react.development.js","../../../node_modules/react/cjs/react.production.min.js","../../../node_modules/react/index.js","../../../node_modules/react/jsx-runtime.js","../../../node_modules/react/package.json","../../../node_modules/readable-stream/lib/_stream_duplex.js","../../../node_modules/readable-stream/lib/_stream_passthrough.js","../../../node_modules/readable-stream/lib/_stream_readable.js","../../../node_modules/readable-stream/lib/_stream_transform.js","../../../node_modules/readable-stream/lib/_stream_writable.js","../../../node_modules/readable-stream/lib/internal/streams/BufferList.js","../../../node_modules/readable-stream/lib/internal/streams/destroy.js","../../../node_modules/readable-stream/lib/internal/streams/stream.js","../../../node_modules/readable-stream/node_modules/safe-buffer/index.js","../../../node_modules/readable-stream/node_modules/safe-buffer/package.json","../../../node_modules/readable-stream/package.json","../../../node_modules/readable-stream/readable.js","../../../node_modules/scheduler/cjs/scheduler.development.js","../../../node_modules/scheduler/cjs/scheduler.production.min.js","../../../node_modules/scheduler/index.js","../../../node_modules/scheduler/package.json","../../../node_modules/serverless-mysql/index.js","../../../node_modules/serverless-mysql/package.json","../../../node_modules/sqlstring/index.js","../../../node_modules/sqlstring/lib/SqlString.js","../../../node_modules/sqlstring/package.json","../../../node_modules/string_decoder/lib/string_decoder.js","../../../node_modules/string_decoder/node_modules/safe-buffer/index.js","../../../node_modules/string_decoder/node_modules/safe-buffer/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/styled-jsx/dist/index/index.js","../../../node_modules/styled-jsx/index.js","../../../node_modules/styled-jsx/package.json","../../../node_modules/stylis/dist/umd/package.json","../../../node_modules/stylis/dist/umd/stylis.js","../../../node_modules/stylis/package.json","../../../node_modules/util-deprecate/node.js","../../../node_modules/util-deprecate/package.json","../../../package.json","../../package.json","../chunks/1137.js","../chunks/1223.js","../chunks/1790.js","../chunks/2332.js","../chunks/2414.js","../chunks/2996.js","../chunks/3247.js","../chunks/3468.js","../chunks/3737.js","../chunks/4050.js","../chunks/4237.js","../chunks/4312.js","../chunks/4417.js","../chunks/5134.js","../chunks/5212.js","../chunks/5674.js","../chunks/615.js","../chunks/6154.js","../chunks/6806.js","../chunks/6946.js","../chunks/7070.js","../chunks/7318.js","../chunks/7488.js","../chunks/7665.js","../chunks/7734.js","../chunks/8153.js","../chunks/8268.js","../chunks/8370.js","../chunks/883.js","../chunks/8842.js","../chunks/9205.js","../chunks/9216.js","../chunks/9621.js","../chunks/9764.js","../chunks/9810.js","../webpack-runtime.js"]} \ No newline at end of file diff --git a/dsql-app/.local_dist/server/webpack-api-runtime.js b/dsql-app/.local_dist/server/webpack-api-runtime.js index 04b90e9..e422ea7 100644 --- a/dsql-app/.local_dist/server/webpack-api-runtime.js +++ b/dsql-app/.local_dist/server/webpack-api-runtime.js @@ -1,160 +1 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({}); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = __webpack_modules__; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/ensure chunk */ -/******/ (() => { -/******/ __webpack_require__.f = {}; -/******/ // This file contains only the entry chunk. -/******/ // The chunk loading function for additional chunks -/******/ __webpack_require__.e = (chunkId) => { -/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { -/******/ __webpack_require__.f[key](chunkId, promises); -/******/ return promises; -/******/ }, [])); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ (() => { -/******/ // This function allow to reference async chunks and sibling chunks for the entrypoint -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".js"; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/startup entrypoint */ -/******/ (() => { -/******/ __webpack_require__.X = (result, chunkIds, fn) => { -/******/ // arguments: chunkIds, moduleId are deprecated -/******/ var moduleId = chunkIds; -/******/ if(!fn) chunkIds = result, fn = () => (__webpack_require__(__webpack_require__.s = moduleId)); -/******/ chunkIds.map(__webpack_require__.e, __webpack_require__) -/******/ var r = fn(); -/******/ return r === undefined ? result : r; -/******/ } -/******/ })(); -/******/ -/******/ /* webpack/runtime/require chunk loading */ -/******/ (() => { -/******/ // no baseURI -/******/ -/******/ // object to store loaded chunks -/******/ // "1" means "loaded", otherwise not loaded yet -/******/ var installedChunks = { -/******/ 2165: 1 -/******/ }; -/******/ -/******/ // no on chunks loaded -/******/ -/******/ var installChunk = (chunk) => { -/******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime; -/******/ for(var moduleId in moreModules) { -/******/ if(__webpack_require__.o(moreModules, moduleId)) { -/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(runtime) runtime(__webpack_require__); -/******/ for(var i = 0; i < chunkIds.length; i++) -/******/ installedChunks[chunkIds[i]] = 1; -/******/ -/******/ }; -/******/ -/******/ // require() chunk loading for javascript -/******/ __webpack_require__.f.require = (chunkId, promises) => { -/******/ // "1" is the signal for "already loaded" -/******/ if(!installedChunks[chunkId]) { -/******/ if(2165 != chunkId) { -/******/ installChunk(require("./chunks/" + __webpack_require__.u(chunkId))); -/******/ } else installedChunks[chunkId] = 1; -/******/ } -/******/ }; -/******/ -/******/ module.exports = __webpack_require__; -/******/ __webpack_require__.C = installChunk; -/******/ -/******/ // no HMR -/******/ -/******/ // no HMR manifest -/******/ })(); -/******/ -/************************************************************************/ -/******/ -/******/ -/******/ })() -; \ No newline at end of file +(()=>{"use strict";var e={},r={};function t(o){var a=r[o];if(void 0!==a)return a.exports;var u=r[o]={exports:{}},n=!0;try{e[o](u,u.exports,t),n=!1}finally{n&&delete r[o]}return u.exports}t.m=e,t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>""+e+".js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.X=(e,r,o)=>{var a=r;o||(r=e,o=()=>t(t.s=a)),r.map(t.e,t);var u=o();return void 0===u?e:u},(()=>{var e={8456:1},r=r=>{var o=r.modules,a=r.ids,u=r.runtime;for(var n in o)t.o(o,n)&&(t.m[n]=o[n]);u&&u(t);for(var l=0;l{e[o]||(8456!=o?r(require("./chunks/"+t.u(o))):e[o]=1)},module.exports=t,t.C=r})()})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/server/webpack-runtime.js b/dsql-app/.local_dist/server/webpack-runtime.js index d3218c4..5b16d0b 100644 --- a/dsql-app/.local_dist/server/webpack-runtime.js +++ b/dsql-app/.local_dist/server/webpack-runtime.js @@ -1,229 +1 @@ -/******/ (() => { // webpackBootstrap -/******/ "use strict"; -/******/ var __webpack_modules__ = ({}); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = __webpack_modules__; -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/async module */ -/******/ (() => { -/******/ var webpackQueues = typeof Symbol === "function" ? Symbol("webpack queues") : "__webpack_queues__"; -/******/ var webpackExports = typeof Symbol === "function" ? Symbol("webpack exports") : "__webpack_exports__"; -/******/ var webpackError = typeof Symbol === "function" ? Symbol("webpack error") : "__webpack_error__"; -/******/ var resolveQueue = (queue) => { -/******/ if(queue && !queue.d) { -/******/ queue.d = 1; -/******/ queue.forEach((fn) => (fn.r--)); -/******/ queue.forEach((fn) => (fn.r-- ? fn.r++ : fn())); -/******/ } -/******/ } -/******/ var wrapDeps = (deps) => (deps.map((dep) => { -/******/ if(dep !== null && typeof dep === "object") { -/******/ if(dep[webpackQueues]) return dep; -/******/ if(dep.then) { -/******/ var queue = []; -/******/ queue.d = 0; -/******/ dep.then((r) => { -/******/ obj[webpackExports] = r; -/******/ resolveQueue(queue); -/******/ }, (e) => { -/******/ obj[webpackError] = e; -/******/ resolveQueue(queue); -/******/ }); -/******/ var obj = {}; -/******/ obj[webpackQueues] = (fn) => (fn(queue)); -/******/ return obj; -/******/ } -/******/ } -/******/ var ret = {}; -/******/ ret[webpackQueues] = x => {}; -/******/ ret[webpackExports] = dep; -/******/ return ret; -/******/ })); -/******/ __webpack_require__.a = (module, body, hasAwait) => { -/******/ var queue; -/******/ hasAwait && ((queue = []).d = 1); -/******/ var depQueues = new Set(); -/******/ var exports = module.exports; -/******/ var currentDeps; -/******/ var outerResolve; -/******/ var reject; -/******/ var promise = new Promise((resolve, rej) => { -/******/ reject = rej; -/******/ outerResolve = resolve; -/******/ }); -/******/ promise[webpackExports] = exports; -/******/ promise[webpackQueues] = (fn) => (queue && fn(queue), depQueues.forEach(fn), promise["catch"](x => {})); -/******/ module.exports = promise; -/******/ body((deps) => { -/******/ currentDeps = wrapDeps(deps); -/******/ var fn; -/******/ var getResult = () => (currentDeps.map((d) => { -/******/ if(d[webpackError]) throw d[webpackError]; -/******/ return d[webpackExports]; -/******/ })) -/******/ var promise = new Promise((resolve) => { -/******/ fn = () => (resolve(getResult)); -/******/ fn.r = 0; -/******/ var fnQueue = (q) => (q !== queue && !depQueues.has(q) && (depQueues.add(q), q && !q.d && (fn.r++, q.push(fn)))); -/******/ currentDeps.map((dep) => (dep[webpackQueues](fnQueue))); -/******/ }); -/******/ return fn.r ? promise : getResult(); -/******/ }, (err) => ((err ? reject(promise[webpackError] = err) : outerResolve(exports)), resolveQueue(queue))); -/******/ queue && (queue.d = 0); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/compat get default export */ -/******/ (() => { -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = (module) => { -/******/ var getter = module && module.__esModule ? -/******/ () => (module['default']) : -/******/ () => (module); -/******/ __webpack_require__.d(getter, { a: getter }); -/******/ return getter; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/define property getters */ -/******/ (() => { -/******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = (exports, definition) => { -/******/ for(var key in definition) { -/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { -/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); -/******/ } -/******/ } -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/ensure chunk */ -/******/ (() => { -/******/ __webpack_require__.f = {}; -/******/ // This file contains only the entry chunk. -/******/ // The chunk loading function for additional chunks -/******/ __webpack_require__.e = (chunkId) => { -/******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => { -/******/ __webpack_require__.f[key](chunkId, promises); -/******/ return promises; -/******/ }, [])); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/get javascript chunk filename */ -/******/ (() => { -/******/ // This function allow to reference async chunks and sibling chunks for the entrypoint -/******/ __webpack_require__.u = (chunkId) => { -/******/ // return url for filenames based on template -/******/ return "" + chunkId + ".js"; -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ (() => { -/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) -/******/ })(); -/******/ -/******/ /* webpack/runtime/make namespace object */ -/******/ (() => { -/******/ // define __esModule on exports -/******/ __webpack_require__.r = (exports) => { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ })(); -/******/ -/******/ /* webpack/runtime/startup entrypoint */ -/******/ (() => { -/******/ __webpack_require__.X = (result, chunkIds, fn) => { -/******/ // arguments: chunkIds, moduleId are deprecated -/******/ var moduleId = chunkIds; -/******/ if(!fn) chunkIds = result, fn = () => (__webpack_require__(__webpack_require__.s = moduleId)); -/******/ chunkIds.map(__webpack_require__.e, __webpack_require__) -/******/ var r = fn(); -/******/ return r === undefined ? result : r; -/******/ } -/******/ })(); -/******/ -/******/ /* webpack/runtime/require chunk loading */ -/******/ (() => { -/******/ // no baseURI -/******/ -/******/ // object to store loaded chunks -/******/ // "1" means "loaded", otherwise not loaded yet -/******/ var installedChunks = { -/******/ 6658: 1 -/******/ }; -/******/ -/******/ // no on chunks loaded -/******/ -/******/ var installChunk = (chunk) => { -/******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime; -/******/ for(var moduleId in moreModules) { -/******/ if(__webpack_require__.o(moreModules, moduleId)) { -/******/ __webpack_require__.m[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(runtime) runtime(__webpack_require__); -/******/ for(var i = 0; i < chunkIds.length; i++) -/******/ installedChunks[chunkIds[i]] = 1; -/******/ -/******/ }; -/******/ -/******/ // require() chunk loading for javascript -/******/ __webpack_require__.f.require = (chunkId, promises) => { -/******/ // "1" is the signal for "already loaded" -/******/ if(!installedChunks[chunkId]) { -/******/ if(6658 != chunkId) { -/******/ installChunk(require("./chunks/" + __webpack_require__.u(chunkId))); -/******/ } else installedChunks[chunkId] = 1; -/******/ } -/******/ }; -/******/ -/******/ module.exports = __webpack_require__; -/******/ __webpack_require__.C = installChunk; -/******/ -/******/ // no HMR -/******/ -/******/ // no HMR manifest -/******/ })(); -/******/ -/************************************************************************/ -/******/ -/******/ -/******/ })() -; \ No newline at end of file +(()=>{"use strict";var e={},r={};function o(t){var a=r[t];if(void 0!==a)return a.exports;var n=r[t]={exports:{}},u=!0;try{e[t](n,n.exports,o),u=!1}finally{u&&delete r[t]}return n.exports}o.m=e,(()=>{var e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",r="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",t="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",a=e=>{e&&e.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))},n=o=>o.map(o=>{if(null!==o&&"object"==typeof o){if(o[e])return o;if(o.then){var n=[];n.d=0,o.then(e=>{u[r]=e,a(n)},e=>{u[t]=e,a(n)});var u={};return u[e]=e=>e(n),u}}var p={};return p[e]=e=>{},p[r]=o,p});o.a=(o,u,p)=>{p&&((f=[]).d=-1);var f,i,l,d,s=new Set,c=o.exports,b=new Promise((e,r)=>{d=r,l=e});b[r]=c,b[e]=e=>(f&&e(f),s.forEach(e),b.catch(e=>{})),o.exports=b,u(o=>{i=n(o);var a,u=()=>i.map(e=>{if(e[t])throw e[t];return e[r]}),p=new Promise(r=>{(a=()=>r(u)).r=0;var o=e=>e!==f&&!s.has(e)&&(s.add(e),e&&!e.d&&(a.r++,e.push(a)));i.map(r=>r[e](o))});return a.r?p:u()},e=>(e?d(b[t]=e):l(c),a(f))),f&&f.d<0&&(f.d=0)}})(),o.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return o.d(r,{a:r}),r},o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce((r,t)=>(o.f[t](e,r),r),[])),o.u=e=>""+e+".js",o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.X=(e,r,t)=>{var a=r;t||(r=e,t=()=>o(o.s=a)),r.map(o.e,o);var n=t();return void 0===n?e:n},(()=>{var e={7311:1},r=r=>{var t=r.modules,a=r.ids,n=r.runtime;for(var u in t)o.o(t,u)&&(o.m[u]=t[u]);n&&n(o);for(var p=0;p{e[t]||(7311!=t?r(require("./chunks/"+o.u(t))):e[t]=1)},module.exports=o,o.C=r})()})(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js b/dsql-app/.local_dist/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js deleted file mode 100644 index 57b85e5..0000000 --- a/dsql-app/.local_dist/static/JWcGy7ApzQNGHJR0-bv4k/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST=function(s,a,e,d,i,t,c,n,u,b,r,g,l,_,m,h,k,p,f,j,o,w,y,v,I,B,F,A,D,E,L,M,N){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[B,"static/css/65efe10b506f9812.css","static/chunks/pages/index-c2ab88c2111475dd.js"],"/404":["static/chunks/pages/404-d04d8d42f75218d9.js"],"/500":["static/chunks/pages/500-7db225cc6b4dea2c.js"],"/_error":["static/chunks/pages/_error-f2496e8b9fdedb89.js"],"/about":[B,"static/chunks/pages/about-76deaa37497c062c.js"],"/admin":[s,b,p,"static/chunks/pages/admin-81e2733c0d783481.js"],"/admin/[user_id]":[s,b,p,"static/chunks/pages/admin/[user_id]-e36cc5d13c2aa929.js"],"/admin/[user_id]/api-keys":[s,"static/chunks/pages/admin/[user_id]/api-keys-ad926df40536b287.js"],"/admin/[user_id]/connect":[s,"static/chunks/pages/admin/[user_id]/connect-8973f4ea35b17adf.js"],"/admin/[user_id]/databases":[s,b,"static/chunks/pages/admin/[user_id]/databases-2ede91ae9bfe108a.js"],"/admin/[user_id]/databases/add-database":[i,s,e,c,f,"static/chunks/pages/admin/[user_id]/databases/add-database-e3a5509e700b0e80.js"],"/admin/[user_id]/databases/[single]":[s,a,t,"static/chunks/pages/admin/[user_id]/databases/[single]-91b6e8d432bef987.js"],"/admin/[user_id]/databases/[single]/connect":[s,a,e,"static/chunks/pages/admin/[user_id]/databases/[single]/connect-6fe32fdcf255139c.js"],"/admin/[user_id]/databases/[single]/edit-database":[i,s,a,e,c,f,"static/chunks/pages/admin/[user_id]/databases/[single]/edit-database-a60b50dd21c29ae2.js"],"/admin/[user_id]/databases/[single]/schema":[i,u,j,s,a,e,t,c,f,F,"static/chunks/pages/admin/[user_id]/databases/[single]/schema-7b76b5c228e273d4.js"],"/admin/[user_id]/databases/[single]/shell":[A,s,a,"static/chunks/pages/admin/[user_id]/databases/[single]/shell-cb2910aa3bd12a22.js"],"/admin/[user_id]/databases/[single]/tables":[s,a,t,"static/chunks/pages/admin/[user_id]/databases/[single]/tables-512e452212994e35.js"],"/admin/[user_id]/databases/[single]/tables/add-table":[i,r,g,s,a,e,c,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/add-table-09cebcb0b429f6de.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]":[i,r,n,g,_,o,s,a,e,t,c,l,m,w,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]-0d9a8a82c8b584d3.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table":[i,r,g,s,a,e,t,c,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table-4d03eae9a64fe6a7.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries":[i,n,_,o,s,a,e,t,m,w,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries-3a14a471d2dc7b00.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry":[n,_,s,a,t,m,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry-0ecd226005afec57.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]":[i,n,_,o,s,a,e,t,m,w,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]-a15e553c68e1ca23.js"],"/admin/[user_id]/databases/[single]/tables/[single_table]/fields":[i,r,g,s,a,e,t,c,l,"static/chunks/pages/admin/[user_id]/databases/[single]/tables/[single_table]/fields-ab993bc50ce1e800.js"],"/admin/[user_id]/databases/[single]/users":[s,a,t,h,"static/chunks/pages/admin/[user_id]/databases/[single]/users-c33e649f1474fb77.js"],"/admin/[user_id]/databases/[single]/users/add-social-logins":[s,a,e,k,D,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-social-logins-3e4d353e902f53ae.js"],"/admin/[user_id]/databases/[single]/users/add-user":[s,a,e,k,D,"static/chunks/pages/admin/[user_id]/databases/[single]/users/add-user-36cc73c2fdadfc25.js"],"/admin/[user_id]/databases/[single]/users/[user]":[s,a,k,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]-f7cdffc0b0c094c6.js"],"/admin/[user_id]/databases/[single]/users/[user]/change-password":[s,a,"static/chunks/pages/admin/[user_id]/databases/[single]/users/[user]/change-password-21db218c89054e75.js"],"/admin/[user_id]/media":[s,E,"static/chunks/pages/admin/[user_id]/media-922d349166d14d18.js"],"/admin/[user_id]/media/[...folder]":[s,E,"static/chunks/pages/admin/[user_id]/media/[...folder]-773d7108b2688df4.js"],"/admin/[user_id]/schema":[u,j,s,a,F,"static/chunks/pages/admin/[user_id]/schema-d264203c84a34e72.js"],"/admin/[user_id]/settings":[i,s,e,c,b,y,p,L,"static/chunks/pages/admin/[user_id]/settings-fed09966c6dcd870.js"],"/admin/[user_id]/users":[s,h,"static/chunks/pages/admin/[user_id]/users-6de0335d6b77da5f.js"],"/admin/[user_id]/users/add-user":[s,"static/chunks/pages/admin/[user_id]/users/add-user-c50fb941e687320a.js"],"/admin/[user_id]/users/databases":[s,h,"static/chunks/pages/admin/[user_id]/users/databases-ee8daf5a492656f7.js"],"/admin/[user_id]/users/databases/[database]":[s,h,"static/chunks/pages/admin/[user_id]/users/databases/[database]-8ce86ff54e77daca.js"],"/admin/[user_id]/users/databases/[database]/[user]":[s,k,"static/chunks/pages/admin/[user_id]/users/databases/[database]/[user]-cba9dda9369d222a.js"],"/blog":["static/chunks/pages/blog-be6db5dd2389f8c4.js"],"/contact":["static/chunks/pages/contact-513427eea0db408d.js"],"/create-account":[y,L,"static/chunks/pages/create-account-c97da041b7809649.js"],"/docs":["static/chunks/pages/docs-de42203d30b1880d.js"],"/docs/[page]":["static/chunks/pages/docs/[page]-3602862f9a9542f8.js"],"/docs/[page]/[sub-page]":["static/chunks/pages/docs/[page]/[sub-page]-b3641ae1942e2312.js"],"/email-verification":["static/chunks/pages/email-verification-2643dd10f1b54d59.js"],"/login":[y,"static/chunks/pages/login-5453e8ec28f13db7.js"],"/logout":["static/chunks/pages/logout-3c3e2d0c564c405f.js"],"/pricing":["static/chunks/pages/pricing-e193043fd895ccd5.js"],"/privacy":["static/chunks/pages/privacy-6a6371ab4eda9c15.js"],"/redirect":["static/chunks/pages/redirect-f189e8f0d6ae1482.js"],"/reset-password":[i,"static/chunks/pages/reset-password-a754110c3b3e20fb.js"],"/send-password-reset-link":["static/chunks/pages/send-password-reset-link-62def12808387ec7.js"],"/su":[d,M,"static/chunks/pages/su-0929bdda8a625d2f.js"],"/su/backups":[d,"static/chunks/pages/su/backups-4a9e96c30acc4626.js"],"/su/console":["static/chunks/ed150ef9-713e0b995a8779c6.js","static/chunks/493-ec86d71e0fece010.js",d,"static/css/85fa6dafca566008.css","static/chunks/pages/su/console-46c6d0d0303e04b9.js"],"/su/docs":[d,N,"static/chunks/pages/su/docs-b48cfe163578ba42.js"],"/su/docs/create-page":[n,u,v,e,d,I,"static/chunks/pages/su/docs/create-page-9be0d237216b00cd.js"],"/su/docs/edit-page":[n,u,v,e,d,I,"static/chunks/pages/su/docs/edit-page-4892c3a874c645b3.js"],"/su/docs/pages":[d,N,"static/chunks/pages/su/docs/pages-5eee4e47bc092505.js"],"/su/docs/pages/[id]":[n,u,v,e,d,I,"static/chunks/pages/su/docs/pages/[id]-abedeaddb98ac372.js"],"/su/envar":[d,"static/chunks/pages/su/envar-42f3065b06c71be8.js"],"/su/error-logs":[d,M,"static/chunks/pages/su/error-logs-5c9265bc2ac8176f.js"],"/su/login":["static/chunks/pages/su/login-522c70b6952cc65b.js"],"/su/users":[d,"static/chunks/pages/su/users-464900047fbc0228.js"],"/su/users/new":[d,"static/chunks/pages/su/users/new-6cf4001cfdd2ec66.js"],"/su/users/[single]":[u,j,A,d,"static/chunks/pages/su/users/[single]-65b1051395f52052.js"],"/terms":["static/chunks/pages/terms-da8c5b5b6b17b132.js"],"/unsubscribe":["static/chunks/pages/unsubscribe-b9517fbaaacff29b.js"],sortedPages:["/","/404","/500","/_app","/_error","/about","/admin","/admin/[user_id]","/admin/[user_id]/api-keys","/admin/[user_id]/connect","/admin/[user_id]/databases","/admin/[user_id]/databases/add-database","/admin/[user_id]/databases/[single]","/admin/[user_id]/databases/[single]/connect","/admin/[user_id]/databases/[single]/edit-database","/admin/[user_id]/databases/[single]/schema","/admin/[user_id]/databases/[single]/shell","/admin/[user_id]/databases/[single]/tables","/admin/[user_id]/databases/[single]/tables/add-table","/admin/[user_id]/databases/[single]/tables/[single_table]","/admin/[user_id]/databases/[single]/tables/[single_table]/edit-table","/admin/[user_id]/databases/[single]/tables/[single_table]/entries","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/add-entry","/admin/[user_id]/databases/[single]/tables/[single_table]/entries/[single_entry]","/admin/[user_id]/databases/[single]/tables/[single_table]/fields","/admin/[user_id]/databases/[single]/users","/admin/[user_id]/databases/[single]/users/add-social-logins","/admin/[user_id]/databases/[single]/users/add-user","/admin/[user_id]/databases/[single]/users/[user]","/admin/[user_id]/databases/[single]/users/[user]/change-password","/admin/[user_id]/media","/admin/[user_id]/media/[...folder]","/admin/[user_id]/schema","/admin/[user_id]/settings","/admin/[user_id]/users","/admin/[user_id]/users/add-user","/admin/[user_id]/users/databases","/admin/[user_id]/users/databases/[database]","/admin/[user_id]/users/databases/[database]/[user]","/blog","/contact","/create-account","/docs","/docs/[page]","/docs/[page]/[sub-page]","/email-verification","/login","/logout","/pricing","/privacy","/redirect","/reset-password","/send-password-reset-link","/su","/su/backups","/su/console","/su/docs","/su/docs/create-page","/su/docs/edit-page","/su/docs/pages","/su/docs/pages/[id]","/su/envar","/su/error-logs","/su/login","/su/users","/su/users/new","/su/users/[single]","/terms","/unsubscribe"]}}("static/chunks/9365-101d5c9d637cef9a.js","static/chunks/194-6fbe0e1d9cd931e6.js","static/chunks/7901-841b99c96481dd31.js","static/chunks/5313-568ff7314fa4913c.js","static/chunks/29107295-4a69275373f23f88.js","static/chunks/8264-5901ddfeb3cb03ce.js","static/chunks/9967-c027b915261dae19.js","static/chunks/1179-5a248a7a76a74928.js","static/chunks/4185-b4c9a571bd713be6.js","static/chunks/3181-1097b37499196dce.js","static/chunks/94726e6d-f5320de901b4c44f.js","static/chunks/9572-f67b1194a0e6ae72.js","static/chunks/4893-e30c16360c86c67d.js","static/chunks/1502-965711da5f99a5c8.js","static/chunks/9788-84477f8e20625988.js","static/chunks/5949-b1c68b62cd5dbfee.js","static/chunks/2870-4390329ae1d5a1f2.js","static/chunks/5667-9e7b94f8ce529764.js","static/chunks/8887-5917115e54cd417b.js","static/chunks/8473-1a1faf3d4d34beef.js","static/chunks/8446-a36a685092b53a06.js","static/chunks/9035-b11038b244e852f0.js","static/chunks/8374-f28680e628b18bd5.js","static/chunks/2452-ed265b549204d978.js","static/chunks/2378-3a97fbefe0f48bac.js","static/chunks/3935-eea593fa60dfd620.js","static/chunks/7200-4c384098300f07db.js","static/chunks/3795-b7a314b891092ea4.js","static/chunks/9719-14cc8b76a1deed3c.js","static/chunks/4156-f3d2d008f94f3178.js","static/chunks/5114-a70f18877cc7f8bc.js","static/chunks/3695-c03f5685e1b79345.js","static/chunks/5622-0b01b71a2de3acf8.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/1105-7897faceec5c28c2.js b/dsql-app/.local_dist/static/chunks/1105-7897faceec5c28c2.js new file mode 100644 index 0000000..0d6b2c5 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/1105-7897faceec5c28c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1105],{51105:(e,t,n)=>{n.d(t,{A:()=>Y});var r=n(98587),o=n(58168),i=n(96540),a=n(75659),s=n(25908),l=n(27598),c=n(71547),u=n(97340);let d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,d=(0,l.A)();i.useEffect(()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}},[a,r]);let f=(0,c.A)((e,t)=>{null==r||r(e,t)}),g=(0,c.A)(e=>{r&&null!=e&&d.start(e,()=>{f(null,"timeout")})});i.useEffect(()=>(a&&g(t),d.clear),[a,t,g,d]);let m=d.clear,p=i.useCallback(()=>{null!=t&&g(null!=s?s:.5*t)},[t,s,g]),h=e=>t=>{let n=e.onBlur;null==n||n(t),p()},A=e=>t=>{let n=e.onFocus;null==n||n(t),m()},v=e=>t=>{let n=e.onMouseEnter;null==n||n(t),m()},E=e=>t=>{let n=e.onMouseLeave;null==n||n(t),p()};return i.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",p),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",m)}},[n,a,p,m]),{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,o.A)({},(0,u.A)(e),(0,u.A)(t));return(0,o.A)({role:"presentation"},t,n,{onBlur:h(n),onFocus:A(n),onMouseEnter:v(n),onMouseLeave:E(n)})},onClickAway:e=>{null==r||r(e,"clickaway")}}};var f=n(31523),g=n(32325),m=n(57223),p=n(74848);function h(e){return e.substring(2).toLowerCase()}function A(e){let{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),l=i.useRef(null),u=i.useRef(!1),d=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);let A=(0,f.A)((0,m.A)(t),l),v=(0,c.A)(e=>{let t=d.current;d.current=!1;let r=(0,g.A)(l.current);if(u.current&&l.current&&(!("clientX"in e)||!(r.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||l.current.contains(e.target))||!n&&t||o(e)}}),E=e=>n=>{d.current=!0;let r=t.props[e];r&&r(n)},y={ref:A};return!1!==a&&(y[a]=E(a)),i.useEffect(()=>{if(!1!==a){let e=h(a),t=(0,g.A)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,v),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,v),t.removeEventListener("touchmove",n)}}},[v,a]),!1!==r&&(y[r]=E(r)),i.useEffect(()=>{if(!1!==r){let e=h(r),t=(0,g.A)(l.current);return t.addEventListener(e,v),()=>{t.removeEventListener(e,v)}}},[v,r]),(0,p.jsx)(i.Fragment,{children:i.cloneElement(t,y)})}var v=n(3552),E=n(63891),y=n(98301),x=n(97306),b=n(21962),k=n(82586),w=n(13372);let C=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function L(e){return"scale(".concat(e,", ").concat(e**2,")")}let R={entering:{opacity:1,transform:L(1)},entered:{opacity:1,transform:"none"}},O="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),S=i.forwardRef(function(e,t){let{addEndListener:n,appear:a=!0,children:s,easing:c,in:u,onEnter:d,onEntered:f,onEntering:g,onExit:h,onExited:A,onExiting:v,style:y,timeout:x="auto",TransitionComponent:S=b.Ay}=e,M=(0,r.A)(e,C),j=(0,l.A)(),P=i.useRef(),T=(0,E.A)(),z=i.useRef(null),N=(0,w.A)(z,(0,m.A)(s),t),B=e=>t=>{if(e){let n=z.current;void 0===t?e(n):e(n,t)}},H=B(g),D=B((e,t)=>{let n;(0,k.q)(e);let{duration:r,delay:o,easing:i}=(0,k.c)({style:y,timeout:x,easing:c},{mode:"enter"});"auto"===x?(n=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=n):n=r,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:O?n:.666*n,delay:o,easing:i})].join(","),d&&d(e,t)}),F=B(f),I=B(v),_=B(e=>{let t;let{duration:n,delay:r,easing:o}=(0,k.c)({style:y,timeout:x,easing:c},{mode:"exit"});"auto"===x?(t=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=t):t=n,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:r}),T.transitions.create("transform",{duration:O?t:.666*t,delay:O?r:r||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=L(.75),h&&h(e)}),W=B(A);return(0,p.jsx)(S,(0,o.A)({appear:a,in:u,nodeRef:z,onEnter:D,onEntered:F,onEntering:H,onExit:_,onExited:W,onExiting:I,addEndListener:e=>{"auto"===x&&j.start(P.current||0,e),n&&n(z.current,e)},timeout:"auto"===x?null:x},M,{children:(e,t)=>i.cloneElement(s,(0,o.A)({style:(0,o.A)({opacity:0,transform:L(.75),visibility:"exited"!==e||u?void 0:"hidden"},R[e],y,s.props.style),ref:N},t))}))});S.muiSupportAuto=!0;var M=n(34164),j=n(771),P=n(34544),T=n(38413),z=n(31609);function N(e){return(0,z.Ay)("MuiSnackbarContent",e)}(0,T.A)("MuiSnackbarContent",["root","message","action"]);let B=["action","className","message","role"],H=e=>{let{classes:t}=e;return(0,a.A)({root:["root"],action:["action"],message:["message"]},N,t)},D=(0,v.Ay)(P.A,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,n="light"===t.palette.mode?.8:.98,r=(0,j.tL)(t.palette.background.default,n);return(0,o.A)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(r),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:r,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),F=(0,v.Ay)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),I=(0,v.Ay)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),_=i.forwardRef(function(e,t){let n=(0,y.b)({props:e,name:"MuiSnackbarContent"}),{action:i,className:a,message:s,role:l="alert"}=n,c=(0,r.A)(n,B),u=H(n);return(0,p.jsxs)(D,(0,o.A)({role:l,square:!0,elevation:6,className:(0,M.A)(u.root,a),ownerState:n,ref:t},c,{children:[(0,p.jsx)(F,{className:u.message,ownerState:n,children:s}),i?(0,p.jsx)(I,{className:u.action,ownerState:n,children:i}):null]}))});function W(e){return(0,z.Ay)("MuiSnackbar",e)}(0,T.A)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let X=["onEnter","onExited"],q=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],G=e=>{let{classes:t,anchorOrigin:n}=e,r={root:["root","anchorOrigin".concat((0,x.A)(n.vertical)).concat((0,x.A)(n.horizontal))]};return(0,a.A)(r,W,t)},K=(0,v.Ay)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t["anchorOrigin".concat((0,x.A)(n.anchorOrigin.vertical)).concat((0,x.A)(n.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:n}=e;return(0,o.A)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,o.A)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})}),Y=i.forwardRef(function(e,t){let n=(0,y.b)({props:e,name:"MuiSnackbar"}),a=(0,E.A)(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:c,anchorOrigin:{vertical:u,horizontal:f}={vertical:"bottom",horizontal:"left"},autoHideDuration:g=null,children:m,className:h,ClickAwayListenerProps:v,ContentProps:x,disableWindowBlurListener:b=!1,message:k,open:w,TransitionComponent:C=S,transitionDuration:L=l,TransitionProps:{onEnter:R,onExited:O}={}}=n,M=(0,r.A)(n.TransitionProps,X),j=(0,r.A)(n,q),P=(0,o.A)({},n,{anchorOrigin:{vertical:u,horizontal:f},autoHideDuration:g,disableWindowBlurListener:b,TransitionComponent:C,transitionDuration:L}),T=G(P),{getRootProps:z,onClickAway:N}=d((0,o.A)({},P)),[B,H]=i.useState(!0),D=(0,s.A)({elementType:K,getSlotProps:z,externalForwardedProps:j,ownerState:P,additionalProps:{ref:t},className:[T.root,h]});return!w&&B?null:(0,p.jsx)(A,(0,o.A)({onClickAway:N},v,{children:(0,p.jsx)(K,(0,o.A)({},D,{children:(0,p.jsx)(C,(0,o.A)({appear:!0,in:w,timeout:L,direction:"top"===u?"down":"up",onEnter:(e,t)=>{H(!1),R&&R(e,t)},onExited:e=>{H(!0),O&&O(e)}},M,{children:m||(0,p.jsx)(_,(0,o.A)({message:k,action:c},x))}))}))}))})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/1179-5a248a7a76a74928.js b/dsql-app/.local_dist/static/chunks/1179-5a248a7a76a74928.js deleted file mode 100644 index 1818dd4..0000000 --- a/dsql-app/.local_dist/static/chunks/1179-5a248a7a76a74928.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1179],{42065:function(n,e,t){"use strict";var o=t(64836);e.Z=void 0;var r=o(t(64938)),i=t(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");e.Z=a},96673:function(n,e,t){"use strict";var o=t(64836);e.Z=void 0;var r=o(t(64938)),i=t(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M14.17 3H8v14h11V7.83L14.17 3zm2.33 12h-6v-2h6v2zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2v2z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14v2zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7h-2zm2 6h-6v2h6v-2zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7l-6-6zm4 16H8V3h6.17L19 7.83V17z"},"1")],"DifferenceTwoTone");e.Z=a},90918:function(n,e,t){"use strict";t.d(e,{M:function(){return S}});var o=t(67294),r=t(45697),i=function(){return i=Object.assign||function(n){for(var e,t=1,o=arguments.length;t0?setTimeout(a,o):a()},reinitialize:function(){for(var e=n.pop();null!=e;e=n.pop())e.deleteScripts()}}}(),C=function(n){var e=n;return e&&e.tinymce?e.tinymce:null},E=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])},n(e,t)};return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),k=function(){return k=Object.assign||function(n){for(var e,t=1,o=arguments.length;t{const r=o(e);return n(r,t)}},66675:function(e){e.exports=(e,t={})=>{const r=t.char||" ",n=t.count||2;let o=0;const i=[];return e.reverse().reduce(((e,t)=>{i.length&&o&&i[o]&&i[o]===t.substring(1,i[o].length+1)&&(i.splice(o,1),o--);const c=[`${r.repeat(o?o*n:0)}${t}`,...e];return"e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{const r=t(e).split("\n"),n=[];let o="";for(let t=0;t")?(n.push(`${o}${e.slice(0,-2)} />`),o=""):e.endsWith(">")?(n.push(`${o}${e.startsWith(">")||e.startsWith("<")?"":" "}${e}`),o=""):o+=o.length?` ${e}`:e}return n},removeEmptyLines:t}},64998:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},31571:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},31325:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});const n=(0,r(45711).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},63764:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};g.initial(e),g.handler(t);var r={current:e},n=d(b)(r,t),o=d(y)(r),i=d(g.changes)(e),c=d(m)(r);function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return g.selector(e),e(r.current)}function a(e){f(n,o,i,c)(e)}return[u,a]}},M=w,j={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};var O=function(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),i=0;i{n.current=!1}:e,t)};function ee(){}function te(e,t,r,n){return function(e,t){return e.editor.getModel(re(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?re(e,n):void 0)}(e,t,r,n)}function re(e,t){return e.Uri.parse(t)}var ne=function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:s="Loading...",options:f={},height:d="100%",width:h="100%",className:v,wrapperProps:p={},beforeMount:g=ee,onMount:m=ee}){let[y,b]=(0,U.useState)(!1),[w,M]=(0,U.useState)(!0),j=(0,U.useRef)(null),O=(0,U.useRef)(null),z=(0,U.useRef)(null),E=(0,U.useRef)(m),k=(0,U.useRef)(g),H=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(O.current=e)&&M(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>j.current?function(){let e=j.current?.getModel();u||e?.original?.dispose(),a||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()})),X((()=>{if(j.current&&O.current){let t=j.current.getOriginalEditor(),o=te(O.current,e||"",n||r||"text",i||"");o!==t.getModel()&&t.setModel(o)}}),[i],y),X((()=>{if(j.current&&O.current){let e=j.current.getModifiedEditor(),n=te(O.current,t||"",o||r||"text",c||"");n!==e.getModel()&&e.setModel(n)}}),[c],y),X((()=>{let e=j.current.getModifiedEditor();e.getOption(O.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[t],y),X((()=>{j.current?.getModel()?.original.setValue(e||"")}),[e],y),X((()=>{let{original:e,modified:t}=j.current.getModel();O.current.editor.setModelLanguage(e,n||r||"text"),O.current.editor.setModelLanguage(t,o||r||"text")}),[r,n,o],y),X((()=>{O.current?.editor.setTheme(l)}),[l],y),X((()=>{j.current?.updateOptions(f)}),[f],y);let V=(0,U.useCallback)((()=>{if(!O.current)return;k.current(O.current);let u=te(O.current,e||"",n||r||"text",i||""),a=te(O.current,t||"",o||r||"text",c||"");j.current?.setModel({original:u,modified:a})}),[r,t,o,e,n,i,c]),x=(0,U.useCallback)((()=>{!H.current&&z.current&&(j.current=O.current.editor.createDiffEditor(z.current,{automaticLayout:!0,...f}),V(),O.current?.editor.setTheme(l),b(!0),H.current=!0)}),[f,l,V]);return(0,U.useEffect)((()=>{y&&E.current(j.current,O.current)}),[y]),(0,U.useEffect)((()=>{!w&&!y&&x()}),[w,y,x]),U.createElement(K,{width:h,height:d,isEditorReady:y,loading:s,_ref:z,className:v,wrapperProps:p})};(0,U.memo)(ne);var oe=function(e){let t=(0,U.useRef)();return(0,U.useEffect)((()=>{t.current=e}),[e]),t.current},ie=new Map;var ce=function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:o,path:i,theme:c="light",line:u,loading:a="Loading...",options:l={},overrideServices:s={},saveViewState:f=!0,keepCurrentModel:d=!1,width:h="100%",height:v="100%",className:p,wrapperProps:g={},beforeMount:m=ee,onMount:y=ee,onChange:b,onValidate:w=ee}){let[M,j]=(0,U.useState)(!1),[O,z]=(0,U.useState)(!0),E=(0,U.useRef)(null),k=(0,U.useRef)(null),H=(0,U.useRef)(null),V=(0,U.useRef)(y),x=(0,U.useRef)(m),P=(0,U.useRef)(),T=(0,U.useRef)(n),R=oe(i),S=(0,U.useRef)(!1),L=(0,U.useRef)(!1);Q((()=>{let e=F.init();return e.then((e=>(E.current=e)&&z(!1))).catch((e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e))),()=>k.current?(P.current?.dispose(),d?f&&ie.set(i,k.current.saveViewState()):k.current.getModel()?.dispose(),void k.current.dispose()):e.cancel()})),X((()=>{let c=te(E.current,e||n||"",t||o||"",i||r||"");c!==k.current?.getModel()&&(f&&ie.set(R,k.current?.saveViewState()),k.current?.setModel(c),f&&k.current?.restoreViewState(ie.get(i)))}),[i],M),X((()=>{k.current?.updateOptions(l)}),[l],M),X((()=>{!k.current||void 0===n||(k.current.getOption(E.current.editor.EditorOption.readOnly)?k.current.setValue(n):n!==k.current.getValue()&&(L.current=!0,k.current.executeEdits("",[{range:k.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),k.current.pushUndoStop(),L.current=!1))}),[n],M),X((()=>{let e=k.current?.getModel();e&&o&&E.current?.editor.setModelLanguage(e,o)}),[o],M),X((()=>{void 0!==u&&k.current?.revealLine(u)}),[u],M),X((()=>{E.current?.editor.setTheme(c)}),[c],M);let C=(0,U.useCallback)((()=>{if(H.current&&E.current&&!S.current){x.current(E.current);let a=i||r,d=te(E.current,n||e||"",t||o||"",a||"");k.current=E.current?.editor.create(H.current,{model:d,automaticLayout:!0,...l},s),f&&k.current.restoreViewState(ie.get(a)),E.current.editor.setTheme(c),void 0!==u&&k.current.revealLine(u),j(!0),S.current=!0}}),[e,t,r,n,o,i,l,s,f,c,u]);return(0,U.useEffect)((()=>{M&&V.current(k.current,E.current)}),[M]),(0,U.useEffect)((()=>{!O&&!M&&C()}),[O,M,C]),T.current=n,(0,U.useEffect)((()=>{M&&b&&(P.current?.dispose(),P.current=k.current?.onDidChangeModelContent((e=>{L.current||b(k.current.getValue(),e)})))}),[M,b]),(0,U.useEffect)((()=>{if(M){let e=E.current.editor.onDidChangeMarkers((e=>{let t=k.current.getModel()?.uri;if(t&&e.find((e=>e.path===t.path))){let e=E.current.editor.getModelMarkers({resource:t});w?.(e)}}));return()=>{e?.dispose()}}return()=>{}}),[M,w]),U.createElement(K,{width:h,height:v,isEditorReady:M,loading:a,_ref:H,className:p,wrapperProps:g})};(0,U.memo)(ce)}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/1522-ce4ccdc1c57d7ec8.js b/dsql-app/.local_dist/static/chunks/1522-ce4ccdc1c57d7ec8.js new file mode 100644 index 0000000..055ffa7 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/1522-ce4ccdc1c57d7ec8.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1522],{93813:(n,e,t)=>{"use strict";t.d(e,{K:()=>O});var o=t(96540),r=t(5556),i=function(){return(i=Object.assign||function(n){for(var e,t=1,o=arguments.length;t0?setTimeout(a,o):a()},reinitialize:function(){for(var e=n.pop();null!=e;e=n.pop())e.deleteScripts()}}}(),k=function(n){return n&&n.tinymce?n.tinymce:null},S=function(){var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])})(e,t)};return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}}(),w=function(){return(w=Object.assign||function(n){for(var e,t=1,o=arguments.length;t{"use strict";var o=t(24994);e.A=void 0;var r=o(t(44888)),i=t(74848);e.A=(0,r.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},75238:(n,e,t)=>{"use strict";var o=t(24994);e.A=void 0;var r=o(t(44888)),i=t(74848);e.A=(0,r.default)([(0,i.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},2694:(n,e,t)=>{"use strict";var o=t(6925);function r(){}function i(){}i.resetWarningCache=r,n.exports=function(){function n(n,e,t,r,i,a){if(a!==o){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:r};return t.PropTypes=t,t}},5556:(n,e,t)=>{n.exports=t(2694)()},6925:n=>{"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/194-6fbe0e1d9cd931e6.js b/dsql-app/.local_dist/static/chunks/194-6fbe0e1d9cd931e6.js deleted file mode 100644 index c452f80..0000000 --- a/dsql-app/.local_dist/static/chunks/194-6fbe0e1d9cd931e6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[194],{61781:function(e,a,t){t.d(a,{Z:function(){return s}});var n=t(85893),l=(t(67294),t(42065));function s(){return(0,n.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:function(e){window.history.back()},children:(0,n.jsx)(l.Z,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},79230:function(e,a,t){t.d(a,{Z:function(){return s}});var n=t(85893),l=(t(67294),t(76915));function s(e){var a=e.slugText,t=e.justIcon,s=e.title,i=e.outlined;return(0,n.jsxs)("div",{className:"button small-text"+(i?" outlined gray bg-white":" ghost light-gray"),onClick:function(e){navigator.clipboard.writeText(a).then((function(){alert('Copied: "'.concat(a,'"'))}))},style:i?void 0:{padding:0},children:[(0,n.jsx)(l.Z,{size:i?15:20}),!t&&(0,n.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:s||"Copy Slug"})]})}},4423:function(e,a,t){t.d(a,{Z:function(){return x}});var n=t(828),l=t(85893),s=t(67294),i=t(79230),o=t(96355),d=t(87851),c=t(5467),r=t(57632),u=t(85541),m=t(86729),h=t(95264),f=t(8971),b=t(58261);function x(e){var a,t,d=e.database,c=(e.query,e.confirmedDelegetedUser),r=e.user,u=d.active_clone,m=(d.active_clone_parent_db,null===c||void 0===c?void 0:c.delegated),h=(null===c||void 0===c||null===(a=c.priviledges)||void 0===a||a.match(/Edit Tables/i),null===c||void 0===c||null===(t=c.priviledges)||void 0===t||t.match(/Delete Tables/i),(0,n.Z)(s.useState(null),2));h[0],h[1];return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:d.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),(null===c||void 0===c?void 0:c.delegated)&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:c.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:c.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+((null===c||void 0===c?void 0:c.delegated)?" -mt-3":""),children:d.db_name})]}),(0,l.jsx)(f.Z,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null===r||void 0===r?void 0:r.id,"/databases/").concat(d.db_slug,"/edit-database"),className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!u&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("a",{href:"/admin/".concat(null===r||void 0===r?void 0:r.id,"/databases/add-database?duplicate=").concat(d.db_full_name),className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:"/admin/".concat(null===r||void 0===r?void 0:r.id,"/databases/").concat(d.db_slug,"/schema"),className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null===r||void 0===r?void 0:r.id,"/databases/").concat(d.db_slug,"/users"),className:"button plain-text more-padding normal-weight",children:"Database Users"}),!m&&(0,l.jsx)(v,{database:d,user:r})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(i.Z,{slugText:d.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(i.Z,{slugText:d.db_full_name,title:"Full DB Name"})}),!m&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:"/admin/".concat(null===r||void 0===r?void 0:r.id,"/databases/").concat(d.db_slug,"/shell"),className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(b.Z,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(o.Z,{})]})}function v(e){var a=e.database,t=e.user,i=(0,n.Z)(s.useState(!1),2),o=i[0],f=i[1],b=s.useRef();return(0,l.jsxs)(s.Fragment,{children:[o&&(0,l.jsx)(h.Z,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null===t||void 0===t?void 0:t.id,"/databases/").concat(a.db_slug,"/shell"),className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),1==(null===a||void 0===a?void 0:a.remote_connected)?(0,l.jsx)(g,{database:a}):(0,l.jsx)("a",{href:"/admin/".concat(null===t||void 0===t?void 0:t.id,"/databases/").concat(a.db_slug,"/connect"),className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:function(e){(0,d.Z)({url:"/api/exportDatabase?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".sql")})},children:[(0,l.jsx)(c.Z,{fontSize:"small",color:"action",className:"opacity-50"}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:b,className:"hidden"}),(0,l.jsxs)("button",{className:"button green outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:function(e){var t;b.current&&(b.current.addEventListener("change",(function(e){var t,n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){var l=new FileReader;l.onload=function(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.result;n||alert("Invalid File!");try{var l=null===n||void 0===n?void 0:n.toString();if(!l)throw new Error("Invalid File!");var s=JSON.parse(l);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(f(!0),(0,m.Z)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:s,dbId:a.id}},!0).then((function(e){e.success&&window.location.reload()})).finally((function(){f(!1)})))}catch(i){alert("Invalid File. Please enter a valid JSON file")}},l.readAsText(n)}else alert("No File Selected")})),null===(t=b.current)||void 0===t||t.click())},children:[(0,l.jsx)(u.Z,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button secondary outlined more-padding normal-weight w-full rounded-none",onClick:function(e){(0,d.Z)({url:"/api/downloadDatabaseSchema?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".json")})},children:[(0,l.jsx)(r.Z,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function g(e){var a=e.database;return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:function(e){window.confirm("Disconnect this Database from the remote host?")&&(0,m.Z)("/api/connect/disconnect",{method:"POST",body:{dbId:a.id}},!0).then((function(e){e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))}))},children:"Disconnect"})}},87851:function(e,a,t){function n(e){var a=e.url,t=e.fileName,n=e.setLoading;n&&n(!0),fetch(a,{method:"GET",headers:{"x-csrf-auth":localStorage.getItem("csrf")}}).then((function(e){return e.body})).then((function(e){var a=null===e||void 0===e?void 0:e.getReader();if(a)return new ReadableStream({start:function(e){return function t(){return null===a||void 0===a?void 0:a.read().then((function(a){var n=a.done,l=a.value;if(!n)return e.enqueue(l),t();e.close()}))}()}})})).then((function(e){return new Response(e)})).then((function(e){return e.blob()})).then((function(e){return URL.createObjectURL(e)})).then((function(e){var a=document.createElement("a");a.href=e,a.download=t,a.style.display="none",document.body.appendChild(a),a.click(),URL.revokeObjectURL(e),document.body.removeChild(a),setTimeout((function(){n&&n(!1)}),1e3)})).catch((function(e){console.log(e),setTimeout((function(){n&&n(!1)}),1e3)}))}t.d(a,{Z:function(){return n}})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/1950-50556c64bfd6a337.js b/dsql-app/.local_dist/static/chunks/1950-50556c64bfd6a337.js new file mode 100644 index 0000000..cc907bd --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/1950-50556c64bfd6a337.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1950],{41301:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(74848),l=s(62027);function i(e){let{selectOptions:t,name:s,onChangeHandler:i,required:r,setAlert:n,title:c,defaultValue:o,info:d,id:h}=e;try{function p(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),s=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!s.classList.contains("hidden")){s.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&s.classList.contains("hidden"))){if(!t){s.classList.add("hidden");return}if(s.classList.contains("hidden")){s.classList.remove("hidden");return}s.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[c&&(0,a.jsxs)("label",{htmlFor:s,children:[c,r?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:s,id:h||s,className:"w-full bg-white",required:r,onChange:e=>{n&&n(null),e.target.classList.remove("warning"),i&&i(e)},defaultValue:o||void 0,children:t.map((e,t)=>{let{payload:s,title:l}=e;return(0,a.jsx)("option",{value:s,selected:!!e.default,children:l},t+1)})}),(0,a.jsx)(l.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:p,onMouseLeave:p,onClick:p,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:d})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}s(96540)},79285:(e,t,s)=>{s(74848),s(96540)},35681:(e,t,s)=>{s.d(t,{A:()=>n});var a=s(74848),l=s(96540),i=s(51105),r=s(87220);function n(e){let{content:t,language:s,style:n,showCopy:c}=e,[o,d]=l.useState(!1),h=()=>{d(!0)},p=(e,t)=>{"clickaway"!==t&&d(!1)},x=(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("button",{className:"outlined gray",style:{border:"none",padding:"2px",width:"20px",height:"20px",color:"white"},onClick:p,children:"✖"})}),u={};return(0,a.jsxs)("pre",{className:"language-".concat(s||"javascript"," w-auto overflow-hidden skip-js code-block relative max-w-4xl flex items-center justify-center"),style:n?{...n,...u}:u,children:[(0,a.jsx)("code",{className:"w-auto px-10",style:{wordBreak:"break-all"},children:t}),(0,a.jsx)("button",{className:"outlined copy-code "+(c?"relative show":" absolute right-2 z-20 hover:opacity-50"),style:{padding:"2px",border:"none"},onClick:e=>{navigator.clipboard.writeText(t).then(()=>{h()})},children:(0,a.jsx)(r.A,{className:"text-white",size:20})}),(0,a.jsx)(i.A,{open:o,autoHideDuration:2e3,onClose:p,children:(0,a.jsxs)("div",{className:"h-full text-white px-4 py-2 justify-between rounded",style:{maxWidth:"250px",width:"250px",backgroundColor:"#0b8862"},children:[(0,a.jsx)("span",{children:"Code Copied!"}),x]})})]})}},16512:(e,t,s)=>{var a=s(24994);t.A=void 0;var l=a(s(44888)),i=s(74848);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},48144:(e,t,s)=>{var a=s(24994);t.A=void 0;var l=a(s(44888)),i=s(74848);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,i.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,i.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,i.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,i.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},73182:(e,t,s)=>{var a=s(24994);t.A=void 0;var l=a(s(44888)),i=s(74848);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},46051:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(95737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2016-4bbb027201c6a476.js b/dsql-app/.local_dist/static/chunks/2016-4bbb027201c6a476.js new file mode 100644 index 0000000..a4c133a --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/2016-4bbb027201c6a476.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2016],{2016:(e,s,l)=>{l.d(s,{A:()=>v});var a=l(74848),r=l(96540),n=l(13368),t=l.n(n),i=l(61638),d=l(97206),c=l(94909),x=l(68622),o=l(2750),h=l(87296),u=l(6831),m=l(42595),j=l(14858);function p(e){let[s,l]=r.useState(!0);return(0,a.jsxs)("aside",{className:"aside"+(s?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:s?"250px":"300px",zIndex:800},children:[(0,a.jsx)(i.A,{adminAside:!0,collapseAsideMobile:s,setCollapseAsideMobile:l}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(s?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,a.jsx)(d.A,{size:20}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,a.jsx)(c.A,{size:20}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,a.jsx)(x.A,{size:20}),(0,a.jsx)("span",{children:"Error Logs"})]}),(0,a.jsxs)("a",{href:"/su/servers","data-currentlink":"/su/servers",children:[(0,a.jsx)(o.A,{size:20}),(0,a.jsx)("span",{children:"Servers"})]}),(0,a.jsxs)("a",{href:"/su/load-balancing","data-currentlink":"/su/load-balancing",children:[(0,a.jsx)(h.A,{size:20}),(0,a.jsx)("span",{children:"Load Balancing"})]}),!1,(0,a.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,a.jsx)(u.A,{size:20}),(0,a.jsx)("span",{children:"Backups"})]}),(0,a.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,a.jsx)(m.A,{size:20}),(0,a.jsx)("span",{children:"Console"})]}),(0,a.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,a.jsx)(j.A,{size:20}),(0,a.jsx)("span",{children:"Env"})]})]})]})}var f=l(74819),g=l(62027);function b(e){let{user:s,extraHeaderContent:l}=e,[n,t]=r.useState(s||null);return r.useEffect(()=>{(null==s?void 0:s.logged_in_status)&&t(s||null)},[s]),(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,a.jsx)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:(0,a.jsx)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,a.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,a.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,a.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,a.jsx)("span",{children:(0,a.jsx)("b",{children:"Super User"})}),(0,a.jsx)(g.A,{size:20}),(0,a.jsx)("div",{className:"dropdown",children:(0,a.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)(f.A,{})}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var w=l(26709);function v(e){let{children:s,head:l,user:n}=e;return r.useEffect(()=>{let e=document.querySelectorAll("aside .main-links a");(0,w.A)({links:e})},[]),(0,a.jsxs)(r.Fragment,{children:[(0,a.jsxs)(t(),{children:[(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),l]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(p,{}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(b,{user:n}),(0,a.jsx)("div",{className:"flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900",children:s}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,a.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2378-3a97fbefe0f48bac.js b/dsql-app/.local_dist/static/chunks/2378-3a97fbefe0f48bac.js deleted file mode 100644 index 38818f6..0000000 --- a/dsql-app/.local_dist/static/chunks/2378-3a97fbefe0f48bac.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2378],{44114:function(e,t,l){l.d(t,{Z:function(){return a}});var n=l(85893),i=l(8971);l(67294);function a(e){var t=e.selectOptions,l=e.name,a=e.onChangeHandler,o=e.required,s=e.setAlert,r=e.title,d=e.defaultValue,c=e.info,u=e.id;try{var m=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||l.classList.contains("hidden")?e.type.match(/leave/i)&&l.classList.contains("hidden")||(t&&l.classList.contains("hidden")?l.classList.remove("hidden"):l.classList.add("hidden")):l.classList.add("hidden")}};return(0,n.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[r&&(0,n.jsxs)("label",{htmlFor:l,children:[r,o?"":" (optional)"]}),(0,n.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,n.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:o,onChange:function(e){s&&s(null),e.target.classList.remove("warning"),a&&a(e)},defaultValue:d||void 0,children:t.map((function(e,t){var l=e.payload,i=e.title;return(0,n.jsx)("option",{value:l,selected:!!e.default,children:i},t+1)}))}),(0,n.jsx)(i.Z,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,n.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:m,onMouseLeave:m,onClick:m,children:[(0,n.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,n.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,n.jsx)("span",{children:c})}),(0,n.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(h){return console.log("ERROR in FormSelect =>",h),(0,n.jsx)("div",{children:"Form Select Error"})}}},61781:function(e,t,l){l.d(t,{Z:function(){return a}});var n=l(85893),i=(l(67294),l(42065));function a(){return(0,n.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:function(e){window.history.back()},children:(0,n.jsx)(i.Z,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},424:function(e,t,l){l.d(t,{Z:function(){return o}});var n=l(828),i=l(85893),a=l(67294);function o(e){var t,l,o,s=e.confirmedDelegetedUser,r=e.linksArray,d=e.user,c=(null===s||void 0===s||s.delegated,null===s||void 0===s||null===(t=s.priviledges)||void 0===t||t.match(/Edit Tables/i),null===s||void 0===s||null===(l=s.priviledges)||void 0===l||l.match(/Delete Tables/i),null===s||void 0===s||null===(o=s.priviledges)||void 0===o||o.match(/Create Tables/i),a.useState(r||null)),u=(0,n.Z)(c,2),m=u[0],h=u[1];return a.useEffect((function(){var e;if(!r){var t=window.location.pathname,l=t.split("/"),n=[];n.push({title:"Home",path:t.match(/admin/)?"/admin":"/"});null===(e=window.location.search)||void 0===e||e.match(/delegated=true/);l.forEach((function(e,t,l){(null===e||void 0===e?void 0:e.match(/./))&&1!=t&&(e.match(/^\d+$/)&&d||n.push({title:e,path:function(){for(var e="",n=0;nt||!i.match(/./)||(e+="/".concat(i))}return e}()}))})),h(n)}}),[]),m&&m[1]?(0,i.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:m.map((function(e,t,l){return t===m.length-1?(0,i.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,i.jsx)("span",{className:"opacity-20",children:"|"})]},t)}))}):(0,i.jsx)(a.Fragment,{})}},92378:function(e,t,l){l.d(t,{Z:function(){return F}});var n=l(828),i=l(85893),a=l(67294),o=l(27901),s=l(95264),r=l(90918),d=l(45449),c=l(64914),u=l(34999),m=l(96673),h=l(77533),v=l(54689),x=l(50594);function f(e){var t,l=e.targetElement,n=e.setOpenStyleModal;return l?(0,i.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,i.jsx)("button",{className:"w-10 h-10 plain-text",onClick:function(){n(!1)},children:(0,i.jsx)(x.Z,{})})]}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,i.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:function(e){var t,n=e.target;if(null===(t=e.key)||void 0===t?void 0:t.match(/enter/i)){var i,a,o=null===(i=n.closest(".add-css-block"))||void 0===i?void 0:i.children[0],s=null===(a=n.closest(".add-css-block"))||void 0===a?void 0:a.children[1],r=null===o||void 0===o?void 0:o.value,d=null===s||void 0===s?void 0:s.value;if(!(null===r||void 0===r?void 0:r.match(/./))||!(null===d||void 0===d?void 0:d.match(/./)))return;l.style[r]=d}}}),(0,i.jsx)("button",{onClick:function(e){var t,n,i=e.target,a=null===(t=i.closest(".add-css-block"))||void 0===t?void 0:t.children[0],o=null===(n=i.closest(".add-css-block"))||void 0===n?void 0:n.children[1],s=null===a||void 0===a?void 0:a.value,r=null===o||void 0===o?void 0:o.value;(null===s||void 0===s?void 0:s.match(/./))&&(null===r||void 0===r?void 0:r.match(/./))&&(l.style[s]=r)},children:"Add"})]}),(0,i.jsxs)("div",{className:"flex-wrap",children:[(0,i.jsx)("button",{onClick:function(e){l.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,i.jsx)("button",{onClick:function(e){l.style.display="flex",l.style.alignItems="center",l.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,i.jsx)("button",{onClick:function(e){l.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,i.jsx)("button",{onClick:function(e){l.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,i.jsx)("button",{onClick:function(e){l.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,i.jsx)("button",{onClick:function(e){l.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,i.jsx)("button",{onClick:function(e){l.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,i.jsx)("button",{onClick:function(e){l.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,i.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:function(e){var t,n,i=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){var a=null===i||void 0===i?void 0:i.value;if(!(null===a||void 0===a?void 0:a.match(/./)))return;l.classList.add(a)}}}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&l.classList.add(i)},children:"Add"}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&l.classList.remove(i)},className:"outlined",children:"Remove"})]}),(null===l||void 0===l||null===(t=l.nodeName)||void 0===t?void 0:t.match(/^a$/i))?(0,i.jsxs)(a.Fragment,{children:[(0,i.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,i.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,i.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:function(e){var t,n,i=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){var a=null===i||void 0===i?void 0:i.value;if(!(null===a||void 0===a?void 0:a.match(/./)))return;l.href=a}},defaultValue:null===l||void 0===l?void 0:l.href}),(0,i.jsx)("button",{onClick:function(e){var t,n=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0],i=null===n||void 0===n?void 0:n.value;(null===i||void 0===i?void 0:i.match(/./))&&(l.href=i)},children:"Add"})]})]}):(0,i.jsx)(a.Fragment,{})]}):null}function p(e){var t=e.targetElement,l=e.back;if(t){var n=t.nextElementSibling,i=t.previousElementSibling;!l&&n?n.after(t):l&&i&&i.before(t)}}function g(e){var t,l,n,i=e.editor,a=e.node,o=e.setTargetElement;i.getDoc().querySelectorAll(".target-node").forEach((function(e){e.classList.remove("target-node")}));var s=null===(t=i.getWin().getSelection())||void 0===t||null===(l=t.anchorNode)||void 0===l?void 0:l.parentElement,r=a||(s||null);r&&(null===r||void 0===r||null===(n=r.classList)||void 0===n||n.add("target-node"),o&&o(r))}var b=l(2896),j=l(75307),y=l(71685),w=l(90629),k=l(86729);function N(e){var t=e.targetElement,l=e.setTargetElement,o=e.editor,r=e.setOpenSnippetsModal,d=(0,n.Z)(a.useState(!0),2),c=d[0],u=d[1],m=(0,n.Z)(a.useState([]),2),h=m[0],v=m[1];return a.useEffect((function(){(0,k.Z)("/api/admin/docs/get-snippets",{method:"post",body:{}}).then((function(e){e.success&&(v(e.result),u(!1))}))}),[]),(0,i.jsxs)(w.Z,{className:"m-auto p-6 flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto relative",children:[(0,i.jsxs)("div",{className:"w-full justify-between",children:[(0,i.jsx)("span",{className:"text-xl",children:"Snippets"}),(0,i.jsx)("button",{className:"w-10 h-10 plain-text",onClick:function(){r(!1)},children:(0,i.jsx)(x.Z,{})})]}),(0,i.jsxs)("div",{className:"flex-wrap relative w-full min-h-[100px] items-start",children:[c&&(0,i.jsx)(s.Z,{}),h&&Array.isArray(h)&&h[0]&&h.map((function(e,n){return(0,i.jsxs)("div",{className:"flex flex-col w-full items-start p-4 border border-slate-200 border-solid rounded cursor-pointer hover:shadow-lg transition-all hover:bg-slate-100",onClick:function(n){if(t){var i=document.createElement("div");i.innerHTML=Object.values(e)[0];var a=i.firstChild;a&&(t.appendChild(a),g({editor:o,node:a,setTargetElement:l})),r(!1)}else o.insertContent(Object.values(e)[0],{}),r(!1)},children:[(0,i.jsx)("span",{className:"font-semibold text-lg",children:Object.keys(e)[0]}),(0,i.jsx)("div",{className:"w-full block border border-slate-300 border-solid rounded-sm",dangerouslySetInnerHTML:{__html:Object.values(e)[0]}})]},n)}))]})]})}var E=l(89798),C=l(84534),S=l(52521),Z=l(8317),T=l(51645);function L(e){var t=e.editorRef,l=(0,n.Z)(a.useState(null),2),o=l[0],s=l[1],r=(0,n.Z)(a.useState(!1),2),x=r[0],w=r[1],k=(0,n.Z)(a.useState(!1),2),L=k[0],A=k[1];return(0,i.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,i.jsxs)(d.Z,{column:!0,className:"gap-[1px]",children:[(0,i.jsx)("div",{onClick:function(){g({editor:t.current,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,i.jsx)(j.Z,{})}),(0,i.jsx)("div",{onClick:function(){p({targetElement:o,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,i.jsx)(T.Z,{})}),(0,i.jsx)("div",{onClick:function(){p({targetElement:o})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,i.jsx)(Z.Z,{})}),(0,i.jsx)("div",{onClick:function(){A(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(c.Z,{})}),(0,i.jsx)("div",{onClick:function(){w(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(u.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement;if(t.getWin(),l){var i=l.cloneNode(!0);i.nodeName.match(/html|document|body/i)||(l.insertAdjacentElement("afterend",i),l.classList.remove("target-node"),n(i))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(m.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=(t.getWin(),l);if(i&&!i.nodeName.match(/html|document|body/i)){var a=i.parentElement;a||(n(i),g({editor:t,node:i,setTargetElement:n})),(null===a||void 0===a?void 0:a.nodeName.match(/html|document|body/i))?(n(i),g({editor:t,node:i,setTargetElement:n})):a&&(n(a),g({editor:t,node:a,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(b.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=(t.getWin(),l);if(i){var a=i.children[0];a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(b.Z,{className:"rotate-180"})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=l;if(i){var a=i.previousElementSibling;a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(C.Z,{})}),(0,i.jsx)("div",{onClick:function(){!function(e){var t=e.editor,l=e.targetElement,n=e.setTargetElement,i=l;if(i){var a=i.nextElementSibling;a?(n(a),g({editor:t,node:a,setTargetElement:n})):(n(i),g({editor:t,node:i,setTargetElement:n}))}}({editor:t.current,targetElement:o,setTargetElement:s})},style:{width:"40px",height:"40px"},className:"button",children:(0,i.jsx)(E.Z,{})}),(0,i.jsx)("div",{onClick:function(){if(o){var e=o.parentNode;e.removeChild(o),g({editor:t.current,node:e,setTargetElement:s})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,i.jsx)(S.Z,{})}),(0,i.jsx)("div",{onClick:function(){t.current.getDoc().querySelectorAll(".target-node").forEach((function(e){e.classList.remove("target-node")})),s(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,i.jsx)(y.Z,{className:"rotate-180"})})]}),(0,i.jsx)(h.ZP,{open:x,onClose:function(){w(!1)},anchor:"right",children:(0,i.jsx)(f,{targetElement:o,setOpenStyleModal:w})}),(0,i.jsx)(v.Z,{open:L,onClose:function(){A(!1)},children:(0,i.jsx)(N,{targetElement:o,setTargetElement:s,editor:t.current,setOpenSnippetsModal:A})})]})}function A(e){e.user;var t=e.blockObject,l=e.placeholder,o=e.editorRef,s=e.height,d=e.extend,c=(0,n.Z)(a.useState(!1),2);c[0],c[1];return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(r.M,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:function(e,t){if(d){var l=t.getBody();l.style.padding="40px",l.className="RTE-DOCS"}o&&(o.current=t)},initialValue:t&&t.content?t.content:"",init:{height:s||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:d?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:d?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:l||"Type something ...",content_css:d?"/styles/tiny.css":void 0,statusbar:!!d}}),d&&o&&(0,i.jsx)(L,{editorRef:o})]})}var O,_=l(61781),R=l(44114),D=l(424);function F(e){var t=e.data,l=e.user,r=!!(null===t||void 0===t?void 0:t.title),d=(0,n.Z)(a.useState(!1),2),c=d[0],u=d[1],m=(0,n.Z)(a.useState(null===t||void 0===t?void 0:t.level),2),h=m[0],v=m[1],x=(0,n.Z)(a.useState(null===t||void 0===t?void 0:t.page_order),2),f=x[0],p=x[1],g=(0,n.Z)(a.useState(null),2),b=g[0],j=g[1],y=(0,n.Z)(a.useState(null),2),w=y[0],N=y[1],E=a.useRef(),C=a.useRef();return a.useEffect((function(){parseInt(h)>1?(window.clearTimeout(O),O=window.setTimeout((function(){(0,k.Z)("/api/admin/docs/grab-parent-pages",{method:"post",body:{pagesLevel:parseInt(h)-1,currentPageId:null===t||void 0===t?void 0:t.id}}).then((function(e){if(e.success&&e.result&&Array.isArray(e.result)&&e.result[0])if(j(e.result),t.parent_id){var l=e.result.filter((function(e){return e.id==t.parent_id}));l[0]?N(l[0]):N(e.result[0])}else N(e.result[0])}))}),500)):(j(null),N(null))}),[h]),(0,i.jsx)(a.Fragment,{children:(0,i.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,i.jsxs)("div",{className:"mb-1",children:[(0,i.jsx)(_.Z,{}),(0,i.jsx)("h2",{className:"text-xl m-0",children:r?"Update page":"Create a new Docs Page"})]}),(0,i.jsx)("div",{className:"mb-4",children:(0,i.jsx)(D.Z,{user:l})}),(0,i.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[c&&(0,i.jsx)(s.Z,{}),(0,i.jsxs)("form",{onSubmit:function(e){var l,n,i,a,o,s=function(e){var t=e.href;(null===t||void 0===t?void 0:t.match(/\~/))&&(e.href=t.replace(/.*?\~\//,"/")),(null===t||void 0===t?void 0:t.match(/\.\.\//))&&(e.href=t.replace(/.*?\.\.\//,"/"))};e.preventDefault(),u(!0);var d=e.target.title,c=null===(l=C.current)||void 0===l?void 0:l.getDoc(),m=null===(n=E.current)||void 0===n?void 0:n.getDoc();null===c||void 0===c||c.querySelectorAll(".target-node").forEach((function(e){return e.classList.remove("target-node")})),null===c||void 0===c||c.querySelectorAll("a").forEach((function(e){s(e)})),null===m||void 0===m||m.querySelectorAll("a").forEach((function(e){s(e)}));var v=null===(i=E.current)||void 0===i?void 0:i.getContent(),x=null===(a=C.current)||void 0===a?void 0:a.getBody().innerHTML,p=null===(o=C.current)||void 0===o?void 0:o.getBody().innerText,g={title:d.value,description:v,content:x,text_content:p,level:h,page_order:f};r&&(g.id=t.id),(null===w||void 0===w?void 0:w.id)&&(g.parent_id=w.id),(0,k.Z)("/api/admin/docs/".concat(r?"update-page":"add-page"),{method:"post",body:g}).then((function(e){e.success?window.location.reload():(alert("Operation Failed!"),setTimeout((function(){u(!1)}),1e3))}))},className:"flex flex-col gap-4 w-full",children:[(0,i.jsx)(o.Z,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:r?t.title:null}),(0,i.jsxs)("div",{className:"card no-hover",children:[(0,i.jsx)(o.Z,{numberText:!0,placeholder:"Level",defaultValue:r?h:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:v}),(0,i.jsx)(o.Z,{numberText:!0,placeholder:"Level",defaultValue:r?f:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:p}),b&&Array.isArray(b)&&(0,i.jsx)(R.Z,{selectOptions:b.map((function(e){return{title:e.title,payload:e.id,default:(null===w||void 0===w?void 0:w.id)==e.id}})),title:"Parent Page",required:!0,onChangeHandler:function(e){var t=b.filter((function(t){return t.id==e.target.value}));t[0]?N(t[0]):window.alert("No Matching parent page!")}})]}),(0,i.jsx)(A,{placeholder:"Describe this page briefly",editorRef:E,blockObject:r?{content:t.description}:null,height:200}),(0,i.jsx)(A,{placeholder:"Page Content",editorRef:C,blockObject:r?{content:t.content}:null,height:600,extend:!0}),(0,i.jsx)("button",{type:"submit",children:r?"Update Page":"Add Page"})]})]})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2452-ed265b549204d978.js b/dsql-app/.local_dist/static/chunks/2452-ed265b549204d978.js deleted file mode 100644 index 8d4e0ec..0000000 --- a/dsql-app/.local_dist/static/chunks/2452-ed265b549204d978.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2452],{75307:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89l.63 2.1zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10zm-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98-4.28-4.26z"}),"AdsClickTwoTone");t.Z=a},50027:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-3 0-1.55-1.22-2.86-2.79-2.96zm-5.76.96v3h-2.91v-3H8l4-4 4 4h-2.55z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"},"1")],"BackupTwoTone");t.Z=a},50594:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=a},64689:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M18 19h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M12 3 6 7.58V6H4v3.11L1 11.4l1.21 1.59L4 11.62V21h16v-9.38l1.79 1.36L23 11.4 12 3zm6 16h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58V19zM10 1c0 1.66-1.34 3-3 3-.55 0-1 .45-1 1H4c0-1.66 1.34-3 3-3 .55 0 1-.45 1-1h2z"},"1")],"CottageTwoTone");t.Z=a},52521:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M8 9h8v10H8z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m15.5 4-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"},"1")],"DeleteTwoTone");t.Z=a},71685:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4-3.6 8-8 8z"}),"DoDisturbAltTwoTone");t.Z=a},39269:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm1 13h-2v-2h2v2zm0-4h-2V7h2v6z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-1-5h2v2h-2zm0-8h2v6h-2z"},"1")],"ErrorTwoTone");t.Z=a},2896:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M17 5h-2V3h2v2zm-2 10v6l2.29-2.29 2.3 2.29L21 19.59l-2.29-2.29L21 15h-6zm4-6h2V7h-2v2zm0 4h2v-2h-2v2zm-8 8h2v-2h-2v2zM7 5h2V3H7v2zM3 17h2v-2H3v2zm2 4v-2H3c0 1.1.9 2 2 2zM19 3v2h2c0-1.1-.9-2-2-2zm-8 2h2V3h-2v2zM3 9h2V7H3v2zm4 12h2v-2H7v2zm-4-8h2v-2H3v2zm0-8h2V3c-1.1 0-2 .9-2 2z"}),"HighlightAltTwoTone");t.Z=a},28466:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M6 10v10h5.29c-.19-.63-.29-1.3-.29-2 0-3.87 3.13-7 7-7v-1H6z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M6 20V10h12v1c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.42-.6-.75-1.28-.97-2H6zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z"},"1"),(0,i.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32z"},"2")],"LockPersonTwoTone");t.Z=a},38544:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("circle",{cx:"9",cy:"8",r:"2",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M9 15c-2.7 0-5.8 1.29-6 2.01V18h12v-1c-.2-.71-3.3-2-6-2z",opacity:".3"},"1"),(0,i.jsx)("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"},"2")],"PeopleAltTwoTone");t.Z=a},89798:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M8 9.86v4.28L11.03 12z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M14.5 12 6 6v12l8.5-6zM8 9.86 11.03 12 8 14.14V9.86zM16 6h2v12h-2z"},"1")],"SkipNextTwoTone");t.Z=a},84534:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M16 14.14V9.86L12.97 12z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M6 6h2v12H6zm12 12V6l-8.5 6 8.5 6zm-2-3.86L12.97 12 16 9.86v4.28z"},"1")],"SkipPreviousTwoTone");t.Z=a},34999:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M15.22 4.75 7.87 7.79l4.96 11.96 7.35-3.05-4.96-11.95zM11 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"m3.87 11.18-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61l1.34.56v-9.03zm18.16 4.77L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6zm-9.2 3.8L7.87 7.79l7.35-3.04h.01l4.95 11.95-7.35 3.05z"},"1"),(0,i.jsx)("circle",{cx:"11",cy:"9",r:"1"},"2"),(0,i.jsx)("path",{d:"m9.33 21.75-3.45-8.34v6.34c0 1.1.9 2 2 2h1.45z"},"3")],"StyleTwoTone");t.Z=a},51903:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M4 18h16V8H4v10zm8-3h6v2h-6v-2zm-5.91-4.59L7.5 9l4 4-4 4-1.41-1.41L8.67 13l-2.58-2.59z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M12 15h6v2h-6z"},"1"),(0,i.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H4V8h16v10z"},"2"),(0,i.jsx)("path",{d:"m7.5 17 4-4-4-4-1.41 1.41L8.67 13l-2.58 2.59z"},"3")],"TerminalTwoTone");t.Z=a},51645:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"m18 4-3 3h2v13h2V7h2l-3-3zm-6.2 11.5v-5l2.2-.9V7.5L3 12.25v1.5l11 4.75v-2.1l-2.2-.9zM4.98 13 10 11.13v3.74L4.98 13z"}),"TextRotateUpTwoTone");t.Z=a},8317:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)((0,i.jsx)("path",{d:"M15.75 5h-1.5L9.5 16h2.1l.9-2.2h5l.9 2.2h2.1L15.75 5zm-2.62 7L15 6.98 16.87 12h-3.74zM6 20l3-3H7V4H5v13H3l3 3z"}),"TextRotateVerticalTwoTone");t.Z=a},64914:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(64938)),i=n(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M5 19h14V5H5v14zm7-12h6v2h-6V7zm-3 4h6v2H9v-2zm-3 4h6v2H6v-2z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M6 15h6v2H6zm6-8h6v2h-6zm-3 4h6v2H9z"},"1"),(0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"},"2")],"ViewTimelineTwoTone");t.Z=a},77533:function(e,t,n){n.d(t,{ZP:function(){return L}});var o=n(63366),r=n(87462),i=n(67294),a=n(90512),s=n(94780),l=n(54689),c=n(84527),d=n(46644),u=n(51705),p=n(2734),h=n(30577),v=n(5340),f=n(85893);const m=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x(e,t,n){var o;const r=function(e,t,n){const o=t.getBoundingClientRect(),r=n&&n.getBoundingClientRect(),i=(0,v.Z)(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const e=i.getComputedStyle(t);a=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(a&&"none"!==a&&"string"===typeof a){const e=a.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?r?`translateX(${r.right+s-o.left}px)`:`translateX(${i.innerWidth+s-o.left}px)`:"right"===e?r?`translateX(-${o.right-r.left-s}px)`:`translateX(-${o.left+o.width-s}px)`:"up"===e?r?`translateY(${r.bottom+l-o.top}px)`:`translateY(${i.innerHeight+l-o.top}px)`:r?`translateY(-${o.top-r.top+o.height-l}px)`:`translateY(-${o.top+o.height-l}px)`}(e,t,"function"===typeof(o=n)?o():o);r&&(t.style.webkitTransform=r,t.style.transform=r)}var Z=i.forwardRef((function(e,t){const n=(0,p.Z)(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},s={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:l,appear:Z=!0,children:g,container:b,direction:y="down",easing:E=a,in:k,onEnter:z,onEntered:T,onEntering:w,onExit:M,onExited:R,onExiting:P,style:C,timeout:S=s,TransitionComponent:j=c.ZP}=e,L=(0,o.Z)(e,m),A=i.useRef(null),H=(0,u.Z)(g.ref,A,t),N=e=>t=>{e&&(void 0===t?e(A.current):e(A.current,t))},V=N(((e,t)=>{x(y,e,b),(0,h.n)(e),z&&z(e,t)})),I=N(((e,t)=>{const o=(0,h.C)({timeout:S,style:C,easing:E},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",(0,r.Z)({},o)),e.style.transition=n.transitions.create("transform",(0,r.Z)({},o)),e.style.webkitTransform="none",e.style.transform="none",w&&w(e,t)})),D=N(T),B=N(P),F=N((e=>{const t=(0,h.C)({timeout:S,style:C,easing:E},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),x(y,e,b),M&&M(e)})),O=N((e=>{e.style.webkitTransition="",e.style.transition="",R&&R(e)})),$=i.useCallback((()=>{A.current&&x(y,A.current,b)}),[y,b]);return i.useEffect((()=>{if(k||"down"===y||"right"===y)return;const e=(0,d.Z)((()=>{A.current&&x(y,A.current,b)})),t=(0,v.Z)(A.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[y,k,b]),i.useEffect((()=>{k||$()}),[k,$]),(0,f.jsx)(j,(0,r.Z)({nodeRef:A,onEnter:V,onEntered:D,onEntering:I,onExit:F,onExited:O,onExiting:B,addEndListener:e=>{l&&l(A.current,e)},appear:Z,in:k,timeout:S},L,{children:(e,t)=>i.cloneElement(g,(0,r.Z)({ref:H,style:(0,r.Z)({visibility:"exited"!==e||k?void 0:"hidden"},C,g.props.style)},t))}))})),g=n(90629),b=n(98216),y=n(54502),E=n(2641),k=n(1588),z=n(34867);function T(e){return(0,z.Z)("MuiDrawer",e)}(0,k.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const w=["BackdropProps"],M=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],R=(e,t)=>{const{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},P=(0,E.ZP)(l.Z,{name:"MuiDrawer",slot:"Root",overridesResolver:R})((({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),C=(0,E.ZP)("div",{shouldForwardProp:E.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:R})({flex:"0 0 auto"}),S=(0,E.ZP)(g.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,b.Z)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,b.Z)(n.anchor)}`]]}})((({theme:e,ownerState:t})=>(0,r.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===t.anchor&&{left:0},"top"===t.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===t.anchor&&{right:0},"bottom"===t.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===t.anchor&&"temporary"!==t.variant&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},"top"===t.anchor&&"temporary"!==t.variant&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},"right"===t.anchor&&"temporary"!==t.variant&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},"bottom"===t.anchor&&"temporary"!==t.variant&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`}))),j={left:"right",right:"left",top:"down",bottom:"up"};var L=i.forwardRef((function(e,t){const n=(0,y.Z)({props:e,name:"MuiDrawer"}),l=(0,p.Z)(),c={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:d="left",BackdropProps:u,children:h,className:v,elevation:m=16,hideBackdrop:x=!1,ModalProps:{BackdropProps:g}={},onClose:E,open:k=!1,PaperProps:z={},SlideProps:R,TransitionComponent:L=Z,transitionDuration:A=c,variant:H="temporary"}=n,N=(0,o.Z)(n.ModalProps,w),V=(0,o.Z)(n,M),I=i.useRef(!1);i.useEffect((()=>{I.current=!0}),[]);const D=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?j[t]:t}(l,d),B=d,F=(0,r.Z)({},n,{anchor:B,elevation:m,open:k,variant:H},V),O=(e=>{const{classes:t,anchor:n,variant:o}=e,r={root:["root"],docked:[("permanent"===o||"persistent"===o)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,b.Z)(n)}`,"temporary"!==o&&`paperAnchorDocked${(0,b.Z)(n)}`]};return(0,s.Z)(r,T,t)})(F),$=(0,f.jsx)(S,(0,r.Z)({elevation:"temporary"===H?m:0,square:!0},z,{className:(0,a.Z)(O.paper,z.className),ownerState:F,children:h}));if("permanent"===H)return(0,f.jsx)(C,(0,r.Z)({className:(0,a.Z)(O.root,O.docked,v),ownerState:F,ref:t},V,{children:$}));const K=(0,f.jsx)(L,(0,r.Z)({in:k,direction:j[D],timeout:A,appear:I.current},R,{children:$}));return"persistent"===H?(0,f.jsx)(C,(0,r.Z)({className:(0,a.Z)(O.root,O.docked,v),ownerState:F,ref:t},V,{children:K})):(0,f.jsx)(P,(0,r.Z)({BackdropProps:(0,r.Z)({},u,g,{transitionDuration:A}),className:(0,a.Z)(O.root,O.modal,v),open:k,ownerState:F,onClose:E,hideBackdrop:x,ref:t},V,N,{children:K}))}))},54689:function(e,t,n){n.d(t,{Z:function(){return q}});var o=n(63366),r=n(87462),i=n(67294),a=n(90512),s=n(78987),l=n(33703),c=n(82690),d=n(59948),u=n(49064),p=n(30437),h=n(74161);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function f(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function m(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&v(e,r)}))}function x(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Z(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,c.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}((0,c.Z)(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${f(o)+e}px`;const t=(0,c.Z)(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${f(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=(0,c.Z)(o).body;else{const t=o.parentElement,n=(0,h.Z)(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const g=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);m(t,e.mount,e.modalRef,o,!0);const r=x(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=x(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Z(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=x(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&v(e.modalRef,t),m(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function b(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:a=g,closeAfterTransition:s=!1,onTransitionEnter:h,onTransitionExited:f,children:m,onClose:x,open:Z,rootRef:b}=e,y=i.useRef({}),E=i.useRef(null),k=i.useRef(null),z=(0,l.Z)(k,b),[T,w]=i.useState(!Z),M=function(e){return!!e&&e.props.hasOwnProperty("in")}(m);let R=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(R=!1);const P=()=>(y.current.modalRef=k.current,y.current.mount=E.current,y.current),C=()=>{a.mount(P(),{disableScrollLock:o}),k.current&&(k.current.scrollTop=0)},S=(0,d.Z)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,c.Z)(E.current).body;a.add(P(),e),k.current&&C()})),j=i.useCallback((()=>a.isTopModal(P())),[a]),L=(0,d.Z)((e=>{E.current=e,e&&(Z&&j()?C():k.current&&v(k.current,R))})),A=i.useCallback((()=>{a.remove(P(),R)}),[R,a]);i.useEffect((()=>()=>{A()}),[A]),i.useEffect((()=>{Z?S():M&&s||A()}),[Z,A,M,s,S]);const H=e=>t=>{var o;null==(o=e.onKeyDown)||o.call(e,t),"Escape"===t.key&&229!==t.which&&j()&&(n||(t.stopPropagation(),x&&x(t,"escapeKeyDown")))},N=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&x&&x(t,"backdropClick")};return{getRootProps:(t={})=>{const n=(0,p._)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=(0,r.Z)({},n,t);return(0,r.Z)({role:"presentation"},o,{onKeyDown:H(o),ref:z})},getBackdropProps:(e={})=>{const t=e;return(0,r.Z)({"aria-hidden":!0},t,{onClick:N(t),open:Z})},getTransitionProps:()=>({onEnter:(0,u.Z)((()=>{w(!1),h&&h()}),null==m?void 0:m.props.onEnter),onExited:(0,u.Z)((()=>{w(!0),f&&f(),s&&A()}),null==m?void 0:m.props.onExited)}),rootRef:z,portalRef:L,isTopModal:j,exited:T,hasTransition:M}}var y=n(94780),E=n(85893);const k=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function z(e){const t=[],n=[];return Array.from(e.querySelectorAll(k)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function T(){return!0}function w(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:a=z,isEnabled:s=T,open:d}=e,u=i.useRef(!1),p=i.useRef(null),h=i.useRef(null),v=i.useRef(null),f=i.useRef(null),m=i.useRef(!1),x=i.useRef(null),Z=(0,l.Z)(t.ref,x),g=i.useRef(null);i.useEffect((()=>{d&&x.current&&(m.current=!n)}),[n,d]),i.useEffect((()=>{if(!d||!x.current)return;const e=(0,c.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),m.current&&x.current.focus()),()=>{r||(v.current&&v.current.focus&&(u.current=!0,v.current.focus()),v.current=null)}}),[d]),i.useEffect((()=>{if(!d||!x.current)return;const e=(0,c.Z)(x.current),t=t=>{g.current=t,!o&&s()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(u.current=!0,h.current&&h.current.focus())},n=()=>{const t=x.current;if(null===t)return;if(!e.hasFocus()||!s()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==p.current&&e.activeElement!==h.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let n=[];if(e.activeElement!==p.current&&e.activeElement!==h.current||(n=a(x.current)),n.length>0){var r,i;const e=Boolean((null==(r=g.current)?void 0:r.shiftKey)&&"Tab"===(null==(i=g.current)?void 0:i.key)),t=n[0],o=n[n.length-1];"string"!==typeof t&&"string"!==typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,o,r,s,d,a]);const b=e=>{null===v.current&&(v.current=e.relatedTarget),m.current=!0};return(0,E.jsxs)(i.Fragment,{children:[(0,E.jsx)("div",{tabIndex:d?0:-1,onFocus:b,ref:p,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:Z,onFocus:e=>{null===v.current&&(v.current=e.relatedTarget),m.current=!0,f.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,E.jsx)("div",{tabIndex:d?0:-1,onFocus:b,ref:h,"data-testid":"sentinelEnd"})]})}var M=n(73935),R=n(73546),P=n(7960);const C=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[a,s]=i.useState(null),c=(0,l.Z)(i.isValidElement(n)?n.ref:null,t);if((0,R.Z)((()=>{r||s(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,r]),(0,R.Z)((()=>{if(a&&!r)return(0,P.Z)(t,a),()=>{(0,P.Z)(t,null)}}),[t,a,r]),r){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,E.jsx)(i.Fragment,{children:n})}return(0,E.jsx)(i.Fragment,{children:a?M.createPortal(n,a):a})}));var S=n(2641),j=n(54502),L=n(84527),A=n(2734),H=n(30577),N=n(51705);const V=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],I={entering:{opacity:1},entered:{opacity:1}};var D=i.forwardRef((function(e,t){const n=(0,A.Z)(),a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:u,onEnter:p,onEntered:h,onEntering:v,onExit:f,onExited:m,onExiting:x,style:Z,timeout:g=a,TransitionComponent:b=L.ZP}=e,y=(0,o.Z)(e,V),k=i.useRef(null),z=(0,N.Z)(k,c.ref,t),T=e=>t=>{if(e){const n=k.current;void 0===t?e(n):e(n,t)}},w=T(v),M=T(((e,t)=>{(0,H.n)(e);const o=(0,H.C)({style:Z,timeout:g,easing:d},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",o),e.style.transition=n.transitions.create("opacity",o),p&&p(e,t)})),R=T(h),P=T(x),C=T((e=>{const t=(0,H.C)({style:Z,timeout:g,easing:d},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),S=T(m);return(0,E.jsx)(b,(0,r.Z)({appear:l,in:u,nodeRef:k,onEnter:M,onEntered:R,onEntering:w,onExit:C,onExited:S,onExiting:P,addEndListener:e=>{s&&s(k.current,e)},timeout:g},y,{children:(e,t)=>i.cloneElement(c,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},I[e],Z,c.props.style),ref:z},t))}))})),B=n(1588),F=n(34867);function O(e){return(0,F.Z)("MuiBackdrop",e)}(0,B.Z)("MuiBackdrop",["root","invisible"]);const $=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],K=(0,S.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>(0,r.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})));var Y=i.forwardRef((function(e,t){var n,i,s;const l=(0,j.Z)({props:e,name:"MuiBackdrop"}),{children:c,className:d,component:u="div",components:p={},componentsProps:h={},invisible:v=!1,open:f,slotProps:m={},slots:x={},TransitionComponent:Z=D,transitionDuration:g}=l,b=(0,o.Z)(l,$),k=(0,r.Z)({},l,{component:u,invisible:v}),z=(e=>{const{classes:t,invisible:n}=e,o={root:["root",n&&"invisible"]};return(0,y.Z)(o,O,t)})(k),T=null!=(n=m.root)?n:h.root;return(0,E.jsx)(Z,(0,r.Z)({in:f,timeout:g},b,{children:(0,E.jsx)(K,(0,r.Z)({"aria-hidden":!0},T,{as:null!=(i=null!=(s=x.root)?s:p.Root)?i:u,className:(0,a.Z)(z.root,d,null==T?void 0:T.className),ownerState:(0,r.Z)({},k,null==T?void 0:T.ownerState),classes:z,ref:t,children:c}))}))}));function U(e){return(0,F.Z)("MuiModal",e)}(0,B.Z)("MuiModal",["root","hidden","backdrop"]);const W=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],X=(0,S.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>(0,r.Z)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),_=(0,S.ZP)(Y,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var q=i.forwardRef((function(e,t){var n,l,c,d,u,p;const h=(0,j.Z)({name:"MuiModal",props:e}),{BackdropComponent:v=_,BackdropProps:f,className:m,closeAfterTransition:x=!1,children:Z,container:g,component:k,components:z={},componentsProps:T={},disableAutoFocus:M=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:P=!1,disablePortal:S=!1,disableRestoreFocus:L=!1,disableScrollLock:A=!1,hideBackdrop:H=!1,keepMounted:N=!1,onBackdropClick:V,open:I,slotProps:D,slots:B}=h,F=(0,o.Z)(h,W),O=(0,r.Z)({},h,{closeAfterTransition:x,disableAutoFocus:M,disableEnforceFocus:R,disableEscapeKeyDown:P,disablePortal:S,disableRestoreFocus:L,disableScrollLock:A,hideBackdrop:H,keepMounted:N}),{getRootProps:$,getBackdropProps:K,getTransitionProps:Y,portalRef:q,isTopModal:G,exited:J,hasTransition:Q}=b((0,r.Z)({},O,{rootRef:t})),ee=(0,r.Z)({},O,{exited:J}),te=(e=>{const{open:t,exited:n,classes:o}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,y.Z)(r,U,o)})(ee),ne={};if(void 0===Z.props.tabIndex&&(ne.tabIndex="-1"),Q){const{onEnter:e,onExited:t}=Y();ne.onEnter=e,ne.onExited=t}const oe=null!=(n=null!=(l=null==B?void 0:B.root)?l:z.Root)?n:X,re=null!=(c=null!=(d=null==B?void 0:B.backdrop)?d:z.Backdrop)?c:v,ie=null!=(u=null==D?void 0:D.root)?u:T.root,ae=null!=(p=null==D?void 0:D.backdrop)?p:T.backdrop,se=(0,s.y)({elementType:oe,externalSlotProps:ie,externalForwardedProps:F,getSlotProps:$,additionalProps:{ref:t,as:k},ownerState:ee,className:(0,a.Z)(m,null==ie?void 0:ie.className,null==te?void 0:te.root,!ee.open&&ee.exited&&(null==te?void 0:te.hidden))}),le=(0,s.y)({elementType:re,externalSlotProps:ae,additionalProps:f,getSlotProps:e=>K((0,r.Z)({},e,{onClick:t=>{V&&V(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,a.Z)(null==ae?void 0:ae.className,null==f?void 0:f.className,null==te?void 0:te.backdrop),ownerState:ee});return N||I||Q&&!J?(0,E.jsx)(C,{ref:q,container:g,disablePortal:S,children:(0,E.jsxs)(oe,(0,r.Z)({},se,{children:[!H&&v?(0,E.jsx)(re,(0,r.Z)({},le)):null,(0,E.jsx)(w,{disableEnforceFocus:R,disableAutoFocus:M,disableRestoreFocus:L,isEnabled:G,open:I,children:i.cloneElement(Z,ne)})]}))}):null}))}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2793-4754da072494369e.js b/dsql-app/.local_dist/static/chunks/2793-4754da072494369e.js new file mode 100644 index 0000000..70a99c9 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/2793-4754da072494369e.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2793],{87296:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},6831:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},68622:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},97206:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},14858:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2750:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},42595:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},94909:(t,e,s)=>{"use strict";s.d(e,{A:()=>i});let i=(0,s(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},5044:()=>{},29195:t=>{var e;self,e=()=>(()=>{"use strict";var t={};return Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(t){this._terminal=t}dispose(){}fit(){let t=this.proposeDimensions();if(!t||!this._terminal||isNaN(t.cols)||isNaN(t.rows))return;let e=this._terminal._core;this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let t=this._terminal._core,e=t._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;let s=0===this._terminal.options.scrollback?0:t.viewport.scrollBarWidth,i=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(i.getPropertyValue("height")),n=Math.max(0,parseInt(i.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),a=r-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom")));return{cols:Math.max(2,Math.floor((n-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-s)/e.css.cell.width)),rows:Math.max(1,Math.floor(a/e.css.cell.height))}}},t})(),t.exports=e()},911:(t,e,s)=>{"use strict";function i(){let{onlyFirst:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new RegExp(["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?".concat("(?:\\u0007|\\u001B\\u005C|\\u009C)",")"),"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|"),t?void 0:"g")}s.d(e,{A:()=>i})},54787:(t,e,s)=>{"use strict";let i,r;s.d(e,{io:()=>tT});var n,o={};s.r(o),s.d(o,{Decoder:()=>tm,Encoder:()=>ty,PacketType:()=>n,protocol:()=>tf});let a=Object.create(null);a.open="0",a.close="1",a.ping="2",a.pong="3",a.message="4",a.upgrade="5",a.noop="6";let h=Object.create(null);Object.keys(a).forEach(t=>{h[a[t]]=t});let c={type:"error",data:"parser error"},l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),p="function"==typeof ArrayBuffer,u=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,d=({type:t,data:e},s,i)=>l&&e instanceof Blob?s?i(e):f(e,i):p&&(e instanceof ArrayBuffer||u(e))?s?i(e):f(new Blob([e]),i):i(a[t]+(e||"")),f=(t,e)=>{let s=new FileReader;return s.onload=function(){e("b"+(s.result.split(",")[1]||""))},s.readAsDataURL(t)};function y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t{let e=.75*t.length,s=t.length,i,r=0,n,o,a,h;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let c=new ArrayBuffer(e),l=new Uint8Array(c);for(i=0;i>4,l[r++]=(15&o)<<4|a>>2,l[r++]=(3&a)<<6|63&h;return c},b="function"==typeof ArrayBuffer,k=(t,e)=>{if("string"!=typeof t)return{type:"message",data:w(t,e)};let s=t.charAt(0);return"b"===s?{type:"message",data:v(t.substring(1),e)}:h[s]?t.length>1?{type:h[s],data:t.substring(1)}:{type:h[s]}:c},v=(t,e)=>b?w(_(t),e):{base64:!0,data:t},w=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,A=(t,e)=>{let s=t.length,i=Array(s),r=0;t.forEach((t,n)=>{d(t,!1,t=>{i[n]=t,++r===s&&e(i.join("\x1e"))})})},E=(t,e)=>{let s=t.split("\x1e"),i=[];for(let t=0;tt+e.length,0)}function O(t,e){if(t[0].length===e)return t.shift();let s=new Uint8Array(e),i=0;for(let r=0;rPromise.resolve().then(t):(t,e)=>e(t,0),C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function B(t,...e){return e.reduce((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e),{})}let S=C.setTimeout,N=C.clearTimeout;function L(t,e){e.useNativeTimers?(t.setTimeoutFn=S.bind(C),t.clearTimeoutFn=N.bind(C)):(t.setTimeoutFn=C.setTimeout.bind(C),t.clearTimeoutFn=C.clearTimeout.bind(C))}function q(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class P extends Error{constructor(t,e,s){super(t),this.description=e,this.context=s,this.type="TransportError"}}class j extends R{constructor(t){super(),this.writable=!1,L(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,s){return super.emitReserved("error",new P(t,e,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=k(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}(t);return e.length?"?"+e:""}}class M extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){E(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,A(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let D=!1;try{D="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let I=D;function U(){}class F extends M{constructor(t){if(super(t),"undefined"!=typeof location){let e="https:"===location.protocol,s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,e){let s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class V extends R{constructor(t,e,s){super(),this.createRequest=t,L(this,s),this._opts=s,this._method=s.method||"GET",this._uri=e,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var t;let e=B(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(e);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this._opts.cookieJar)||void 0===t||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null===(t=this._opts.cookieJar)||void 0===t||t.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"undefined"!=typeof document&&(this._index=V.requestsCount++,V.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=U,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete V.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function H(){for(let t in V.requests)V.requests.hasOwnProperty(t)&&V.requests[t].abort()}V.requestsCount=0,V.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",H):"function"==typeof addEventListener&&addEventListener("onpagehide"in C?"pagehide":"unload",H,!1));let z=function(){let t=W({xdomain:!1});return t&&null!==t.responseType}();class K extends F{constructor(t){super(t);let e=t&&t.forceBase64;this.supportsBinary=z&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new V(W,this.uri(),t)}}function W(t){let e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||I))return new XMLHttpRequest}catch(t){}if(!e)try{return new C[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let Y="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class J extends j{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,s=Y?{}:B(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,s)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{try{this.doWrite(s,t)}catch(t){}i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let $=C.WebSocket||C.MozWebSocket;class Q extends J{createSocket(t,e,s){return Y?new $(t,e,s):e?new $(t,e):new $(t)}doWrite(t,e){this.ws.send(e)}}class X extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let e=function(t,e){r||(r=new TextDecoder);let s=[],i=0,n=-1,o=!1;return new TransformStream({transform(a,h){for(s.push(a);;){if(0===i){if(1>T(s))break;let t=O(s,1);o=(128&t[0])==128,i=(n=127&t[0])<126?3:126===n?1:2}else if(1===i){if(2>T(s))break;let t=O(s,2);n=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),i=3}else if(2===i){if(8>T(s))break;let t=O(s,8),e=new DataView(t.buffer,t.byteOffset,t.length),r=e.getUint32(0);if(r>2097151){h.enqueue(c);break}n=0x100000000*r+e.getUint32(4),i=3}else{if(T(s)t){h.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=new TransformStream({transform(t,e){var s;s=s=>{let i;let r=s.length;if(r<126)new DataView((i=new Uint8Array(1)).buffer).setUint8(0,r);else if(r<65536){let t=new DataView((i=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,r)}else{let t=new DataView((i=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(r))}t.data&&"string"!=typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(s)},l&&t.data instanceof Blob?t.data.arrayBuffer().then(y).then(s):p&&(t.data instanceof ArrayBuffer||u(t.data))?s(y(t.data)):d(t,!1,t=>{i||(i=new TextEncoder),s(i.encode(t))})}});n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let o=()=>{s.read().then(({done:t,value:e})=>{t||(this.onPacket(e),o())}).catch(t=>{})};o();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e{i&&x(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this._transport)||void 0===t||t.close()}}let Z={websocket:Q,webtransport:X,polling:K},G=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function te(t){if(t.length>8e3)throw"URI too long";let e=t,s=t.indexOf("["),i=t.indexOf("]");-1!=s&&-1!=i&&(t=t.substring(0,s)+t.substring(s,i).replace(/:/g,";")+t.substring(i,t.length));let r=G.exec(t||""),n={},o=14;for(;o--;)n[tt[o]]=r[o]||"";return -1!=s&&-1!=i&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=function(t,e){let s=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&s.splice(0,1),"/"==e.slice(-1)&&s.splice(s.length-1,1),s}(0,n.path),n.queryKey=function(t,e){let s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,i){e&&(s[e]=i)}),s}(0,n.query),n}let ts="function"==typeof addEventListener&&"function"==typeof removeEventListener,ti=[];ts&&addEventListener("offline",()=>{ti.forEach(t=>t())},!1);class tr extends R{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){let s=te(t);e.hostname=s.host,e.secure="https"===s.protocol||"wss"===s.protocol,e.port=s.port,s.query&&(e.query=s.query)}else e.host&&(e.hostname=te(e.host).host);L(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},s=t.split("&");for(let t=0,i=s.length;t{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ti.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&tr.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",tr.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e=57344?s+=3:(i++,s+=4);return s}(s):Math.ceil(1.33*(s.byteLength||s.size))),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,x(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,s){return this._sendPacket("message",t,e,s),this}send(t,e,s){return this._sendPacket("message",t,e,s),this}_sendPacket(t,e,s,i){if("function"==typeof e&&(i=e,e=void 0),"function"==typeof s&&(i=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;let r={type:t,data:e,options:s};this.emitReserved("packetCreate",r),this.writeBuffer.push(r),i&&this.once("flush",i),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(tr.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ts&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=ti.indexOf(this._offlineEventListener);-1!==t&&ti.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}tr.protocol=4;class tn extends tr{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!s){if("pong"===t.type&&"probe"===t.data)this.upgrading=!0,this.emitReserved("upgrading",e),e&&(tr.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{s||"closed"===this.readyState||(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}));else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}}))};function r(){s||(s=!0,c(),e.close(),e=null)}let n=t=>{let s=Error("probe error: "+t);s.transport=e.name,r(),this.emitReserved("upgradeError",s)};function o(){n("transport closed")}function a(){n("socket closed")}function h(t){e&&t.name!==e.name&&r()}let c=()=>{e.removeListener("open",i),e.removeListener("error",n),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",i),e.once("error",n),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{s||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let s=0;sZ[t]).filter(t=>!!t)),super(t,s)}}to.protocol;let ta="function"==typeof ArrayBuffer,th=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,tc=Object.prototype.toString,tl="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===tc.call(Blob),tp="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===tc.call(File);function tu(t){return ta&&(t instanceof ArrayBuffer||th(t))||tl&&t instanceof Blob||tp&&t instanceof File}let td=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tf=5;!function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(n||(n={}));class ty{constructor(t){this.replacer=t}encode(t){return(t.type===n.EVENT||t.type===n.ACK)&&function t(e,s){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let s=0,i=e.length;s=0&&e.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(r),e.apply(this,t)};n.withError=!0,this.acks[t]=n}emitWithAck(t,...e){return new Promise((s,i)=>{let r=(t,e)=>t?i(t):s(e);r.withError=!0,e.push(r),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...i)=>{if(s===this._queue[0])return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...i)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:n.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(!(t.nsp!==this.nsp))switch(t.type){case n.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.EVENT:case n.BINARY_EVENT:this.onevent(t);break;case n.ACK:case n.BINARY_ACK:this.onack(t);break;case n.DISCONNECT:this.ondisconnect();break;case n.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,s=!1;return function(...i){s||(s=!0,e.packet({type:n.ACK,id:t,data:i}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let s=0;s0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-s:t+s}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tA extends R{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,L(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(s=e.randomizationFactor)&&void 0!==s?s:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let i=e.parser||o;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new to(this.uri,this.opts);let e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let i=tb(e,"open",function(){s.onopen(),t&&t()}),r=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},n=tb(e,"error",r);if(!1!==this._timeout){let t=this._timeout,s=this.setTimeoutFn(()=>{i(),r(Error("timeout")),e.close()},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(i),this.subs.push(n),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tb(t,"ping",this.onping.bind(this)),tb(t,"data",this.ondata.bind(this)),tb(t,"error",this.onerror.bind(this)),tb(t,"close",this.onclose.bind(this)),tb(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){x(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new tv(this,t,e),this.nsps[t]=s),s}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let s=0;st()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null===(s=this.engine)||void 0===s||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{!t.skipReconnect&&(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tE={};function tT(t,e){let s;"object"==typeof t&&(e=t,t=void 0);let i=function(t,e="",s){let i=t;s=s||"undefined"!=typeof location&&location,null==t&&(t=s.protocol+"//"+s.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?s.protocol+t:s.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==s?s.protocol+"//"+t:"https://"+t),i=te(t)),!i.port&&(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";let r=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+r+":"+i.port+e,i.href=i.protocol+"://"+r+(s&&s.port===i.port?"":":"+i.port),i}(t,(e=e||{}).path||"/socket.io"),r=i.source,n=i.id,o=i.path,a=tE[n]&&o in tE[n].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?s=new tA(r,e):(tE[n]||(tE[n]=new tA(r,e)),s=tE[n]),i.query&&!e.query&&(e.query=i.queryKey),s.socket(i.path,e)}Object.assign(tT,{Manager:tA,Socket:tv,io:tT,connect:tT})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2870-4390329ae1d5a1f2.js b/dsql-app/.local_dist/static/chunks/2870-4390329ae1d5a1f2.js deleted file mode 100644 index 6ee5021..0000000 --- a/dsql-app/.local_dist/static/chunks/2870-4390329ae1d5a1f2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2870],{96224:function(e,t,n){var a=n(64836);t.Z=void 0;var c=a(n(64938)),i=n(85893),r=(0,c.default)([(0,i.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,i.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,i.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,i.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");t.Z=r},42065:function(e,t,n){var a=n(64836);t.Z=void 0;var c=a(n(64938)),i=n(85893),r=(0,c.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");t.Z=r},88518:function(e,t,n){var a=n(64836);t.Z=void 0;var c=a(n(64938)),i=n(85893),r=(0,c.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");t.Z=r},57150:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},33587:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},72733:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(47568),c=n(97582),i=n(85893),r=n(67294),l=n(36718);n(25472);function o(e){e.user;var t=e.userImage,n=e.setUserImage,o=(e.database,e.className),s=r.useRef();return(0,i.jsxs)("div",{className:"card no-hover col"+(o?" "+o:""),children:[(0,i.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,i.jsx)("img",{src:t?"string"===typeof t?t:t.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:s,"data-imagepreview":"image"})}),(0,i.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,i.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:function(e){e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,i.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:function(){var e=(0,a.Z)((function(e){var t;return(0,c.__generator)(this,(function(a){switch(a.label){case 0:return[4,(0,l.Z)({imageInputFile:e.target.files[0],maxWidth:400})];case 1:return t=a.sent(),n(t),[2]}}))}));return function(t){return e.apply(this,arguments)}}()})]})]})}},25472:function(e,t,n){n.d(t,{Mw:function(){return l},ZP:function(){return r},j4:function(){return o}});var a=n(85893),c=n(41352),i=n(67294);function r(e){var t=e.children,n=e.title,r=e.data,l=e.fullPage,s=e.wrapperClasses,u=e.closePopupDispatch,d=e.wrapperStyle,p=e.noContainer;return l?(0,a.jsxs)("div",{className:"popup-bg overflow-hidden "+(s||""),"data-popupid":n||null,style:d,children:[p?(0,a.jsx)(i.Fragment,{children:t}):(0,a.jsx)("div",{className:"relative w-full h-full z-50","data-data":r?JSON.stringify(r):"",children:t}),(0,a.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:function(e){o(),u&&u()},children:(0,a.jsx)(c.Z,{color:"white",size:20})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:function(e){o(),u&&u()}})]}):(0,a.jsxs)("div",{className:"popup-bg","data-popupid":n||null,children:[p?(0,a.jsx)(i.Fragment,{children:t}):(0,a.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":r?JSON.stringify(r):"",children:[t,(0,a.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:function(e){o(),u&&u()},children:(0,a.jsx)("span",{className:"font-normal",children:"\u2716"})})]}),p&&(0,a.jsx)("button",{className:"gray popup-cancel-button",onClick:function(e){o(),u&&u()},children:(0,a.jsx)("span",{className:"font-normal",children:"\u2716"})}),(0,a.jsx)("div",{className:"popup-canceller",onClick:function(e){o(),u&&u()}})]})}function l(e,t){var n=document.querySelector("[data-popupid='".concat(e,"']"));n&&(n.style.display="flex",t&&t(n))}function o(e){document.querySelectorAll("[data-popupid]").forEach((function(e){e.style.display="none"})),e&&e()}},36718:function(e,t,n){n.d(t,{Z:function(){return i}});var a=n(47568),c=n(97582);function i(e){return r.apply(this,arguments)}function r(){return(r=(0,a.Z)((function(e){var t,n,a,i,r,l,o,s,u,d,p,h,f;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return t=e.imageInputFile,n=e.maxWidth,a=document.querySelector("[data-imagepreview='image']"),i=t.name.replace(/\..*/,""),o=document.createElement("canvas"),s=t.type,u=.95,d=n||null,null,p=t,h=URL.createObjectURL(p),(f=new Image).src=h,[4,new Promise((function(e,t){f.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},f.onload=function(){if(URL.revokeObjectURL(this.src),d){var t=d/f.naturalWidth;o.width=f.naturalWidth"']/g,J=RegExp(G.source),Y=RegExp(H.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/,en=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/[\\^$.*+?()[\]{}|]/g,on=RegExp(un.source),fn=/^\s+/,an=/\s/,cn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,sn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,vn=/\\(\\)?/g,_n=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,gn=/\w*$/,yn=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,bn=/^\[object .+?Constructor\]$/,wn=/^0o[0-7]+$/i,mn=/^(?:0|[1-9]\d*)$/,xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jn=/($^)/,An=/['\n\r\u2028\u2029\\]/g,kn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",On="\\u2700-\\u27bf",In="a-z\\xdf-\\xf6\\xf8-\\xff",En="A-Z\\xc0-\\xd6\\xd8-\\xde",Rn="\\ufe0e\\ufe0f",zn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Sn="['\u2019]",Cn="[\\ud800-\\udfff]",Wn="["+zn+"]",Ln="["+kn+"]",Un="\\d+",Bn="[\\u2700-\\u27bf]",Tn="["+In+"]",$n="[^\\ud800-\\udfff"+zn+Un+On+In+En+"]",Dn="\\ud83c[\\udffb-\\udfff]",Nn="[^\\ud800-\\udfff]",Mn="(?:\\ud83c[\\udde6-\\uddff]){2}",Fn="[\\ud800-\\udbff][\\udc00-\\udfff]",Pn="["+En+"]",qn="(?:"+Tn+"|"+$n+")",Zn="(?:"+Pn+"|"+$n+")",Kn="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Vn="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Gn="(?:"+Ln+"|"+Dn+")"+"?",Hn="[\\ufe0e\\ufe0f]?",Jn=Hn+Gn+("(?:\\u200d(?:"+[Nn,Mn,Fn].join("|")+")"+Hn+Gn+")*"),Yn="(?:"+[Bn,Mn,Fn].join("|")+")"+Jn,Qn="(?:"+[Nn+Ln+"?",Ln,Mn,Fn,Cn].join("|")+")",Xn=RegExp(Sn,"g"),nt=RegExp(Ln,"g"),tt=RegExp(Dn+"(?="+Dn+")|"+Qn+Jn,"g"),rt=RegExp([Pn+"?"+Tn+"+"+Kn+"(?="+[Wn,Pn,"$"].join("|")+")",Zn+"+"+Vn+"(?="+[Wn,Pn+qn,"$"].join("|")+")",Pn+"?"+qn+"+"+Kn,Pn+"+"+Vn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Un,Yn].join("|"),"g"),et=RegExp("[\\u200d\\ud800-\\udfff"+kn+Rn+"]"),ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,ft={};ft[B]=ft[T]=ft[$]=ft[D]=ft[N]=ft[M]=ft[F]=ft[P]=ft[q]=!0,ft[d]=ft[b]=ft[L]=ft[w]=ft[U]=ft[m]=ft[x]=ft[j]=ft[k]=ft[O]=ft[I]=ft[R]=ft[z]=ft[S]=ft[W]=!1;var at={};at[d]=at[b]=at[L]=at[U]=at[w]=at[m]=at[B]=at[T]=at[$]=at[D]=at[N]=at[k]=at[O]=at[I]=at[R]=at[z]=at[S]=at[C]=at[M]=at[F]=at[P]=at[q]=!0,at[x]=at[j]=at[W]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,st=parseInt,ht="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,pt="object"==typeof self&&self&&self.Object===Object&&self,vt=ht||pt||Function("return this")(),_t=t&&!t.nodeType&&t,gt=_t&&n&&!n.nodeType&&n,yt=gt&>.exports===_t,dt=yt&&ht.process,bt=function(){try{var n=gt&>.require&>.require("util").types;return n||dt&&dt.binding&&dt.binding("util")}catch(t){}}(),wt=bt&&bt.isArrayBuffer,mt=bt&&bt.isDate,xt=bt&&bt.isMap,jt=bt&&bt.isRegExp,At=bt&&bt.isSet,kt=bt&&bt.isTypedArray;function Ot(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function It(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function Wt(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function rr(n,t){for(var r=n.length;r--&&Ft(t,n[r],0)>-1;);return r}function er(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var ur=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function or(n){return"\\"+ct[n]}function fr(n){return et.test(n)}function ar(n){var t=-1,r=Array(n.size);return n.forEach((function(n,e){r[++t]=[e,n]})),r}function cr(n,t){return function(r){return n(t(r))}}function lr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"});var yr=function n(t){var r=(t=null==t?vt:yr.defaults(vt.Object(),t,yr.pick(vt,it))).Array,e=t.Date,an=t.Error,kn=t.Function,On=t.Math,In=t.Object,En=t.RegExp,Rn=t.String,zn=t.TypeError,Sn=r.prototype,Cn=kn.prototype,Wn=In.prototype,Ln=t["__core-js_shared__"],Un=Cn.toString,Bn=Wn.hasOwnProperty,Tn=0,$n=function(){var n=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Dn=Wn.toString,Nn=Un.call(In),Mn=vt._,Fn=En("^"+Un.call(Bn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pn=yt?t.Buffer:u,qn=t.Symbol,Zn=t.Uint8Array,Kn=Pn?Pn.allocUnsafe:u,Vn=cr(In.getPrototypeOf,In),Gn=In.create,Hn=Wn.propertyIsEnumerable,Jn=Sn.splice,Yn=qn?qn.isConcatSpreadable:u,Qn=qn?qn.iterator:u,tt=qn?qn.toStringTag:u,et=function(){try{var n=hi(In,"defineProperty");return n({},"",{}),n}catch(t){}}(),ct=t.clearTimeout!==vt.clearTimeout&&t.clearTimeout,ht=e&&e.now!==vt.Date.now&&e.now,pt=t.setTimeout!==vt.setTimeout&&t.setTimeout,_t=On.ceil,gt=On.floor,dt=In.getOwnPropertySymbols,bt=Pn?Pn.isBuffer:u,Dt=t.isFinite,Vt=Sn.join,dr=cr(In.keys,In),br=On.max,wr=On.min,mr=e.now,xr=t.parseInt,jr=On.random,Ar=Sn.reverse,kr=hi(t,"DataView"),Or=hi(t,"Map"),Ir=hi(t,"Promise"),Er=hi(t,"Set"),Rr=hi(t,"WeakMap"),zr=hi(In,"create"),Sr=Rr&&new Rr,Cr={},Wr=Di(kr),Lr=Di(Or),Ur=Di(Ir),Br=Di(Er),Tr=Di(Rr),$r=qn?qn.prototype:u,Dr=$r?$r.valueOf:u,Nr=$r?$r.toString:u;function Mr(n){if(ef(n)&&!Ko(n)&&!(n instanceof Zr)){if(n instanceof qr)return n;if(Bn.call(n,"__wrapped__"))return Ni(n)}return new qr(n)}var Fr=function(){function n(){}return function(t){if(!rf(t))return{};if(Gn)return Gn(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function Pr(){}function qr(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function Zr(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Kr(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function ce(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),f!==u)return f;if(!rf(n))return n;var s=Ko(n);if(s){if(f=function(n){var t=n.length,r=new n.constructor(t);t&&"string"==typeof n[0]&&Bn.call(n,"index")&&(r.index=n.index,r.input=n.input);return r}(n),!a)return zu(n,f)}else{var h=_i(n),p=h==j||h==A;if(Jo(n))return Au(n,a);if(h==I||h==d||p&&!i){if(f=c||p?{}:yi(n),!a)return c?function(n,t){return Su(n,vi(n),t)}(n,function(n,t){return n&&Su(t,Uf(t),n)}(f,n)):function(n,t){return Su(n,pi(n),t)}(n,ie(f,n))}else{if(!at[h])return i?n:{};f=function(n,t,r){var e=n.constructor;switch(t){case L:return ku(n);case w:case m:return new e(+n);case U:return function(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}(n,r);case B:case T:case $:case D:case N:case M:case F:case P:case q:return Ou(n,r);case k:return new e;case O:case S:return new e(n);case R:return function(n){var t=new n.constructor(n.source,gn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case z:return new e;case C:return u=n,Dr?In(Dr.call(u)):{}}var u}(n,h,a)}}o||(o=new Jr);var v=o.get(n);if(v)return v;o.set(n,f),cf(n)?n.forEach((function(e){f.add(ce(e,t,r,e,n,o))})):uf(n)&&n.forEach((function(e,u){f.set(u,ce(e,t,r,u,n,o))}));var _=s?u:(l?c?ii:ui:c?Uf:Lf)(n);return Et(_||n,(function(e,u){_&&(e=n[u=e]),re(f,u,ce(e,t,r,u,n,o))})),f}function le(n,t,r){var e=r.length;if(null==n)return!e;for(n=In(n);e--;){var i=r[e],o=t[i],f=n[i];if(f===u&&!(i in n)||!o(f))return!1}return!0}function se(n,t,r){if("function"!=typeof n)throw new zn(i);return Ci((function(){n.apply(u,r)}),t)}function he(n,t,r,e){var u=-1,i=Ct,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=Lt(t,Qt(r))),e?(i=Wt,o=!1):t.length>=200&&(i=nr,o=!1,t=new Hr(t));n:for(;++u-1},Vr.prototype.set=function(n,t){var r=this.__data__,e=ee(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Gr.prototype.clear=function(){this.size=0,this.__data__={hash:new Kr,map:new(Or||Vr),string:new Kr}},Gr.prototype.delete=function(n){var t=li(this,n).delete(n);return this.size-=t?1:0,t},Gr.prototype.get=function(n){return li(this,n).get(n)},Gr.prototype.has=function(n){return li(this,n).has(n)},Gr.prototype.set=function(n,t){var r=li(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Hr.prototype.add=Hr.prototype.push=function(n){return this.__data__.set(n,o),this},Hr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.clear=function(){this.__data__=new Vr,this.size=0},Jr.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Jr.prototype.get=function(n){return this.__data__.get(n)},Jr.prototype.has=function(n){return this.__data__.has(n)},Jr.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Vr){var e=r.__data__;if(!Or||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Gr(e)}return r.set(n,t),this.size=r.size,this};var pe=Lu(me),ve=Lu(xe,!0);function _e(n,t){var r=!0;return pe(n,(function(n,e,u){return r=!!t(n,e,u)})),r}function ge(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?de(f,t-1,r,e,u):Ut(u,f):e||(u[u.length]=f)}return u}var be=Uu(),we=Uu(!0);function me(n,t){return n&&be(n,t,Lf)}function xe(n,t){return n&&we(n,t,Lf)}function je(n,t){return St(t,(function(t){return Xo(n[t])}))}function Ae(n,t){for(var r=0,e=(t=wu(t,n)).length;null!=n&&rt}function Ee(n,t){return null!=n&&Bn.call(n,t)}function Re(n,t){return null!=n&&t in In(n)}function ze(n,t,e){for(var i=e?Wt:Ct,o=n[0].length,f=n.length,a=f,c=r(f),l=1/0,s=[];a--;){var h=n[a];a&&t&&(h=Lt(h,Qt(t))),l=wr(h.length,l),c[a]=!e&&(t||o>=120&&h.length>=120)?new Hr(a&&h):u}h=n[0];var p=-1,v=c[0];n:for(;++p=f?a:a*("desc"==r[e]?-1:1)}return n.index-t.index}(n,t,r)}))}function Ke(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&Jn.call(f,a,1),Jn.call(n,a,1);return n}function Ge(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;bi(u)?Jn.call(n,u,1):hu(n,u)}}return n}function He(n,t){return n+gt(jr()*(t-n+1))}function Je(n,t){var r="";if(!n||t<1||t>v)return r;do{t%2&&(r+=n),(t=gt(t/2))&&(n+=n)}while(t);return r}function Ye(n,t){return Wi(Ii(n,t,oa),n+"")}function Qe(n){return Qr(Pf(n))}function Xe(n,t){var r=Pf(n);return Bi(r,ae(t,0,r.length))}function nu(n,t,r,e){if(!rf(n))return n;for(var i=-1,o=(t=wu(t,n)).length,f=o-1,a=n;null!=a&&++ii?0:i+t),(e=e>i?i:e)<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var o=r(i);++u>>1,o=n[i];null!==o&&!sf(o)&&(r?o<=t:o=200){var c=t?null:Ju(n);if(c)return sr(c);o=!1,u=nr,a=new Hr}else a=t?[]:f;n:for(;++e=e?n:uu(n,t,r)}var ju=ct||function(n){return vt.clearTimeout(n)};function Au(n,t){if(t)return n.slice();var r=n.length,e=Kn?Kn(r):new n.constructor(r);return n.copy(e),e}function ku(n){var t=new n.constructor(n.byteLength);return new Zn(t).set(new Zn(n)),t}function Ou(n,t){var r=t?ku(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Iu(n,t){if(n!==t){var r=n!==u,e=null===n,i=n===n,o=sf(n),f=t!==u,a=null===t,c=t===t,l=sf(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&wi(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=In(t);++e-1?i[o?t[f]:f]:u}}function Nu(n){return ei((function(t){var r=t.length,e=r,o=qr.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new zn(i);if(o&&!a&&"wrapper"==fi(f))var a=new qr([],!0)}for(e=a?e:r;++e1&&b.reverse(),p&&la))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new Hr:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(cn,"{\n/* [wrapped with "+t+"] */\n")}(e,function(n,t){return Et(y,(function(r){var e="_."+r[0];t&r[1]&&!Ct(n,e)&&n.push(e)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(sn):[]}(e),r)))}function Ui(n){var t=0,r=0;return function(){var e=mr(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function Bi(n,t){var r=-1,e=n.length,i=e-1;for(t=t===u?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,oo(n,r)}));function po(n){var t=Mr(n);return t.__chain__=!0,t}function vo(n,t){return t(n)}var _o=ei((function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return fe(t,n)};return!(t>1||this.__actions__.length)&&e instanceof Zr&&bi(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:vo,args:[i],thisArg:u}),new qr(e,this.__chain__).thru((function(n){return t&&!n.length&&n.push(u),n}))):this.thru(i)}));var go=Cu((function(n,t,r){Bn.call(n,r)?++n[r]:oe(n,r,1)}));var yo=Du(qi),bo=Du(Zi);function wo(n,t){return(Ko(n)?Et:pe)(n,ci(t,3))}function mo(n,t){return(Ko(n)?Rt:ve)(n,ci(t,3))}var xo=Cu((function(n,t,r){Bn.call(n,r)?n[r].push(t):oe(n,r,[t])}));var jo=Ye((function(n,t,e){var u=-1,i="function"==typeof t,o=Go(n)?r(n.length):[];return pe(n,(function(n){o[++u]=i?Ot(t,n,e):Se(n,t,e)})),o})),Ao=Cu((function(n,t,r){oe(n,r,t)}));function ko(n,t){return(Ko(n)?Lt:Ne)(n,ci(t,3))}var Oo=Cu((function(n,t,r){n[r?0:1].push(t)}),(function(){return[[],[]]}));var Io=Ye((function(n,t){if(null==n)return[];var r=t.length;return r>1&&wi(n,t[0],t[1])?t=[]:r>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),Ze(n,de(t,1),[])})),Eo=ht||function(){return vt.Date.now()};function Ro(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,Qu(n,s,u,u,u,u,t)}function zo(n,t){var r;if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var So=Ye((function(n,t,r){var e=1;if(r.length){var u=lr(r,ai(So));e|=c}return Qu(n,e,t,r,u)})),Co=Ye((function(n,t,r){var e=3;if(r.length){var u=lr(r,ai(Co));e|=c}return Qu(t,e,n,r,u)}));function Wo(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new zn(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){return s=n,c=Ci(d,t),h?_(n):a}function y(n){var r=n-l;return l===u||r>=t||r<0||p&&n-s>=f}function d(){var n=Eo();if(y(n))return b(n);c=Ci(d,function(n){var r=t-(n-l);return p?wr(r,f-(n-s)):r}(n))}function b(n){return c=u,v&&e?_(n):(e=o=u,a)}function w(){var n=Eo(),r=y(n);if(e=arguments,o=this,l=n,r){if(c===u)return g(l);if(p)return ju(c),c=Ci(d,t),_(l)}return c===u&&(c=Ci(d,t)),a}return t=bf(t)||0,rf(r)&&(h=!!r.leading,f=(p="maxWait"in r)?br(bf(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),w.cancel=function(){c!==u&&ju(c),s=0,e=l=o=c=u},w.flush=function(){return c===u?a:b(Eo())},w}var Lo=Ye((function(n,t){return se(n,1,t)})),Uo=Ye((function(n,t,r){return se(n,bf(t)||0,r)}));function Bo(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new zn(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Bo.Cache||Gr),r}function To(n){if("function"!=typeof n)throw new zn(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Bo.Cache=Gr;var $o=mu((function(n,t){var r=(t=1==t.length&&Ko(t[0])?Lt(t[0],Qt(ci())):Lt(de(t,1),Qt(ci()))).length;return Ye((function(e){for(var u=-1,i=wr(e.length,r);++u=t})),Zo=Ce(function(){return arguments}())?Ce:function(n){return ef(n)&&Bn.call(n,"callee")&&!Hn.call(n,"callee")},Ko=r.isArray,Vo=wt?Qt(wt):function(n){return ef(n)&&Oe(n)==L};function Go(n){return null!=n&&tf(n.length)&&!Xo(n)}function Ho(n){return ef(n)&&Go(n)}var Jo=bt||ba,Yo=mt?Qt(mt):function(n){return ef(n)&&Oe(n)==m};function Qo(n){if(!ef(n))return!1;var t=Oe(n);return t==x||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!ff(n)}function Xo(n){if(!rf(n))return!1;var t=Oe(n);return t==j||t==A||"[object AsyncFunction]"==t||"[object Proxy]"==t}function nf(n){return"number"==typeof n&&n==yf(n)}function tf(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=v}function rf(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ef(n){return null!=n&&"object"==typeof n}var uf=xt?Qt(xt):function(n){return ef(n)&&_i(n)==k};function of(n){return"number"==typeof n||ef(n)&&Oe(n)==O}function ff(n){if(!ef(n)||Oe(n)!=I)return!1;var t=Vn(n);if(null===t)return!0;var r=Bn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Un.call(r)==Nn}var af=jt?Qt(jt):function(n){return ef(n)&&Oe(n)==R};var cf=At?Qt(At):function(n){return ef(n)&&_i(n)==z};function lf(n){return"string"==typeof n||!Ko(n)&&ef(n)&&Oe(n)==S}function sf(n){return"symbol"==typeof n||ef(n)&&Oe(n)==C}var hf=kt?Qt(kt):function(n){return ef(n)&&tf(n.length)&&!!ft[Oe(n)]};var pf=Vu(De),vf=Vu((function(n,t){return n<=t}));function _f(n){if(!n)return[];if(Go(n))return lf(n)?vr(n):zu(n);if(Qn&&n[Qn])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[Qn]());var t=_i(n);return(t==k?ar:t==z?sr:Pf)(n)}function gf(n){return n?(n=bf(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}function yf(n){var t=gf(n),r=t%1;return t===t?r?t-r:t:0}function df(n){return n?ae(yf(n),0,g):0}function bf(n){if("number"==typeof n)return n;if(sf(n))return _;if(rf(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=rf(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Yt(n);var r=dn.test(n);return r||wn.test(n)?st(n.slice(2),r?2:8):yn.test(n)?_:+n}function wf(n){return Su(n,Uf(n))}function mf(n){return null==n?"":lu(n)}var xf=Wu((function(n,t){if(Ai(t)||Go(t))Su(t,Lf(t),n);else for(var r in t)Bn.call(t,r)&&re(n,r,t[r])})),jf=Wu((function(n,t){Su(t,Uf(t),n)})),Af=Wu((function(n,t,r,e){Su(t,Uf(t),n,e)})),kf=Wu((function(n,t,r,e){Su(t,Lf(t),n,e)})),Of=ei(fe);var If=Ye((function(n,t){n=In(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&wi(t[0],t[1],i)&&(e=1);++r1),t})),Su(n,ii(n),r),e&&(r=ce(r,7,ti));for(var u=t.length;u--;)hu(r,t[u]);return r}));var Df=ei((function(n,t){return null==n?{}:function(n,t){return Ke(n,t,(function(t,r){return zf(n,r)}))}(n,t)}));function Nf(n,t){if(null==n)return{};var r=Lt(ii(n),(function(n){return[n]}));return t=ci(t),Ke(n,r,(function(n,r){return t(n,r[0])}))}var Mf=Yu(Lf),Ff=Yu(Uf);function Pf(n){return null==n?[]:Xt(n,Lf(n))}var qf=Tu((function(n,t,r){return t=t.toLowerCase(),n+(r?Zf(t):t)}));function Zf(n){return Xf(mf(n).toLowerCase())}function Kf(n){return(n=mf(n))&&n.replace(xn,ur).replace(nt,"")}var Vf=Tu((function(n,t,r){return n+(r?"-":"")+t.toLowerCase()})),Gf=Tu((function(n,t,r){return n+(r?" ":"")+t.toLowerCase()})),Hf=Bu("toLowerCase");var Jf=Tu((function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}));var Yf=Tu((function(n,t,r){return n+(r?" ":"")+Xf(t)}));var Qf=Tu((function(n,t,r){return n+(r?" ":"")+t.toUpperCase()})),Xf=Bu("toUpperCase");function na(n,t,r){return n=mf(n),(t=r?u:t)===u?function(n){return ut.test(n)}(n)?function(n){return n.match(rt)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var ta=Ye((function(n,t){try{return Ot(n,u,t)}catch(r){return Qo(r)?r:new an(r)}})),ra=ei((function(n,t){return Et(t,(function(t){t=$i(t),oe(n,t,So(n[t],n))})),n}));function ea(n){return function(){return n}}var ua=Nu(),ia=Nu(!0);function oa(n){return n}function fa(n){return Be("function"==typeof n?n:ce(n,1))}var aa=Ye((function(n,t){return function(r){return Se(r,n,t)}})),ca=Ye((function(n,t){return function(r){return Se(n,r,t)}}));function la(n,t,r){var e=Lf(t),u=je(t,e);null!=r||rf(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=je(t,Lf(t)));var i=!(rf(r)&&"chain"in r)||!!r.chain,o=Xo(n);return Et(u,(function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__),u=r.__actions__=zu(this.__actions__);return u.push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ut([this.value()],arguments))})})),n}function sa(){}var ha=qu(Lt),pa=qu(zt),va=qu($t);function _a(n){return mi(n)?Kt($i(n)):function(n){return function(t){return Ae(t,n)}}(n)}var ga=Ku(),ya=Ku(!0);function da(){return[]}function ba(){return!1}var wa=Pu((function(n,t){return n+t}),0),ma=Hu("ceil"),xa=Pu((function(n,t){return n/t}),1),ja=Hu("floor");var Aa=Pu((function(n,t){return n*t}),1),ka=Hu("round"),Oa=Pu((function(n,t){return n-t}),0);return Mr.after=function(n,t){if("function"!=typeof t)throw new zn(i);return n=yf(n),function(){if(--n<1)return t.apply(this,arguments)}},Mr.ary=Ro,Mr.assign=xf,Mr.assignIn=jf,Mr.assignInWith=Af,Mr.assignWith=kf,Mr.at=Of,Mr.before=zo,Mr.bind=So,Mr.bindAll=ra,Mr.bindKey=Co,Mr.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Ko(n)?n:[n]},Mr.chain=po,Mr.chunk=function(n,t,e){t=(e?wi(n,t,e):t===u)?1:br(yf(t),0);var i=null==n?0:n.length;if(!i||t<1)return[];for(var o=0,f=0,a=r(_t(i/t));oi?0:i+r),(e=e===u||e>i?i:yf(e))<0&&(e+=i),e=r>e?0:df(e);r>>0)?(n=mf(n))&&("string"==typeof t||null!=t&&!af(t))&&!(t=lu(t))&&fr(n)?xu(vr(n),0,r):n.split(t,r):[]},Mr.spread=function(n,t){if("function"!=typeof n)throw new zn(i);return t=null==t?0:br(yf(t),0),Ye((function(r){var e=r[t],u=xu(r,0,t);return e&&Ut(u,e),Ot(n,this,u)}))},Mr.tail=function(n){var t=null==n?0:n.length;return t?uu(n,1,t):[]},Mr.take=function(n,t,r){return n&&n.length?uu(n,0,(t=r||t===u?1:yf(t))<0?0:t):[]},Mr.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?uu(n,(t=e-(t=r||t===u?1:yf(t)))<0?0:t,e):[]},Mr.takeRightWhile=function(n,t){return n&&n.length?vu(n,ci(t,3),!1,!0):[]},Mr.takeWhile=function(n,t){return n&&n.length?vu(n,ci(t,3)):[]},Mr.tap=function(n,t){return t(n),n},Mr.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new zn(i);return rf(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Wo(n,t,{leading:e,maxWait:t,trailing:u})},Mr.thru=vo,Mr.toArray=_f,Mr.toPairs=Mf,Mr.toPairsIn=Ff,Mr.toPath=function(n){return Ko(n)?Lt(n,$i):sf(n)?[n]:zu(Ti(mf(n)))},Mr.toPlainObject=wf,Mr.transform=function(n,t,r){var e=Ko(n),u=e||Jo(n)||hf(n);if(t=ci(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:rf(n)&&Xo(i)?Fr(Vn(n)):{}}return(u?Et:me)(n,(function(n,e,u){return t(r,n,e,u)})),r},Mr.unary=function(n){return Ro(n,1)},Mr.union=ro,Mr.unionBy=eo,Mr.unionWith=uo,Mr.uniq=function(n){return n&&n.length?su(n):[]},Mr.uniqBy=function(n,t){return n&&n.length?su(n,ci(t,2)):[]},Mr.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?su(n,u,t):[]},Mr.unset=function(n,t){return null==n||hu(n,t)},Mr.unzip=io,Mr.unzipWith=oo,Mr.update=function(n,t,r){return null==n?n:pu(n,t,bu(r))},Mr.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:pu(n,t,bu(r),e)},Mr.values=Pf,Mr.valuesIn=function(n){return null==n?[]:Xt(n,Uf(n))},Mr.without=fo,Mr.words=na,Mr.wrap=function(n,t){return Do(bu(t),n)},Mr.xor=ao,Mr.xorBy=co,Mr.xorWith=lo,Mr.zip=so,Mr.zipObject=function(n,t){return yu(n||[],t||[],re)},Mr.zipObjectDeep=function(n,t){return yu(n||[],t||[],nu)},Mr.zipWith=ho,Mr.entries=Mf,Mr.entriesIn=Ff,Mr.extend=jf,Mr.extendWith=Af,la(Mr,Mr),Mr.add=wa,Mr.attempt=ta,Mr.camelCase=qf,Mr.capitalize=Zf,Mr.ceil=ma,Mr.clamp=function(n,t,r){return r===u&&(r=t,t=u),r!==u&&(r=(r=bf(r))===r?r:0),t!==u&&(t=(t=bf(t))===t?t:0),ae(bf(n),t,r)},Mr.clone=function(n){return ce(n,4)},Mr.cloneDeep=function(n){return ce(n,5)},Mr.cloneDeepWith=function(n,t){return ce(n,5,t="function"==typeof t?t:u)},Mr.cloneWith=function(n,t){return ce(n,4,t="function"==typeof t?t:u)},Mr.conformsTo=function(n,t){return null==t||le(n,t,Lf(t))},Mr.deburr=Kf,Mr.defaultTo=function(n,t){return null==n||n!==n?t:n},Mr.divide=xa,Mr.endsWith=function(n,t,r){n=mf(n),t=lu(t);var e=n.length,i=r=r===u?e:ae(yf(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},Mr.eq=Fo,Mr.escape=function(n){return(n=mf(n))&&Y.test(n)?n.replace(H,ir):n},Mr.escapeRegExp=function(n){return(n=mf(n))&&on.test(n)?n.replace(un,"\\$&"):n},Mr.every=function(n,t,r){var e=Ko(n)?zt:_e;return r&&wi(n,t,r)&&(t=u),e(n,ci(t,3))},Mr.find=yo,Mr.findIndex=qi,Mr.findKey=function(n,t){return Nt(n,ci(t,3),me)},Mr.findLast=bo,Mr.findLastIndex=Zi,Mr.findLastKey=function(n,t){return Nt(n,ci(t,3),xe)},Mr.floor=ja,Mr.forEach=wo,Mr.forEachRight=mo,Mr.forIn=function(n,t){return null==n?n:be(n,ci(t,3),Uf)},Mr.forInRight=function(n,t){return null==n?n:we(n,ci(t,3),Uf)},Mr.forOwn=function(n,t){return n&&me(n,ci(t,3))},Mr.forOwnRight=function(n,t){return n&&xe(n,ci(t,3))},Mr.get=Rf,Mr.gt=Po,Mr.gte=qo,Mr.has=function(n,t){return null!=n&&gi(n,t,Ee)},Mr.hasIn=zf,Mr.head=Vi,Mr.identity=oa,Mr.includes=function(n,t,r,e){n=Go(n)?n:Pf(n),r=r&&!e?yf(r):0;var u=n.length;return r<0&&(r=br(u+r,0)),lf(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Ft(n,t,r)>-1},Mr.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:yf(r);return u<0&&(u=br(e+u,0)),Ft(n,t,u)},Mr.inRange=function(n,t,r){return t=gf(t),r===u?(r=t,t=0):r=gf(r),function(n,t,r){return n>=wr(t,r)&&n=-9007199254740991&&n<=v},Mr.isSet=cf,Mr.isString=lf,Mr.isSymbol=sf,Mr.isTypedArray=hf,Mr.isUndefined=function(n){return n===u},Mr.isWeakMap=function(n){return ef(n)&&_i(n)==W},Mr.isWeakSet=function(n){return ef(n)&&"[object WeakSet]"==Oe(n)},Mr.join=function(n,t){return null==n?"":Vt.call(n,t)},Mr.kebabCase=Vf,Mr.last=Yi,Mr.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var i=e;return r!==u&&(i=(i=yf(r))<0?br(e+i,0):wr(i,e-1)),t===t?function(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}(n,t,i):Mt(n,qt,i,!0)},Mr.lowerCase=Gf,Mr.lowerFirst=Hf,Mr.lt=pf,Mr.lte=vf,Mr.max=function(n){return n&&n.length?ge(n,oa,Ie):u},Mr.maxBy=function(n,t){return n&&n.length?ge(n,ci(t,2),Ie):u},Mr.mean=function(n){return Zt(n,oa)},Mr.meanBy=function(n,t){return Zt(n,ci(t,2))},Mr.min=function(n){return n&&n.length?ge(n,oa,De):u},Mr.minBy=function(n,t){return n&&n.length?ge(n,ci(t,2),De):u},Mr.stubArray=da,Mr.stubFalse=ba,Mr.stubObject=function(){return{}},Mr.stubString=function(){return""},Mr.stubTrue=function(){return!0},Mr.multiply=Aa,Mr.nth=function(n,t){return n&&n.length?qe(n,yf(t)):u},Mr.noConflict=function(){return vt._===this&&(vt._=Mn),this},Mr.noop=sa,Mr.now=Eo,Mr.pad=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Zu(gt(u),r)+n+Zu(_t(u),r)},Mr.padEnd=function(n,t,r){n=mf(n);var e=(t=yf(t))?pr(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=jr();return wr(n+i*(t-n+lt("1e-"+((i+"").length-1))),t)}return He(n,t)},Mr.reduce=function(n,t,r){var e=Ko(n)?Bt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,pe)},Mr.reduceRight=function(n,t,r){var e=Ko(n)?Tt:Gt,u=arguments.length<3;return e(n,ci(t,4),r,u,ve)},Mr.repeat=function(n,t,r){return t=(r?wi(n,t,r):t===u)?1:yf(t),Je(mf(n),t)},Mr.replace=function(){var n=arguments,t=mf(n[0]);return n.length<3?t:t.replace(n[1],n[2])},Mr.result=function(n,t,r){var e=-1,i=(t=wu(t,n)).length;for(i||(i=1,n=u);++ev)return[];var r=g,e=wr(n,g);t=ci(t),n-=g;for(var u=Jt(e,t);++r=o)return n;var a=r-pr(e);if(a<1)return e;var c=f?xu(f,0,a).join(""):n.slice(0,a);if(i===u)return c+e;if(f&&(a+=c.length-a),af(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=En(i.source,mf(gn.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===u?a:h)}}else if(n.indexOf(lu(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},Mr.unescape=function(n){return(n=mf(n))&&J.test(n)?n.replace(G,gr):n},Mr.uniqueId=function(n){var t=++Tn;return mf(n)+t},Mr.upperCase=Qf,Mr.upperFirst=Xf,Mr.each=wo,Mr.eachRight=mo,Mr.first=Vi,la(Mr,function(){var n={};return me(Mr,(function(t,r){Bn.call(Mr.prototype,r)||(n[r]=t)})),n}(),{chain:!1}),Mr.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){Mr[n].placeholder=Mr})),Et(["drop","take"],(function(n,t){Zr.prototype[n]=function(r){r=r===u?1:br(yf(r),0);var e=this.__filtered__&&!t?new Zr(this):this.clone();return e.__filtered__?e.__takeCount__=wr(r,e.__takeCount__):e.__views__.push({size:wr(r,g),type:n+(e.__dir__<0?"Right":"")}),e},Zr.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),Et(["filter","map","takeWhile"],(function(n,t){var r=t+1,e=1==r||3==r;Zr.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ci(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}})),Et(["head","last"],(function(n,t){var r="take"+(t?"Right":"");Zr.prototype[n]=function(){return this[r](1).value()[0]}})),Et(["initial","tail"],(function(n,t){var r="drop"+(t?"":"Right");Zr.prototype[n]=function(){return this.__filtered__?new Zr(this):this[r](1)}})),Zr.prototype.compact=function(){return this.filter(oa)},Zr.prototype.find=function(n){return this.filter(n).head()},Zr.prototype.findLast=function(n){return this.reverse().find(n)},Zr.prototype.invokeMap=Ye((function(n,t){return"function"==typeof n?new Zr(this):this.map((function(r){return Se(r,n,t)}))})),Zr.prototype.reject=function(n){return this.filter(To(ci(n)))},Zr.prototype.slice=function(n,t){n=yf(n);var r=this;return r.__filtered__&&(n>0||t<0)?new Zr(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==u&&(r=(t=yf(t))<0?r.dropRight(-t):r.take(t-n)),r)},Zr.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Zr.prototype.toArray=function(){return this.take(g)},me(Zr.prototype,(function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=Mr[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(Mr.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof Zr,c=f[0],l=a||Ko(t),s=function(n){var t=i.apply(Mr,Ut([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new Zr(this);var g=n.apply(t,f);return g.__actions__.push({func:vo,args:[s],thisArg:u}),new qr(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Sn[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);Mr.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(Ko(u)?u:[],n)}return this[r]((function(r){return t.apply(Ko(r)?r:[],n)}))}})),me(Zr.prototype,(function(n,t){var r=Mr[t];if(r){var e=r.name+"";Bn.call(Cr,e)||(Cr[e]=[]),Cr[e].push({name:t,func:r})}})),Cr[Mu(u,2).name]=[{name:"wrapper",func:u}],Zr.prototype.clone=function(){var n=new Zr(this.__wrapped__);return n.__actions__=zu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=zu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=zu(this.__views__),n},Zr.prototype.reverse=function(){if(this.__filtered__){var n=new Zr(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Zr.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=Ko(n),e=t<0,u=r?n.length:0,i=function(n,t,r){var e=-1,u=r.length;for(;++e=this.__values__.length;return{done:n,value:n?u:this.__values__[this.__index__++]}},Mr.prototype.plant=function(n){for(var t,r=this;r instanceof Pr;){var e=Ni(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},Mr.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Zr){var t=n;return this.__actions__.length&&(t=new Zr(this)),(t=t.reverse()).__actions__.push({func:vo,args:[to],thisArg:u}),new qr(t,this.__chain__)}return this.thru(to)},Mr.prototype.toJSON=Mr.prototype.valueOf=Mr.prototype.value=function(){return _u(this.__wrapped__,this.__actions__)},Mr.prototype.first=Mr.prototype.head,Qn&&(Mr.prototype[Qn]=function(){return this}),Mr}();vt._=yr,(e=function(){return yr}.call(t,r,t,n))===u||(n.exports=e)}.call(this)}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/29107295-a5c0cca9b8761d61.js b/dsql-app/.local_dist/static/chunks/29107295-a5c0cca9b8761d61.js new file mode 100644 index 0000000..97baee8 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/29107295-a5c0cca9b8761d61.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1570],{2543:function(n,t,r){var e;n=r.nmd(n),(function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=1/0,c=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",v="[object Date]",_="[object Error]",g="[object Function]",y="[object GeneratorFunction]",d="[object Map]",b="[object Number]",w="[object Object]",m="[object Promise]",x="[object RegExp]",j="[object Set]",A="[object String]",k="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",T="[object Uint32Array]",$=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,P=RegExp(F.source),q=RegExp(N.source),Z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,nn=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,ne=/,? & /,nu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,no=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,na=/\w*$/,nc=/^[-+]0x[0-9a-f]+$/i,nl=/^0b[01]+$/i,ns=/^\[object .+?Constructor\]$/,nh=/^0o[0-7]+$/i,np=/^(?:0|[1-9]\d*)$/,nv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n_=/($^)/,ng=/['\n\r\u2028\u2029\\]/g,ny="\ud800-\udfff",nd="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",nb="\\u2700-\\u27bf",nw="a-z\\xdf-\\xf6\\xf8-\\xff",nm="A-Z\\xc0-\\xd6\\xd8-\\xde",nx="\\ufe0e\\ufe0f",nj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nA="['’]",nk="["+nj+"]",nO="["+nd+"]",nI="["+nw+"]",nE="[^"+ny+nj+"\\d+"+nb+nw+nm+"]",nR="\ud83c[\udffb-\udfff]",nz="[^"+ny+"]",nS="(?:\ud83c[\udde6-\uddff]){2}",nC="[\ud800-\udbff][\udc00-\udfff]",nW="["+nm+"]",nL="\\u200d",nU="(?:"+nI+"|"+nE+")",nB="(?:"+nW+"|"+nE+")",nT="(?:"+nA+"(?:d|ll|m|re|s|t|ve))?",n$="(?:"+nA+"(?:D|LL|M|RE|S|T|VE))?",nD="(?:"+nO+"|"+nR+")?",nM="["+nx+"]?",nF="(?:"+nL+"(?:"+[nz,nS,nC].join("|")+")"+nM+nD+")*",nN=nM+nD+nF,nP="(?:"+["["+nb+"]",nS,nC].join("|")+")"+nN,nq="(?:"+[nz+nO+"?",nO,nS,nC,"["+ny+"]"].join("|")+")",nZ=RegExp(nA,"g"),nK=RegExp(nO,"g"),nV=RegExp(nR+"(?="+nR+")|"+nq+nN,"g"),nG=RegExp([nW+"?"+nI+"+"+nT+"(?="+[nk,nW,"$"].join("|")+")",nB+"+"+n$+"(?="+[nk,nW+nU,"$"].join("|")+")",nW+"?"+nU+"+"+nT,nW+"+"+n$,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",nP].join("|"),"g"),nH=RegExp("["+nL+ny+nd+nx+"]"),nJ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nY=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nQ=-1,nX={};nX[R]=nX[z]=nX[S]=nX[C]=nX[W]=nX[L]=nX[U]=nX[B]=nX[T]=!0,nX[s]=nX[h]=nX[I]=nX[p]=nX[E]=nX[v]=nX[_]=nX[g]=nX[d]=nX[b]=nX[w]=nX[x]=nX[j]=nX[A]=nX[O]=!1;var n0={};n0[s]=n0[h]=n0[I]=n0[E]=n0[p]=n0[v]=n0[R]=n0[z]=n0[S]=n0[C]=n0[W]=n0[d]=n0[b]=n0[w]=n0[x]=n0[j]=n0[A]=n0[k]=n0[L]=n0[U]=n0[B]=n0[T]=!0,n0[_]=n0[g]=n0[O]=!1;var n1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},n2=parseFloat,n3=parseInt,n8="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,n4="object"==typeof self&&self&&self.Object===Object&&self,n6=n8||n4||Function("return this")(),n9=t&&!t.nodeType&&t,n5=n9&&n&&!n.nodeType&&n,n7=n5&&n5.exports===n9,tn=n7&&n8.process,tt=function(){try{var n=n5&&n5.require&&n5.require("util").types;if(n)return n;return tn&&tn.binding&&tn.binding("util")}catch(n){}}(),tr=tt&&tt.isArrayBuffer,te=tt&&tt.isDate,tu=tt&&tt.isMap,ti=tt&&tt.isRegExp,to=tt&&tt.isSet,tf=tt&&tt.isTypedArray;function ta(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function tc(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function tv(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function tT(n,t){for(var r=n.length;r--&&tj(t,n[r],0)>-1;);return r}var t$=tE({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tD=tE({"&":"&","<":"<",">":">",'"':""","'":"'"});function tM(n){return"\\"+n1[n]}function tF(n){return nH.test(n)}function tN(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function tP(n,t){return function(r){return n(t(r))}}function tq(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),tJ=function n(t){var r,e,nn,ny,nd=(t=null==t?n6:tJ.defaults(n6.Object(),t,tJ.pick(n6,nY))).Array,nb=t.Date,nw=t.Error,nm=t.Function,nx=t.Math,nj=t.Object,nA=t.RegExp,nk=t.String,nO=t.TypeError,nI=nd.prototype,nE=nm.prototype,nR=nj.prototype,nz=t["__core-js_shared__"],nS=nE.toString,nC=nR.hasOwnProperty,nW=0,nL=(r=/[^.]+$/.exec(nz&&nz.keys&&nz.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",nU=nR.toString,nB=nS.call(nj),nT=n6._,n$=nA("^"+nS.call(nC).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nD=n7?t.Buffer:u,nM=t.Symbol,nF=t.Uint8Array,nN=nD?nD.allocUnsafe:u,nP=tP(nj.getPrototypeOf,nj),nq=nj.create,nV=nR.propertyIsEnumerable,nH=nI.splice,n1=nM?nM.isConcatSpreadable:u,n8=nM?nM.iterator:u,n4=nM?nM.toStringTag:u,n9=function(){try{var n=uh(nj,"defineProperty");return n({},"",{}),n}catch(n){}}(),n5=t.clearTimeout!==n6.clearTimeout&&t.clearTimeout,tn=nb&&nb.now!==n6.Date.now&&nb.now,tt=t.setTimeout!==n6.setTimeout&&t.setTimeout,tw=nx.ceil,tE=nx.floor,tY=nj.getOwnPropertySymbols,tQ=nD?nD.isBuffer:u,tX=t.isFinite,t0=nI.join,t1=tP(nj.keys,nj),t2=nx.max,t3=nx.min,t8=nb.now,t4=t.parseInt,t6=nx.random,t9=nI.reverse,t5=uh(t,"DataView"),t7=uh(t,"Map"),rn=uh(t,"Promise"),rt=uh(t,"Set"),rr=uh(t,"WeakMap"),re=uh(nj,"create"),ru=rr&&new rr,ri={},ro=uT(t5),rf=uT(t7),ra=uT(rn),rc=uT(rt),rl=uT(rr),rs=nM?nM.prototype:u,rh=rs?rs.valueOf:u,rp=rs?rs.toString:u;function rv(n){if(iK(n)&&!iU(n)&&!(n instanceof rd)){if(n instanceof ry)return n;if(nC.call(n,"__wrapped__"))return u$(n)}return new ry(n)}var r_=function(){function n(){}return function(t){if(!iZ(t))return{};if(nq)return nq(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function rg(){}function ry(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function rd(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rb(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function rL(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),u!==f)return f;if(!iZ(n))return n;var h=iU(n);if(h){if(_=n.length,m=new n.constructor(_),_&&"string"==typeof n[0]&&nC.call(n,"index")&&(m.index=n.index,m.input=n.input),f=m,!a)return eM(n,f)}else{var _,m,O,$,D,M=u_(n),F=M==g||M==y;if(iD(n))return eL(n,a);if(M==w||M==s||F&&!i){if(f=c||F?{}:uy(n),!a)return c?(O=(D=f)&&eF(n,op(n),D),eF(n,uv(n),O)):($=rz(f,n),eF(n,up(n),$))}else{if(!n0[M])return i?n:{};f=function(n,t,r){var e,u,i=n.constructor;switch(t){case I:return eU(n);case p:case v:return new i(+n);case E:return e=r?eU(n.buffer):n.buffer,new n.constructor(e,n.byteOffset,n.byteLength);case R:case z:case S:case C:case W:case L:case U:case B:case T:return eB(n,r);case d:return new i;case b:case A:return new i(n);case x:return(u=new n.constructor(n.source,na.exec(n))).lastIndex=n.lastIndex,u;case j:return new i;case k:return rh?nj(rh.call(n)):{}}}(n,M,a)}}o||(o=new rj);var N=o.get(n);if(N)return N;o.set(n,f),iY(n)?n.forEach(function(e){f.add(rL(e,t,r,e,n,o))}):iV(n)&&n.forEach(function(e,u){f.set(u,rL(e,t,r,u,n,o))});var P=l?c?ui:uu:c?op:oh,q=h?u:P(n);return tl(q||n,function(e,u){q&&(e=n[u=e]),rI(f,u,rL(e,t,r,u,n,o))}),f}function rU(n,t,r){var e=r.length;if(null==n)return!e;for(n=nj(n);e--;){var i=r[e],o=t[i],f=n[i];if(u===f&&!(i in n)||!o(f))return!1}return!0}function rB(n,t,r){if("function"!=typeof n)throw new nO(i);return uz(function(){n.apply(u,r)},t)}function rT(n,t,r,e){var u=-1,i=tp,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=t_(t,tW(r))),e?(i=tv,o=!1):t.length>=200&&(i=tU,o=!1,t=new rx(t));n:for(;++u-1},rw.prototype.set=function(n,t){var r=this.__data__,e=rE(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},rm.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(t7||rw),string:new rb}},rm.prototype.delete=function(n){var t=ul(this,n).delete(n);return this.size-=t?1:0,t},rm.prototype.get=function(n){return ul(this,n).get(n)},rm.prototype.has=function(n){return ul(this,n).has(n)},rm.prototype.set=function(n,t){var r=ul(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},rx.prototype.add=rx.prototype.push=function(n){return this.__data__.set(n,o),this},rx.prototype.has=function(n){return this.__data__.has(n)},rj.prototype.clear=function(){this.__data__=new rw,this.size=0},rj.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},rj.prototype.get=function(n){return this.__data__.get(n)},rj.prototype.has=function(n){return this.__data__.has(n)},rj.prototype.set=function(n,t){var r=this.__data__;if(r instanceof rw){var e=r.__data__;if(!t7||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new rm(e)}return r.set(n,t),this.size=r.size,this};var r$=eq(rK),rD=eq(rV,!0);function rM(n,t){var r=!0;return r$(n,function(n,e,u){return r=!!t(n,e,u)}),r}function rF(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?rP(f,t-1,r,e,u):tg(u,f):e||(u[u.length]=f)}return u}var rq=eZ(),rZ=eZ(!0);function rK(n,t){return n&&rq(n,t,oh)}function rV(n,t){return n&&rZ(n,t,oh)}function rG(n,t){return th(t,function(t){return iN(n[t])})}function rH(n,t){t=eS(t,n);for(var r=0,e=t.length;null!=n&&rt}function rX(n,t){return null!=n&&nC.call(n,t)}function r0(n,t){return null!=n&&t in nj(n)}function r1(n,t,r){for(var e=r?tv:tp,i=n[0].length,o=n.length,f=o,a=nd(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=t_(s,tW(t))),c=t3(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new rx(f&&s):u}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;return a*("desc"==r[e]?-1:1)}}return n.index-t.index}(n,t,r)})}function eo(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&nH.call(f,a,1),nH.call(n,a,1);return n}function ea(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;ub(u)?nH.call(n,u,1):ej(n,u)}}return n}function ec(n,t){return n+tE(t6()*(t-n+1))}function el(n,t){var r="";if(!n||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=n),(t=tE(t/2))&&(n+=n);while(t);return r}function es(n,t){return uS(uO(n,t,o$),n+"")}function eh(n,t,r,e){if(!iZ(n))return n;t=eS(t,n);for(var i=-1,o=t.length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=nd(u);++e>>1,o=n[i];null!==o&&!iX(o)&&(r?o<=t:o=200){var c=t?null:e6(n);if(c)return tZ(c);o=!1,u=tU,a=new rx}else a=t?[]:f;n:for(;++e=e?n:e_(n,t,r)}var eW=n5||function(n){return n6.clearTimeout(n)};function eL(n,t){if(t)return n.slice();var r=n.length,e=nN?nN(r):new n.constructor(r);return n.copy(e),e}function eU(n){var t=new n.constructor(n.byteLength);return new nF(t).set(new nF(n)),t}function eB(n,t){var r=t?eU(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function eT(n,t){if(n!==t){var r=u!==n,e=null===n,i=n==n,o=iX(n),f=u!==t,a=null===t,c=t==t,l=iX(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&uw(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=nj(t);++e-1?i[o?t[f]:f]:u}}function eJ(n){return ue(function(t){var r=t.length,e=r,o=ry.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new nO(i);if(o&&!a&&"wrapper"==uf(f))var a=new ry([],!0)}for(e=a?e:r;++e1&&b.reverse(),s&&ca))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new rx:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(nt,"{\n/* [wrapped with "+t+"] */\n")}(i,(e=(u=i.match(nr))?u[1].split(ne):[],tl(l,function(n){var t="_."+n[0];r&n[1]&&!tp(e,t)&&e.push(t)}),e.sort())))}function uW(n){var t=0,r=0;return function(){var e=t8(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function uL(n,t){var r=-1,e=n.length,i=e-1;for(t=u===t?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,u8(n,r)});function ir(n){var t=rv(n);return t.__chain__=!0,t}function ie(n,t){return t(n)}var iu=ue(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return rC(t,n)};return!(t>1)&&!this.__actions__.length&&e instanceof rd&&ub(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:ie,args:[i],thisArg:u}),new ry(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(u),n})):this.thru(i)}),ii=eN(function(n,t,r){nC.call(n,r)?++n[r]:rS(n,r,1)}),io=eH(uN),ia=eH(uP);function ic(n,t){return(iU(n)?tl:r$)(n,uc(t,3))}function il(n,t){return(iU(n)?function(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}:rD)(n,uc(t,3))}var is=eN(function(n,t,r){nC.call(n,r)?n[r].push(t):rS(n,r,[t])}),ih=es(function(n,t,r){var e=-1,u="function"==typeof t,i=iT(n)?nd(n.length):[];return r$(n,function(n){i[++e]=u?ta(t,n,r):r2(n,t,r)}),i}),ip=eN(function(n,t,r){rS(n,r,t)});function iv(n,t){return(iU(n)?t_:en)(n,uc(t,3))}var i_=eN(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),ig=es(function(n,t){if(null==n)return[];var r=t.length;return r>1&&uw(n,t[0],t[1])?t=[]:r>2&&uw(t[0],t[1],t[2])&&(t=[t[0]]),ei(n,rP(t,1),[])}),iy=tn||function(){return n6.Date.now()};function id(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,e5(n,128,u,u,u,u,t)}function ib(n,t){var r;if("function"!=typeof t)throw new nO(i);return n=i4(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var iw=es(function(n,t,r){var e=1;if(r.length){var u=tq(r,ua(iw));e|=32}return e5(n,e,t,r,u)}),im=es(function(n,t,r){var e=3;if(r.length){var u=tq(r,ua(im));e|=32}return e5(t,e,n,r,u)});function ix(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new nO(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l,e=n-s;return u===l||r>=t||r<0||p&&e>=f}function y(){var n,r,e,u=iy();if(g(u))return d(u);c=uz(y,(n=u-l,r=u-s,e=t-n,p?t3(e,f-r):e))}function d(n){return(c=u,v&&e)?_(n):(e=o=u,a)}function b(){var n,r=iy(),i=g(r);if(e=arguments,o=this,l=r,i){if(u===c)return s=n=l,c=uz(y,t),h?_(n):a;if(p)return eW(c),c=uz(y,t),_(l)}return u===c&&(c=uz(y,t)),a}return t=i9(t)||0,iZ(r)&&(h=!!r.leading,f=(p="maxWait"in r)?t2(i9(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){u!==c&&eW(c),s=0,e=l=o=c=u},b.flush=function(){return u===c?a:d(iy())},b}var ij=es(function(n,t){return rB(n,1,t)}),iA=es(function(n,t,r){return rB(n,i9(t)||0,r)});function ik(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new nO(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(ik.Cache||rm),r}function iO(n){if("function"!=typeof n)throw new nO(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}ik.Cache=rm;var iI=es(function(n,t){var r=(t=1==t.length&&iU(t[0])?t_(t[0],tW(uc())):t_(rP(t,1),tW(uc()))).length;return es(function(e){for(var u=-1,i=t3(e.length,r);++u=t}),iL=r3(function(){return arguments}())?r3:function(n){return iK(n)&&nC.call(n,"callee")&&!nV.call(n,"callee")},iU=nd.isArray,iB=tr?tW(tr):function(n){return iK(n)&&rY(n)==I};function iT(n){return null!=n&&iq(n.length)&&!iN(n)}function i$(n){return iK(n)&&iT(n)}var iD=tQ||oY,iM=te?tW(te):function(n){return iK(n)&&rY(n)==v};function iF(n){if(!iK(n))return!1;var t=rY(n);return t==_||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!iH(n)}function iN(n){if(!iZ(n))return!1;var t=rY(n);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iP(n){return"number"==typeof n&&n==i4(n)}function iq(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=0x1fffffffffffff}function iZ(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function iK(n){return null!=n&&"object"==typeof n}var iV=tu?tW(tu):function(n){return iK(n)&&u_(n)==d};function iG(n){return"number"==typeof n||iK(n)&&rY(n)==b}function iH(n){if(!iK(n)||rY(n)!=w)return!1;var t=nP(n);if(null===t)return!0;var r=nC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nS.call(r)==nB}var iJ=ti?tW(ti):function(n){return iK(n)&&rY(n)==x},iY=to?tW(to):function(n){return iK(n)&&u_(n)==j};function iQ(n){return"string"==typeof n||!iU(n)&&iK(n)&&rY(n)==A}function iX(n){return"symbol"==typeof n||iK(n)&&rY(n)==k}var i0=tf?tW(tf):function(n){return iK(n)&&iq(n.length)&&!!nX[rY(n)]},i1=e3(r7),i2=e3(function(n,t){return n<=t});function i3(n){if(!n)return[];if(iT(n))return iQ(n)?tV(n):eM(n);if(n8&&n[n8])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[n8]());var t=u_(n);return(t==d?tN:t==j?tZ:om)(n)}function i8(n){return n?(n=i9(n))===a||n===-a?(n<0?-1:1)*17976931348623157e292:n==n?n:0:0===n?n:0}function i4(n){var t=i8(n),r=t%1;return t==t?r?t-r:t:0}function i6(n){return n?rW(i4(n),0,0xffffffff):0}function i9(n){if("number"==typeof n)return n;if(iX(n))return c;if(iZ(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=iZ(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=tC(n);var r=nl.test(n);return r||nh.test(n)?n3(n.slice(2),r?2:8):nc.test(n)?c:+n}function i5(n){return eF(n,op(n))}function i7(n){return null==n?"":em(n)}var on=eP(function(n,t){if(uA(t)||iT(t)){eF(t,oh(t),n);return}for(var r in t)nC.call(t,r)&&rI(n,r,t[r])}),ot=eP(function(n,t){eF(t,op(t),n)}),or=eP(function(n,t,r,e){eF(t,op(t),n,e)}),oe=eP(function(n,t,r,e){eF(t,oh(t),n,e)}),ou=ue(rC),oi=es(function(n,t){n=nj(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&uw(t[0],t[1],i)&&(e=1);++r1),t}),eF(n,ui(n),r),e&&(r=rL(r,7,ut));for(var u=t.length;u--;)ej(r,t[u]);return r}),oy=ue(function(n,t){return null==n?{}:eo(n,t,function(t,r){return oa(n,r)})});function od(n,t){if(null==n)return{};var r=t_(ui(n),function(n){return[n]});return t=uc(t),eo(n,r,function(n,r){return t(n,r[0])})}var ob=e9(oh),ow=e9(op);function om(n){return null==n?[]:tL(n,oh(n))}var ox=eV(function(n,t,r){return t=t.toLowerCase(),n+(r?oj(t):t)});function oj(n){return oS(i7(n).toLowerCase())}function oA(n){return(n=i7(n))&&n.replace(nv,t$).replace(nK,"")}var ok=eV(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),oO=eV(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),oI=eK("toLowerCase"),oE=eV(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),oR=eV(function(n,t,r){return n+(r?" ":"")+oS(t)}),oz=eV(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),oS=eK("toUpperCase");function oC(n,t,r){if(n=i7(n),t=r?u:t,u===t){var e;return(e=n,nJ.test(e))?n.match(nG)||[]:n.match(nu)||[]}return n.match(t)||[]}var oW=es(function(n,t){try{return ta(n,u,t)}catch(n){return iF(n)?n:new nw(n)}}),oL=ue(function(n,t){return tl(t,function(t){rS(n,t=uB(t),iw(n[t],n))}),n});function oU(n){return function(){return n}}var oB=eJ(),oT=eJ(!0);function o$(n){return n}function oD(n){return r9("function"==typeof n?n:rL(n,1))}var oM=es(function(n,t){return function(r){return r2(r,n,t)}}),oF=es(function(n,t){return function(r){return r2(n,r,t)}});function oN(n,t,r){var e=oh(t),u=rG(t,e);null!=r||iZ(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rG(t,oh(t)));var i=!(iZ(r)&&"chain"in r)||!!r.chain,o=iN(n);return tl(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=eM(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,tg([this.value()],arguments))})}),n}function oP(){}var oq=e0(t_),oZ=e0(ts),oK=e0(tb);function oV(n){return um(n)?tI(uB(n)):function(t){return rH(t,n)}}var oG=e2(),oH=e2(!0);function oJ(){return[]}function oY(){return!1}var oQ=eX(function(n,t){return n+t},0),oX=e4("ceil"),o0=eX(function(n,t){return n/t},1),o1=e4("floor"),o2=eX(function(n,t){return n*t},1),o3=e4("round"),o8=eX(function(n,t){return n-t},0);return rv.after=function(n,t){if("function"!=typeof t)throw new nO(i);return n=i4(n),function(){if(--n<1)return t.apply(this,arguments)}},rv.ary=id,rv.assign=on,rv.assignIn=ot,rv.assignInWith=or,rv.assignWith=oe,rv.at=ou,rv.before=ib,rv.bind=iw,rv.bindAll=oL,rv.bindKey=im,rv.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return iU(n)?n:[n]},rv.chain=ir,rv.chunk=function(n,t,r){t=(r?uw(n,t,r):u===t)?1:t2(i4(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var i=0,o=0,f=nd(tw(e/t));ii?0:i+r),(e=u===e||e>i?i:i4(e))<0&&(e+=i),e=r>e?0:i6(e);r>>0)?(n=i7(n))&&("string"==typeof t||null!=t&&!iJ(t))&&!(t=em(t))&&tF(n)?eC(tV(n),0,r):n.split(t,r):[]},rv.spread=function(n,t){if("function"!=typeof n)throw new nO(i);return t=null==t?0:t2(i4(t),0),es(function(r){var e=r[t],u=eC(r,0,t);return e&&tg(u,e),ta(n,this,u)})},rv.tail=function(n){var t=null==n?0:n.length;return t?e_(n,1,t):[]},rv.take=function(n,t,r){return n&&n.length?e_(n,0,(t=r||u===t?1:i4(t))<0?0:t):[]},rv.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?e_(n,(t=e-(t=r||u===t?1:i4(t)))<0?0:t,e):[]},rv.takeRightWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!1,!0):[]},rv.takeWhile=function(n,t){return n&&n.length?ek(n,uc(t,3)):[]},rv.tap=function(n,t){return t(n),n},rv.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new nO(i);return iZ(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),ix(n,t,{leading:e,maxWait:t,trailing:u})},rv.thru=ie,rv.toArray=i3,rv.toPairs=ob,rv.toPairsIn=ow,rv.toPath=function(n){return iU(n)?t_(n,uB):iX(n)?[n]:eM(uU(i7(n)))},rv.toPlainObject=i5,rv.transform=function(n,t,r){var e=iU(n),u=e||iD(n)||i0(n);if(t=uc(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:iZ(n)&&iN(i)?r_(nP(n)):{}}return(u?tl:rK)(n,function(n,e,u){return t(r,n,e,u)}),r},rv.unary=function(n){return id(n,1)},rv.union=u0,rv.unionBy=u1,rv.unionWith=u2,rv.uniq=function(n){return n&&n.length?ex(n):[]},rv.uniqBy=function(n,t){return n&&n.length?ex(n,uc(t,2)):[]},rv.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?ex(n,u,t):[]},rv.unset=function(n,t){return null==n||ej(n,t)},rv.unzip=u3,rv.unzipWith=u8,rv.update=function(n,t,r){return null==n?n:eA(n,t,ez(r))},rv.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:eA(n,t,ez(r),e)},rv.values=om,rv.valuesIn=function(n){return null==n?[]:tL(n,op(n))},rv.without=u4,rv.words=oC,rv.wrap=function(n,t){return iE(ez(t),n)},rv.xor=u6,rv.xorBy=u9,rv.xorWith=u5,rv.zip=u7,rv.zipObject=function(n,t){return eE(n||[],t||[],rI)},rv.zipObjectDeep=function(n,t){return eE(n||[],t||[],eh)},rv.zipWith=it,rv.entries=ob,rv.entriesIn=ow,rv.extend=ot,rv.extendWith=or,oN(rv,rv),rv.add=oQ,rv.attempt=oW,rv.camelCase=ox,rv.capitalize=oj,rv.ceil=oX,rv.clamp=function(n,t,r){return u===r&&(r=t,t=u),u!==r&&(r=(r=i9(r))==r?r:0),u!==t&&(t=(t=i9(t))==t?t:0),rW(i9(n),t,r)},rv.clone=function(n){return rL(n,4)},rv.cloneDeep=function(n){return rL(n,5)},rv.cloneDeepWith=function(n,t){return rL(n,5,t="function"==typeof t?t:u)},rv.cloneWith=function(n,t){return rL(n,4,t="function"==typeof t?t:u)},rv.conformsTo=function(n,t){return null==t||rU(n,t,oh(t))},rv.deburr=oA,rv.defaultTo=function(n,t){return null==n||n!=n?t:n},rv.divide=o0,rv.endsWith=function(n,t,r){n=i7(n),t=em(t);var e=n.length,i=r=u===r?e:rW(i4(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},rv.eq=iS,rv.escape=function(n){return(n=i7(n))&&q.test(n)?n.replace(N,tD):n},rv.escapeRegExp=function(n){return(n=i7(n))&&Q.test(n)?n.replace(Y,"\\$&"):n},rv.every=function(n,t,r){var e=iU(n)?ts:rM;return r&&uw(n,t,r)&&(t=u),e(n,uc(t,3))},rv.find=io,rv.findIndex=uN,rv.findKey=function(n,t){return tm(n,uc(t,3),rK)},rv.findLast=ia,rv.findLastIndex=uP,rv.findLastKey=function(n,t){return tm(n,uc(t,3),rV)},rv.floor=o1,rv.forEach=ic,rv.forEachRight=il,rv.forIn=function(n,t){return null==n?n:rq(n,uc(t,3),op)},rv.forInRight=function(n,t){return null==n?n:rZ(n,uc(t,3),op)},rv.forOwn=function(n,t){return n&&rK(n,uc(t,3))},rv.forOwnRight=function(n,t){return n&&rV(n,uc(t,3))},rv.get=of,rv.gt=iC,rv.gte=iW,rv.has=function(n,t){return null!=n&&ug(n,t,rX)},rv.hasIn=oa,rv.head=uZ,rv.identity=o$,rv.includes=function(n,t,r,e){n=iT(n)?n:om(n),r=r&&!e?i4(r):0;var u=n.length;return r<0&&(r=t2(u+r,0)),iQ(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&tj(n,t,r)>-1},rv.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:i4(r);return u<0&&(u=t2(e+u,0)),tj(n,t,u)},rv.inRange=function(n,t,r){var e,i,o;return t=i8(t),u===r?(r=t,t=0):r=i8(r),(e=n=i9(n))>=t3(i=t,o=r)&&e=-0x1fffffffffffff&&n<=0x1fffffffffffff},rv.isSet=iY,rv.isString=iQ,rv.isSymbol=iX,rv.isTypedArray=i0,rv.isUndefined=function(n){return u===n},rv.isWeakMap=function(n){return iK(n)&&u_(n)==O},rv.isWeakSet=function(n){return iK(n)&&"[object WeakSet]"==rY(n)},rv.join=function(n,t){return null==n?"":t0.call(n,t)},rv.kebabCase=ok,rv.last=uH,rv.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var i=e;return u!==r&&(i=(i=i4(r))<0?t2(e+i,0):t3(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--&&n[e]!==t;);return e}(n,t,i):tx(n,tk,i,!0)},rv.lowerCase=oO,rv.lowerFirst=oI,rv.lt=i1,rv.lte=i2,rv.max=function(n){return n&&n.length?rF(n,o$,rQ):u},rv.maxBy=function(n,t){return n&&n.length?rF(n,uc(t,2),rQ):u},rv.mean=function(n){return tO(n,o$)},rv.meanBy=function(n,t){return tO(n,uc(t,2))},rv.min=function(n){return n&&n.length?rF(n,o$,r7):u},rv.minBy=function(n,t){return n&&n.length?rF(n,uc(t,2),r7):u},rv.stubArray=oJ,rv.stubFalse=oY,rv.stubObject=function(){return{}},rv.stubString=function(){return""},rv.stubTrue=function(){return!0},rv.multiply=o2,rv.nth=function(n,t){return n&&n.length?eu(n,i4(t)):u},rv.noConflict=function(){return n6._===this&&(n6._=nT),this},rv.noop=oP,rv.now=iy,rv.pad=function(n,t,r){n=i7(n);var e=(t=i4(t))?tK(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return e1(tE(u),r)+n+e1(tw(u),r)},rv.padEnd=function(n,t,r){n=i7(n);var e=(t=i4(t))?tK(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=t6();return t3(n+i*(t-n+n2("1e-"+((i+"").length-1))),t)}return ec(n,t)},rv.reduce=function(n,t,r){var e=iU(n)?ty:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,r$)},rv.reduceRight=function(n,t,r){var e=iU(n)?td:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,rD)},rv.repeat=function(n,t,r){return t=(r?uw(n,t,r):u===t)?1:i4(t),el(i7(n),t)},rv.replace=function(){var n=arguments,t=i7(n[0]);return n.length<3?t:t.replace(n[1],n[2])},rv.result=function(n,t,r){t=eS(t,n);var e=-1,i=t.length;for(i||(i=1,n=u);++e0x1fffffffffffff)return[];var r=0xffffffff,e=t3(n,0xffffffff);t=uc(t),n-=0xffffffff;for(var u=tS(e,t);++r=o)return n;var a=r-tK(e);if(a<1)return e;var c=f?eC(f,0,a).join(""):n.slice(0,a);if(u===i)return c+e;if(f&&(a+=c.length-a),iJ(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=nA(i.source,i7(na.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,u===h?a:h)}}else if(n.indexOf(em(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},rv.unescape=function(n){return(n=i7(n))&&P.test(n)?n.replace(F,tH):n},rv.uniqueId=function(n){var t=++nW;return i7(n)+t},rv.upperCase=oz,rv.upperFirst=oS,rv.each=ic,rv.eachRight=il,rv.first=uZ,oN(rv,(ny={},rK(rv,function(n,t){nC.call(rv.prototype,t)||(ny[t]=n)}),ny),{chain:!1}),rv.VERSION="4.17.21",tl(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){rv[n].placeholder=rv}),tl(["drop","take"],function(n,t){rd.prototype[n]=function(r){r=u===r?1:t2(i4(r),0);var e=this.__filtered__&&!t?new rd(this):this.clone();return e.__filtered__?e.__takeCount__=t3(r,e.__takeCount__):e.__views__.push({size:t3(r,0xffffffff),type:n+(e.__dir__<0?"Right":"")}),e},rd.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),tl(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;rd.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:uc(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),tl(["head","last"],function(n,t){var r="take"+(t?"Right":"");rd.prototype[n]=function(){return this[r](1).value()[0]}}),tl(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");rd.prototype[n]=function(){return this.__filtered__?new rd(this):this[r](1)}}),rd.prototype.compact=function(){return this.filter(o$)},rd.prototype.find=function(n){return this.filter(n).head()},rd.prototype.findLast=function(n){return this.reverse().find(n)},rd.prototype.invokeMap=es(function(n,t){return"function"==typeof n?new rd(this):this.map(function(r){return r2(r,n,t)})}),rd.prototype.reject=function(n){return this.filter(iO(uc(n)))},rd.prototype.slice=function(n,t){n=i4(n);var r=this;return r.__filtered__&&(n>0||t<0)?new rd(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),u!==t&&(r=(t=i4(t))<0?r.dropRight(-t):r.take(t-n)),r)},rd.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},rd.prototype.toArray=function(){return this.take(0xffffffff)},rK(rd.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=rv[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(rv.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof rd,c=f[0],l=a||iU(t),s=function(n){var t=i.apply(rv,tg([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new rd(this);var g=n.apply(t,f);return g.__actions__.push({func:ie,args:[s],thisArg:u}),new ry(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})}),tl(["pop","push","shift","sort","splice","unshift"],function(n){var t=nI[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);rv.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(iU(u)?u:[],n)}return this[r](function(r){return t.apply(iU(r)?r:[],n)})}}),rK(rd.prototype,function(n,t){var r=rv[t];if(r){var e=r.name+"";nC.call(ri,e)||(ri[e]=[]),ri[e].push({name:t,func:r})}}),ri[eY(u,2).name]=[{name:"wrapper",func:u}],rd.prototype.clone=function(){var n=new rd(this.__wrapped__);return n.__actions__=eM(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eM(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eM(this.__views__),n},rd.prototype.reverse=function(){if(this.__filtered__){var n=new rd(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},rd.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=iU(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length,t=n?u:this.__values__[this.__index__++];return{done:n,value:t}},rv.prototype.plant=function(n){for(var t,r=this;r instanceof rg;){var e=u$(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},rv.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof rd){var t=n;return this.__actions__.length&&(t=new rd(this)),(t=t.reverse()).__actions__.push({func:ie,args:[uX],thisArg:u}),new ry(t,this.__chain__)}return this.thru(uX)},rv.prototype.toJSON=rv.prototype.valueOf=rv.prototype.value=function(){return eO(this.__wrapped__,this.__actions__)},rv.prototype.first=rv.prototype.head,n8&&(rv.prototype[n8]=function(){return this}),rv}();n6._=tJ,u!==(e=(function(){return tJ}).call(t,r,t,n))&&(n.exports=e)}).call(this)}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/2913-7d2040b72d4074a0.js b/dsql-app/.local_dist/static/chunks/2913-7d2040b72d4074a0.js new file mode 100644 index 0000000..a89d4cd --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/2913-7d2040b72d4074a0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2913],{28383:(t,e,i)=>{i.r(e),i.d(e,{Flip:()=>tT,default:()=>tT});var n,r,s,a,o,l,h,c,u,p="transform",f=p+"Origin",d=function(t){var e=t.ownerDocument||t;for(!(p in t.style)&&("msTransform"in t.style)&&(f=(p="msTransform")+"Origin");e.parentNode&&(e=e.parentNode););if(r=window,h=new C,e){n=e,s=e.documentElement,a=e.body,(c=n.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),o=e.createElement("div"),l=e&&(e.body||e.firstElementChild);l&&l.appendChild&&(l.appendChild(i),i.appendChild(o),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),u=o.offsetParent!==i,l.removeChild(i))}return e},g=function(t){for(var e,i;t&&t!==a;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e},m=[],y=[],v=function(){return r.pageYOffset||n.scrollTop||s.scrollTop||a.scrollTop||0},x=function(){return r.pageXOffset||n.scrollLeft||s.scrollLeft||a.scrollLeft||0},b=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},w=function t(e,i){if(e.parentNode&&(n||d(e))){var r=b(e),s=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=r?i?"rect":"g":"div",h=2!==i?0:100,c=3===i?100:0,u="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",p=n.createElementNS?n.createElementNS(s.replace(/^https/,"http"),a):n.createElement(a);return i&&(r?(l||(l=t(e)),p.setAttribute("width",.01),p.setAttribute("height",.01),p.setAttribute("transform","translate("+h+","+c+")"),l.appendChild(p)):(o||((o=t(e)).style.cssText=u),p.style.cssText=u+"width:0.1px;height:0.1px;top:"+c+"px;left:"+h+"px",o.appendChild(p))),p}throw"Need document and parent."},_=function(t){for(var e=new C,i=0;i1?_(n):n.getItem(0).matrix:h).a*s.x+n.c*s.y,c=n.b*s.x+n.d*s.y):(n=new C,a=c=0),e&&"g"===t.tagName.toLowerCase()&&(a=c=0),(v?g:k).appendChild(i),i.setAttribute("transform","matrix("+n.a+","+n.b+","+n.c+","+n.d+","+(n.e+a)+","+(n.f+c)+")");else{if(a=c=0,u)for(n=t.offsetParent,s=t;s&&(s=s.parentNode)&&s!==n&&s.parentNode;)(r.getComputedStyle(s)[p]+"").length>4&&(a=s.offsetLeft,c=s.offsetTop,s=0);if("absolute"!==(d=r.getComputedStyle(t)).position&&"fixed"!==d.position)for(n=t.offsetParent;k&&k!==n;)a+=k.scrollLeft||0,c+=k.scrollTop||0,k=k.parentNode;(s=i.style).top=t.offsetTop-c+"px",s.left=t.offsetLeft-a+"px",s[p]=d[p],s[f]=d[f],s.position="fixed"===d.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i},O=function(t,e,i,n,r,s,a){return t.a=e,t.b=i,t.c=n,t.d=r,t.e=s,t.f=a,t},C=function(){function t(t,e,i,n,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=1),void 0===r&&(r=0),void 0===s&&(s=0),O(this,t,e,i,n,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,i=this.c,n=this.d,r=this.e,s=this.f,a=t*n-e*i||1e-10;return O(this,n/a,-e/a,-i/a,t/a,(i*s-n*r)/a,-(t*s-e*r)/a)},e.multiply=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f,o=t.a,l=t.c,h=t.b,c=t.d,u=t.e,p=t.f;return O(this,o*e+h*n,o*i+h*r,l*e+c*n,l*i+c*r,s+u*e+p*n,a+u*i+p*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,i=this.b,n=this.c,r=this.d,s=this.e,a=this.f;return e===t.a&&i===t.b&&n===t.c&&r===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var i=t.x,n=t.y,r=this.a,s=this.b,a=this.c,o=this.d,l=this.e,h=this.f;return e.x=i*r+n*a+l||0,e.y=i*s+n*o+h||0,e},t}();function S(t,e,i,s){if(!t||!t.parentNode||(n||d(t)).documentElement===t)return new C;var a=g(t),o=b(t)?m:y,l=k(t,i),h=o[0].getBoundingClientRect(),c=o[1].getBoundingClientRect(),u=o[2].getBoundingClientRect(),p=l.parentNode,f=!s&&function t(e){return"fixed"===r.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)}(t),w=new C((c.left-h.left)/100,(c.top-h.top)/100,(u.left-h.left)/100,(u.top-h.top)/100,h.left+(f?0:x()),h.top+(f?0:v()));if(p.removeChild(l),a)for(h=a.length;h--;)(c=a[h]).scaleX=c.scaleY=0,c.renderTransform(1,c);return e?w.inverse():w}var A,E,z,P,T,V,B,L,Y=1,X=function(t,e){return t.actions.forEach(function(t){return t.vars[e]&&t.vars[e](t)})},I={},N=180/Math.PI,F=Math.PI/180,H={},j={},q={},R=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},D=R("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),W=R("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),J=function(t){return A(t)[0]||console.warn("Element not found:",t)},Z=function(t){return Math.round(1e4*t)/1e4||0},G=function(t,e,i){return t.forEach(function(t){return t.classList[i](e)})},U={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},$={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},K=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},Q=function(t,e){var i,n={};for(i in t)e[i]||(n[i]=t[i]);return n},tt={},te=function(t){var e=tt[t]=R(t);return q[t]=e.concat(W),e},ti=function(t){var e=t._gsap||E.core.getCache(t);return e.gmCache===E.ticker.frame?e.gMatrix:(e.gmCache=E.ticker.frame,e.gMatrix=S(t,!0,!1,!0))},tn=function t(e,i,n){void 0===n&&(n=0);for(var r=e.parentNode,s=1e3*Math.pow(10,n)*(i?-1:1),a=i?-(900*s):0;e;)a+=s,e=e.previousSibling;return r?a+t(r,i,n+1):a},tr=function(t,e,i){return t.forEach(function(t){return t.d=tn(i?t.element:t.t,e)}),t.sort(function(t,e){return t.d-e.d}),t},ts=function(t,e){for(var i,n,r=t.element.style,s=t.css=t.css||[],a=e.length;a--;)n=r[i=e[a]]||r.getPropertyValue(i),s.push(n?i:j[i]||(j[i]=K(i)),n);return r},ta=function(t){var e=t.css,i=t.element.style,n=0;for(t.cache.uncache=1;n0&&I&&(h.style.opacity=tp?y.opacity-v.opacity:"0"),tv(y,v,X,j)):v.isVisible!==y.isVisible&&(v.isVisible?!y.isVisible&&(v.css=y.css,ti.push(v),tn.splice(l--,1),M&&L&&tv(y,v,X,j)):(y.isVisible&&K.push(y),tn.splice(l--,1))),X||(h.style.maxWidth=Math.max(y.width,v.width)+"px",h.style.maxHeight=Math.max(y.height,v.height)+"px",h.style.minWidth=Math.min(y.width,v.width)+"px",h.style.minHeight=Math.min(y.height,v.height)+"px"),L&&B&&h.classList.add(B)):tn.splice(l--,1),f.push(y);if(B&&(e=f.map(function(t){return t.element}),L&&e.forEach(function(t){return t.classList.remove(B)})),tM(!1),X?(R.scaleX=function(t){return tn[t].a.scaleX},R.scaleY=function(t){return tn[t].a.scaleY}):(R.width=function(t){return tn[t].a.width+"px"},R.height=function(t){return tn[t].a.height+"px"},R.autoRound=i.autoRound||!1),R.x=function(t){return tn[t].a.x+"px"},R.y=function(t){return tn[t].a.y+"px"},R.rotation=function(t){return tn[t].a.rotation+(F?360*th(t,p[t],p):0)},R.skewX=function(t){return tn[t].a.skewX},p=tn.map(function(t){return t.t}),(Y||0===Y)&&(R.modifiers={zIndex:function(){return Y}},R.zIndex=Y,R.immediateRender=!1!==i.immediateRender),I&&(R.opacity=function(t){return tn[t].sd<0?0:tn[t].sd>0?tn[t].a.opacity:"+=0"}),ta.length){N=E.utils.distribute(N);var e,n=p.slice(ta.length);R.stagger=function(t,e){return N(~ta.indexOf(e)?p.indexOf(tn[t].swap.t):t,e,n)}}if(D.forEach(function(t){return i[t]&&J.eventCallback(t,i[t],i[t+"Params"])}),O&&p.length)for(a in Z=Q(R,U),"scale"in O&&(O.scaleX=O.scaleY=O.scale,delete O.scale),O)(s=Q(O[a],$))[a]=R[a],!("duration"in s)&&"duration"in R&&(s.duration=R.duration),s.stagger=R.stagger,tf.call(J,p,s,0),delete Z[a];(p.length||ti.length||K.length)&&(B&&J.add(function(){return G(e,B,J._zTime<0?"remove":"add")},0)&&!A&&G(e,B,"add"),p.length&&tf.call(J,p,Z,0)),ty(w,K,J),ty(_,ti,J);var r=z&&z.timeline;r&&(r.add(J,0),z._final.push(function(){return to(tn,!b)})),o=J.duration(),J.call(function(){var t=J.time()>=o;t&&!r&&to(tn,!b),B&&G(e,B,t?"remove":"add")})},k&&(M=tn.filter(function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible}).map(function(t){return t.a.element})),z?(M&&(r=z._abs).push.apply(r,tc(tn,M)),z._run.push(m)):(M&&tu(tc(tn,M)),m());var td=z?z.timeline:J;return td.revert=function(){return tC(td,1,1)},td},tO=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},tC=function(t,e,i){if(t&&1>t.progress()&&(!t.paused()||i))return e&&(tO(t),e<2&&t.progress(1),t.kill()),!0},tS=function(t){for(var e,i=t.idLookup={},n=t.alt={},r=t.elementStates,s=r.length;s--;)i[(e=r[s]).id]?n[e.id]=e:i[e.id]=e},tA=function(){function t(t,e,i){if(this.props=e&&e.props,this.simple=!!(e&&e.simple),i)this.targets=tm(t),this.elementStates=t,tS(this);else{this.targets=A(t);var n=e&&(!1===e.kill||e.batch&&!e.kill);z&&!n&&z._kill.push(this),this.update(n||!!z)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map(function(t){return new tE(t,e.props,e.simple)}),tS(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,tS(this),this},e.fit=function(t,e,i){for(var n,r,s=tr(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;og.indexOf(i)&&v(t,e,i)};for(n in h)s=m[n],a=y[n],r=(e=s?tb(t,this,n):h[n]).element,i=c[n],a?(l=i.isVisible||!a.isVisible&&r===i.element?i:a,(o=!s||e.isVisible||s.isVisible||l.element!==s.element?e:s).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?p:u).push(o.element,l.element),g.push(o.element,l.element)):v(o,l,o.element),s&&o.element===s.element&&(s=h[n]),x(o.element!==i.element&&s?s:o,i,i.element),x(s&&s.element===a.element?s:o,a,a.element),s&&x(s,a.element===s.element?a:i,s.element)):(i?i.isDifferent(e)?v(e,i,r):u.push(r):f.push(r),s&&x(s,i,s.element));for(n in c)!h[n]&&(d.push(c[n].element),y[n]&&d.push(y[n].element));return{changed:p,unchanged:u,enter:f,leave:d}},e.recordInlineStyles=function(){for(var t=q[this.props]||W,e=this.elementStates.length;e--;)ts(this.elementStates[e],t)},e.interrupt=function(t){var e=this,i=[];this.targets.forEach(function(n){var r=n._flip,s=tC(r,t?0:1);t&&s&&0>i.indexOf(r)&&r.add(function(){return e.updateVisibility()}),s&&i.push(r)}),!t&&i.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!i.length)},e.updateVisibility=function(){this.elementStates.forEach(function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1})},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(J(t))]},e.makeAbsolute=function(){return tr(this.elementStates.slice(0),!0,!0).map(th)},t}(),tE=function(){function t(t,e,i){this.element=t,this.update(e,i)}var e=t.prototype;return e.isDifferent=function(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,e){var i=this.element,n=E.getProperty(i),r=E.core.getCache(i),s=i.getBoundingClientRect(),a=i.getBBox&&"function"==typeof i.getBBox&&"svg"!==i.nodeName.toLowerCase()&&i.getBBox(),o=e?new C(1,0,0,1,s.left+x(),s.top+v()):S(i,!1,!1,!0);this.getProp=n,this.element=i,this.id=tg(i),this.matrix=o,this.cache=r,this.bounds=s,this.isVisible=!!(s.width||s.height||s.left||s.top),this.display=n("display"),this.position=n("position"),this.parent=i.parentNode,this.x=n("x"),this.y=n("y"),this.scaleX=r.scaleX,this.scaleY=r.scaleY,this.rotation=n("rotation"),this.skewX=n("skewX"),this.opacity=n("opacity"),this.width=a?a.width:V(n("width","px"),.04),this.height=a?a.height:V(n("height","px"),.04),t&&tf(this,tt[t]||te(t)),this.ctm=i.getCTM&&"svg"===i.nodeName.toLowerCase()&&M(i).inverse(),this.simple=e||1===Z(o.a)&&!Z(o.b)&&!Z(o.c)&&1===Z(o.d),this.uncache=0},t}(),tz=function(){function t(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var e=t.prototype;return e.getStateById=function(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},e.kill=function(){this.batch.remove(this)},t}(),tP=function(){function t(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new tA,this.timeline=E.timeline()}var e=t.prototype;return e.add=function(t){var e=this.actions.filter(function(e){return e.vars===t});return e.length?e[0]:(e=new tz("function"==typeof t?{animate:t}:t,this),this.actions.push(e),e)},e.remove=function(t){var e=this.actions.indexOf(t);return e>=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,i=z,n=P;return z=this,this.state.clear(),this._kill.length=0,this.actions.forEach(function(i){i.vars.getState&&(i.states.length=0,P=i,i.state=i.vars.getState(i)),t&&i.states.forEach(function(t){return e.state.add(t)})}),P=n,z=i,this.killConflicts(),this},e.animate=function(){var t,e,i=this,n=z,r=this.timeline,s=this.actions.length;for(z=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach(function(t){t.vars.animate&&t.vars.animate(t);var e,i,n=t.vars.onEnter,r=t.vars.onLeave,s=t.targets;s&&s.length&&(n||r)&&(e=new tA,t.states.forEach(function(t){return e.add(t)}),(i=e.compare(tT.getState(s))).enter.length&&n&&n(i.enter),i.leave.length&&r&&r(i.leave))}),tu(this._abs),this._run.forEach(function(t){return t()}),e=r.duration(),t=this._final.slice(0),r.add(function(){e<=r.time()&&(t.forEach(function(t){return t()}),X(i,"onComplete"))}),z=n;s--;)this.actions[s].vars.once&&this.actions[s].kill();return X(this,"onStart"),r.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach(function(i){if(i.vars.loadState){var n,r=function r(s){s&&(i.targets=s),~(n=e.indexOf(r))&&(e.splice(n,1),e.length||t())};e.push(r),i.vars.loadState(r)}}),e.length||t(),this},e.setState=function(){return this.actions.forEach(function(t){return t.targets=t.vars.setState&&t.vars.setState(t)}),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach(function(e){return e.interrupt(t)}),this},e.run=function(t,e){var i=this;return this!==z&&(t||this.getState(e),this.loadState(function(){i._killed||(i.setState(),i.animate())})),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete I[this.id]},t}(),tT=function(){function t(){}return t.getState=function(e,i){var n=tx(e,i);return P&&P.states.push(n),i&&i.batch&&t.batch(i.batch).state.add(n),n},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),tk(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return tk(t,tx(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,i){return tk(t,e,i)},t.fit=function(t,e,i){var n=i?Q(i,$):{},r=i||n,s=r.absolute,a=r.scale,o=r.getVars,l=r.props,h=r.runBackwards,c=r.onComplete,u=r.simple,p=i&&i.fitChild&&J(i.fitChild),f=tp(e,l,u,t),d=tp(t,0,u,f),g=l?q[l]:W,m=E.context();return l&&td(n,f.props),ts(d,g),h&&("immediateRender"in n||(n.immediateRender=!0),n.onComplete=function(){ta(d),c&&c.apply(this,arguments)}),s&&th(d,f),n=tv(d,f,a||p,l,p,n.duration||o?n:0),m&&!o&&m.add(function(){return function(){return ta(d)}}),o?n:n.duration?E.to(d.element,n):null},t.makeAbsolute=function(t,e){return(t instanceof tA?t:new tA(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),I[t]||(I[t]=new tP(t))},t.killFlipsOf=function(t,e){(t instanceof tA?t.targets:A(t)).forEach(function(t){return t&&tC(t._flip,!1!==e?1:2)})},t.isFlipping=function(e){var i=t.getByTarget(e);return!!i&&i.isActive()},t.getByTarget=function(t){return(J(t)||H)._flip},t.getElementState=function(t,e){return new tE(J(t),e)},t.convertCoordinates=function(t,e,i){var n=S(e,!0,!0).multiply(S(t));return i?n.apply(i):n},t.register=function(t){if(T="undefined"!=typeof document&&document.body){E=t,d(T),A=E.utils.toArray,B=E.core.getStyleSaver;var e=E.utils.snap(.1);V=function(t,i){return e(parseFloat(t)+i)}}},t}();tT.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(tT)},36517:(t,e,i)=>{i.d(e,{Ay:()=>tb});var n,r,s,a,o,l,h,c=i(48607),u={},p=180/Math.PI,f=Math.PI/180,d=Math.atan2,g=/([A-Z])/g,m=/(left|right|width|margin|padding|x)/i,y=/[\s,\(]\S/,v={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},x=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},b=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round((e.s+e.c*t)*1e4)/1e4+e.u,e)},w=function(t,e){return e.set(e.t,e.p,t?Math.round((e.s+e.c*t)*1e4)/1e4+e.u:e.b,e)},_=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},M=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},k=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},O=function(t,e,i){return t.style[e]=i},C=function(t,e,i){return t.style.setProperty(e,i)},S=function(t,e,i){return t._gsap[e]=i},A=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},E=function(t,e,i,n,r){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(r,s)},z=function(t,e,i,n,r){var s=t._gsap;s[e]=i,s.renderTransform(r,s)},P="transform",T=P+"Origin",V=function t(e,i){var n=this,r=this.target,s=r.style,a=r._gsap;if(e in u&&s){if(this.tfm=this.tfm||{},"transform"===e)return v.transform.split(",").forEach(function(e){return t.call(n,e,i)});if(~(e=v[e]||e).indexOf(",")?e.split(",").forEach(function(t){return n.tfm[t]=$(r,t)}):this.tfm[e]=a.x?a[e]:$(r,e),e===T&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(P)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(T,i,"")),e=P}(s||i)&&this.props.push(e,i,s[e])},B=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},L=function(){var t,e,i=this.props,n=this.target,r=n.style,s=n._gsap;for(t=0;t=0?N[r]:"")+t},H=function(){"undefined"!=typeof window&&window.document&&(r=(n=window.document).documentElement,a=X("div")||{style:{}},X("div"),T=(P=F(P))+"Origin",a.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",h=!!F("perspective"),l=c.os.core.reverting,s=1)},j=function t(e){var i,n=X("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(r.appendChild(n),n.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return s&&(a?s.insertBefore(this,a):s.appendChild(this)),r.removeChild(n),this.style.cssText=o,i},q=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},R=function(t){var e;try{e=t.getBBox()}catch(i){e=j.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===j||(e=j.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+q(t,["x","cx","x1"])||0,y:+q(t,["y","cy","y1"])||0,width:0,height:0}},D=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&R(t))},W=function(t,e){if(e){var i,n=t.style;e in u&&e!==T&&(e=P),n.removeProperty?(("ms"===(i=e.substr(0,2))||"webkit"===e.substr(0,6))&&(e="-"+e),n.removeProperty("--"===i?e:e.replace(g,"-$1").toLowerCase())):n.removeAttribute(e)}},J=function(t,e,i,n,r,s){var a=new c.J7(t._pt,e,i,0,1,s?k:M);return t._pt=a,a.b=n,a.e=r,t._props.push(i),a},Z={deg:1,rad:1,turn:1},G={grid:1,flex:1},U=function t(e,i,r,s){var o,l,h,p,f=parseFloat(r)||0,d=(r+"").trim().substr((f+"").length)||"px",g=a.style,y=m.test(i),v="svg"===e.tagName.toLowerCase(),x=(v?"client":"offset")+(y?"Width":"Height"),b="px"===s,w="%"===s;if(s===d||!f||Z[s]||Z[d])return f;if("px"===d||b||(f=t(e,i,r,"px")),p=e.getCTM&&D(e),(w||"%"===d)&&(u[i]||~i.indexOf("adius")))return o=p?e.getBBox()[y?"width":"height"]:e[x],(0,c.E_)(w?f/o*100:f/100*o);if(g[y?"width":"height"]=100+(b?d:s),l=~i.indexOf("adius")||"em"===s&&e.appendChild&&!v?e:e.parentNode,p&&(l=(e.ownerSVGElement||{}).parentNode),l&&l!==n&&l.appendChild||(l=n.body),(h=l._gsap)&&w&&h.width&&y&&h.time===c.au.time&&!h.uncache)return(0,c.E_)(f/h.width*100);if(w&&("height"===i||"width"===i)){var _=e.style[i];e.style[i]=100+s,o=e[x],_?e.style[i]=_:W(e,i)}else(w||"%"===d)&&!G[I(l,"display")]&&(g.position=I(e,"position")),l===e&&(g.position="static"),l.appendChild(a),o=a[x],l.removeChild(a),g.position="absolute";return y&&w&&((h=(0,c.a0)(l)).time=c.au.time,h.width=l[x]),(0,c.E_)(b?o*f/100:o&&f?100/o*f:0)},$=function(t,e,i,n){var r;return s||H(),e in v&&"transform"!==e&&~(e=v[e]).indexOf(",")&&(e=e.split(",")[0]),u[e]&&"transform"!==e?(r=th(t,n),r="transformOrigin"!==e?r[e]:r.svg?r.origin:tc(I(t,T))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||n||~(r+"").indexOf("calc("))&&(r=ti[e]&&ti[e](t,e,i)||I(t,e)||(0,c.n)(t,e)||("opacity"===e?1:0)),i&&!~(r+"").trim().indexOf(" ")?U(t,e,r,i)+i:r},K=function(t,e,i,n){if(!i||"none"===i){var r=F(e,t,1),s=r&&I(t,r,1);s&&s!==i?(e=r,i=s):"borderColor"===e&&(i=I(t,"borderTopColor"))}var a,o,l,h,u,p,f,d,g,m,y,v=new c.J7(this._pt,t.style,e,0,1,c.l1),x=0,b=0;if(v.b=i,v.e=n,i+="","auto"==(n+="")&&(p=t.style[e],t.style[e]=n,n=I(t,e)||n,p?t.style[e]=p:W(t,e)),a=[i,n],(0,c.Uc)(a),i=a[0],n=a[1],l=i.match(c.vM)||[],(n.match(c.vM)||[]).length){for(;o=c.vM.exec(n);)f=o[0],g=n.substring(x,o.index),u?u=(u+1)%5:("rgba("===g.substr(-5)||"hsla("===g.substr(-5))&&(u=1),f!==(p=l[b++]||"")&&(h=parseFloat(p)||0,y=p.substr((h+"").length),"="===f.charAt(1)&&(f=(0,c.B0)(h,f)+y),d=parseFloat(f),m=f.substr((d+"").length),x=c.vM.lastIndex-m.length,m||(m=m||c.Yz.units[e]||y,x!==n.length||(n+=m,v.e+=m)),y!==m&&(h=U(t,e,p,m)||0),v._pt={_next:v._pt,p:g||1===b?g:",",s:h,c:d-h,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=x-1;)u[i=o[r]]&&(n=1,i="transformOrigin"===i?T:P),W(s,i);n&&(W(s,P),l&&(l.svg&&s.removeAttribute("transform"),th(s,1),l.uncache=1,B(a)))}},ti={clearProps:function(t,e,i,n,r){if("isFromStart"!==r.data){var s=t._pt=new c.J7(t._pt,e,i,0,0,te);return s.u=n,s.pr=-10,s.tween=r,t._props.push(i),1}}},tn=[1,0,0,1,0,0],tr={},ts=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ta=function(t){var e=I(t,P);return ts(e)?tn:e.substr(7).match(c.vX).map(c.E_)},to=function(t,e){var i,n,s,a,o=t._gsap||(0,c.a0)(t),l=t.style,h=ta(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(s=t.transform.baseVal.consolidate().matrix).a,s.b,s.c,s.d,s.e,s.f]).join(",")?tn:h:(h!==tn||t.offsetParent||t===r||o.svg||(s=l.display,l.display="block",(i=t.parentNode)&&t.offsetParent||(a=1,n=t.nextElementSibling,r.appendChild(t)),h=ta(t),s?l.display=s:W(t,"display"),a&&(n?i.insertBefore(t,n):i?i.appendChild(t):r.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},tl=function(t,e,i,n,r,s){var a,o,l,h,c=t._gsap,u=r||to(t,!0),p=c.xOrigin||0,f=c.yOrigin||0,d=c.xOffset||0,g=c.yOffset||0,m=u[0],y=u[1],v=u[2],x=u[3],b=u[4],w=u[5],_=e.split(" "),M=parseFloat(_[0])||0,k=parseFloat(_[1])||0;i?u!==tn&&(o=m*x-y*v)&&(l=x/o*M+-v/o*k+(v*w-x*b)/o,h=-y/o*M+m/o*k-(m*w-y*b)/o,M=l,k=h):(M=(a=R(t)).x+(~_[0].indexOf("%")?M/100*a.width:M),k=a.y+(~(_[1]||_[0]).indexOf("%")?k/100*a.height:k)),n||!1!==n&&c.smooth?(b=M-p,w=k-f,c.xOffset=d+(b*m+w*v)-b,c.yOffset=g+(b*y+w*x)-w):c.xOffset=c.yOffset=0,c.xOrigin=M,c.yOrigin=k,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!i,t.style[T]="0px 0px",s&&(J(s,c,"xOrigin",p,M),J(s,c,"yOrigin",f,k),J(s,c,"xOffset",d,c.xOffset),J(s,c,"yOffset",g,c.yOffset)),t.setAttribute("data-svg-origin",M+" "+k)},th=function(t,e){var i=t._gsap||new c.n6(t);if("x"in i&&!e&&!i.uncache)return i;var n,r,s,a,o,l,u,g,m,y,v,x,b,w,_,M,k,O,C,S,A,E,z,V,B,L,Y,X,N,F,H,j,q=t.style,R=i.scaleX<0,W=getComputedStyle(t),J=I(t,T)||"0";return n=r=s=l=u=g=m=y=v=0,a=o=1,i.svg=!!(t.getCTM&&D(t)),W.translate&&(("none"!==W.translate||"none"!==W.scale||"none"!==W.rotate)&&(q[P]=("none"!==W.translate?"translate3d("+(W.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==W.rotate?"rotate("+W.rotate+") ":"")+("none"!==W.scale?"scale("+W.scale.split(" ").join(",")+") ":"")+("none"!==W[P]?W[P]:"")),q.scale=q.rotate=q.translate="none"),w=to(t,i.svg),i.svg&&(i.uncache?(B=t.getBBox(),J=i.xOrigin-B.x+"px "+(i.yOrigin-B.y)+"px",V=""):V=!e&&t.getAttribute("data-svg-origin"),tl(t,V||J,!!V||i.originIsAbsolute,!1!==i.smooth,w)),x=i.xOrigin||0,b=i.yOrigin||0,w!==tn&&(O=w[0],C=w[1],S=w[2],A=w[3],n=E=w[4],r=z=w[5],6===w.length?(a=Math.sqrt(O*O+C*C),o=Math.sqrt(A*A+S*S),l=O||C?d(C,O)*p:0,(m=S||A?d(S,A)*p+l:0)&&(o*=Math.abs(Math.cos(m*f))),i.svg&&(n-=x-(x*O+b*S),r-=b-(x*C+b*A))):(j=w[6],F=w[7],Y=w[8],X=w[9],N=w[10],H=w[11],n=w[12],r=w[13],s=w[14],u=(_=d(j,N))*p,_&&(V=E*(M=Math.cos(-_))+Y*(k=Math.sin(-_)),B=z*M+X*k,L=j*M+N*k,Y=-(E*k)+Y*M,X=-(z*k)+X*M,N=-(j*k)+N*M,H=-(F*k)+H*M,E=V,z=B,j=L),g=(_=d(-S,N))*p,_&&(V=O*(M=Math.cos(-_))-Y*(k=Math.sin(-_)),B=C*M-X*k,L=S*M-N*k,H=A*k+H*M,O=V,C=B,S=L),l=(_=d(C,O))*p,_&&(V=O*(M=Math.cos(_))+C*(k=Math.sin(_)),B=E*M+z*k,C=C*M-O*k,z=z*M-E*k,O=V,E=B),u&&Math.abs(u)+Math.abs(l)>359.9&&(u=l=0,g=180-g),a=(0,c.E_)(Math.sqrt(O*O+C*C+S*S)),o=(0,c.E_)(Math.sqrt(z*z+j*j)),m=Math.abs(_=d(E,z))>2e-4?_*p:0,v=H?1/(H<0?-H:H):0),i.svg&&(V=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!ts(I(t,P)),V&&t.setAttribute("transform",V))),Math.abs(m)>90&&270>Math.abs(m)&&(R?(a*=-1,m+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,m+=m<=0?180:-180)),e=e||i.uncache,i.x=n-((i.xPercent=n&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+"px",i.y=r-((i.yPercent=r&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+"px",i.z=s+"px",i.scaleX=(0,c.E_)(a),i.scaleY=(0,c.E_)(o),i.rotation=(0,c.E_)(l)+"deg",i.rotationX=(0,c.E_)(u)+"deg",i.rotationY=(0,c.E_)(g)+"deg",i.skewX=m+"deg",i.skewY=y+"deg",i.transformPerspective=v+"px",(i.zOrigin=parseFloat(J.split(" ")[2])||!e&&i.zOrigin||0)&&(q[T]=tc(J)),i.xOffset=i.yOffset=0,i.force3D=c.Yz.force3D,i.renderTransform=i.svg?tg:h?td:tp,i.uncache=0,i},tc=function(t){return(t=t.split(" "))[0]+" "+t[1]},tu=function(t,e,i){var n=(0,c.l_)(e);return(0,c.E_)(parseFloat(e)+parseFloat(U(t,"x",i+"px",n)))+n},tp=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,td(t,e)},tf="0deg",td=function(t,e){var i=e||this,n=i.xPercent,r=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,c=i.rotationX,u=i.skewX,p=i.skewY,d=i.scaleX,g=i.scaleY,m=i.transformPerspective,y=i.force3D,v=i.target,x=i.zOrigin,b="",w="auto"===y&&t&&1!==t||!0===y;if(x&&(c!==tf||h!==tf)){var _,M=parseFloat(h)*f,k=Math.sin(M),O=Math.cos(M);s=tu(v,s,-(k*(_=Math.cos(M=parseFloat(c)*f))*x)),a=tu(v,a,-(-Math.sin(M)*x)),o=tu(v,o,-(O*_*x)+x)}"0px"!==m&&(b+="perspective("+m+") "),(n||r)&&(b+="translate("+n+"%, "+r+"%) "),(w||"0px"!==s||"0px"!==a||"0px"!==o)&&(b+="0px"!==o||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+") "),l!==tf&&(b+="rotate("+l+") "),h!==tf&&(b+="rotateY("+h+") "),c!==tf&&(b+="rotateX("+c+") "),(u!==tf||p!==tf)&&(b+="skew("+u+", "+p+") "),(1!==d||1!==g)&&(b+="scale("+d+", "+g+") "),v.style[P]=b||"translate(0, 0)"},tg=function(t,e){var i,n,r,s,a,o=e||this,l=o.xPercent,h=o.yPercent,u=o.x,p=o.y,d=o.rotation,g=o.skewX,m=o.skewY,y=o.scaleX,v=o.scaleY,x=o.target,b=o.xOrigin,w=o.yOrigin,_=o.xOffset,M=o.yOffset,k=o.forceCSS,O=parseFloat(u),C=parseFloat(p);d=parseFloat(d),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),d+=m),d||g?(d*=f,g*=f,i=Math.cos(d)*y,n=Math.sin(d)*y,r=-(Math.sin(d-g)*v),s=Math.cos(d-g)*v,g&&(m*=f,r*=a=Math.sqrt(1+(a=Math.tan(g-m))*a),s*=a,m&&(i*=a=Math.sqrt(1+(a=Math.tan(m))*a),n*=a)),i=(0,c.E_)(i),n=(0,c.E_)(n),r=(0,c.E_)(r),s=(0,c.E_)(s)):(i=y,s=v,n=r=0),(O&&!~(u+"").indexOf("px")||C&&!~(p+"").indexOf("px"))&&(O=U(x,"x",u,"px"),C=U(x,"y",p,"px")),(b||w||_||M)&&(O=(0,c.E_)(O+b-(b*i+w*r)+_),C=(0,c.E_)(C+w-(b*n+w*s)+M)),(l||h)&&(a=x.getBBox(),O=(0,c.E_)(O+l/100*a.width),C=(0,c.E_)(C+h/100*a.height)),a="matrix("+i+","+n+","+r+","+s+","+O+","+C+")",x.setAttribute("transform",a),k&&(x.style[P]=a)},tm=function(t,e,i,n,r){var s,a,o=(0,c.vQ)(r),l=parseFloat(r)*(o&&~r.indexOf("rad")?p:1)-n,h=n+l+"deg";return o&&("short"===(s=r.split("_")[1])&&(l%=360)!=l%180&&(l+=l<0?360:-360),"cw"===s&&l<0?l=(l+36e9)%360-360*~~(l/360):"ccw"===s&&l>0&&(l=(l-36e9)%360-360*~~(l/360))),t._pt=a=new c.J7(t._pt,e,i,n,l,b),a.e=h,a.u="deg",t._props.push(i),a},ty=function(t,e){for(var i in e)t[i]=e[i];return t},tv=function(t,e,i){var n,r,s,a,o,l,h,p=ty({},i._gsap),f=i.style;for(r in p.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),f[P]=e,n=th(i,1),W(i,P),i.setAttribute("transform",s)):(s=getComputedStyle(i)[P],f[P]=e,n=th(i,1),f[P]=s),u)(s=p[r])!==(a=n[r])&&0>"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)&&(o=(0,c.l_)(s)!==(h=(0,c.l_)(a))?U(i,r,s,h):parseFloat(s),l=parseFloat(a),t._pt=new c.J7(t._pt,n,r,o,l-o,x),t._pt.u=h||0,t._props.push(r));ty(n,p)};(0,c.fA)("padding,margin,Width,Radius",function(t,e){var i="Right",n="Bottom",r="Left",s=(e<3?["Top",i,n,r]:["Top"+r,"Top"+i,n+i,n+r]).map(function(i){return e<2?t+i:"border"+i+t});ti[e>1?"border"+t:t]=function(t,e,i,n,r){var a,o;if(arguments.length<4)return 5===(o=(a=s.map(function(e){return $(t,e,i)})).join(" ")).split(a[0]).length?a[0]:o;a=(n+"").split(" "),o={},s.forEach(function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]}),t.init(e,o,r)}});var tx={name:"css",register:H,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,n,r){var a,o,l,h,p,f,d,g,m,b,M,k,O,C,S,A,E=this._props,z=t.style,V=i.vars.startAt;for(d in s||H(),this.styles=this.styles||Y(t),A=this.styles.props,this.tween=i,e)if("autoRound"!==d&&(o=e[d],!(c.wU[d]&&(0,c.Zm)(d,e,i,n,t,r)))){if(p=typeof o,f=ti[d],"function"===p&&(p=typeof(o=o.call(i,n,t,r))),"string"===p&&~o.indexOf("random(")&&(o=(0,c.Vy)(o)),f)f(this,t,d,o,i)&&(S=1);else if("--"===d.substr(0,2))a=(getComputedStyle(t).getPropertyValue(d)+"").trim(),o+="",c.qA.lastIndex=0,c.qA.test(a)||(g=(0,c.l_)(a),m=(0,c.l_)(o)),m?g!==m&&(a=U(t,d,a,m)+m):g&&(o+=g),this.add(z,"setProperty",a,o,n,r,0,0,d),E.push(d),A.push(d,0,z[d]);else if("undefined"!==p){if(V&&d in V?(a="function"==typeof V[d]?V[d].call(i,n,t,r):V[d],(0,c.vQ)(a)&&~a.indexOf("random(")&&(a=(0,c.Vy)(a)),(0,c.l_)(a+"")||"auto"===a||(a+=c.Yz.units[d]||(0,c.l_)($(t,d))||""),"="===(a+"").charAt(1)&&(a=$(t,d))):a=$(t,d),h=parseFloat(a),(b="string"===p&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),l=parseFloat(o),d in v&&("autoAlpha"===d&&(1===h&&"hidden"===$(t,"visibility")&&l&&(h=0),A.push("visibility",0,z.visibility),J(this,z,"visibility",h?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==d&&"transform"!==d&&~(d=v[d]).indexOf(",")&&(d=d.split(",")[0])),M=d in u){if(this.styles.save(d),k||((O=t._gsap).renderTransform&&!e.parseTransform||th(t,e.parseTransform),C=!1!==e.smoothOrigin&&O.smooth,(k=this._pt=new c.J7(this._pt,z,P,0,1,O.renderTransform,O,0,-1)).dep=1),"scale"===d)this._pt=new c.J7(this._pt,O,"scaleY",O.scaleY,(b?(0,c.B0)(O.scaleY,b+l):l)-O.scaleY||0,x),this._pt.u=0,E.push("scaleY",d),d+="X";else if("transformOrigin"===d){A.push(T,0,z[T]),o=tt(o),O.svg?tl(t,o,0,C,0,this):((m=parseFloat(o.split(" ")[2])||0)!==O.zOrigin&&J(this,O,"zOrigin",O.zOrigin,m),J(this,z,d,tc(a),tc(o)));continue}else if("svgOrigin"===d){tl(t,o,1,C,0,this);continue}else if(d in tr){tm(this,O,d,h,b?(0,c.B0)(h,b+o):o);continue}else if("smoothOrigin"===d){J(this,O,"smooth",O.smooth,o);continue}else if("force3D"===d){O[d]=o;continue}else if("transform"===d){tv(this,o,t);continue}}else d in z||(d=F(d)||d);if(M||(l||0===l)&&(h||0===h)&&!y.test(o)&&d in z)g=(a+"").substr((h+"").length),l||(l=0),m=(0,c.l_)(o)||(d in c.Yz.units?c.Yz.units[d]:g),g!==m&&(h=U(t,d,a,m)),this._pt=new c.J7(this._pt,M?O:z,d,h,(b?(0,c.B0)(h,b+l):l)-h,M||"px"!==m&&"zIndex"!==d||!1===e.autoRound?x:_),this._pt.u=m||0,g!==m&&"%"!==m&&(this._pt.b=a,this._pt.r=w);else if(d in z)K.call(this,t,d,a,b?b+o:o);else if(d in t)this.add(t,d,a||t[d],b?b+o:o,n,r);else if("parseTransform"!==d){(0,c.dg)(d,o);continue}M||(d in z?A.push(d,0,z[d]):A.push(d,1,a||t[d])),E.push(d)}}S&&(0,c.St)(this)},render:function(t,e){if(e.tween._time||!l())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:$,aliases:v,getSetter:function(t,e,i){var n=v[e];return n&&0>n.indexOf(",")&&(e=n),e in u&&e!==T&&(t._gsap.x||$(t,"x"))?i&&o===i?"scale"===e?A:S:(o=i||{},"scale"===e?E:z):t.style&&!(0,c.OF)(t.style[e])?O:~e.indexOf("-")?C:(0,c.Dx)(t,e)},core:{_removeProperty:W,_getMatrix:to}};c.os.utils.checkPrefix=F,c.os.core.getStyleSaver=Y,function(t,e,i,n){var r=(0,c.fA)(t+","+e+","+i,function(t){u[t]=1});(0,c.fA)(e,function(t){c.Yz.units[t]="deg",tr[t]=1}),v[r[13]]=t+","+e,(0,c.fA)(n,function(t){var e=t.split(":");v[e[1]]=r[e[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),(0,c.fA)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){c.Yz.units[t]="px"}),c.os.registerPlugin(tx);var tb=c.os.registerPlugin(tx)||c.os;tb.core.Tween},34181:(t,e,i)=>{var n=i(24994);e.A=void 0;var r=n(i(44888)),s=i(74848);e.A=(0,r.default)([(0,s.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},16512:(t,e,i)=>{var n=i(24994);e.A=void 0;var r=n(i(44888)),s=i(74848);e.A=(0,r.default)([(0,s.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2zM7 3h10v1H7zm10 18H7v-1h10z"},"1")],"SendToMobileTwoTone")},48144:(t,e,i)=>{var n=i(24994);e.A=void 0;var r=n(i(44888)),s=i(74848);e.A=(0,r.default)([(0,s.jsx)("path",{d:"M14 5H5v14h14v-9h-5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,s.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,s.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zm4 16H5V5h9v5h5z"},"2"),(0,s.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,s.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone")},73182:(t,e,i)=>{var n=i(24994);e.A=void 0;var r=n(i(44888)),s=i(74848);e.A=(0,r.default)([(0,s.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5m6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"},"1")],"TipsAndUpdatesTwoTone")},45014:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},59140:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},46051:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},76897:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/304-44c7b2ac8964083c.js b/dsql-app/.local_dist/static/chunks/304-44c7b2ac8964083c.js new file mode 100644 index 0000000..235ae1a --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/304-44c7b2ac8964083c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[304],{99862:(e,a,t)=>{t.d(a,{A:()=>n});var l=t(74848);t(96540);var s=t(86625);function n(){return(0,l.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,l.jsx)(s.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},77121:(e,a,t)=>{t.d(a,{A:()=>i});var l=t(74848);t(96540);var s=t(87220),n=t(50856);function i(e){let{slugText:a,justIcon:t,noIcon:i,title:d,outlined:o,extraClasses:c}=e;return(0,l.jsxs)("div",{className:(0,n.QP)("button small-text",o?" outlined gray bg-white":" ghost light-gray",c),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert('Copied: "'.concat(a,'"'))})},style:o?void 0:{padding:0},children:[!i&&(0,l.jsx)(s.A,{size:o?15:20}),!t&&(0,l.jsx)("span",{className:"text-slate-500 dark:text-slate-300",children:d||"Copy Slug"})]})}},85897:(e,a,t)=>{t.d(a,{A:()=>x});var l=t(74848),s=t(96540),n=t(77121),i=t(41238),d=t(78152),o=t(16512),c=t(48144),r=t(73182),m=t(23698),u=t(620),h=t(62027),b=t(46051);function x(e){var a,t;let{database:d,query:o,confirmedDelegetedUser:c,user:r}=e,{active_clone:m,active_clone_parent_db:u}=d,x=null==c?void 0:c.delegated;null==c||null===(a=c.priviledges)||void 0===a||a.match(/Edit Tables/i),null==c||null===(t=c.priviledges)||void 0===t||t.match(/Delete Tables/i);let[p,f]=s.useState(null);return(0,l.jsxs)("div",{className:"flex-wrap justify-center gap-4",children:[(0,l.jsxs)("div",{className:"dropdown-wrapper gap-4",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)("div",{className:"w-8 h-8 relative",children:[(0,l.jsx)("img",{src:d.db_image,alt:"Database Image",width:20,className:"w-full h-full rounded-full object-cover"}),(null==c?void 0:c.delegated)&&(0,l.jsxs)("div",{className:" absolute -bottom-2 left-5 gap-1",children:[(0,l.jsx)("img",{src:c.rootUserImage,alt:"Root User Image",className:"w-5 h-5 rounded-full object-cover border-2 border-white dark:border-slate-800 border-solid"}),(0,l.jsx)("span",{className:"text-xs",children:c.rootUserEmail})]})]}),(0,l.jsx)("span",{className:"font-semibold text-base"+((null==c?void 0:c.delegated)?" -mt-3":""),children:d.db_name})]}),(0,l.jsx)(h.A,{size:20}),(0,l.jsxs)("div",{className:"dropdown p-0",children:[(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d.db_slug,"/edit-database"),className:"button plain-text more-padding normal-weight",children:"Edit Database"}),(0,l.jsx)("hr",{className:"m-0"}),!m&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/add-database?duplicate=").concat(d.db_full_name),className:"button plain-text more-padding normal-weight",children:"Duplicate Database"}),(0,l.jsx)("hr",{className:"m-0"})]}),(0,l.jsx)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d.db_slug,"/schema"),className:"button plain-text more-padding normal-weight",children:"Schema"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d.db_slug,"/users"),className:"button plain-text more-padding normal-weight",children:"Database Users"}),!x&&(0,l.jsx)(g,{database:d,user:r})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(n.A,{slugText:d.db_slug,title:"Db Slug"}),(0,l.jsx)("div",{className:"-mt-1 gap-1",children:(0,l.jsx)(n.A,{slugText:d.db_full_name,title:"Full DB Name"})}),!x&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsxs)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/databases/").concat(d.db_slug,"/shell"),className:"button ghost small-text",style:{height:"30px",padding:0},children:[(0,l.jsx)(b.A,{size:20}),(0,l.jsx)("span",{className:"text-sm font-semibold",children:"Shell"})]})]}),(0,l.jsx)("hr",{className:"vertical"}),(0,l.jsx)(i.A,{})]})}function g(e){let{database:a,user:t}=e,[n,i]=s.useState(!1),h=s.useRef();return(0,l.jsxs)(s.Fragment,{children:[n&&(0,l.jsx)(u.A,{width:"20px"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/shell"),className:"button plain-text more-padding normal-weight",children:"Shell"}),(0,l.jsx)("hr",{className:"m-0"}),(null==a?void 0:a.remote_connected)==1?(0,l.jsx)(p,{database:a}):(0,l.jsx)("a",{href:"/admin/".concat(null==t?void 0:t.id,"/databases/").concat(a.db_slug,"/connect"),className:"button plain-text more-padding normal-weight",children:"Connect"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsxs)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{(0,d.A)({url:"/api/exportDatabase?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".sql")})},children:[(0,l.jsx)(o.A,{fontSize:"small",color:"action",className:"opacity-50"}),(0,l.jsx)("span",{children:"Export Database"})]}),(0,l.jsx)("input",{type:"file",name:"upload-update-schema",id:"",ref:h,className:"hidden"}),(0,l.jsxs)("button",{className:"button green outlined more-padding normal-weight w-full rounded-none -mb-[1px]",onClick:e=>{var t;h.current&&(h.current.addEventListener("change",e=>{let t=null===(l=e.target.files)||void 0===l?void 0:l[0];if(!t){alert("No File Selected");return}var l,s=new FileReader;s.onload=function(e){var t,l=null===(t=e.target)||void 0===t?void 0:t.result;l||alert("Invalid File!");try{let e=null==l?void 0:l.toString();if(!e)throw Error("Invalid File!");let t=JSON.parse(e);window.confirm("Are you sure you want to use this schema file for the current database?")&&window.confirm("Remember if any existing table doesn't exist in the new schema file that table and all its content will be erased forever. Continue?")&&(i(!0),(0,m.A)("/api/user-schema/replace-database-schema",{method:"POST",body:{schema:t,dbId:a.id}},!0).then(e=>{e.success&&window.location.reload()}).finally(()=>{i(!1)}))}catch(e){alert("Invalid File. Please enter a valid JSON file")}},s.readAsText(t)}),null===(t=h.current)||void 0===t||t.click())},children:[(0,l.jsx)(r.A,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Update From Schema"})]}),(0,l.jsxs)("button",{className:"button secondary outlined more-padding normal-weight w-full rounded-none",onClick:e=>{(0,d.A)({url:"/api/downloadDatabaseSchema?dbName=".concat(a.db_full_name),fileName:"".concat(a.db_full_name,".json")})},children:[(0,l.jsx)(c.A,{fontSize:"small",color:"action",className:"opacity-50 text-inherit"}),(0,l.jsx)("span",{children:"Download Schema"})]})]})}function p(e){let{database:a}=e;return(0,l.jsx)("button",{className:"button plain-text more-padding normal-weight w-full",onClick:e=>{window.confirm("Disconnect this Database from the remote host?")&&(0,m.A)("/api/connect/disconnect",{method:"POST",body:{dbId:a.id}},!0).then(e=>{e.success?window.location.reload():(console.log(e),alert(e.msg||"Remote disconnection failed. Please try again."))})},children:"Disconnect"})}},78152:(e,a,t)=>{t.d(a,{A:()=>l});function l(e){let{url:a,fileName:t,setLoading:l}=e;l&&l(!0),fetch(a,{method:"GET",headers:{"x-csrf-auth":localStorage.getItem("csrf")}}).then(e=>e.body).then(e=>{let a=null==e?void 0:e.getReader();if(a)return new ReadableStream({start:e=>(function t(){return null==a?void 0:a.read().then(a=>{let{done:l,value:s}=a;if(l){e.close();return}return e.enqueue(s),t()})})()})}).then(e=>new Response(e)).then(e=>e.blob()).then(e=>URL.createObjectURL(e)).then(e=>{let a=document.createElement("a");a.href=e,a.download=t,a.style.display="none",document.body.appendChild(a),a.click(),URL.revokeObjectURL(e),document.body.removeChild(a),setTimeout(()=>{l&&l(!1)},1e3)}).catch(e=>{console.log(e),setTimeout(()=>{l&&l(!1)},1e3)})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3127-b32b189c8e4fbfb2.js b/dsql-app/.local_dist/static/chunks/3127-b32b189c8e4fbfb2.js new file mode 100644 index 0000000..84a4bde --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/3127-b32b189c8e4fbfb2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3127],{41301:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(74848),s=l(62027);function i(e){let{selectOptions:t,name:l,onChangeHandler:i,required:a,setAlert:r,title:o,defaultValue:d,info:c,id:u}=e;try{function h(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!l.classList.contains("hidden")){l.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&l.classList.contains("hidden"))){if(!t){l.classList.add("hidden");return}if(l.classList.contains("hidden")){l.classList.remove("hidden");return}l.classList.add("hidden")}}return(0,n.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[o&&(0,n.jsxs)("label",{htmlFor:l,children:[o,a?"":" (optional)"]}),(0,n.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,n.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:a,onChange:e=>{r&&r(null),e.target.classList.remove("warning"),i&&i(e)},defaultValue:d||void 0,children:t.map((e,t)=>{let{payload:l,title:s}=e;return(0,n.jsx)("option",{value:l,selected:!!e.default,children:s},t+1)})}),(0,n.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,n.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:h,onMouseLeave:h,onClick:h,children:[(0,n.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,n.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,n.jsx)("span",{children:c})}),(0,n.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,n.jsx)("div",{children:"Form Select Error"})}}l(96540)},99862:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(74848);l(96540);var s=l(86625);function i(){return(0,n.jsx)("button",{className:"outlined gray p-2 w-9 h-9 flex items-center justify-center rounded-full",onClick:e=>{window.history.back()},children:(0,n.jsx)(s.A,{color:"inherit",className:"opacity-50 text-black",fontSize:"small"})})}},4709:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(74848),s=l(96540);function i(e){var t,l,i;let{confirmedDelegetedUser:a,linksArray:r,user:o}=e;null==a||a.delegated,null==a||null===(t=a.priviledges)||void 0===t||t.match(/Edit Tables/i),null==a||null===(l=a.priviledges)||void 0===l||l.match(/Delete Tables/i),null==a||null===(i=a.priviledges)||void 0===i||i.match(/Create Tables/i);let[d,c]=s.useState(r||null);return(s.useEffect(()=>{var e;if(r)return;let t=window.location.pathname,l=t.split("/"),n=[];n.push({title:"Home",path:t.match(/admin/)?"/admin":"/"}),null===(e=window.location.search)||void 0===e||e.match(/delegated=true/),l.forEach((e,t,l)=>{!(null==e?void 0:e.match(/./))||1==t||e.match(/^\d+$/)&&o||n.push({title:e,path:(()=>{let e="";for(let n=0;nt)&&s.match(/./)&&(e+="/".concat(s))}return e})()})}),c(n)},[]),d&&d[1])?(0,n.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:d.map((e,t,l)=>t===d.length-1?(0,n.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},t):(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,n.jsx)("span",{className:"opacity-20",children:"|"})]},t))}):(0,n.jsx)(s.Fragment,{})}},93127:(e,t,l)=>{let n;l.d(t,{A:()=>D});var s=l(74848),i=l(96540),a=l(25414),r=l(620),o=l(93813),d=l(60557),c=l(53657),u=l(31524),h=l(75238),m=l(89657),x=l(68144),p=l(58349);function v(e){var t;let{targetElement:l,setOpenStyleModal:n}=e;return l?(0,s.jsxs)("div",{className:"flex flex-col items-stretch p-6 max-w-lg",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Element Style"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{n(!1)},children:(0,s.jsx)(p.A,{})})]}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-css-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"CSS key"}),(0,s.jsx)("input",{type:"text",placeholder:"CSS Value",onKeyDownCapture:e=>{var t,n,s;let i=e.target;if(null===(t=e.key)||void 0===t?void 0:t.match(/enter/i)){let e=null===(n=i.closest(".add-css-block"))||void 0===n?void 0:n.children[0],t=null===(s=i.closest(".add-css-block"))||void 0===s?void 0:s.children[1],a=null==e?void 0:e.value,r=null==t?void 0:t.value;if(!(null==a?void 0:a.match(/./))||!(null==r?void 0:r.match(/./)))return;l.style[a]=r}}}),(0,s.jsx)("button",{onClick:e=>{var t,n;let s=e.target,i=null===(t=s.closest(".add-css-block"))||void 0===t?void 0:t.children[0],a=null===(n=s.closest(".add-css-block"))||void 0===n?void 0:n.children[1],r=null==i?void 0:i.value,o=null==a?void 0:a.value;(null==r?void 0:r.match(/./))&&(null==o?void 0:o.match(/./))&&(l.style[r]=o)},children:"Add"})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("button",{onClick:e=>{l.removeAttribute("style")},className:"secondary grow",children:"Reset"}),(0,s.jsx)("button",{onClick:e=>{l.style.display="flex",l.style.alignItems="center",l.style.gap="10px"},className:"outlined black grow",children:"Flex"}),(0,s.jsx)("button",{onClick:e=>{l.style.backgroundColor="rgb(241 245 249)"},className:"outlined black grow",children:"BG-Slate-100"}),(0,s.jsx)("button",{onClick:e=>{l.style.backgroundColor="#F6F4F8"},className:"outlined black grow",children:"BG-Main-light"}),(0,s.jsx)("button",{onClick:e=>{l.style.padding="10px"},className:"outlined black grow",children:"Padding-10px"}),(0,s.jsx)("button",{onClick:e=>{l.style.padding="10px 20px"},className:"outlined black grow",children:"Padding-10px-20px"}),(0,s.jsx)("button",{onClick:e=>{l.style.borderRadius="5px"},className:"outlined black grow",children:"Border-Radius-5px"}),(0,s.jsx)("button",{onClick:e=>{l.style.border="1px solid rgb(241 245 249)"},className:"outlined black grow",children:"Border-Slate-100"}),(0,s.jsx)("button",{onClick:e=>{l.style.border="1px solid rgb(226 232 240)"},className:"outlined black grow",children:"Border-Slate-200"}),(0,s.jsx)("button",{onClick:e=>{l.style.border="1px solid rgb(203 213 225)"},className:"outlined black grow",children:"Border-Slate-300"})]}),(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add class Name"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded add-class-name-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:e=>{var t,n;let s=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){let e=null==s?void 0:s.value;if(!(null==e?void 0:e.match(/./)))return;l.classList.add(e)}}}),(0,s.jsx)("button",{onClick:e=>{var t;let n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],s=null==n?void 0:n.value;(null==s?void 0:s.match(/./))&&l.classList.add(s)},children:"Add"}),(0,s.jsx)("button",{onClick:e=>{var t;let n=null===(t=e.target.closest(".add-class-name-block"))||void 0===t?void 0:t.children[0],s=null==n?void 0:n.value;(null==s?void 0:s.match(/./))&&l.classList.remove(s)},className:"outlined",children:"Remove"})]}),(null==l?void 0:null===(t=l.nodeName)||void 0===t?void 0:t.match(/^a$/i))?(0,s.jsxs)(i.Fragment,{children:[(0,s.jsx)("span",{className:"font-semibold text-xl mt-4",children:"Add URL"}),(0,s.jsxs)("div",{className:"items-stretch p-2 bg-slate-100 rounded href-block",children:[(0,s.jsx)("input",{type:"text",placeholder:"Class Name",onKeyDownCapture:e=>{var t,n;let s=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0];if(null===(n=e.key)||void 0===n?void 0:n.match(/enter/i)){let e=null==s?void 0:s.value;if(!(null==e?void 0:e.match(/./)))return;l.href=e}},defaultValue:null==l?void 0:l.href}),(0,s.jsx)("button",{onClick:e=>{var t;let n=null===(t=e.target.closest(".href-block"))||void 0===t?void 0:t.children[0],s=null==n?void 0:n.value;(null==s?void 0:s.match(/./))&&(l.href=s)},children:"Add"})]})]}):(0,s.jsx)(i.Fragment,{})]}):null}function g(e){let{targetElement:t,back:l}=e;if(!t)return;let n=t.nextElementSibling,s=t.previousElementSibling;!l&&n?n.after(t):l&&s&&s.before(t)}function f(e){var t,l,n;let{editor:s,node:i,setTargetElement:a}=e;s.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")});let r=null===(l=s.getWin().getSelection())||void 0===l?void 0:null===(t=l.anchorNode)||void 0===t?void 0:t.parentElement,o=i||r||null;o&&(null==o||null===(n=o.classList)||void 0===n||n.add("target-node"),a&&a(o))}var b=l(66154),j=l(52917),y=l(33622),w=l(34544),k=l(23698);function N(e){let{targetElement:t,setTargetElement:l,editor:n,setOpenSnippetsModal:a}=e,[o,d]=i.useState(!0),[c,u]=i.useState([]);return i.useEffect(()=>{(0,k.A)("/api/admin/docs/get-snippets",{method:"post",body:{}}).then(e=>{e.success&&(u(e.result),d(!1))})},[]),(0,s.jsxs)(w.A,{className:"m-auto p-6 flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto relative",children:[(0,s.jsxs)("div",{className:"w-full justify-between",children:[(0,s.jsx)("span",{className:"text-xl",children:"Snippets"}),(0,s.jsx)("button",{className:"w-10 h-10 plain-text",onClick:()=>{a(!1)},children:(0,s.jsx)(p.A,{})})]}),(0,s.jsxs)("div",{className:"flex-wrap relative w-full min-h-[100px] items-start",children:[o&&(0,s.jsx)(r.A,{}),c&&Array.isArray(c)&&c[0]&&c.map((e,i)=>(0,s.jsxs)("div",{className:"flex flex-col w-full items-start p-4 border border-slate-200 border-solid rounded cursor-pointer hover:shadow-lg transition-all hover:bg-slate-100",onClick:s=>{if(t){let s=document.createElement("div");s.innerHTML=Object.values(e)[0];let i=s.firstChild;i&&(t.appendChild(i),f({editor:n,node:i,setTargetElement:l})),a(!1)}else n.insertContent(Object.values(e)[0],{}),a(!1)},children:[(0,s.jsx)("span",{className:"font-semibold text-lg",children:Object.keys(e)[0]}),(0,s.jsx)("div",{className:"w-full block border border-slate-300 border-solid rounded-sm",dangerouslySetInnerHTML:{__html:Object.values(e)[0]}})]},i))]})]})}var A=l(16837),C=l(61373),S=l(64930),E=l(26261),L=l(17416);function _(e){let{editorRef:t}=e,[l,n]=i.useState(null),[a,r]=i.useState(!1),[o,p]=i.useState(!1);return(0,s.jsxs)("div",{className:"absolute top-[60px] z-50 -left-[38px] w-[40px] flex flex-col items-end",style:{boxShadow:"0 0 40px rgba(15, 23, 42, 0.2)"},children:[(0,s.jsxs)(d.A,{column:!0,className:"gap-[1px]",children:[(0,s.jsx)("div",{onClick:()=>{f({editor:t.current,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button secondary",children:(0,s.jsx)(j.A,{})}),(0,s.jsx)("div",{onClick:()=>{g({targetElement:l,back:!0})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(L.A,{})}),(0,s.jsx)("div",{onClick:()=>{g({targetElement:l})},style:{width:"40px",height:"40px"},className:"button dark",children:(0,s.jsx)(E.A,{})}),(0,s.jsx)("div",{onClick:()=>{p(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(c.A,{})}),(0,s.jsx)("div",{onClick:()=>{r(!0)},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(u.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function(e){let{editor:t,targetElement:l,setTargetElement:n}=e;if(t.getWin(),!l)return;let s=l.cloneNode(!0);s.nodeName.match(/html|document|body/i)||(l.insertAdjacentElement("afterend",s),l.classList.remove("target-node"),n(s))}({editor:t.current,targetElement:l,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(h.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function(e){let{editor:t,targetElement:l,setTargetElement:n}=e;if(t.getWin(),!l||l.nodeName.match(/html|document|body/i))return;let s=l.parentElement;s||(n(l),f({editor:t,node:l,setTargetElement:n})),(null==s?void 0:s.nodeName.match(/html|document|body/i))?(n(l),f({editor:t,node:l,setTargetElement:n})):s&&(n(s),f({editor:t,node:s,setTargetElement:n}))}({editor:t.current,targetElement:l,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(b.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function(e){let{editor:t,targetElement:l,setTargetElement:n}=e;if(t.getWin(),!l)return;let s=l.children[0];s?(n(s),f({editor:t,node:s,setTargetElement:n})):(n(l),f({editor:t,node:l,setTargetElement:n}))}({editor:t.current,targetElement:l,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(b.A,{className:"rotate-180"})}),(0,s.jsx)("div",{onClick:()=>{!function(e){let{editor:t,targetElement:l,setTargetElement:n}=e;if(!l)return;let s=l.previousElementSibling;s?(n(s),f({editor:t,node:s,setTargetElement:n})):(n(l),f({editor:t,node:l,setTargetElement:n}))}({editor:t.current,targetElement:l,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(C.A,{})}),(0,s.jsx)("div",{onClick:()=>{!function(e){let{editor:t,targetElement:l,setTargetElement:n}=e;if(!l)return;let s=l.nextElementSibling;s?(n(s),f({editor:t,node:s,setTargetElement:n})):(n(l),f({editor:t,node:l,setTargetElement:n}))}({editor:t.current,targetElement:l,setTargetElement:n})},style:{width:"40px",height:"40px"},className:"button",children:(0,s.jsx)(A.A,{})}),(0,s.jsx)("div",{onClick:()=>{if(l){let e=l.parentNode;e.removeChild(l),f({editor:t.current,node:e,setTargetElement:n})}},style:{width:"40px",height:"40px"},className:"button bg-red-500",children:(0,s.jsx)(S.A,{})}),(0,s.jsx)("div",{onClick:()=>{t.current.getDoc().querySelectorAll(".target-node").forEach(e=>{e.classList.remove("target-node")}),n(null)},style:{width:"40px",height:"40px"},className:"button white",children:(0,s.jsx)(y.A,{className:"rotate-180"})})]}),(0,s.jsx)(m.Ay,{open:a,onClose:()=>{r(!1)},anchor:"right",children:(0,s.jsx)(v,{targetElement:l,setOpenStyleModal:r})}),(0,s.jsx)(x.A,{open:o,onClose:()=>{p(!1)},children:(0,s.jsx)(N,{targetElement:l,setTargetElement:n,editor:t.current,setOpenSnippetsModal:p})})]})}function T(e){let{user:t,blockObject:l,placeholder:n,editorRef:a,height:r,extend:d}=e,[c,u]=i.useState(!1);return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(o.K,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{if(d){let e=t.getBody();e.style.padding="40px",e.className="RTE-DOCS"}a&&(a.current=t)},initialValue:l&&l.content?l.content:"",init:{height:r||400,width:"100%",relative_urls:!1,remove_script_host:!1,menubar:!1,plugins:d?["advlist","autolink","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount","codesample"]:["link"],toolbar:d?"undo redo | blocks | bold italic forecolor | codesample link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat":"undo redo | blocks | link",content_style:"body { font-family:Helvetica,Arial,sans-serif; font-size:18px }",placeholder:n||"Type something ...",content_css:d?"/styles/tiny.css":void 0,statusbar:!!d}}),d&&a&&(0,s.jsx)(_,{editorRef:a})]})}var R=l(99862),F=l(41301),O=l(4709);function D(e){let{data:t,user:l}=e,o=null!=t&&!!t.title,[d,c]=i.useState(!1),[u,h]=i.useState(null==t?void 0:t.level),[m,x]=i.useState(null==t?void 0:t.page_order),[p,v]=i.useState(null),[g,f]=i.useState(null),b=i.useRef(),j=i.useRef();return i.useEffect(()=>{parseInt(u)>1?(window.clearTimeout(n),n=window.setTimeout(()=>{(0,k.A)("/api/admin/docs/grab-parent-pages",{method:"post",body:{pagesLevel:parseInt(u)-1,currentPageId:null==t?void 0:t.id}}).then(e=>{if(e.success&&e.result&&Array.isArray(e.result)&&e.result[0]){if(v(e.result),t.parent_id){let l=e.result.filter(e=>e.id==t.parent_id);l[0]?f(l[0]):f(e.result[0])}else f(e.result[0])}})},500)):(v(null),f(null))},[u]),(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)(R.A,{}),(0,s.jsx)("h2",{className:"text-xl m-0",children:o?"Update page":"Create a new Docs Page"})]}),(0,s.jsx)("div",{className:"mb-4",children:(0,s.jsx)(O.A,{user:l})}),(0,s.jsxs)("div",{className:"paper flex-col items-stretch gap-10 w-full relative",children:[d&&(0,s.jsx)(r.A,{}),(0,s.jsxs)("form",{onSubmit:e=>{var l,n,s,i,a;e.preventDefault(),c(!0);let r=e.target.title,d=null===(l=j.current)||void 0===l?void 0:l.getDoc(),h=null===(n=b.current)||void 0===n?void 0:n.getDoc();function x(e){let t=e.href;(null==t?void 0:t.match(/\~/))&&(e.href=t.replace(/.*?\~\//,"/")),(null==t?void 0:t.match(/\.\.\//))&&(e.href=t.replace(/.*?\.\.\//,"/"))}null==d||d.querySelectorAll(".target-node").forEach(e=>e.classList.remove("target-node")),null==d||d.querySelectorAll("a").forEach(e=>{x(e)}),null==h||h.querySelectorAll("a").forEach(e=>{x(e)});let p=null===(s=b.current)||void 0===s?void 0:s.getContent(),v=null===(i=j.current)||void 0===i?void 0:i.getBody().innerHTML,f=null===(a=j.current)||void 0===a?void 0:a.getBody().innerText,y={title:r.value,description:p,content:v,text_content:f,level:u,page_order:m};o&&(y.id=t.id),(null==g?void 0:g.id)&&(y.parent_id=g.id),(0,k.A)("/api/admin/docs/".concat(o?"update-page":"add-page"),{method:"post",body:y}).then(e=>{e.success?window.location.reload():(alert("Operation Failed!"),setTimeout(()=>{c(!1)},1e3))})},className:"flex flex-col gap-4 w-full",children:[(0,s.jsx)(a.A,{placeholder:"Enter a title",fontSize:"30px",name:"title",defaultValue:o?t.title:null}),(0,s.jsxs)("div",{className:"card no-hover",children:[(0,s.jsx)(a.A,{numberText:!0,placeholder:"Level",defaultValue:o?u:"1",maxWidth:"140px",minValue:1,maxValue:4,step:1,name:"page-level",title:"Page Level",setValue:h}),(0,s.jsx)(a.A,{numberText:!0,placeholder:"Level",defaultValue:o?m:"1",maxWidth:"140px",minValue:1,step:1,name:"page-order",title:"Page Order",setValue:x}),p&&Array.isArray(p)&&(0,s.jsx)(F.A,{selectOptions:p.map(e=>({title:e.title,payload:e.id,default:(null==g?void 0:g.id)==e.id})),title:"Parent Page",required:!0,onChangeHandler:e=>{let t=p.filter(t=>t.id==e.target.value);t[0]?f(t[0]):window.alert("No Matching parent page!")}})]}),(0,s.jsx)(T,{placeholder:"Describe this page briefly",editorRef:b,blockObject:o?{content:t.description}:null,height:200}),(0,s.jsx)(T,{placeholder:"Page Content",editorRef:j,blockObject:o?{content:t.content}:null,height:600,extend:!0}),(0,s.jsx)("button",{type:"submit",children:o?"Update Page":"Add Page"})]})]})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3181-1097b37499196dce.js b/dsql-app/.local_dist/static/chunks/3181-1097b37499196dce.js deleted file mode 100644 index aed3f56..0000000 --- a/dsql-app/.local_dist/static/chunks/3181-1097b37499196dce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3181],{96224:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,l.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,l.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,l.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");a.Z=c},88518:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");a.Z=c},66022:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"},"1")],"CopyAllTwoTone");a.Z=c},29277:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M16 9H8v10h8V9zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9z"},"1")],"DeleteForeverTwoTone");a.Z=c},96673:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M14.17 3H8v14h11V7.83L14.17 3zm2.33 12h-6v-2h6v2zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2v2z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14v2zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7h-2zm2 6h-6v2h6v-2zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7l-6-6zm4 16H8V3h6.17L19 7.83V17z"},"1")],"DifferenceTwoTone");a.Z=c},63749:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)([(0,l.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06-3.75-3.75zM5.92 18H5v-.92l7.06-7.06.92.92L5.92 18zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83z"},"1")],"DriveFileRenameOutlineTwoTone");a.Z=c},74458:function(e,a,t){var s=t(64836);a.Z=void 0;var n=s(t(64938)),l=t(85893),c=(0,n.default)((0,l.jsx)("path",{d:"M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"}),"StorageTwoTone");a.Z=c},57150:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},64998:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},33587:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(e,a,t){t.d(a,{Z:function(){return s}});const s=(0,t(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},92184:function(e,a,t){t.d(a,{Z:function(){return h}});var s=t(828),n=t(85893),l=t(67294),c=t(94739),i=t(25472),r=t(86729),d=t(95264),o=t(45449),u=t(64998);function h(e){var a,t=e.database,h=e.setTargetDatabase,x=e.delegated,m=(e.icons,e.user),p="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/").concat(t.db_slug)+(x?"?delegated=true&dbUserId=".concat(t.user_id):""),f=t.active_clone,v=t.active_clone_parent_db,j=(0,s.Z)(l.useState(!1),2),b=j[0],g=j[1];return(0,n.jsxs)("a",{href:p,className:"card",onClick:function(e){(e.target.closest(".db-list-item-actions-block")||e.target.closest(".cancel-link"))&&e.preventDefault(),x&&(e.preventDefault(),g(!0),(0,r.Z)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:t.user_id,priviledges:t.user_priviledge,database:t.db_slug}},!0).then((function(e){e.success&&(window.location.href=p)})),setTimeout((function(){g(!1)}),1e3))},children:[b&&(0,n.jsx)(d.Z,{width:"20px"}),(0,n.jsx)("img",{src:t.db_image?t.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:t.db_image?"avatar":"avatar opacity-50"}),(0,n.jsxs)("div",{className:"flex-col items-start grow",children:[(0,n.jsx)("span",{className:"title",children:t.db_name}),v&&(0,n.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,n.jsx)("b",{children:v.replace(/datasquirel_user_\d+_/,"")})]}),(0,n.jsx)("div",{className:"-mt-2",children:(0,n.jsx)(c.Z,{slugText:t.db_slug,smaller:!0})}),(0,n.jsx)("div",{className:"-mt-1 gap-1",children:(0,n.jsx)(c.Z,{slugText:t.db_full_name,smaller:!0,full:!0})}),!x&&(0,n.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(a=t.date_created)||void 0===a?void 0:a.substring(0,21)]}),x&&(0,n.jsxs)("div",{className:"flex items-center mt-2",children:[(0,n.jsx)("img",{src:t.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,n.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,n.jsxs)("span",{className:"text-xs text-slate-600",children:[t.first_name," ",t.last_name]}),(0,n.jsx)("span",{className:"text-xs text-slate-400",children:t.email})]})]}),(0,n.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,n.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,n.jsxs)(o.Z,{children:[!x&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){window.location.pathname="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/").concat(t.db_slug,"/edit-database")},children:(0,n.jsx)("span",{children:"Edit"})}),!x&&!f&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){window.location.href="/admin/".concat(null===m||void 0===m?void 0:m.id,"/databases/add-database?duplicate=").concat(t.db_full_name)},children:(0,n.jsx)("span",{children:"Duplicate"})}),!x&&(0,n.jsx)("button",{className:"outlined light-gray small-text",onClick:function(e){h&&h(t),(0,i.Mw)("delete-database-confirmation")},children:(0,n.jsx)("span",{children:"Delete"})})]})}),(0,n.jsx)(u.Z,{className:"text-slate-600",size:20})]})]})]})}},68744:function(e,a,t){t.d(a,{Z:function(){return o}});var s=t(85893),n=t(67294),l=t(2109),c=t(424),i=t(97946),r=t(96891),d=t(55592);function o(e){var a,t=n.useContext(l.DatabasesContext),o=t.databases,u=t.setTargetDatabase,h=t.user;return(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,s.jsxs)("a",{href:"/admin/".concat(null===h||void 0===h?void 0:h.id,"/databases/add-database"),className:"button flex items-center gap-2",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add Database"})]})]}),(0,s.jsx)(c.Z,{user:h})]}),(null===h||void 0===h||null===(a=h.verification_status)||void 0===a?void 0:a.toString().match(/1/))?(0,s.jsxs)(n.Fragment,{children:[(0,s.jsx)(r.Z,{databases:o,setTargetDatabase:u,user:h}),(0,s.jsx)(d.Z,{user:h})]}):(0,s.jsx)(i.Z,{})]})}},96891:function(e,a,t){t.d(a,{Z:function(){return u}});var s=t(85893),n=t(67294),l=t(92184),c=t(63749),i=t(96673),r=t(29277),d=t(66022),o=t(74458);function u(e){var a=e.databases,t=e.setTargetDatabase,u=e.title,h=e.more,x=e.user;return(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("section",{className:"paper",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:u||"Database List"}),x&&a&&a[0]&&t&&(0,s.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map((function(e){return(0,s.jsx)(l.Z,{database:e,setTargetDatabase:t,icons:{edit:c.Z,duplicate:i.Z,delete:r.Z,copy:d.Z},user:x},e.id)}))}),h&&a&&a[0]&&(0,s.jsx)("a",{href:"/admin/".concat(null===x||void 0===x?void 0:x.id,"/databases"),className:"button w-full more-padding",children:"See All Databases"}),!a||!a[0]&&(0,s.jsxs)("a",{href:"/admin/".concat(null===x||void 0===x?void 0:x.id,"/databases/add-database"),className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,s.jsx)(o.Z,{color:"action",sx:{fontSize:80},className:"opacity-40"}),(0,s.jsx)("span",{className:"",children:"Add Database"})]})]})})}},55592:function(e,a,t){t.d(a,{Z:function(){return x}});var s=t(828),n=t(85893),l=t(67294),c=t(63749),i=t(96673),r=t(29277),d=t(66022),o=t(95264),u=t(86729),h=t(92184);function x(e){var a=e.user,t=l.useState(null),x=(0,s.Z)(t,2),m=x[0],p=x[1],f=(0,s.Z)(l.useState(!1),2),v=f[0],j=f[1];return l.useEffect((function(){(0,u.Z)("/api/getDelegatedDatabases").then((function(e){e.success&&(p(e.databases),j(!1))}))}),[]),(0,n.jsxs)("section",{className:"paper",children:[(0,n.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),v&&(0,n.jsx)(o.Z,{}),a&&m?m[0]?(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:m.map((function(e){return(0,n.jsx)(h.Z,{database:e,delegated:!0,icons:{edit:c.Z,duplicate:i.Z,delete:r.Z,copy:d.Z},user:a},e.id)}))})}):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,n.jsx)(l.Fragment,{children:(0,n.jsx)("div",{className:"w-full justify-center",children:(0,n.jsx)(o.Z,{position:"relative",width:"20px"})})})]})}},85012:function(e,a,t){t.d(a,{Z:function(){return d}});var s=t(828),n=t(85893),l=t(67294),c=t(86729),i=t(25472),r=t(95264);function d(e){var a=e.targetDatabase,t=(0,s.Z)(l.useState(!1),2),d=t[0],o=t[1];return(0,n.jsxs)(i.ZP,{title:"delete-database-confirmation",children:[d&&(0,n.jsx)(r.Z,{width:"20px"}),(0,n.jsxs)("h4",{className:"m-0",children:["Delete '",(null===a||void 0===a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{className:"outlined"+(d?" pointer-events-none opacity-40":""),onClick:function(e){a?(o(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,c.Z)("/api/deleteUserDatabase",{method:"post",body:a},!0).then((function(e){e.success&&window.location.reload()})):o(!1)):alert("No Target Database Selected!")},children:(0,n.jsx)("span",{children:"Yes"})}),(0,n.jsx)("button",{onClick:function(e){(0,i.j4)()},children:(0,n.jsx)("span",{children:"Cancel"})})]})]})}},94739:function(e,a,t){t.d(a,{Z:function(){return l}});var s=t(85893),n=(t(67294),t(66022));function l(e){var a=e.slugText,t=e.smaller,l=e.outlined,c=e.full;return(0,s.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(l?" outlined gray":"light-gray")+(t?" small-text":""),onClick:function(e){navigator.clipboard.writeText(a).then((function(){alert("".concat(c?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))}))},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,s.jsx)(n.Z,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,s.jsx)("span",{children:a})]})}},25472:function(e,a,t){t.d(a,{Mw:function(){return i},ZP:function(){return c},j4:function(){return r}});var s=t(85893),n=t(41352),l=t(67294);function c(e){var a=e.children,t=e.title,c=e.data,i=e.fullPage,d=e.wrapperClasses,o=e.closePopupDispatch,u=e.wrapperStyle,h=e.noContainer;return i?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(d||""),"data-popupid":t||null,style:u,children:[h?(0,s.jsx)(l.Fragment,{children:a}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":c?JSON.stringify(c):"",children:a}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:function(e){r(),o&&o()},children:(0,s.jsx)(n.Z,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:function(e){r(),o&&o()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":t||null,children:[h?(0,s.jsx)(l.Fragment,{children:a}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":c?JSON.stringify(c):"",children:[a,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:function(e){r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"\u2716"})})]}),h&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:function(e){r(),o&&o()},children:(0,s.jsx)("span",{className:"font-normal",children:"\u2716"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:function(e){r(),o&&o()}})]})}function i(e,a){var t=document.querySelector("[data-popupid='".concat(e,"']"));t&&(t.style.display="flex",a&&a(t))}function r(e){document.querySelectorAll("[data-popupid]").forEach((function(e){e.style.display="none"})),e&&e()}},97946:function(e,a,t){t.d(a,{Z:function(){return n}});var s=t(85893);t(67294);function n(e){return(0,s.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,s.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,s.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}},2109:function(e,a,t){t.r(a),t.d(a,{DatabasesContext:function(){return u},__N_SSP:function(){return o},default:function(){return h}});var s=t(828),n=t(85893),l=t(67294),c=t(54858),i=t(68744),r=t(85012),d={},o=!0,u=l.createContext(d);function h(e){var a=e.user,t=e.databases,d=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"Databases | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),o=l.useState(0),h=(0,s.Z)(o,2),x=h[0],m=h[1];return(0,n.jsx)(c.Z,{head:d,user:a,children:(0,n.jsxs)(u.Provider,{value:{user:a,databases:t,targetDatabase:x,setTargetDatabase:m},children:[(0,n.jsx)(i.Z,{}),(0,n.jsx)(r.Z,{targetDatabase:x})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3293-731fa0758fa0e0aa.js b/dsql-app/.local_dist/static/chunks/3293-731fa0758fa0e0aa.js new file mode 100644 index 0000000..8d942c3 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/3293-731fa0758fa0e0aa.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3293],{14589:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(74848),s=t(96540),i=t(620),d=t(87810);t(97711),t(45165);var n=t(97157),r=t(42543);function c(e){let{user:a,dbImage:t,setDbImage:c,query:o}=s.useContext(d.AddDatabaseContext);if(!a)return(0,l.jsx)(s.Fragment,{});let[u,m]=s.useState(null),[h,p]=s.useState(!1);return(0,l.jsx)("section",{className:"card",children:(0,l.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[h&&(0,l.jsx)(i.A,{}),(0,l.jsxs)("div",{className:"flex-col items-start",children:[(0,l.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),a&&t&&c&&(0,l.jsx)(n.A,{user:a,dbImage:t,setDbImage:c,setLoading:p,query:o})]}),a&&t&&c&&(0,l.jsx)(r.A,{user:a,dbImage:t,setDbImage:c})]})})}},97157:(e,a,t)=>{let l;t.d(a,{A:()=>h});var s=t(74848),i=t(96540),d=t(97711),n=t(41696);t(40961);var r=t(23698),c=t(17531);async function o(e){var a,t,l,s,i,d,n;let{e:o,setLoading:u,dbImage:m,database:h,user:p}=e;u(!0);let g={db_description:(null===(t=o.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?o.target.database_description.value:null,db_name:(null===(s=o.target.database_name)||void 0===s?void 0:null===(l=s.value)||void 0===l?void 0:l.match(/./))?o.target.database_name.value:null,db_slug:(null===(d=o.target.database_slug)||void 0===d?void 0:null===(i=d.value)||void 0===i?void 0:i.match(/./))?o.target.database_slug.value:null,db_full_name:h.db_full_name,id:h.id,active_clone:h.active_clone,active_clone_parent_db:h.active_clone_parent_db};if(m){if("string"==typeof m)g.db_image=m;else if("object"==typeof m){let e=await (0,r.A)("/api/addUserMedia",{method:"post",body:{media:[m],folder:g.db_slug.replace(/_/g,"-"),type:"image"}},!0);g.db_image=(null==e?void 0:null===(n=e.mediaData[0])||void 0===n?void 0:n.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}else g.db_image="/images/database-placeholder.png";(0,r.A)("/api/updateUserDatabase",{method:"post",body:g},!0).then(e=>{e.success?(0,c.A)().then(()=>{window.location.pathname="/admin/".concat(null==p?void 0:p.id,"/databases"),setTimeout(()=>{u(!1)},1e3)}):(alert("Error! Please Try Again"),setTimeout(()=>{u(!1)},1e3))})}async function u(e){var a,t,l;let{e:s,setLoading:i,dbImage:d,keepUpdated:n,keepDataUpdated:o,query:u,user:m}=e;i(!0);let h={db_name:s.target.database_name.value,db_slug:s.target.database_slug.value,db_description:(null===(t=s.target.database_description)||void 0===t?void 0:null===(a=t.value)||void 0===a?void 0:a.match(/./))?s.target.database_description.value:null};if(d){if("string"==typeof d)h.db_image=d;else if("object"==typeof d){let e=await (0,r.A)("/api/addUserMedia",{method:"post",body:{media:[d],folder:h.db_slug.replace(/_/g,"-"),type:"image"}},!0);h.db_image=(null==e?void 0:null===(l=e.mediaData[0])||void 0===l?void 0:l.media_thumbnail_url)?e.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png"}}(null==u?void 0:u.duplicate)&&(h.duplicate=u.duplicate,h.keepUpdated=!!n&&n,h.keepDataUpdated=!!o&&o),(0,r.A)("/api/createUserDatabase",{method:"post",body:h},!0).then(e=>{e.success?(0,c.A)().then(()=>{window.location.pathname="/admin/".concat(null==m?void 0:m.id,"/databases/").concat(h.db_slug)}):setTimeout(()=>{i(!1)},1e3)})}var m=t(21458);function h(e){let{user:a,dbImage:t,setDbImage:r,database:c,setLoading:h,query:p}=e;async function g(e){return(null==c?void 0:c.db_slug)===e?null:await (0,d.A)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})}let[b,x]=i.useState(null),[v,f]=i.useState(!1),[y,w]=i.useState(!1);return(0,s.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),c?o({e,setLoading:h,dbImage:t,database:c,user:a}):u({e,setLoading:h,dbImage:t,keepUpdated:v,keepDataUpdated:y,query:p,user:a})},children:[b&&(0,s.jsx)(n.A,{message:b}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,s.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:async e=>{let a=e.target,t=a.closest("form");if(a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning"),t){t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,"");let e=t.database_slug.value;window.clearTimeout(l),l=setTimeout(()=>{g(e).then(e=>{(null==e?void 0:e.result)?(t.database_slug.classList.add("warning"),x("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),x(null))})},300)}},defaultValue:c?c.db_name:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,s.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning");let t=a.value;window.clearTimeout(l),l=setTimeout(()=>{g(t).then(e=>{(null==e?void 0:e.result)?(a.classList.add("warning"),x("Duplicate Database Name")):(a.classList.remove("warning"),x(null))})},300)},defaultValue:c?c.db_slug:"",required:!0})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,s.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,s.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:c?c.db_description:""})]}),(null==p?void 0:p.duplicate)&&(0,s.jsx)(i.Fragment,{children:(0,s.jsxs)("div",{className:"card col items-start",children:[(0,s.jsx)(m.A,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:e=>{e.target.checked?f(!0):f(!1)}}]}),(0,s.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,s.jsxs)("button",{type:"submit",className:"w-full",children:[c?"Update":"Create"," Database"]})]})}},42543:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(74848),s=t(96540),i=t(65113),d=t(45165),n=t(60557);function r(e){let{user:a,dbImage:t,setDbImage:r,database:c}=e,o=s.useRef();return(0,l.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,l.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,l.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,l.jsx)("img",{src:t?"string"==typeof t?t:t.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:o,"data-imagepreview":"image"})}),(0,l.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,l.jsxs)(n.A,{column:!0,className:"w-full",children:[(0,l.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:e=>{(0,d.PB)("user-media-popup")},children:"Choose Image from uploads"}),(0,l.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:e=>{var a,t;let l=e.target;null==l||null===(t=l.closest("#edit-database-image-option-wrapper"))||void 0===t||null===(a=t.querySelector("input"))||void 0===a||a.click()},children:"Choose Image from Computer"})]}),(0,l.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{let a=e.target.files[0];r(await (0,i.A)({imageInputFile:a,maxWidth:400}))}})]})]})}},13834:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(74848),s=t(96540),i=t(23698),d=t(45165),n=t(620);function r(e){let{setDbImage:a}=e,[t,r]=s.useState(!0),[c,o]=s.useState(null);return s.useEffect(()=>{(0,i.A)("/api/getUserMedia").then(e=>{r(!1),o(e.media)})},[]),(0,l.jsxs)(d.Ay,{title:"user-media-popup",children:[t&&(0,l.jsx)(n.A,{width:"20px"}),(0,l.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,l.jsx)("div",{className:"grid grid-cols-2",children:c&&c[0]&&c.filter(e=>"image"==e.media_type).map((e,t)=>(0,l.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:t=>{a(e.media_thumbnail_url||null),(0,d.fs)()},children:(0,l.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1))})]})}t(35160)},21458:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(74848);function s(e){let{name:a,checkBoxValues:t,setAlert:s,labelColor:i,flexRow:d,baseText:n,smallText:r,className:c}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(d?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(c||""),children:t.map((e,t)=>{let{payload:d,title:c,onChangeHandler:o,fixed:u,jsx:m}=e,h=e.name?"".concat(a,"-").concat(e.name):d?a+"-"+d:a;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(r?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(r?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:a=>{s&&s(null),o&&o(a,e)},value:d,style:{minWidth:"20px"}}),m||(0,l.jsx)("label",{htmlFor:h,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(n||r?" text-base":" text-lg"),children:c})]},t+1)})})}t(96540)},41696:(e,a,t)=>{t.d(a,{A:()=>s});var l=t(74848);function s(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}t(96540)},97711:(e,a,t)=>{t.d(a,{A:()=>s}),t(40961);var l=t(23698);async function s(e){let{tableName:a,columnName:t,value:s,dbFullName:i,dispatch:d,userId:n,dbId:r}=e;return await (0,l.A)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(s).concat(i?"&dbFullName="+i:"").concat(n?"&userId="+n:"").concat(r?"&dbId="+r:""))}},65113:(e,a,t)=>{t.d(a,{A:()=>l});async function l(e){let a,t,{imageInputFile:l,maxWidth:s}=e,i=document.querySelector("[data-imagepreview='image']"),d=l.name.replace(/\..*/,""),n=document.createElement("canvas"),r=l.type,c=s||null,o=URL.createObjectURL(l),u=new Image;return u.src=o,a=await new Promise((e,a)=>{u.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},u.onload=function(){if(URL.revokeObjectURL(this.src),c){let e=c/u.naturalWidth;n.width=u.naturalWidth{e.src=t}),e(t)}}),t=await new Promise((e,a)=>{n.toBlob(a=>{e(null==a?void 0:a.size)},r,.95)}),{imageBase64:a.replace(/.*?base64,/,""),imageBase64Full:a,imageName:d,imageSize:t}}},86625:(e,a,t)=>{var l=t(24994);a.A=void 0;var s=l(t(44888)),i=t(74848);a.A=(0,s.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},34181:(e,a,t)=>{var l=t(24994);a.A=void 0;var s=l(t(44888)),i=t(74848);a.A=(0,s.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},45014:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},59140:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},76897:(e,a,t)=>{t.d(a,{A:()=>l});let l=(0,t(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},87810:(e,a,t)=>{t.r(a),t.d(a,{AddDatabaseContext:()=>m,__N_SSP:()=>u,default:()=>h});var l=t(74848),s=t(96540),i=t(51187),d=t(99862),n=t(4709),r=t(14589);function c(e){let{query:a,duplicateDb:t,user:i}=s.useContext(m),c=(null==a?void 0:a.duplicate)?(0,l.jsxs)("span",{children:["Duplicate"," ",(0,l.jsx)("a",{href:"/admin/".concat(null==i?void 0:i.id,"/databases/").concat(null==t?void 0:t.db_slug),target:"_blank",children:null==t?void 0:t.db_name})," ","Database"]}):"Add A New Database";return(0,l.jsxs)(s.Fragment,{children:[(0,l.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,l.jsxs)("div",{className:"flex-wrap",children:[(0,l.jsx)(d.A,{}),(0,l.jsx)("h1",{className:"text-3xl m-0",children:c})]}),(0,l.jsx)(n.A,{user:i})]}),(0,l.jsx)(r.A,{})]})}var o=t(13834),u=!0;let m=s.createContext({});function h(e){let{user:a,databases:t,query:d,duplicateDb:n}=e,r=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("title",{children:"Add Database | Datasquirel"}),(0,l.jsx)("meta",{name:"description",content:"Add a database"})]}),[u,h]=s.useState("/images/database-placeholder.png");return(0,l.jsx)(i.A,{head:r,user:a,children:(0,l.jsxs)(m.Provider,{value:{user:a,databases:t,dbImage:u,setDbImage:h,query:d,duplicateDb:n},children:[(0,l.jsx)(c,{}),(0,l.jsx)(o.A,{setDbImage:h})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3695-c03f5685e1b79345.js b/dsql-app/.local_dist/static/chunks/3695-c03f5685e1b79345.js deleted file mode 100644 index 2c54cfc..0000000 --- a/dsql-app/.local_dist/static/chunks/3695-c03f5685e1b79345.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3695],{50027:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("path",{d:"m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-3 0-1.55-1.22-2.86-2.79-2.96zm-5.76.96v3h-2.91v-3H8l4-4 4 4h-2.55z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"},"1")],"BackupTwoTone");s.Z=l},64689:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("path",{d:"M18 19h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M12 3 6 7.58V6H4v3.11L1 11.4l1.21 1.59L4 11.62V21h16v-9.38l1.79 1.36L23 11.4 12 3zm6 16h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58V19zM10 1c0 1.66-1.34 3-3 3-.55 0-1 .45-1 1H4c0-1.66 1.34-3 3-3 .55 0 1-.45 1-1h2z"},"1")],"CottageTwoTone");s.Z=l},39269:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("path",{d:"M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm1 13h-2v-2h2v2zm0-4h-2V7h2v6z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-1-5h2v2h-2zm0-8h2v6h-2z"},"1")],"ErrorTwoTone");s.Z=l},28466:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("path",{d:"M6 10v10h5.29c-.19-.63-.29-1.3-.29-2 0-3.87 3.13-7 7-7v-1H6z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M6 20V10h12v1c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.42-.6-.75-1.28-.97-2H6zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z"},"1"),(0,n.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32z"},"2")],"LockPersonTwoTone");s.Z=l},38544:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("circle",{cx:"9",cy:"8",r:"2",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M9 15c-2.7 0-5.8 1.29-6 2.01V18h12v-1c-.2-.71-3.3-2-6-2z",opacity:".3"},"1"),(0,n.jsx)("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"},"2")],"PeopleAltTwoTone");s.Z=l},51903:function(e,s,t){var c=t(64836);s.Z=void 0;var a=c(t(64938)),n=t(85893),l=(0,a.default)([(0,n.jsx)("path",{d:"M4 18h16V8H4v10zm8-3h6v2h-6v-2zm-5.91-4.59L7.5 9l4 4-4 4-1.41-1.41L8.67 13l-2.58-2.59z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M12 15h6v2h-6z"},"1"),(0,n.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H4V8h16v10z"},"2"),(0,n.jsx)("path",{d:"m7.5 17 4-4-4-4-1.41 1.41L8.67 13l-2.58 2.59z"},"3")],"TerminalTwoTone");s.Z=l},44187:function(e,s,t){t.d(s,{Z:function(){return h}});var c=t(828),a=t(82222),n=t(85893),l=t(67294),r=t(86729),o=t(95264),i=t(61336);function h(e){var s=e.data,t=function(){(0,r.Z)("/api/admin/grabErrorLogs").then((function(e){var s;!(null===e||void 0===e?void 0:e.log)||"string"!==typeof e.log||(null===(s=e.log)||void 0===s?void 0:s.match(/./))?((null===e||void 0===e?void 0:e.log)&&u("No Logs"),u(e.log.replace(/\n|\r|\n\r|\\n/gm,"
"))):u("No Logs Yet")}))},h=(Object.keys(s.users[0]),(0,c.Z)(l.useState(null),2)),d=h[0],u=h[1],v=(0,c.Z)(l.useState(0),2),m=v[0],x=v[1],f=(0,c.Z)(l.useState(!1),2),p=f[0],j=f[1];return console.log("undefined"===typeof d?"undefined":(0,a.Z)(d)),l.useEffect((function(){t(),0===m&&setInterval((function(){t()}),1e4)}),[m]),(0,n.jsx)(l.Fragment,{children:(0,n.jsxs)("div",{className:"items-stretch gap-10 w-full",children:[(0,n.jsxs)("section",{className:"paper w-full",children:[(0,n.jsx)("h2",{className:"text-xl m-0 mb-6",children:"Users"}),(0,n.jsx)("div",{className:"flex-col items-stretch gap-10",children:s.users.map((function(e,s){return(0,n.jsx)(i.Z,{userObject:e},s+1)}))})]}),(0,n.jsxs)("section",{className:"paper",children:[(0,n.jsxs)("div",{className:"w-full justify-between",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Error Logs"}),(0,n.jsx)("div",{children:(0,n.jsxs)("button",{onClick:function(e){window.confirm("Clear Error Logs?")&&(j(!0),(0,r.Z)("/api/admin/clearErrorLogs","post").then((function(e){x((function(e){return e+1}))})),setTimeout((function(){j(!1)}),2e3))},className:"outlined gray relative",children:[p&&(0,n.jsx)(o.Z,{width:"20px"}),"Clear Error Log"]})})]}),d&&(0,n.jsx)("p",{dangerouslySetInnerHTML:{__html:d||"No Log"}}),"string"!==typeof d&&(0,n.jsx)(o.Z,{position:"relative",width:"25px"})]})]})})}},61336:function(e,s,t){t.d(s,{Z:function(){return l}});var c=t(828),a=t(85893),n=t(67294);function l(e){var s=e.userObject,t=e.userPage,l=Object.keys(s),r=(0,c.Z)(n.useState(!1),2),o=(r[0],r[1],(0,c.Z)(n.useState(0),2)),i=(o[0],o[1],(0,c.Z)(n.useState(!t),2)),h=i[0],d=i[1];return(0,a.jsxs)("div",{className:"card col green w-full overflow-hidden"+(h?t?" h-[100px]":" h-[85px]":" "),children:[(0,a.jsxs)("div",{className:"items-center w-full",children:[(0,a.jsx)("img",{src:s.image_thumbnail,alt:"",className:"rounded-full object-cover"+(t?" w-16 h-16":" w-12 h-12")}),!t&&(0,a.jsxs)("h3",{className:"m-0 text-xl",children:[s.first_name," ",s.last_name," "]}),(0,a.jsxs)("div",{className:"ml-auto",children:[(0,a.jsx)("button",{className:"outlined gray small-text",onClick:function(e){d(!h)},children:h?"More Details":"Collapse"}),!t&&(0,a.jsx)("a",{href:"/su/users/".concat(s.id),className:"button outlined gray small-text",children:"View User"})]})]}),(0,a.jsx)("div",{className:"card no-hover col w-full light-gray-bg",children:l.map((function(e,t){return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{children:(0,a.jsxs)("span",{style:{wordBreak:"break-all"},children:[e,":"," ",(0,a.jsx)("b",{children:s[e]})]})}),t{const{ownerState:o}=e;return[t.root,o.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,r.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,r.Z)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),f="table";var h=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTable"}),{className:d,component:p=f,padding:u="normal",size:h="medium",stickyHeader:y=!1}=o,b=(0,a.Z)(o,g),x=(0,r.Z)({},o,{component:p,padding:u,size:h,stickyHeader:y}),w=(e=>{const{classes:t,stickyHeader:o}=e,a={root:["root",o&&"stickyHeader"]};return(0,s.Z)(a,v,t)})(x),k=n.useMemo((()=>({padding:u,size:h,stickyHeader:y})),[u,h,y]);return(0,m.jsx)(l.Z.Provider,{value:k,children:(0,m.jsx)(Z,(0,r.Z)({as:p,role:p===f?null:"table",ref:t,className:(0,i.Z)(w.root,d),ownerState:x},b))})}))},31618:function(e,t,o){const a=o(67294).createContext();t.Z=a},44063:function(e,t,o){const a=o(67294).createContext();t.Z=a},295:function(e,t,o){o.d(t,{Z:function(){return y}});var a=o(87462),r=o(63366),n=o(67294),i=o(90512),s=o(94780),l=o(44063),c=o(54502),d=o(2641),p=o(1588),u=o(34867);function v(e){return(0,u.Z)("MuiTableBody",e)}(0,p.Z)("MuiTableBody",["root"]);var m=o(85893);const g=["className","component"],Z=(0,d.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),f={variant:"body"},h="tbody";var y=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTableBody"}),{className:n,component:d=h}=o,p=(0,r.Z)(o,g),u=(0,a.Z)({},o,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},v,t)})(u);return(0,m.jsx)(l.Z.Provider,{value:f,children:(0,m.jsx)(Z,(0,a.Z)({className:(0,i.Z)(y.root,n),as:d,ref:t,role:d===h?null:"rowgroup",ownerState:u},p))})}))},98102:function(e,t,o){var a=o(63366),r=o(87462),n=o(67294),i=o(90512),s=o(94780),l=o(41796),c=o(98216),d=o(31618),p=o(44063),u=o(54502),v=o(2641),m=o(89755),g=o(85893);const Z=["align","className","component","padding","scope","size","sortDirection","variant"],f=(0,v.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.variant],t[`size${(0,c.Z)(o.size)}`],"normal"!==o.padding&&t[`padding${(0,c.Z)(o.padding)}`],"inherit"!==o.align&&t[`align${(0,c.Z)(o.align)}`],o.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>(0,r.Z)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?(0,l.$n)((0,l.Fq)(e.palette.divider,1),.88):(0,l._j)((0,l.Fq)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${m.Z.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),h=n.forwardRef((function(e,t){const o=(0,u.Z)({props:e,name:"MuiTableCell"}),{align:l="inherit",className:v,component:h,padding:y,scope:b,size:x,sortDirection:w,variant:k}=o,T=(0,a.Z)(o,Z),C=n.useContext(d.Z),M=n.useContext(p.Z),R=M&&"head"===M.variant;let H;H=h||(R?"th":"td");let N=b;"td"===H?N=void 0:!N&&R&&(N="col");const z=k||M&&M.variant,$=(0,r.Z)({},o,{align:l,component:H,padding:y||(C&&C.padding?C.padding:"normal"),size:x||(C&&C.size?C.size:"medium"),sortDirection:w,stickyHeader:"head"===z&&C&&C.stickyHeader,variant:z}),S=(e=>{const{classes:t,variant:o,align:a,padding:r,size:n,stickyHeader:i}=e,l={root:["root",o,i&&"stickyHeader","inherit"!==a&&`align${(0,c.Z)(a)}`,"normal"!==r&&`padding${(0,c.Z)(r)}`,`size${(0,c.Z)(n)}`]};return(0,s.Z)(l,m.U,t)})($);let j=null;return w&&(j="asc"===w?"ascending":"descending"),(0,g.jsx)(f,(0,r.Z)({as:H,ref:t,className:(0,i.Z)(S.root,v),"aria-sort":j,scope:N,ownerState:$},T))}));t.Z=h},89755:function(e,t,o){o.d(t,{U:function(){return n}});var a=o(1588),r=o(34867);function n(e){return(0,r.Z)("MuiTableCell",e)}const i=(0,a.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);t.Z=i},72882:function(e,t,o){o.d(t,{Z:function(){return Z}});var a=o(87462),r=o(63366),n=o(67294),i=o(90512),s=o(94780),l=o(54502),c=o(2641),d=o(1588),p=o(34867);function u(e){return(0,p.Z)("MuiTableContainer",e)}(0,d.Z)("MuiTableContainer",["root"]);var v=o(85893);const m=["className","component"],g=(0,c.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Z=n.forwardRef((function(e,t){const o=(0,l.Z)({props:e,name:"MuiTableContainer"}),{className:n,component:c="div"}=o,d=(0,r.Z)(o,m),p=(0,a.Z)({},o,{component:c}),Z=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},u,t)})(p);return(0,v.jsx)(g,(0,a.Z)({ref:t,as:c,className:(0,i.Z)(Z.root,n),ownerState:p},d))}))},53184:function(e,t,o){o.d(t,{Z:function(){return y}});var a=o(87462),r=o(63366),n=o(67294),i=o(90512),s=o(94780),l=o(44063),c=o(54502),d=o(2641),p=o(1588),u=o(34867);function v(e){return(0,u.Z)("MuiTableHead",e)}(0,p.Z)("MuiTableHead",["root"]);var m=o(85893);const g=["className","component"],Z=(0,d.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),f={variant:"head"},h="thead";var y=n.forwardRef((function(e,t){const o=(0,c.Z)({props:e,name:"MuiTableHead"}),{className:n,component:d=h}=o,p=(0,r.Z)(o,g),u=(0,a.Z)({},o,{component:d}),y=(e=>{const{classes:t}=e;return(0,s.Z)({root:["root"]},v,t)})(u);return(0,m.jsx)(l.Z.Provider,{value:f,children:(0,m.jsx)(Z,(0,a.Z)({as:d,className:(0,i.Z)(y.root,n),ref:t,role:d===h?null:"rowgroup",ownerState:u},p))})}))},53816:function(e,t,o){o.d(t,{Z:function(){return b}});var a=o(87462),r=o(63366),n=o(67294),i=o(90512),s=o(94780),l=o(41796),c=o(44063),d=o(54502),p=o(2641),u=o(1588),v=o(34867);function m(e){return(0,v.Z)("MuiTableRow",e)}var g=(0,u.Z)("MuiTableRow",["root","selected","hover","head","footer"]),Z=o(85893);const f=["className","component","hover","selected"],h=(0,p.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.head&&t.head,o.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${g.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${g.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),y="tr";var b=n.forwardRef((function(e,t){const o=(0,d.Z)({props:e,name:"MuiTableRow"}),{className:l,component:p=y,hover:u=!1,selected:v=!1}=o,g=(0,r.Z)(o,f),b=n.useContext(c.Z),x=(0,a.Z)({},o,{component:p,hover:u,selected:v,head:b&&"head"===b.variant,footer:b&&"footer"===b.variant}),w=(e=>{const{classes:t,selected:o,hover:a,head:r,footer:n}=e,i={root:["root",o&&"selected",a&&"hover",r&&"head",n&&"footer"]};return(0,s.Z)(i,m,t)})(x);return(0,Z.jsx)(h,(0,a.Z)({as:p,ref:t,className:(0,i.Z)(w.root,l),role:p===y?null:"row",ownerState:x},g))}))}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3838-4945afef2ebfef04.js b/dsql-app/.local_dist/static/chunks/3838-4945afef2ebfef04.js new file mode 100644 index 0000000..cb28f28 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/3838-4945afef2ebfef04.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3838],{85471:(e,t,r)=>{let n=r(25979),{mergeAttributesWithElements:i}=r(18205);e.exports=(e,t={})=>n(i(e),t)},25979:e=>{e.exports=(e,t={})=>{let r=t.char||" ",n=t.count||2,i=0,o=[];return e.reverse().reduce((e,t)=>{o.length&&i&&o[i]&&o[i]===t.substring(1,o[i].length+1)&&(o.splice(i,1),i--);let c=r.repeat(i?i*n:0),u=[`${c}${t}`,...e];return"{let t=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");e.exports={mergeAttributesWithElements:e=>{let r=t(e).split("\n"),n=[],i="";for(let e=0;e")){n.push(`${i}${t.slice(0,-2)} />`),i="";continue}if(t.endsWith(">")){n.push(`${i}${t.startsWith(">")||t.startsWith("<")?"":" "}${t}`),i="";continue}i+=i.length?` ${t}`:t}return n},removeEmptyLines:t}},74897:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M11 11h5v5h-5zm-7 0h5v5H4zm0-7h12v5H4z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M20 6v14H6v2h14c1.1 0 2-.9 2-2V6z"},"1"),(0,o.jsx)("path",{d:"M18 16V4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2M4 4h12v5H4zm5 12H4v-5h5zm2-5h5v5h-5z"},"2")],"BackupTableTwoTone")},74315:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"},"1")],"CopyAllTwoTone")},53193:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M16 9H8v10h8zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteForeverTwoTone")},85373:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06zM5.92 18H5v-.92l7.06-7.06.92.92zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75z"},"1")],"DriveFileRenameOutlineTwoTone")},17500:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOutlined")},4532:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)((0,o.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageTwoTone")},61476:(e,t,r)=>{"use strict";var n=r(24994);t.A=void 0;var i=n(r(44888)),o=r(74848);t.A=(0,i.default)([(0,o.jsx)("path",{d:"M19 9v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M19 7H9c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2m0 2v2H9V9zm-6 6v-2h2v2zm2 2v2h-2v-2zm-4-2H9v-2h2zm6-2h2v2h-2zm-8 4h2v2H9zm8 2v-2h2v2zM6 17H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2v1h-2V5H5v10h1z"},"1")],"TableViewTwoTone")},18453:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(95737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},61356:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(95737).A)("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]])},89894:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(95737).A)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},68553:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};s.initial(e),s.handler(t);var r={current:e},n=c(f)(r,t),i=c(h)(r),o=c(s.changes)(e),u=c(d)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return s.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r{n.current=!1}:e,t)};function S(){}function C(e,t,r,n){return e.editor.getModel(L(e,n))||e.editor.createModel(t,r,n?L(e,n):void 0)}function L(e,t){return e.Uri.parse(t)}(0,A.memo)(function({original:e,modified:t,language:r,originalLanguage:n,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:a=!1,theme:l="light",loading:s="Loading...",options:d={},height:h="100%",width:f="100%",className:p,wrapperProps:v={},beforeMount:g=S,onMount:m=S}){let[y,M]=(0,A.useState)(!1),[b,w]=(0,A.useState)(!0),z=(0,A.useRef)(null),j=(0,A.useRef)(null),O=(0,A.useRef)(null),k=(0,A.useRef)(m),H=(0,A.useRef)(g),x=(0,A.useRef)(!1);T(()=>{let e=E.init();return e.then(e=>(j.current=e)&&w(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{let t;return z.current?(t=z.current?.getModel(),void(u||t?.original?.dispose(),a||t?.modified?.dispose(),z.current?.dispose())):e.cancel()}}),R(()=>{if(z.current&&j.current){let t=z.current.getOriginalEditor(),i=C(j.current,e||"",n||r||"text",o||"");i!==t.getModel()&&t.setModel(i)}},[o],y),R(()=>{if(z.current&&j.current){let e=z.current.getModifiedEditor(),n=C(j.current,t||"",i||r||"text",c||"");n!==e.getModel()&&e.setModel(n)}},[c],y),R(()=>{let e=z.current.getModifiedEditor();e.getOption(j.current.editor.EditorOption.readOnly)?e.setValue(t||""):t!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[t],y),R(()=>{z.current?.getModel()?.original.setValue(e||"")},[e],y),R(()=>{let{original:e,modified:t}=z.current.getModel();j.current.editor.setModelLanguage(e,n||r||"text"),j.current.editor.setModelLanguage(t,i||r||"text")},[r,n,i],y),R(()=>{j.current?.editor.setTheme(l)},[l],y),R(()=>{z.current?.updateOptions(d)},[d],y);let L=(0,A.useCallback)(()=>{if(!j.current)return;H.current(j.current);let u=C(j.current,e||"",n||r||"text",o||""),a=C(j.current,t||"",i||r||"text",c||"");z.current?.setModel({original:u,modified:a})},[r,t,i,e,n,o,c]),P=(0,A.useCallback)(()=>{!x.current&&O.current&&(z.current=j.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...d}),L(),j.current?.editor.setTheme(l),M(!0),x.current=!0)},[d,l,L]);return(0,A.useEffect)(()=>{y&&k.current(z.current,j.current)},[y]),(0,A.useEffect)(()=>{b||y||P()},[b,y,P]),A.createElement(V,{width:f,height:h,isEditorReady:y,loading:s,_ref:O,className:p,wrapperProps:v})});var P=function(e){let t=(0,A.useRef)();return(0,A.useEffect)(()=>{t.current=e},[e]),t.current},I=new Map;(0,A.memo)(function({defaultValue:e,defaultLanguage:t,defaultPath:r,value:n,language:i,path:o,theme:c="light",line:u,loading:a="Loading...",options:l={},overrideServices:s={},saveViewState:d=!0,keepCurrentModel:h=!1,width:f="100%",height:p="100%",className:v,wrapperProps:g={},beforeMount:m=S,onMount:y=S,onChange:M,onValidate:b=S}){let[w,z]=(0,A.useState)(!1),[j,O]=(0,A.useState)(!0),k=(0,A.useRef)(null),H=(0,A.useRef)(null),x=(0,A.useRef)(null),L=(0,A.useRef)(y),D=(0,A.useRef)(m),$=(0,A.useRef)(),N=(0,A.useRef)(n),q=P(o),F=(0,A.useRef)(!1),W=(0,A.useRef)(!1);T(()=>{let e=E.init();return e.then(e=>(k.current=e)&&O(!1)).catch(e=>e?.type!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>H.current?void($.current?.dispose(),h?d&&I.set(o,H.current.saveViewState()):H.current.getModel()?.dispose(),H.current.dispose()):e.cancel()}),R(()=>{let c=C(k.current,e||n||"",t||i||"",o||r||"");c!==H.current?.getModel()&&(d&&I.set(q,H.current?.saveViewState()),H.current?.setModel(c),d&&H.current?.restoreViewState(I.get(o)))},[o],w),R(()=>{H.current?.updateOptions(l)},[l],w),R(()=>{H.current&&void 0!==n&&(H.current.getOption(k.current.editor.EditorOption.readOnly)?H.current.setValue(n):n===H.current.getValue()||(W.current=!0,H.current.executeEdits("",[{range:H.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),H.current.pushUndoStop(),W.current=!1))},[n],w),R(()=>{let e=H.current?.getModel();e&&i&&k.current?.editor.setModelLanguage(e,i)},[i],w),R(()=>{void 0!==u&&H.current?.revealLine(u)},[u],w),R(()=>{k.current?.editor.setTheme(c)},[c],w);let _=(0,A.useCallback)(()=>{if(!(!x.current||!k.current)&&!F.current){D.current(k.current);let a=o||r,h=C(k.current,n||e||"",t||i||"",a||"");H.current=k.current?.editor.create(x.current,{model:h,automaticLayout:!0,...l},s),d&&H.current.restoreViewState(I.get(a)),k.current.editor.setTheme(c),void 0!==u&&H.current.revealLine(u),z(!0),F.current=!0}},[e,t,r,n,i,o,l,s,d,c,u]);return(0,A.useEffect)(()=>{w&&L.current(H.current,k.current)},[w]),(0,A.useEffect)(()=>{j||w||_()},[j,w,_]),N.current=n,(0,A.useEffect)(()=>{w&&M&&($.current?.dispose(),$.current=H.current?.onDidChangeModelContent(e=>{W.current||M(H.current.getValue(),e)}))},[w,M]),(0,A.useEffect)(()=>{if(w){let e=k.current.editor.onDidChangeMarkers(e=>{let t=H.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=k.current.editor.getModelMarkers({resource:t});b?.(e)}});return()=>{e?.dispose()}}return()=>{}},[w,b]),A.createElement(V,{width:f,height:p,isEditorReady:w,loading:a,_ref:x,className:v,wrapperProps:g})})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/3935-eea593fa60dfd620.js b/dsql-app/.local_dist/static/chunks/3935-eea593fa60dfd620.js deleted file mode 100644 index a638b97..0000000 --- a/dsql-app/.local_dist/static/chunks/3935-eea593fa60dfd620.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3935],{31356:function(e,t,a){var s=a(64836);t.Z=void 0;var i=s(a(64938)),r=a(85893),l=(0,i.default)([(0,r.jsx)("path",{d:"M5 5v14h14V5H5zm9 12H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-2-6H7v-2h10v2zm0-4H7V7h10v2zm-3 8H7v-2h7v2z"},"1")],"ArticleTwoTone");t.Z=l},47335:function(e,t,a){a.d(t,{Z:function(){return l}});var s=a(85893);a(67294);function i(e){var t=e.image,a=e.title,i=e.description,r=e.color,l=e.imageHeight,c="green"==r?"green":"gray"==r?"gray":"";return(0,s.jsxs)("div",{className:"color-card shadow-xl"+(r?" "+c:""),children:[(0,s.jsx)("h3",{className:"title m-0 text-2xl",children:a}),i&&(0,s.jsx)("span",{className:"text-slate-600 dark:text-slate-400 text-left",children:i}),(0,s.jsx)("div",{className:"image-block",style:l?{height:"".concat(l,"px")}:void 0,children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})})]})}function r(e){var t=e.image,a=e.title,i=e.description,r=e.color,l=e.height,c=e.h2,n=e.url,o=e.cta,d="green"==r?"green":"gray"==r?"gray":"purple"==r?"purple":"";return(0,s.jsxs)("div",{className:"contained-section shadow-xl"+(r?" "+d:""),style:l?{height:"".concat(l,"px")}:void 0,children:[(0,s.jsxs)("div",{className:"content text-left",children:[c?(0,s.jsx)("h2",{className:"m-0 text-white",children:a}):(0,s.jsx)("h3",{className:"m-0 text-white",children:a}),i&&(0,s.jsx)("span",{className:"text-slate-400",children:i}),n&&o&&(0,s.jsx)("a",{href:n,className:"button mt-4",children:o})]}),(0,s.jsx)("div",{className:"image-block",children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})}),(0,s.jsx)("img",{src:"/images/geometric-overlay.webp",className:"absolute z-0 left-0 top-0 w-full h-full opacity-80 mix-blend-overlay",alt:"Background Image"})]})}function l(e){return(0,s.jsx)("section",{className:"py-20",children:(0,s.jsxs)("div",{className:"main-container flex-col items-center text-center",children:[(0,s.jsx)("h2",{className:"m-0 lg:text-left",children:"All your data storage needs in one place"}),(0,s.jsx)("p",{className:"m-0 ",children:"Datasquirel solves the hassle of storing data across different platforms using a centralized, easy-to-use, SQL-based cloud database administration system. Now you can have all your data in one place and retrieve from any location or environment using HTTP REST API calls and SQL queries."}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full mt-10 gap-10",children:[(0,s.jsx)(i,{image:"/images/screenshots/databases-light.webp",title:"Data and Content",description:"Create databases, tables, dynamic datatypes including rich text, JSON and other editable code blocks",imageHeight:400}),(0,s.jsx)(i,{image:"/images/screenshots/media-list-white.webp",title:"Images, Videos, and other Media",description:"Static images automatically compressed with multiple format support, videos, pdf, excel documents, and more.",color:"green",imageHeight:400})]}),(0,s.jsx)("div",{className:"mt-10 w-full",children:(0,s.jsx)(r,{image:"/images/screenshots/tables-list-white.webp",title:"All the power of SQL without the hassle",description:"Indexes, Foreign keys, encryption, triggers, stored proceedures, etc. You get the best of both worlds: the full power of SQL, and the best UI yet to better manipulate your data.",cta:"Learn More",url:"/about",height:500})})]})})}},73987:function(e,t,a){a.d(t,{Z:function(){return r}});var s=a(85893),i=(a(67294),a(31356));function r(e){var t=e.user;return(0,s.jsxs)("section",{className:"py-24 border-0 border-t border-b border-slate-100 dark:border-slate-100/10 border-solid",children:[(0,s.jsx)("div",{className:"w-full max-w-6xl gap-10 justify-between flex-col relative z-10",children:(0,s.jsxs)("div",{className:"flex-col items-center max-w-2xl text-center ",style:{minWidth:"45%"},children:[(0,s.jsx)("h2",{className:"m-0 leading-tight",children:"Get started For Free."}),(0,s.jsx)("span",{className:"text-lg font-normal",children:"Get Started At no cost. Learn how to create and retrieve data by viewing our documentation."}),(0,s.jsxs)("div",{className:"flex items-start justify-center w-full mt-4",children:[!(null===t||void 0===t?void 0:t.logged_in_status)&&(0,s.jsx)("a",{href:"/create-account",className:"button",children:(0,s.jsx)("span",{className:"",children:"Sign Up For Free"})}),(0,s.jsxs)("a",{href:"/docs",className:"button outlined gray",children:[(0,s.jsx)(i.Z,{sx:{opacity:.8,fontSize:16}}),(0,s.jsx)("span",{children:"See The Docs"})]})]})]})}),(0,s.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"})]})}},40662:function(e,t,a){a(85893),a(67294)},9922:function(e,t,a){a.d(t,{Z:function(){return i}});var s=a(86729);function i(e){var t=e.setUser,a=localStorage.getItem("user");if(a)try{return void t(JSON.parse(a))}catch(i){return void t({})}(0,s.Z)("/api/clientSideAuth",{method:"post",body:{}},!0).then((function(e){var a=e.user?e.user:{};t(a),localStorage.setItem("user",JSON.stringify(a))})).catch((function(e){console.log(e)}))}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4147-1eea8c52da913e77.js b/dsql-app/.local_dist/static/chunks/4147-1eea8c52da913e77.js new file mode 100644 index 0000000..6ffeb46 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/4147-1eea8c52da913e77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4147],{41696:(e,a,s)=>{s.d(a,{A:()=>t});var l=s(74848);function t(e){let{message:a}=e;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}s(96540)},84147:(e,a,s)=>{let l;s.d(a,{A:()=>c});var t=s(74848),r=s(96540),n=s(23698);async function i(e){let{e:a,setLoading:s,user:l,image:t,query:r}=e;s(!0);let i={first_name:a.target.first_name.value,last_name:a.target.last_name.value,email:l?null:a.target.email_address.value,username:l?null:a.target.username.value,password:l?null:a.target.password.value,image:t||null};(null==r?void 0:r.invite)&&(i.inviteObject=r),(0,n.A)(l?"/api/updateUser":"/api/registerUser",{method:"post",body:i},!!l).then(e=>{console.log(e),!l&&(null==e?void 0:e.insertId)?(localStorage.setItem("id",e.insertId),(0,n.A)("/api/loginUser",{method:"post",body:{email:i.email,password:i.password}}).then(e=>{console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"})):l&&(null==e?void 0:e.user)?window.location.reload():(null==e?void 0:e.msg)&&alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{setTimeout(()=>{s(!1)},2e3)})}var o=s(41696),d=s(620),m=s(29907);function c(e){let{user:a,query:s,image:c}=e,u=(null==s?void 0:s.email)?s.email:(null==a?void 0:a.email)?a.email:"",[p,g]=r.useState(null),[x,f]=r.useState(!1);return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[x&&(0,t.jsx)(d.A,{}),!a&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(m.A,{user:null,userType:"admin",setLoading:f}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:e=>{e.preventDefault(),i({e,setLoading:f,user:a,image:c,query:s})},children:[p&&(0,t.jsx)(o.A,{message:p}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning")},defaultValue:a?a.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning")},defaultValue:a?a.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:e=>{let a=e.target;a.value.match(/./)?(a.classList.remove("warning"),g(null)):a.classList.add("warning"),window.clearTimeout(l),l=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=username&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(g("Username Already Exists"),a.classList.add("warning")):(g(null),a.classList.remove("warning"))})},300)},defaultValue:a?a.username:"",required:!a,readOnly:!!a})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:e=>{let a=e.target;window.clearTimeout(l),l=setTimeout(()=>{(0,n.A)("/api/checkDuplicateData?type=email&value=".concat(a.value,"&tableName=users")).then(e=>{console.log(e),(null==e?void 0:e.result)?(g("Email Already Exists"),a.classList.add("warning")):(g(null),a.classList.remove("warning"))})},300)},defaultValue:u,required:!0,readOnly:!!a})]}),!a&&(0,t.jsxs)(r.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:e=>{var a;let s=e.target;(null===(a=s.closest("form"))||void 0===a?void 0:a.password.value)===s.value?s.classList.remove("warning"):s.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:a?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!a&&(0,t.jsx)(r.Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4156-f3d2d008f94f3178.js b/dsql-app/.local_dist/static/chunks/4156-f3d2d008f94f3178.js deleted file mode 100644 index b749e36..0000000 --- a/dsql-app/.local_dist/static/chunks/4156-f3d2d008f94f3178.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4156],{96224:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,l.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,l.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,l.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");t.Z=o},47381:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"M5 5v14h14V5H5zm9 12H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64S3 4.72 3 5v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75zM19 19H5V5h14v14z"},"1")],"AssignmentTwoTone");t.Z=o},88518:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");t.Z=o},52778:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=o},30212:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"M11.17 4H7v11h14V6h-7.83z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 11H7V4h4.17l2 2H21v9z"},"1"),(0,l.jsx)("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3V6z"},"2")],"FolderCopyTwoTone");t.Z=o},73340:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)((0,l.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm0 12H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}),"LockOpenOutlined");t.Z=o},95808:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9V6z"},"0"),(0,l.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32z"},"1")],"LockPersonRounded");t.Z=o},99152:function(e,t,a){var n=a(64836);t.Z=void 0;var i=n(a(64938)),l=a(85893),o=(0,i.default)([(0,l.jsx)("path",{d:"m13.17 6-.59-.59L11.17 4H6v12h16V6h-8.83zm4.33 4.5L21 15H7l4.5-6 3.5 4.51 2.5-3.01z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm5 9h14l-3.5-4.5-2.5 3.01L11.5 9zM22 4h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 12H6V4h5.17l1.41 1.41.59.59H22v10z"},"1")],"PermMediaTwoTone");t.Z=o},57150:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},64998:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},33587:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(e,t,a){a.d(t,{Z:function(){return n}});const n=(0,a(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},62588:function(e,t,a){a.d(t,{Z:function(){return s}});var n=a(85893),i=(a(67294),a(25472)),l=a(78107),o=a(45711);const r=(0,o.Z)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),c=(0,o.Z)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function s(e){var t=e.user;return(0,n.jsx)(i.ZP,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,n.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,n.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,n.jsx)("br",{}),"want to upload?"]}),(0,n.jsx)("span",{children:"Please Select the media type to upload."}),(0,n.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,n.jsxs)("div",{className:"card cursor-pointer",onClick:function(e){var a;if(null===t||void 0===t||null===(a=t.verification_status)||void 0===a?void 0:a.toString().match(/1/)){var n=document.getElementById("upload_image_input");null===n||void 0===n||n.click()}else alert("Please Verify to Add Media");setTimeout((function(){(0,i.j4)()}),500)},children:[(0,n.jsx)(l.Z,{size:50,className:"text-primary"}),(0,n.jsxs)("div",{className:"content",children:[(0,n.jsx)("span",{className:"title",children:"Images"}),(0,n.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,n.jsxs)("div",{className:"card cursor-pointer",onClick:function(e){var a,n;(null===t||void 0===t||null===(a=t.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(n=document.getElementById("upload_file_input"))||void 0===n||n.click():alert("Please Verify to Add Media");(0,i.j4)()},children:[(0,n.jsx)(r,{size:50,className:"text-secondary"}),(0,n.jsxs)("div",{className:"content",children:[(0,n.jsx)("span",{className:"title",children:"Files"}),(0,n.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,n.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,n.jsxs)("div",{className:"card cursor-pointer",onClick:function(e){var a,n;(null===t||void 0===t||null===(a=t.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(n=document.getElementById("upload_video_input"))||void 0===n||n.click():alert("Please Verify to Add Media");(0,i.j4)()},children:[(0,n.jsx)(c,{size:55,className:"text-slate-600"}),(0,n.jsxs)("div",{className:"content",children:[(0,n.jsx)("span",{className:"title",children:"Videos"}),(0,n.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,n.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},17244:function(e,t,a){a.d(t,{Z:function(){return M}});var n=a(85893),i=a(67294),l=a(828),o=a(86729),r=a(30212),c=a(52778),s=a(95264);function d(e){var t=e.folderName,a=e.folder,d=e.user,u="".concat(a?a+"/":"").concat(t),m=(0,l.Z)(i.useState(!1),2),h=m[0],f=m[1];return(0,n.jsxs)("a",{href:"/admin/".concat(null===d||void 0===d?void 0:d.id,"/media/").concat(u),className:"card col items-center justify-center",onClick:function(e){if(e.target.closest("button"))return e.preventDefault()},children:[h&&(0,n.jsx)(s.Z,{}),(0,n.jsx)(r.Z,{sx:{fontSize:100},className:"opacity-20"}),(0,n.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,n.jsx)("span",{className:"",children:t}),(0,n.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:function(e){window.confirm("Delete this Folder and all its contents?")&&(f(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,o.Z)("/api/deleteMediaFolder",{method:"post",body:{folder:u}},!0).then((function(e){e.success&&window.location.reload()})):f(!1))},children:(0,n.jsx)(c.Z,{className:"opacity-30"})})]},t)}var u=a(26042),m=a(69396),h=a(25472),f=a(45449),p=a(18826),v=a(47381);function x(e){var t,a,l=e.mediaObject,r=e.staticHost,c=l.media_thumbnail_path?(null===l||void 0===l?void 0:l.private)?l.media_thumbnail_url:"".concat(r).concat(l.media_thumbnail_path):l.media_thumbnail_url,s=l.media_path?(null===l||void 0===l?void 0:l.private)?l.media_url:"".concat(r).concat(l.media_path):l.media_url;return(0,n.jsx)(i.Fragment,{children:(null===(t=l.media_type)||void 0===t?void 0:t.match(/file/i))?(0,n.jsxs)("div",{className:"cursor-pointer hover:opacity-80",children:[(0,n.jsx)(v.Z,{sx:{fontSize:100},className:"opacity-10"}),(0,n.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:l.media_type.replace(/.*\//,"").toUpperCase()})]}):(null===(a=l.media_type)||void 0===a?void 0:a.match(/video/i))?(0,n.jsx)("video",{src:s,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,n.jsx)("img",{src:c,alt:l.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:function(e){(null===l||void 0===l?void 0:l.private)||(0,o.Z)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:l}},!0).then((function(e){e.success?window.location.reload():(console.log(e),console.log(c),console.log(s))}))}})})}var g=a(34642);function y(e){var t,a=e.mediaObject,l=e.staticHost;a.media_thumbnail_path?"".concat(l,"/").concat(a.media_thumbnail_path):a.media_thumbnail_url,a.media_path?"".concat(l,"/").concat(a.media_path):a.media_url;return(null===a||void 0===a?void 0:a.private)?(0,n.jsx)(i.Fragment,{}):(0,n.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,n.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,n.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,n.jsxs)(f.Z,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,n.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:function(e){navigator.clipboard.writeText(a.media_url||"").then((function(){alert("Media url ".concat(a.media_url," Copied to clipboard"))}))},children:"Copy Full Link"}),!(null===a||void 0===a||null===(t=a.media_type)||void 0===t?void 0:t.match(/file|video/i))&&(0,n.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:function(e){navigator.clipboard.writeText(a.media_thumbnail_url||"").then((function(){alert("Media url ".concat(a.media_thumbnail_url," Copied to clipboard"))}))},children:"Copy Thumbnail Link"})]})})]})}var w=a(45711);const b=(0,w.Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),j=(0,w.Z)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function N(e){var t,a=e.mediaObject,r=e.setLoading,c=(0,l.Z)(i.useState(!1),2);c[0],c[1];return(null===a||void 0===a||null===(t=a.media_type)||void 0===t?void 0:t.match(/video/i))?null:(0,n.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+((null===a||void 0===a?void 0:a.private)?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:function(e){var t=a.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(t)&&(r(!0),(0,o.Z)("/api/media/addPrivateMedia",{method:"post",body:(0,u.Z)({},a)},!0).then((function(e){e.success?window.location.reload():window.alert("Action Failed!"),setTimeout((function(){r(!1)}),1e3)})).catch((function(e){console.log(e)})))},children:(null===a||void 0===a?void 0:a.private)?(0,n.jsx)(b,{size:20,color:"green"}):(0,n.jsx)(j,{color:"black",size:20})})}var Z=a(58436);function _(e){var t=e.mediaObject,a=e.setTargetMedia,o=(e.folder,e.staticHost),r=(0,l.Z)(i.useState(!!(null===t||void 0===t?void 0:t.private)),2),c=r[0],d=r[1],v=(0,l.Z)(i.useState(t),2),w=v[0],b=v[1];i.useEffect((function(){var e;(null===t||void 0===t?void 0:t.private)&&t.media_thumbnail_url&&!(null===(e=w.media_type)||void 0===e?void 0:e.match(/file/i))?(0,Z.Z)({url:t.media_thumbnail_url}).then((function(e){b((0,m.Z)((0,u.Z)({},t),{media_thumbnail_url:e})),d(!1)})).catch((function(e){console.log(e.message)})):c&&d(!1)}),[]);w.media_thumbnail_path?"".concat(o,"/").concat(w.media_thumbnail_path):w.media_thumbnail_url;var j=w.media_path?"".concat(o,"/").concat(w.media_path):w.media_url;return(0,n.jsxs)("div",{className:"media-card card col",onClick:function(e){var t,n;if(!e.target.closest("button")&&!e.target.closest(".button"))if(!(null===(t=w.media_type)||void 0===t?void 0:t.match(/file/i))||w.private)(null===(n=w.media_type)||void 0===n?void 0:n.match(/file/i))&&w.private||(a(w),(0,h.Mw)("target-media-popup"));else{var i=j;window.open(i,"__blank")}},onMouseEnter:function(e){e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:function(e){e.target.closest(".media-card").style.zIndex="0"},style:(null===w||void 0===w?void 0:w.private)?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[c&&(0,n.jsx)(s.Z,{}),(0,n.jsx)(x,{mediaObject:w,staticHost:o}),(0,n.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,n.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:w.media_name}),(0,n.jsx)("div",{className:"flex-wrap w-full",children:(0,n.jsxs)(f.Z,{className:"flex-wrap w-full items-stretch",children:[(0,n.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:function(e){var t;(0,p.Z)({mediaObject:w,fileName:(null===(t=null===j||void 0===j?void 0:j.match(/[^\/]+$/))||void 0===t?void 0:t[0])||"",setLoading:d})},children:(0,n.jsx)("span",{children:"Download"})}),(0,n.jsx)(y,{mediaObject:w,staticHost:o}),(0,n.jsx)(g.Z,{mediaObject:w,setLoading:d})]})})]}),(0,n.jsx)(N,{mediaObject:w,setLoading:d})]})}var k=a(99152);function M(e){var t=e.media,a=e.setTargetMedia,l=e.folders,o=e.folder,r=e.staticHost,c=e.user;return(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("section",{className:"paper overflow-visible",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,n.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[l&&l[0]&&l.map((function(e){return(0,n.jsx)(d,{folder:o,folderName:e,user:c},e)})),t&&t[0]&&t.map((function(e){return(0,n.jsx)(_,{mediaObject:e,setTargetMedia:a,folder:o,staticHost:r},e.id)}))]}),!(null===t||void 0===t?void 0:t[0])&&(0,n.jsx)(z,{})]})})}function z(){return(0,n.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:function(e){(0,h.Mw)("choose-media-type-popoup")},children:[(0,n.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,n.jsx)(k.Z,{color:"inherit",sx:{fontSize:80},className:"opacity-40 text-gray-500"}),(0,n.jsx)("span",{className:"",children:"Add Media"})]})}},81597:function(e,t,a){a.d(t,{Z:function(){return d}});var n,i=a(828),l=a(85893),o=a(67294),r=a(86729),c=a(25472),s=a(95264);function d(e){var t=e.folder,a=(0,i.Z)(o.useState(!1),2),d=a[0],u=a[1],m=(0,i.Z)(o.useState(!1),2),h=m[0],f=m[1];return(0,l.jsxs)(c.ZP,{title:"add-folder-popoup",children:[(0,l.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,l.jsxs)("div",{className:"flex-col w-full relative",children:[d&&(0,l.jsx)(s.Z,{}),(0,l.jsxs)("form",{onSubmit:function(e){e.preventDefault(),window.clearTimeout(n),u(!0);var a=e.target;(0,r.Z)("/api/addNewMediaFolder",{method:"post",body:{name:(t?"".concat(t,"/"):"")+a["new-folder-name"].value}},!0).then((function(e){e.success?window.location.reload():u(!1)}))},className:"w-full flex flex-col items-stretch gap-2",children:[h&&(0,l.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,l.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(h?" warning":""),onChange:function(e){e.target.value=e.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(n),n=setTimeout((function(){(0,r.Z)("/api/checkExistingFolder?name=".concat(e.target.value).concat(t?"&folder="+t:"")).then((function(t){var a;(null===(a=e.target.value)||void 0===a?void 0:a.match(/./))&&(null===t||void 0===t?void 0:t.success)?(f(!0),alert("Folder Already Exists")):f(!1)}))}),500)}}),(0,l.jsx)("button",{children:"Add New Folder"})]})]})]})}},94891:function(e,t,a){a.d(t,{Z:function(){return x}});var n=a(828),i=a(85893),l=a(67294),o=a(86729),r=a(81069),c=a(25472),s=a(95264),d=a(29815),u=a(73340),m=a(95808);function h(e){var t=e.mediaObject,a=(0,n.Z)(l.useState(!1),2),o=a[0],r=a[1];return l.useEffect((function(){t.private=o}),[o]),(0,i.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(o?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:function(e){r((function(e){return!e}))},children:o?(0,i.jsx)(m.Z,{fontSize:"small",color:"secondary"}):(0,i.jsx)(u.Z,{fontSize:"small",className:"fill-inherit text-inherit"})})}function f(e){var t=e.imageObject,a=e.newMedia,n=e.setNewMedia,l=e.video,o=t,r=o.imageBase64Full||o.fileBase64Full,c=o.imageName||o.fileName;return(0,i.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[l?(0,i.jsx)("video",{src:r,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,i.jsx)("img",{src:r,alt:c,className:"w-full h-full object-contain"}),(0,i.jsx)("input",{type:"text",defaultValue:c,onInput:function(e){var a,n=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-");t.fileName&&(t.fileName=n),t.imageName&&(t.imageName=n)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,i.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:function(e){var i=a.findIndex((function(e){return e.imageBase64===t.imageBase64||e.fileBase64===t.fileBase64})),l=a;l.splice(i,1),n((0,d.Z)(l))},children:"\u2716"}),!l&&(0,i.jsx)(h,{mediaObject:t})]})}var p=a(47381);function v(e){var t=e.fileObject,a=e.newFile,n=e.setNewFile;return(0,i.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,i.jsx)(p.Z,{sx:{fontSize:100},className:"opacity-20"}),(0,i.jsx)("input",{type:"text",defaultValue:t.fileName,onInput:function(e){var a;t.fileName=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,i.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:function(e){var i=a.findIndex((function(e){return e.fileBase64===t.fileBase64})),l=a;l.splice(i,1),n((0,d.Z)(l))},children:"\u2716"}),(0,i.jsx)(h,{mediaObject:t})]})}function x(e){var t=e.newMedia,a=e.setNewMedia,d=e.newFile,u=e.setNewFile,m=e.newVideo,h=e.setNewVideo,p=e.folder,x=(null===t||void 0===t?void 0:t[0])?"images":(null===d||void 0===d?void 0:d[0])?"files":"videos",g=(null===x||void 0===x?void 0:x.match(/image/i))?t:(null===x||void 0===x?void 0:x.match(/file/i))?d:m,y=(null===x||void 0===x?void 0:x.match(/image/i))?a:(null===x||void 0===x?void 0:x.match(/file/i))?u:h,w=(0,n.Z)(l.useState(!1),2),b=w[0],j=w[1];return l.useEffect((function(){g&&g[0]&&(0,c.Mw)("new-media-popup")}),[t,d,m]),(0,i.jsxs)(c.ZP,{title:"new-media-popup",closePopupDispatch:function(){a(null),u(null),h(null)},children:[b&&(0,i.jsx)(s.Z,{screen:!0}),(0,i.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,i.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:g&&g[0]&&g.map((function(e,t){return(null===x||void 0===x?void 0:x.match(/image/i))?(0,i.jsx)(f,{imageObject:e,newMedia:g,setNewMedia:y},t+1):(null===x||void 0===x?void 0:x.match(/video/i))?(0,i.jsx)(f,{imageObject:e,newMedia:g,setNewMedia:y,video:!0},t+1):(0,i.jsx)(v,{fileObject:e,newFile:g,setNewFile:y},t+1)}))}),g&&g[0]&&(0,i.jsx)("button",{className:"py-3 w-full relative z-50"+(b?" pointer-events-none opacity-40":""),onClick:function(e){j(!0);var t=(null===x||void 0===x?void 0:x.match(/image/i))?{type:x,folder:p,media:g.map((function(e){return{imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}}))}:{type:x,folder:p,media:g.map((function(e){return{fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:Boolean(null===x||void 0===x?void 0:x.match(/video/i))}}))};(0,o.Z)("/api/addUserMedia",{method:"post",body:t},!0).then((function(e){e.success?(0,r.Z)().then((function(){window.location.reload()})):(alert("Image Upload Failed"),console.log(e),setTimeout((function(){j(!1)}),1e3))}))},children:"Upload Media"})]})}},1347:function(e,t,a){a.d(t,{Z:function(){return v}});var n=a(828),i=a(85893),l=a(67294),o=a(86729),r=a(81069),c=a(25472),s=a(95264),d=a(45449),u=a(18826),m=a(58436);const h=(0,a(45711).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var f=a(64998),p=a(34642);function v(e){var t,a,v=e.targetMedia,x=e.staticHost,g=e.setTargetMedia,y=e.media,w=((null===v||void 0===v?void 0:v.media_thumbnail_path)?"".concat(x,"/").concat(null===v||void 0===v?void 0:v.media_thumbnail_path):null===v||void 0===v||v.media_thumbnail_url,(null===v||void 0===v?void 0:v.media_path)?"".concat(x,"/").concat(null===v||void 0===v?void 0:v.media_path):null===v||void 0===v?void 0:v.media_url),b=Boolean(null===v||void 0===v||null===(t=v.media_type)||void 0===t?void 0:t.match(/video/i)),j=v?y.findIndex((function(e){return e.id==v.id})):null,N="number"==typeof j&&j>=0,Z=function(){var e;if(!N)return null;var t=y[j+1];if(!t)return null;if(!(null===t||void 0===t||null===(e=t.media_type)||void 0===e?void 0:e.match(/image/i))){var a=y.slice(j+1).find((function(e){var t;return!!(null===(t=e.media_type)||void 0===t?void 0:t.match(/image/i))}));return a||null}return t}(),_=function(){var e;if(!N)return null;var t=y[j-1];if(!t)return null;if(!(null===t||void 0===t||null===(e=t.media_type)||void 0===e?void 0:e.match(/image/i))){var a=y.slice(0,j-1).findLast((function(e){var t;return!!(null===(t=e.media_type)||void 0===t?void 0:t.match(/image/i))}));return a||null}return t}(),k=(0,n.Z)(l.useState(!!(null===v||void 0===v?void 0:v.private)),2),M=k[0],z=k[1],C=(0,n.Z)(l.useState(!1),2),L=C[0],H=C[1],F=(0,n.Z)(l.useState(w),2),S=F[0],O=F[1],V=l.useRef();return l.useEffect((function(){(null===v||void 0===v?void 0:v.private)?(0,m.Z)({url:v.media_url||""}).then((function(e){e&&(O(e),z(!1))})).catch((function(e){console.log(e.message)})):O((null===v||void 0===v?void 0:v.media_url)||"")}),[v]),(0,i.jsxs)(c.ZP,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:function(){H(!1),g(null)},children:[M&&(0,i.jsx)(s.Z,{}),!L&&(0,i.jsx)(s.Z,{}),v&&(0,i.jsxs)(l.Fragment,{children:[(0,i.jsxs)("div",{className:"self-center h-screen py-4",children:[S?b?(0,i.jsx)("video",{src:S,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:function(){H(!0)},style:L?void 0:{display:"none"}}):(0,i.jsx)("img",{src:S,alt:v.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:V,onLoad:function(e){H(!0)},style:L?void 0:{display:"none"}}):(0,i.jsx)(i.Fragment,{}),_&&(0,i.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:function(e){g(null),g(_)},children:(0,i.jsx)(h,{color:"white"})}),Z&&(0,i.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:function(e){g(null),g(Z)},children:(0,i.jsx)(f.Z,{color:"white"})})]}),(0,i.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:null===(a=v.media_path)||void 0===a?void 0:a.replace(/.*\//,"")}),(0,i.jsx)("div",{className:"absolute bottom-6 left-6 p-2 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch",children:(0,i.jsxs)(d.Z,{column:!0,children:[(0,i.jsx)(p._,{mediaObject:v,setLoading:z}),(0,i.jsx)("button",{className:"outlined secondary more-padding",onClick:function(e){var t,a;(0,u.Z)({mediaObject:v,fileName:(null===(a=null===(t=v.media_url)||void 0===t?void 0:t.match(/[^\/]+$/))||void 0===a?void 0:a[0])||"",setLoading:z})},children:"Download"}),(0,i.jsx)("button",{onClick:function(e){window.confirm("Delete this media?")&&(0,o.Z)("/api/deleteUserMedia",{method:"post",body:v},!0).then((function(e){e.success?(0,r.Z)().then((function(){window.location.reload()})):alert("Media deletion Failed! Please try again.")}))},className:"more-padding",children:"Delete"}),(0,i.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:function(e){navigator.clipboard.writeText(v.media_url||"").then((function(){alert("Media url ".concat(v.media_url," Copied to clipboard"))}))},children:"Copy Full Image Link"}),(0,i.jsx)("button",{className:"outlined gray w-full more-padding",onClick:function(e){navigator.clipboard.writeText(v.media_thumbnail_url||"").then((function(){alert("Media url ".concat(v.media_thumbnail_url," Copied to clipboard"))}))},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})})]})]})}},34642:function(e,t,a){a.d(t,{Z:function(){return r},_:function(){return c}});var n=a(85893),i=(a(67294),a(86729)),l=a(81069),o=a(45449);function r(e){var t=e.mediaObject,a=e.setLoading;return(0,n.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,n.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,n.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,n.jsxs)(o.Z,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,n.jsx)(c,{mediaObject:t,setLoading:a}),(0,n.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:function(e){window.confirm("Delete this media?")&&(0,i.Z)("/api/deleteUserMedia",{method:"post",body:t},!0).then((function(e){e.success?(0,l.Z)().then((function(){window.location.reload()})):alert("Media deletion Failed! Please try again.")}))},children:"Delete"})]})})]})}function c(e){var t=e.mediaObject,a=e.setLoading;return(0,n.jsx)("button",{onClick:function(e){var n=window.prompt("Rename media",t.media_name);n&&window.confirm('Rename "'.concat(t.media_name,'" to "').concat(n,'"'))&&(a(!0),(0,i.Z)("/api/renameMedia",{method:"post",body:{mediaObject:t,newName:n.replace(/ /g,"-"),newThumbnailName:n.replace(/ /g,"-")+"_thumbnail"}},!0).then((function(e){e.success?window.location.reload():(window.alert(e.msg),setTimeout((function(){a(!1)}),1e3))})))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},25472:function(e,t,a){a.d(t,{Mw:function(){return r},ZP:function(){return o},j4:function(){return c}});var n=a(85893),i=a(41352),l=a(67294);function o(e){var t=e.children,a=e.title,o=e.data,r=e.fullPage,s=e.wrapperClasses,d=e.closePopupDispatch,u=e.wrapperStyle,m=e.noContainer;return r?(0,n.jsxs)("div",{className:"popup-bg overflow-hidden "+(s||""),"data-popupid":a||null,style:u,children:[m?(0,n.jsx)(l.Fragment,{children:t}):(0,n.jsx)("div",{className:"relative w-full h-full z-50","data-data":o?JSON.stringify(o):"",children:t}),(0,n.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:function(e){c(),d&&d()},children:(0,n.jsx)(i.Z,{color:"white",size:20})}),(0,n.jsx)("div",{className:"popup-canceller",onClick:function(e){c(),d&&d()}})]}):(0,n.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,n.jsx)(l.Fragment,{children:t}):(0,n.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":o?JSON.stringify(o):"",children:[t,(0,n.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:function(e){c(),d&&d()},children:(0,n.jsx)("span",{className:"font-normal",children:"\u2716"})})]}),m&&(0,n.jsx)("button",{className:"gray popup-cancel-button",onClick:function(e){c(),d&&d()},children:(0,n.jsx)("span",{className:"font-normal",children:"\u2716"})}),(0,n.jsx)("div",{className:"popup-canceller",onClick:function(e){c(),d&&d()}})]})}function r(e,t){var a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",t&&t(a))}function c(e){document.querySelectorAll("[data-popupid]").forEach((function(e){e.style.display="none"})),e&&e()}},98916:function(e,t,a){a.d(t,{Z:function(){return r}});var n=a(47568),i=a(97582),l=a(85893),o=(a(67294),a(53314));function r(e){var t=e.setNewFile,a=e.setLoading;return(0,l.jsx)("div",{children:(0,l.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:function(){var e=(0,n.Z)((function(e){var n,l,r,c,s,d,u;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(a&&a(!0),n=[],!(null===(l=e.target.files)||void 0===l?void 0:l.length))return[3,6];r=0,i.label=1;case 1:return r",l.message),[2,{fileBase64:null,fileBase64Full:null,fileName:t.name,fileSize:null,fileType:null}];case 4:return[2]}}))}))).apply(this,arguments)}},29815:function(e,t,a){a.d(t,{Z:function(){return o}});var n=a(20943);var i=a(13375);var l=a(91566);function o(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,i.Z)(e)||(0,l.Z)(e)||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.")}()}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4185-b4c9a571bd713be6.js b/dsql-app/.local_dist/static/chunks/4185-b4c9a571bd713be6.js deleted file mode 100644 index aab98d5..0000000 --- a/dsql-app/.local_dist/static/chunks/4185-b4c9a571bd713be6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4185],{30437:function(t,e,n){function o(t,e=[]){if(void 0===t)return{};const n={};return Object.keys(t).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof t[n]&&!e.includes(n))).forEach((e=>{n[e]=t[e]})),n}n.d(e,{_:function(){return o}})},78987:function(t,e,n){n.d(e,{y:function(){return c}});var o=n(87462),i=n(63366),r=n(33703);var a=n(90512),s=n(30437);function l(t){if(void 0===t)return{};const e={};return Object.keys(t).filter((e=>!(e.match(/^on[A-Z]/)&&"function"===typeof t[e]))).forEach((n=>{e[n]=t[n]})),e}const u=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function c(t){var e;const{elementType:n,externalSlotProps:c,ownerState:p,skipResolvingSlotProps:d=!1}=t,f=(0,i.Z)(t,u),v=d?{}:function(t,e,n){return"function"===typeof t?t(e,n):t}(c,p),{props:h,internalRef:m}=function(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:i,externalForwardedProps:r,className:u}=t;if(!e){const t=(0,a.Z)(null==n?void 0:n.className,u,null==r?void 0:r.className,null==i?void 0:i.className),e=(0,o.Z)({},null==n?void 0:n.style,null==r?void 0:r.style,null==i?void 0:i.style),s=(0,o.Z)({},n,r,i);return t.length>0&&(s.className=t),Object.keys(e).length>0&&(s.style=e),{props:s,internalRef:void 0}}const c=(0,s._)((0,o.Z)({},r,i)),p=l(i),d=l(r),f=e(c),v=(0,a.Z)(null==f?void 0:f.className,null==n?void 0:n.className,u,null==r?void 0:r.className,null==i?void 0:i.className),h=(0,o.Z)({},null==f?void 0:f.style,null==n?void 0:n.style,null==r?void 0:r.style,null==i?void 0:i.style),m=(0,o.Z)({},f,n,d,p);return v.length>0&&(m.className=v),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:f.ref}}((0,o.Z)({},f,{externalSlotProps:v})),E=(0,r.Z)(m,null==v?void 0:v.ref,null==(e=t.additionalProps)?void 0:e.ref),x=function(t,e,n){return void 0===t||"string"===typeof t?e:(0,o.Z)({},e,{ownerState:(0,o.Z)({},e.ownerState,n)})}(n,(0,o.Z)({},h,{ref:E}),p);return x}},90629:function(t,e,n){n.d(e,{Z:function(){return x}});var o=n(63366),i=n(87462),r=n(67294),a=n(90512),s=n(94780),l=n(41796),u=n(2641);var c=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)},p=n(54502),d=n(1588),f=n(34867);function v(t){return(0,f.Z)("MuiPaper",t)}(0,d.Z)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(85893);const m=["className","component","elevation","square","variant"],E=(0,u.ZP)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e[`elevation${n.elevation}`]]}})((({theme:t,ownerState:e})=>{var n;return(0,i.Z)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:`1px solid ${(t.vars||t).palette.divider}`},"elevation"===e.variant&&(0,i.Z)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.Fq)("#fff",c(e.elevation))}, ${(0,l.Fq)("#fff",c(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))}));var x=r.forwardRef((function(t,e){const n=(0,p.Z)({props:t,name:"MuiPaper"}),{className:r,component:l="div",elevation:u=1,square:c=!1,variant:d="elevation"}=n,f=(0,o.Z)(n,m),x=(0,i.Z)({},n,{component:l,elevation:u,square:c,variant:d}),b=(t=>{const{square:e,elevation:n,variant:o,classes:i}=t,r={root:["root",o,!e&&"rounded","elevation"===o&&`elevation${n}`]};return(0,s.Z)(r,v,i)})(x);return(0,h.jsx)(E,(0,i.Z)({as:l,ownerState:x,className:(0,a.Z)(b.root,r),ref:e},f))}))},2734:function(t,e,n){n.d(e,{Z:function(){return a}});n(67294);var o=n(96682),i=n(90247),r=n(10606);function a(){const t=(0,o.Z)(i.Z);return t[r.Z]||t}},30577:function(t,e,n){n.d(e,{C:function(){return i},n:function(){return o}});const o=t=>t.scrollTop;function i(t,e){var n,o;const{timeout:i,easing:r,style:a={}}=t;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof i?i:i[e.mode]||0,easing:null!=(o=a.transitionTimingFunction)?o:"object"===typeof r?r[e.mode]:r,delay:a.transitionDelay}}},84527:function(t,e,n){n.d(e,{ZP:function(){return m}});var o=n(63366);function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}var r=n(67294),a=n(73935),s=!1,l=r.createContext(null),u="unmounted",c="exited",p="entering",d="entered",f="exiting",v=function(t){var e,n;function v(e,n){var o;o=t.call(this,e,n)||this;var i,r=n&&!n.isMounting?e.enter:e.appear;return o.appearStatus=null,e.in?r?(i=c,o.appearStatus=p):i=d:i=e.unmountOnExit||e.mountOnEnter?u:c,o.state={status:i},o.nextCallback=null,o}n=t,(e=v).prototype=Object.create(n.prototype),e.prototype.constructor=e,i(e,n),v.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:c}:null};var h=v.prototype;return h.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},h.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==d&&(e=p):n!==p&&n!==d||(e=f)}this.updateStatus(!1,e)},h.componentWillUnmount=function(){this.cancelNextCallback()},h.getTimeouts=function(){var t,e,n,o=this.props.timeout;return t=e=n=o,null!=o&&"number"!==typeof o&&(t=o.exit,e=o.enter,n=void 0!==o.appear?o.appear:e),{exit:t,enter:e,appear:n}},h.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);n&&function(t){t.scrollTop}(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:u})},h.performEnter=function(t){var e=this,n=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[a.findDOMNode(this),o],r=i[0],l=i[1],u=this.getTimeouts(),c=o?u.appear:u.enter;!t&&!n||s?this.safeSetState({status:d},(function(){e.props.onEntered(r)})):(this.props.onEnter(r,l),this.safeSetState({status:p},(function(){e.props.onEntering(r,l),e.onTransitionEnd(c,(function(){e.safeSetState({status:d},(function(){e.props.onEntered(r,l)}))}))})))},h.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:a.findDOMNode(this);e&&!s?(this.props.onExit(o),this.safeSetState({status:f},(function(){t.props.onExiting(o),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(o)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(o)}))},h.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},h.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},h.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},h.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=i[0],s=i[1];this.props.addEndListener(r,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},h.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,o.Z)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.createElement(l.Provider,{value:null},"function"===typeof n?n(t,i):r.cloneElement(r.Children.only(n),i))},v}(r.Component);function h(){}v.contextType=l,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},v.UNMOUNTED=u,v.EXITED=c,v.ENTERING=p,v.ENTERED=d,v.EXITING=f;var m=v}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4750-16db76b374e35273.js b/dsql-app/.local_dist/static/chunks/4750-16db76b374e35273.js new file mode 100644 index 0000000..78fe6f1 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/4750-16db76b374e35273.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4750],{65001:(e,l,a)=>{a.d(l,{A:()=>r});var t=a(74848);a(96540);var i=a(45165),o=a(1915),n=a(95737);let s=(0,n.A)("Files",[["path",{d:"M20 7h-3a2 2 0 0 1-2-2V2",key:"x099mo"}],["path",{d:"M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z",key:"18t6ie"}],["path",{d:"M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8",key:"1nja0z"}]]),d=(0,n.A)("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);function r(e){let{user:l}=e;return(0,t.jsx)(i.Ay,{title:"choose-media-type-popoup",noContainer:!0,wrapperClasses:"items-center",wrapperStyle:{alignItems:"center"},children:(0,t.jsxs)("div",{className:"paper items-center max-w-2xl m-auto z-50 p-4 xl:p-10",children:[(0,t.jsxs)("h4",{className:"m-0 text-center text-lg leading-tight",children:["What kind of Media do you",(0,t.jsx)("br",{}),"want to upload?"]}),(0,t.jsx)("span",{children:"Please Select the media type to upload."}),(0,t.jsxs)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:[(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a;if(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/)){let e=document.getElementById("upload_image_input");null==e||e.click()}else alert("Please Verify to Add Media");setTimeout(()=>{(0,i.fs)()},500)},children:[(0,t.jsx)(o.A,{size:50,className:"text-primary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Images"}),(0,t.jsx)("span",{className:"text-sm",children:"General image formats like JPEG, PNG, SVG, WEBP, etc."})]})]}),(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_file_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(s,{size:50,className:"text-secondary"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Files"}),(0,t.jsx)("span",{className:"text-sm",children:"Other documents type. Like PDF, XLSX, CSV, etc."})]})]})]}),(0,t.jsx)("div",{className:"w-full grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch",children:(0,t.jsxs)("div",{className:"card cursor-pointer",onClick:e=>{var a,t;(null==l?void 0:null===(a=l.verification_status)||void 0===a?void 0:a.toString().match(/1/))?null===(t=document.getElementById("upload_video_input"))||void 0===t||t.click():alert("Please Verify to Add Media"),(0,i.fs)()},children:[(0,t.jsx)(d,{size:55,className:"text-slate-600"}),(0,t.jsxs)("div",{className:"content",children:[(0,t.jsx)("span",{className:"title",children:"Videos"}),(0,t.jsxs)("span",{className:"text-sm",children:["Video Files. ",(0,t.jsx)("b",{children:"MP4"})," for now. These files can be streamed. Max 200mb"]})]})]})})]})})}},53301:(e,l,a)=>{a.d(l,{A:()=>A});var t=a(74848),i=a(96540),o=a(23698),n=a(96228),s=a(2436),d=a(620);function r(e){let{folderName:l,folder:a,user:r}=e,c="".concat(a?a+"/":"").concat(l),[u,m]=i.useState(!1);return(0,t.jsxs)("a",{href:"/admin/".concat(null==r?void 0:r.id,"/media/").concat(c),className:"card col items-center justify-center",onClick:e=>{if(e.target.closest("button"))return e.preventDefault()},children:[u&&(0,t.jsx)(d.A,{}),(0,t.jsx)(n.A,{sx:{fontSize:100},className:"opacity-20"}),(0,t.jsx)("span",{className:"absolute top-4 left-4 text-xs bg-slate-200 dark:bg-slate-700 px-2 py-0.5 rounded-full",children:"Folder"}),(0,t.jsx)("span",{className:"",children:l}),(0,t.jsx)("button",{className:"plain-text absolute top-2 right-2",onClick:e=>{window.confirm("Delete this Folder and all its contents?")&&(m(!0),window.confirm("NOTE: this folder and all its contents will be permanently lost. Continue?")?(0,o.A)("/api/deleteMediaFolder",{method:"post",body:{folder:c}},!0).then(e=>{e.success&&window.location.reload()}):m(!1))},children:(0,t.jsx)(s.A,{className:"opacity-30"})})]},l)}var c=a(45165),u=a(60557),m=a(29084),h=a(3260);function p(e){var l,a;let{mediaObject:n,staticHost:s}=e,d=n.media_thumbnail_path?(null==n?void 0:n.private)?n.media_thumbnail_url:"".concat(s).concat(n.media_thumbnail_path):n.media_thumbnail_url,r=n.media_path?(null==n?void 0:n.private)?n.media_url:"".concat(s).concat(n.media_path):n.media_url;return(0,t.jsx)(i.Fragment,{children:(null===(l=n.media_type)||void 0===l?void 0:l.match(/file/i))?(0,t.jsxs)("div",{className:"cursor-pointer hover:opacity-80",children:[(0,t.jsx)(h.A,{sx:{fontSize:100},className:"opacity-10"}),(0,t.jsx)("span",{className:"info w-auto small gray absolute top-4 right-4",children:n.media_type.replace(/.*\//,"").toUpperCase()})]}):(null===(a=n.media_type)||void 0===a?void 0:a.match(/video/i))?(0,t.jsx)("video",{src:r,className:"w-full h-60 object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0}):(0,t.jsx)("img",{src:d,alt:n.media_name,className:"w-full h-60 object-cover bg-slate-200 rounded",onError:e=>{null!=n&&n.private||(0,o.A)("/api/purgeDb",{method:"post",body:{paradigm:"user_media",payload:n}},!0).then(e=>{e.success?window.location.reload():(console.log(e),console.log(d),console.log(r))})}})})}var v=a(98183);function f(e){var l;let{mediaObject:a,staticHost:o}=e;return(a.media_thumbnail_path?"".concat(o,"/").concat(a.media_thumbnail_path):a.media_thumbnail_url,a.media_path?"".concat(o,"/").concat(a.media_path):a.media_url,null==a?void 0:a.private)?(0,t.jsx)(i.Fragment,{}):(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined secondary small-text w-full hidden xl:flex bg-secondary/10",children:"Copy Link"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(u.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_url||"").then(()=>{alert("Media url ".concat(a.media_url," Copied to clipboard"))})},children:"Copy Full Link"}),!(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/file|video/i))&&(0,t.jsx)("button",{className:"gray outlined normal-weight more-padding",onClick:e=>{navigator.clipboard.writeText(a.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(a.media_thumbnail_url," Copied to clipboard"))})},children:"Copy Thumbnail Link"})]})})]})}var x=a(95737);let g=(0,x.A)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),y=(0,x.A)("LockOpen",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);function w(e){var l;let{mediaObject:a,setLoading:n}=e,[s,d]=i.useState(!1);return(null==a?void 0:null===(l=a.media_type)||void 0===l?void 0:l.match(/video/i))?null:(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-4 left-4 bg-white"+((null==a?void 0:a.private)?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{let l=a.private?"This media is private: Make it public?":"Make this media Private?";window.confirm(l)&&(n(!0),(0,o.A)("/api/media/addPrivateMedia",{method:"post",body:{...a}},!0).then(e=>{e.success?window.location.reload():window.alert("Action Failed!"),setTimeout(()=>{n(!1)},1e3)}).catch(e=>{console.log(e)}))},children:(null==a?void 0:a.private)?(0,t.jsx)(g,{size:20,color:"green"}):(0,t.jsx)(y,{color:"black",size:20})})}var j=a(20993);function b(e){let{mediaObject:l,setTargetMedia:a,folder:o,staticHost:n}=e,[s,r]=i.useState(null!=l&&!!l.private),[h,x]=i.useState(l);i.useEffect(()=>{var e;(null==l?void 0:l.private)&&l.media_thumbnail_url&&!(null===(e=h.media_type)||void 0===e?void 0:e.match(/file/i))?(0,j.A)({url:l.media_thumbnail_url}).then(e=>{x({...l,media_thumbnail_url:e}),r(!1)}).catch(e=>{console.log(e.message)}):s&&r(!1)},[]),h.media_thumbnail_path?"".concat(n,"/").concat(h.media_thumbnail_path):h.media_thumbnail_url;let g=h.media_path?"".concat(n,"/").concat(h.media_path):h.media_url;return(0,t.jsxs)("div",{className:"media-card card col",onClick:e=>{var l,t;if(!(e.target.closest("button")||e.target.closest(".button"))){if((null===(l=h.media_type)||void 0===l?void 0:l.match(/file/i))&&!h.private){window.open(g,"__blank");return}if((null===(t=h.media_type)||void 0===t?void 0:t.match(/file/i))&&h.private)return;a(h),(0,c.PB)("target-media-popup")}},onMouseEnter:e=>{e.target.closest(".media-card").style.zIndex="10"},onMouseLeave:e=>{e.target.closest(".media-card").style.zIndex="0"},style:(null==h?void 0:h.private)?{outline:"5px solid var(--sec-color-light)",borderColor:"var(--sec-color-lighter)"}:{},children:[s&&(0,t.jsx)(d.A,{}),(0,t.jsx)(p,{mediaObject:h,staticHost:n}),(0,t.jsxs)("div",{className:"flex-col items-center xl:items-start flex-wrap w-full mt-auto",children:[(0,t.jsx)("span",{className:"w-full",style:{wordBreak:"break-all"},children:h.media_name}),(0,t.jsx)("div",{className:"flex-wrap w-full",children:(0,t.jsxs)(u.A,{className:"flex-wrap w-full items-stretch",children:[(0,t.jsx)("button",{className:"secondary small-text relative w-full xl:w-auto mb-2 xl:mb-0",onClick:e=>{var l;(0,m.A)({mediaObject:h,fileName:(null==g?void 0:null===(l=g.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:r})},children:(0,t.jsx)("span",{children:"Download"})}),(0,t.jsx)(f,{mediaObject:h,staticHost:n}),(0,t.jsx)(v.A,{mediaObject:h,setLoading:r})]})})]}),(0,t.jsx)(w,{mediaObject:h,setLoading:r})]})}var N=a(64401);function A(e){let{media:l,setTargetMedia:a,folders:o,folder:n,staticHost:s,user:d}=e;return(0,t.jsx)(i.Fragment,{children:(0,t.jsxs)("section",{className:"paper overflow-visible",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:"Media List"}),(0,t.jsxs)("div",{className:"w-full gap-4 grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 items-stretch",children:[o&&o[0]&&o.map(e=>(0,t.jsx)(r,{folder:n,folderName:e,user:d},e)),l&&l[0]&&l.map(e=>(0,t.jsx)(b,{mediaObject:e,setTargetMedia:a,folder:n,staticHost:s},e.id))]}),!(null==l?void 0:l[0])&&(0,t.jsx)(k,{})]})})}function k(){return(0,t.jsxs)("div",{className:"button outlined gray dashed w-full p-10 flex-col",onClick:e=>{(0,c.PB)("choose-media-type-popoup")},children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Media Added."}),(0,t.jsx)(N.A,{color:"inherit",sx:{fontSize:80},className:"opacity-40 text-gray-500"}),(0,t.jsx)("span",{className:"",children:"Add Media"})]})}},5531:(e,l,a)=>{let t;a.d(l,{A:()=>r});var i=a(74848),o=a(96540),n=a(23698),s=a(45165),d=a(620);function r(e){let{folder:l}=e,[a,r]=o.useState(!1),[c,u]=o.useState(!1);return(0,i.jsxs)(s.Ay,{title:"add-folder-popoup",children:[(0,i.jsx)("h4",{className:"m-0",children:"Add A New Folder"}),(0,i.jsxs)("div",{className:"flex-col w-full relative",children:[a&&(0,i.jsx)(d.A,{}),(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),window.clearTimeout(t),r(!0);let a=e.target;(0,n.A)("/api/addNewMediaFolder",{method:"post",body:{name:(l?"".concat(l,"/"):"")+a["new-folder-name"].value}},!0).then(e=>{e.success?window.location.reload():r(!1)})},className:"w-full flex flex-col items-stretch gap-2",children:[c&&(0,i.jsx)("span",{className:"text-xs text-orange-700 bg-orange-100 flex items-center justify-center rounded px-2 py-1",children:"Folder Already Exists. Please Change the name."}),(0,i.jsx)("input",{type:"text",name:"new-folder-name",id:"new-folder-name",placeholder:"New Folder Name",className:"w-full"+(c?" warning":""),onChange:e=>{e.target.value=e.target.value.toLocaleLowerCase().replace(/ /g,"-"),window.clearTimeout(t),t=setTimeout(()=>{(0,n.A)("/api/checkExistingFolder?name=".concat(e.target.value).concat(l?"&folder="+l:"")).then(l=>{var a;(null===(a=e.target.value)||void 0===a?void 0:a.match(/./))&&(null==l?void 0:l.success)?(u(!0),alert("Folder Already Exists")):u(!1)})},500)}}),(0,i.jsx)("button",{children:"Add New Folder"})]})]})]})}},45332:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(74848),i=a(96540),o=a(23698),n=a(17531),s=a(45165),d=a(620),r=a(84672),c=a(71070);function u(e){let{mediaObject:l}=e,[a,o]=i.useState(!1);return i.useEffect(()=>{l.private=a},[a]),(0,t.jsx)("button",{className:"light-gray p-2 w-8 h-8 rounded-full absolute top-2 left-2 bg-white"+(a?" ":" text-slate-400 fill-slate-400"),style:{backgroundColor:"white"},onClick:e=>{o(e=>!e)},children:a?(0,t.jsx)(c.A,{fontSize:"small",color:"secondary"}):(0,t.jsx)(r.A,{fontSize:"small",className:"fill-inherit text-inherit"})})}function m(e){let{imageObject:l,newMedia:a,setNewMedia:i,video:o}=e,n=l.imageBase64Full||l.fileBase64Full,s=l.imageName||l.fileName;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[o?(0,t.jsx)("video",{src:n,className:"w-full h-full object-contain",muted:!0,autoPlay:!0,controls:!0}):(0,t.jsx)("img",{src:n,alt:s,className:"w-full h-full object-contain"}),(0,t.jsx)("input",{type:"text",defaultValue:s,onInput:e=>{var a;let t=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-");l.fileName&&(l.fileName=t),l.imageName&&(l.imageName=t)},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.imageBase64===l.imageBase64||e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:"✖"}),!o&&(0,t.jsx)(u,{mediaObject:l})]})}var h=a(3260);function p(e){let{fileObject:l,newFile:a,setNewFile:i}=e;return(0,t.jsxs)("div",{className:"border border-slate-300 rounded max-h-44 flex-col w-full overflow-hidden h-full bg-slate-200 relative p-2",children:[(0,t.jsx)(h.A,{sx:{fontSize:100},className:"opacity-20"}),(0,t.jsx)("input",{type:"text",defaultValue:l.fileName,onInput:e=>{var a;l.fileName=null===(a=e.target.value)||void 0===a?void 0:a.replace(/ /g,"-")},className:"absolute bottom-1 text-sm left-2 px-2 py-1",style:{width:"calc(100% - 15px)"}}),(0,t.jsx)("button",{className:"outlined bg-white absolute top-2 right-2 p-1 w-8 h-8 rounded-full",style:{backgroundColor:"white",borderColor:"var(--slate-200)"},onClick:e=>{let t=a.findIndex(e=>e.fileBase64===l.fileBase64);a.splice(t,1),i([...a])},children:"✖"}),(0,t.jsx)(u,{mediaObject:l})]})}function v(e){let{newMedia:l,setNewMedia:a,newFile:r,setNewFile:c,newVideo:u,setNewVideo:h,folder:v}=e,f=(null==l?void 0:l[0])?"images":(null==r?void 0:r[0])?"files":"videos",x=(null==f?void 0:f.match(/image/i))?l:(null==f?void 0:f.match(/file/i))?r:u,g=(null==f?void 0:f.match(/image/i))?a:(null==f?void 0:f.match(/file/i))?c:h,[y,w]=i.useState(!1);return i.useEffect(()=>{x&&x[0]&&(0,s.PB)("new-media-popup")},[l,r,u]),(0,t.jsxs)(s.Ay,{title:"new-media-popup",closePopupDispatch:()=>{a(null),c(null),h(null)},children:[y&&(0,t.jsx)(d.A,{screen:!0}),(0,t.jsx)("h4",{className:"m-0",children:"Upload New Media"}),(0,t.jsx)("div",{className:"grid grid-cols-2 gap-4 w-full",children:x&&x[0]&&x.map((e,l)=>(null==f?void 0:f.match(/image/i))?(0,t.jsx)(m,{imageObject:e,newMedia:x,setNewMedia:g},l+1):(null==f?void 0:f.match(/video/i))?(0,t.jsx)(m,{imageObject:e,newMedia:x,setNewMedia:g,video:!0},l+1):(0,t.jsx)(p,{fileObject:e,newFile:x,setNewFile:g},l+1))}),x&&x[0]&&(0,t.jsx)("button",{className:"py-3 w-full relative z-50"+(y?" pointer-events-none opacity-40":""),onClick:e=>{w(!0);let l=(null==f?void 0:f.match(/image/i))?{type:f,folder:v,media:x.map(e=>({imageBase64:e.imageBase64,imageName:e.imageName,imageSize:e.imageSize,private:e.private}))}:{type:f,folder:v,media:x.map(e=>({fileBase64:e.fileBase64,fileName:e.fileName,fileSize:e.fileSize,fileType:e.fileType,private:e.private,video:!!(null==f?void 0:f.match(/video/i))}))};(0,o.A)("/api/addUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):(alert("Image Upload Failed"),console.log(e),setTimeout(()=>{w(!1)},1e3))})},children:"Upload Media"})]})}},84003:(e,l,a)=>{a.d(l,{A:()=>v});var t=a(74848),i=a(96540),o=a(23698),n=a(17531),s=a(45165),d=a(620),r=a(60557),c=a(29084),u=a(20993);let m=(0,a(95737).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var h=a(18453),p=a(98183);function v(e){var l,a;let{targetMedia:v,staticHost:f,setTargetMedia:x,media:g}=e;(null==v?void 0:v.media_thumbnail_path)?"".concat(f,"/").concat(null==v?void 0:v.media_thumbnail_path):null==v||v.media_thumbnail_url;let y=(null==v?void 0:v.media_path)?"".concat(f,"/").concat(null==v?void 0:v.media_path):null==v?void 0:v.media_url,w=!!(null==v?void 0:null===(l=v.media_type)||void 0===l?void 0:l.match(/video/i)),j=v?g.findIndex(e=>e.id==v.id):null,b="number"==typeof j&&j>=0,N=(()=>{var e;if(!b)return null;let l=g[j+1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(j+1).find(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),A=(()=>{var e;if(!b)return null;let l=g[j-1];return l?(null==l?void 0:null===(e=l.media_type)||void 0===e?void 0:e.match(/image/i))?l:g.slice(0,j-1).findLast(e=>{var l;return null!==(l=e.media_type)&&void 0!==l&&!!l.match(/image/i)})||null:null})(),[k,_]=i.useState(null!=v&&!!v.private),[M,C]=i.useState(!1),[z,L]=i.useState(y),S=i.useRef();return i.useEffect(()=>{(null==v?void 0:v.private)?(0,u.A)({url:v.media_url||""}).then(e=>{e&&(L(e),_(!1))}).catch(e=>{console.log(e.message)}):L((null==v?void 0:v.media_url)||"")},[v]),(0,t.jsxs)(s.Ay,{title:"target-media-popup",noContainer:!0,fullPage:!0,closePopupDispatch:()=>{C(!1),x(null)},children:[k&&(0,t.jsx)(d.A,{}),!M&&(0,t.jsx)(d.A,{}),v&&(0,t.jsxs)(i.Fragment,{children:[(0,t.jsxs)("div",{className:"self-center h-screen py-4",children:[z?w?(0,t.jsx)("video",{src:z,className:"w-full h-full object-cover",controls:!0,muted:!0,autoPlay:!0,loop:!0,onCanPlay:()=>{C(!0)},style:M?void 0:{display:"none"}}):(0,t.jsx)("img",{src:z,alt:v.media_name,className:"bg-slate-200 rounded w-full h-full object-contain",ref:S,onLoad:e=>{C(!0)},style:M?void 0:{display:"none"}}):(0,t.jsx)(t.Fragment,{}),A&&(0,t.jsx)("div",{className:"absolute left-5 md:left-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(A)},children:(0,t.jsx)(m,{color:"white"})}),N&&(0,t.jsx)("div",{className:"absolute right-5 md:right-10 z-[100] cursor-pointer p-5 bg-slate-800/40 rounded-full",onClick:e=>{x(null),x(N)},children:(0,t.jsx)(h.A,{color:"white"})})]}),(0,t.jsx)("span",{className:"info gray absolute top-5 left-5 w-auto mr-5",style:{backgroundColor:"white"},children:null===(a=v.media_path)||void 0===a?void 0:a.replace(/.*\//,"")}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6 p-2 bg-white dark:bg-slate-900 rounded z-20 hidden lg:flex flex-col items-stretch",children:(0,t.jsxs)(r.A,{column:!0,children:[(0,t.jsx)(p.F,{mediaObject:v,setLoading:_}),(0,t.jsx)("button",{className:"outlined secondary more-padding",onClick:e=>{var l,a;(0,c.A)({mediaObject:v,fileName:(null===(a=v.media_url)||void 0===a?void 0:null===(l=a.match(/[^\/]+$/))||void 0===l?void 0:l[0])||"",setLoading:_})},children:"Download"}),(0,t.jsx)("button",{onClick:e=>{window.confirm("Delete this media?")&&(0,o.A)("/api/deleteUserMedia",{method:"post",body:v},!0).then(e=>{e.success?(0,n.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},className:"more-padding",children:"Delete"}),(0,t.jsx)("button",{className:"outlined gray w-full bg-white more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_url||"").then(()=>{alert("Media url ".concat(v.media_url," Copied to clipboard"))})},children:"Copy Full Image Link"}),(0,t.jsx)("button",{className:"outlined gray w-full more-padding",onClick:e=>{navigator.clipboard.writeText(v.media_thumbnail_url||"").then(()=>{alert("Media url ".concat(v.media_thumbnail_url," Copied to clipboard"))})},style:{borderTop:"1px solid #0b8862"},children:"Copy Image Thumbnail Link"})]})})]})]})}},98183:(e,l,a)=>{a.d(l,{A:()=>s,F:()=>d});var t=a(74848);a(96540);var i=a(23698),o=a(17531),n=a(60557);function s(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsxs)("div",{className:"dropdown-wrapper w-full xl:w-auto",children:[(0,t.jsx)("button",{className:"outlined gray small-text hidden xl:flex",children:"More"}),(0,t.jsx)("div",{className:"dropdown mobile-transform gap-2 w-full",children:(0,t.jsxs)(n.A,{column:!0,className:"w-full mb-2 xl:mb-0",children:[(0,t.jsx)(d,{mediaObject:l,setLoading:a}),(0,t.jsx)("button",{className:"outlined gray normal-weight more-padding w-full xl:w-auto",onClick:e=>{window.confirm("Delete this media?")&&(0,i.A)("/api/deleteUserMedia",{method:"post",body:l},!0).then(e=>{e.success?(0,o.A)().then(()=>{window.location.reload()}):alert("Media deletion Failed! Please try again.")})},children:"Delete"})]})})]})}function d(e){let{mediaObject:l,setLoading:a}=e;return(0,t.jsx)("button",{onClick:e=>{let t=window.prompt("Rename media",l.media_name);t&&window.confirm('Rename "'.concat(l.media_name,'" to "').concat(t,'"'))&&(a(!0),(0,i.A)("/api/renameMedia",{method:"post",body:{mediaObject:l,newName:t.replace(/ /g,"-"),newThumbnailName:t.replace(/ /g,"-")+"_thumbnail"}},!0).then(e=>{e.success?window.location.reload():(window.alert(e.msg),setTimeout(()=>{a(!1)},1e3))}))},className:"outlined gray normal-weight more-padding",children:"Rename"})}},45165:(e,l,a)=>{a.d(l,{Ay:()=>n,PB:()=>s,fs:()=>d});var t=a(74848),i=a(76897),o=a(96540);function n(e){let{children:l,title:a,data:n,fullPage:s,wrapperClasses:r,closePopupDispatch:c,wrapperStyle:u,noContainer:m}=e;return s?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":a||null,style:u,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:l}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),c&&c()},children:(0,t.jsx)(i.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,t.jsx)(o.Fragment,{children:l}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[l,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),c&&c()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),c&&c()}})]})}function s(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",l&&l(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},11493:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(74848);a(96540);var i=a(95896);function o(e){let{setNewFile:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_file_input",id:"upload_file_input",className:"hidden",accept:".xlsx,.pdf,.csv,.json",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},67764:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(74848);a(96540);var i=a(65113);function o(e){let{setNewMedia:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_image_input",id:"upload_image_input",className:"hidden",accept:"image/*",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Files selected")}})})}},22154:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(74848);a(96540);var i=a(95896);function o(e){let{setNewVideo:l,setLoading:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)("input",{type:"file",name:"upload_video_input",id:"upload_video_input",className:"hidden",accept:".mp4",multiple:!0,onChange:async e=>{a&&a(!0);let t=[],o=e.target.files;if(null==o?void 0:o.length){for(let e=0;e{a&&a(!1)},200)}else window.alert("No Videos selected")}})})}},55624:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(74848);function i(e){return(0,t.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,t.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}a(96540)},29084:(e,l,a)=>{a.d(l,{A:()=>i});var t=a(20993);async function i(e){var l;let a,{mediaObject:i,fileName:o,setLoading:n}=e;n&&n(!0);let s=!!((null==i?void 0:i.private)||(null==i?void 0:null===(l=i.media_url)||void 0===l?void 0:l.match(/^\@/)));a=s?await (0,t.A)({url:i.media_url||""}):await fetch("/api/fetch-media?url="+i.media_url);let d=s?a:await a.blob(),r=s?a:URL.createObjectURL(d),c=document.createElement("a");c.href=r,c.download=o,c.style.display="none",document.body.appendChild(c),c.click(),URL.revokeObjectURL(r),document.body.removeChild(c),setTimeout(()=>{n&&n(!1)},500)}},20993:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{url:l}=e;return new Promise((e,a)=>{fetch("/api/media/getPrivateMedia",{method:"POST",body:JSON.stringify({path:l}),headers:{"x-csrf-auth":localStorage.getItem("csrf")}}).then(e=>e.blob()).then(l=>{e(URL.createObjectURL(l))})})}},65113:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let l,a,{imageInputFile:t,maxWidth:i}=e,o=document.querySelector("[data-imagepreview='image']"),n=t.name.replace(/\..*/,""),s=document.createElement("canvas"),d=t.type,r=i||null,c=URL.createObjectURL(t),u=new Image;return u.src=c,l=await new Promise((e,l)=>{u.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},u.onload=function(){if(URL.revokeObjectURL(this.src),r){let e=r/u.naturalWidth;s.width=u.naturalWidth{e.src=a}),e(a)}}),a=await new Promise((e,l)=>{s.toBlob(l=>{e(null==l?void 0:l.size)},d,.95)}),{imageBase64:l.replace(/.*?base64,/,""),imageBase64Full:l,imageName:n,imageSize:a}}},95896:(e,l,a)=>{a.d(l,{A:()=>t});async function t(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var t=new FileReader;t.readAsDataURL(l),t.onload=function(){e(t.result)},t.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}},3260:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)([(0,o.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M7 15h7v2H7zm0-4h10v2H7zm0-4h10v2H7zm12-4h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04-.39.08-.74.28-1.01.55-.18.18-.33.4-.43.64S3 4.72 3 5v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75M19 19H5V5h14z"},"1")],"AssignmentTwoTone")},34181:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)([(0,o.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},2436:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutlineOutlined")},96228:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)([(0,o.jsx)("path",{d:"M11.17 4H7v11h14V6h-7.83z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M21 4h-7l-2-2H7c-1.1 0-1.99.9-1.99 2L5 15c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 11H7V4h4.17l2 2H21z"},"1"),(0,o.jsx)("path",{d:"M3 6H1v13c0 1.1.9 2 2 2h17v-2H3z"},"2")],"FolderCopyTwoTone")},84672:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)((0,o.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h2c0-1.66 1.34-3 3-3s3 1.34 3 3v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m0 12H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"}),"LockOpenOutlined")},71070:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)([(0,o.jsx)("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),(0,o.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")],"LockPersonRounded")},64401:(e,l,a)=>{var t=a(24994);l.A=void 0;var i=t(a(44888)),o=a(74848);l.A=(0,i.default)([(0,o.jsx)("path",{d:"m13.17 6-.59-.59L11.17 4H6v12h16V6zm4.33 4.5L21 15H7l4.5-6 3.5 4.51z",opacity:".3"},"0"),(0,o.jsx)("path",{d:"M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2zm5 9h14l-3.5-4.5-2.5 3.01L11.5 9zM22 4h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 12H6V4h5.17l1.41 1.41.59.59H22z"},"1")],"PermMediaTwoTone")},45014:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},18453:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},59140:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},94909:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},76897:(e,l,a)=>{a.d(l,{A:()=>t});let t=(0,a(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/4893-e30c16360c86c67d.js b/dsql-app/.local_dist/static/chunks/4893-e30c16360c86c67d.js deleted file mode 100644 index b2d0622..0000000 --- a/dsql-app/.local_dist/static/chunks/4893-e30c16360c86c67d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4893],{34893:function(e,l,t){t.d(l,{Z:function(){return R}});var a=t(828),i=t(85893),d=t(67294),n=t(10990);function s(e){var l=e.tableFields,t=e.setTableFields,a=(e.setRefresh,e.setPageRefresh,e.refreshFieldsListRef),i=l,d=i.findIndex((function(e){return"date_created"===e.fieldName}));i.splice(d,0,{newTempField:!0}),t(i),(null===a||void 0===a?void 0:a.current)&&a.current((function(e){return e+1}))}var r=t(36169),o=t(95264),c=t(33907),u=t(29815),f=t(96486),v=t.n(f);function p(e){var l=e.tableFields,t=e.setTableFields,a=e.refreshFieldsListRef,i=e.order,d=e.field,n=e.e,s=v().cloneDeep(l),r=s.findIndex((function(e){return e.fieldName===d.fieldName}));if(!(r<0)){var o=s[r];if("up"===i&&r&&r<=1)console.log("Min Reached =>",r);else if("down"===i&&r&&r>=s.length-7)console.log("Max Reached =>",r);else{try{var c,f,p=n.target.closest(".table-field-wrapper"),m=p.previousElementSibling,x=p.nextElementSibling,h=window.DSQL.Flip,b=h.getState(p);if("up"===i)c=h.getState(m),null===(f=p.parentNode)||void 0===f||f.insertBefore(p,m);else if(null===x||void 0===x?void 0:x.nextElementSibling){var g;c=h.getState(x),null===(g=p.parentNode)||void 0===g||g.insertBefore(p,x.nextElementSibling)}h.from(b,{duration:.3,ease:"power1.inOut"}),h.from(c,{duration:.3,ease:"power1.inOut"})}catch(y){console.log("Error =>",y.message)}r?(s.splice(r,1),"up"===i?s.splice(r-1,0,o):s.splice(r+1,0,o),setTimeout((function(){t((0,u.Z)(s)),a.current&&a.current((function(e){return e+1}))}),500)):console.log("No target Field Index =>",r)}}}var m=t(99967),x=t(3699),h=t(86729);function b(e){var l,t,n,s,r,o,u,f,v,p,m,b=e.field,g=(e.setTargetField,e.fieldIndex,e.tableFields),y=e.setTableFields,w=(e.refreshFieldsListRef,e.database),j=e.currentTable,N=e.user,T=e.isDelegated,F=e.setLoading,_=(0,a.Z)(d.useState(b),2),D=_[0],C=_[1],Z=(0,a.Z)(d.useState(!1),2),k=Z[0],S=Z[1];return(0,i.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(k?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,i.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(k?" rounded-t":" rounded")+((null===(l=D.fieldName)||void 0===l?void 0:l.match(c.Z))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,i.jsx)("span",{className:"font-bold"+((null===(t=D.fieldName)||void 0===t?void 0:t.match(c.Z))?" dark:text-slate-500":" dark:text-white"),children:D.fieldName}),(0,i.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:D.dataType}),(null===D||void 0===D?void 0:D.foreignKey)&&(0,i.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,i.jsx)("span",{children:"Foreign Key: "}),(0,i.jsxs)("span",{children:[D.foreignKey.destinationTableName," ("," ",(0,i.jsx)("b",{children:D.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(n=D.fieldName)||void 0===n?void 0:n.match(c.Z))&&(0,i.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),T||(null===(s=D.fieldName)||void 0===s?void 0:s.match(c.Z))||!(null===(r=D.dataType)||void 0===r?void 0:r.match(/INT/))||D.foreignKey||(null===(u=null===w||void 0===w||null===(o=w.active_clone)||void 0===o?void 0:o.toString())||void 0===u?void 0:u.match(/1/))?T||(null===(f=D.fieldName)||void 0===f?void 0:f.match(c.Z))||!(null===(v=D.dataType)||void 0===v?void 0:v.match(/INT/))||(null===(m=null===w||void 0===w||null===(p=w.active_clone)||void 0===p?void 0:p.toString())||void 0===m?void 0:m.match(/1/))?(0,i.jsx)(d.Fragment,{}):(0,i.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,i.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:function(e){var l,t;window.confirm("Delete this foreign Key?")&&(delete b.foreignKey,F(!0),(0,h.Z)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:j,database:w.db_full_name,dbSlug:w.db_slug,delegated:!!(null===(l=window.location)||void 0===l||null===(t=l.search)||void 0===t?void 0:t.match(/delegated=true/i))}},!0).then((function(e){e.success?window.location.reload():window.alert("Update Failed, Please Try again.")})))},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,i.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,i.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:function(e){S(!k)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),k&&!T&&(0,i.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,i.jsx)(x.Z,{targetField:b,setFieldData:C,tableFields:g,setTableFields:y,database:w,currentTable:j,user:N,setActiveEdit:S,activeClonedTable:!0})})]})}var g=t(26042),y=t(69396);var w=t(47568),j=t(97582),N=t(24209),T=t(64838);function F(e){var l=e.fieldIndex,a=e.setTableFields,n=e.database,s=e.user,r=e.isNewField,o=e.setLiteralValue,c=e.tempFieldData,u=e.setTempFieldData,f=e.dataTypeValue,v=e.setDataTypeValue,p=e.dataType,m=e.setDataType,x=e.dataTypeDesc,h=e.setDataTypeDesc,b=t(89594),g=d.useRef();d.useEffect((function(){var e;g.current&&(g.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=g.current.querySelector("input"))||void 0===e||e.focus())}),[]);var y=Boolean(p.match(/uuid/i));return(0,i.jsxs)(d.Fragment,{children:[r&&(0,i.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,i.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,i.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,i.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,i.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:function(){var e=(0,w.Z)((function(e){var l,t;return(0,j.__generator)(this,(function(a){return l=e.target,t=l.value.toLowerCase().replace(/ /g,"_"),l.value=t,[2]}))}));return function(l){return e.apply(this,arguments)}}(),required:!0})]}),(0,i.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,i.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,i.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,i.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,i.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,i.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,i.jsx)("span",{children:x})})]})]}),(0,i.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,i.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:function(e){var l=e.target;m(l.value),l.childNodes.forEach((function(e){e.value===l.value&&h(e.dataset.desc),e.value===l.value&&e.dataset.literal&&o(e.dataset.literal)}))},children:b.map((function(e,l){return e.name.match(/VARCHAR/)?(0,i.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(f||200)+")"},l+1):(0,i.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1)}))}),p.match(/VARCHAR/)&&(0,i.jsx)("input",{type:"number",defaultValue:f,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:function(e){v(e.target.value)}})]})]}),(null===p||void 0===p?void 0:p.match(/text/i))&&(0,i.jsx)(d.Fragment,{children:(0,i.jsx)(T.Z,{targetField:c})}),!y&&(0,i.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,i.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,i.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,i.jsx)("option",{value:"No",children:"No"}),(0,i.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!y&&(0,i.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,i.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,i.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!y&&(0,i.jsx)(N.Z,{database:n,setFieldData:u,targetField:c,user:s,fieldIndex:l})]}),(0,i.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,i.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,i.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:function(e){a((function(e){return e.filter((function(e,t){return t!=l}))}))},children:"Cancel"})]})]})}function _(e){var l=e.fieldIndex,n=e.tableFields,s=e.setTableFields,r=e.refreshFieldsListRef,o=e.database,c=e.currentTable,u=e.user,f=(t(89594),(0,a.Z)(d.useState("VARCHAR"),2)),v=f[0],p=f[1],m=(0,a.Z)(d.useState("200"),2),x=m[0],h=m[1],b=(0,a.Z)(d.useState("Varchar is simply letters and numbers within the range 0 - 255"),2),w=b[0],j=b[1],N=d.useState({}),T=(0,a.Z)(N,2),_=T[0],D=T[1],C=d.useRef(),Z=(0,a.Z)(d.useState(""),2),k=Z[0],S=Z[1];d.useEffect((function(){var e;C.current&&(C.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=C.current.querySelector("input"))||void 0===e||e.focus())}),[]);var R=Boolean(v.match(/uuid/i));return(0,i.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:C,children:(0,i.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:function(e){var t,a,i,d,n,o;e.preventDefault();var c=_.foreignKey;c&&!c.destinationTableName&&delete _.foreignKey;var u=e.target,f=u.new_field_name.value,v=u.new_field_data_type.value,p=null===(t=u.new_field_required)||void 0===t?void 0:t.value,m=null===(a=u.new_field_default_value)||void 0===a?void 0:a.value,h=null===(i=u.encryption_field)||void 0===i?void 0:i.value,b=null===(d=u.rich_text_option)||void 0===d?void 0:d.value,w=u.foreign_key_field,j=u.foreign_key_destination_table_name,N=u.foreign_key_destination_table_column_name,T=(null===w||void 0===w||w.value,(0,y.Z)((0,g.Z)({},_),{fieldName:f,dataType:(null===_||void 0===_?void 0:_.dataType)&&(null===_||void 0===_?void 0:_.foreignKey)?_.dataType:(null===v||void 0===v?void 0:v.match(/VARCHAR/))?"".concat(v,"(").concat(x,")"):v}));(null===p||void 0===p?void 0:p.match(/yes/i))?T.notNullValue=!0:(null===m||void 0===m?void 0:m.match(/./))||(T.nullValue=!0),(null===m||void 0===m?void 0:m.match(/./))&&(T.defaultValue=m),(null===h||void 0===h?void 0:h.match(/yes/i))&&(T.encrypted=!0),(null===N||void 0===N||null===(n=N.value)||void 0===n?void 0:n.match(/./i))&&!(null===N||void 0===N||null===(o=N.value)||void 0===o?void 0:o.match(/^--$/i))&&(T.dataType=N.dataset.dataType,T.foreignKey={foreignKeyName:N.dataset.foreignKeyName,destinationTableName:j.dataset.destinationTableName,destinationTableColumnName:N.dataset.destinationTableColumnName,cascadeDelete:!0}),(null===b||void 0===b?void 0:b.match(/yes/i))&&(T.richText=!0),R?(T.defaultValueLiteral=k,T.nullValue=!1):delete T.defaultValueLiteral,console.log("newFieldObject",T),function(e){var l=e.fieldIndex,t=e.setTableFields,a=e.refreshFieldsListRef,i=e.payload;t((function(e){var t=e;return t.splice(l,1,i),t})),(null===a||void 0===a?void 0:a.current)&&a.current((function(e){return e+1}))}({fieldIndex:l,setTableFields:s,refreshFieldsListRef:r,payload:T})},children:(0,i.jsx)(F,{database:o,fieldIndex:l,isNewField:!0,literalValue:k,refreshFieldsListRef:r,setLiteralValue:S,setTableFields:s,user:u,currentTable:c,tableFields:n,tempFieldData:_,setTempFieldData:D,dataTypeValue:x,setDataTypeValue:h,dataType:v,setDataType:p,dataTypeDesc:w,setDataTypeDesc:j})})})}var D=t(45449),C=t(8971);function Z(e){var l,t,n,s,r,o,u,f=e.field,v=(e.setTargetField,e.fieldIndex),x=e.tableFields,h=e.setTableFields,b=e.refreshFieldsListRef,g=e.database,y=e.currentTable,w=e.confirmedDelegetedUser,j=e.user,N=null===w||void 0===w?void 0:w.delegated,T=null===w||void 0===w||null===(l=w.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i),F=(null===w||void 0===w||null===(t=w.priviledges)||void 0===t||t.match(/Delete Tables/i),null===w||void 0===w||null===(n=w.priviledges)||void 0===n||n.match(/Create Tables/i),g.active_clone,g.active_clone_parent_db),_=g.remote_connected,Z=(0,a.Z)(d.useState(f),2),k=Z[0],S=(Z[1],(0,a.Z)(d.useState(!1),2)),R=S[0],L=S[1];return(0,i.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(R?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,i.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(R?" rounded-t":" rounded")+((null===(s=k.fieldName)||void 0===s?void 0:s.match(c.Z))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,i.jsx)("span",{className:"font-bold"+((null===(r=k.fieldName)||void 0===r?void 0:r.match(c.Z))?" dark:text-slate-500":" dark:text-white"),children:k.fieldName}),(0,i.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:k.dataType}),(null===k||void 0===k?void 0:k.foreignKey)&&(0,i.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,i.jsx)("span",{children:"Foreign Key: "}),(0,i.jsxs)("span",{children:[k.foreignKey.destinationTableName," ("," ",(0,i.jsx)("b",{children:k.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(o=k.fieldName)||void 0===o?void 0:o.match(c.Z))&&(0,i.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(null===(u=k.fieldName)||void 0===u?void 0:u.match(c.Z))&&!F&&!_&&(0,i.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!N||N&&T)&&(0,i.jsxs)(d.Fragment,{children:[(0,i.jsxs)(D.Z,{children:[(0,i.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:function(e){L(!R)},style:{color:"var(--slate-500)"},children:"Edit"}),!F&&!_&&(0,i.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:function(e){window.confirm('Delete "'.concat(f.fieldName,'"?'))&&h((function(e){return e.filter((function(e,l){return l!=v}))}))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:function(e){p({tableFields:x,setTableFields:h,refreshFieldsListRef:b,order:"up",field:f,e:e})},children:(0,i.jsx)(C.Z,{size:20})}),(0,i.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:function(e){p({tableFields:x,setTableFields:h,refreshFieldsListRef:b,order:"down",field:f,e:e})},children:(0,i.jsx)(C.Z,{size:20})})]})]})})]}),R&&(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)(m.Z,{fieldIndex:v,tableFields:x,setTableFields:h,refreshFieldsListRef:b,targetField:f,setActiveEdit:L,database:g,currentTable:y,user:j})})]})}var k=t(95753),S=1;function R(e){var l,c,u,f,v=e.user,p=e.tableFields,m=e.setTableFields,x=e.setTargetField,h=e.refreshFieldsListRef,g=e.updateTable,y=e.updateTableAfterFieldsUpdateFunction,w=e.collapsed,j=e.database,N=e.table,T=e.confirmedDelegetedUser,F=e.query,D=((null===N||void 0===N?void 0:N.childTable)&&(null===(l=N.childTableDbFullName)||void 0===l||l.replace(new RegExp(/datasquirel_user_\d+_/),"")),null===T||void 0===T?void 0:T.delegated),C=null===T||void 0===T||null===(c=T.priviledges)||void 0===c?void 0:c.match(/Edit Tables/i),R=(null===T||void 0===T||null===(u=T.priviledges)||void 0===u||u.match(/Delete Tables/i),null===T||void 0===T||null===(f=T.priviledges)||void 0===f||f.match(/Create Tables/i),j.active_clone,j.active_clone_parent_db),L=j.remote_connected,V=(0,a.Z)(d.useState(0),2),I=(V[0],V[1]);h.current=I;var E=(0,a.Z)(d.useState(!1),2),K=E[0],A=E[1],q=(0,a.Z)(d.useState(w||!1),2),$=q[0],U=q[1];return d.useEffect((function(){var e=t(23226).B;n.ZP.registerPlugin(e);var l=window.DSQL;l&&(l.Flip=e)}),[]),D&&!C?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)("section",{className:"paper green",children:[K&&(0,i.jsx)(o.Z,{}),(null===N||void 0===N?void 0:N.childTable)?(0,i.jsxs)(d.Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,i.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"button outlined light-gray",onClick:function(e){var l=(0,k.Z)({paradigm:"JavaScript",table:N,query:F,user:v});l&&navigator.clipboard.writeText(l).then((function(){window.alert("JavaScript Type Definition Copied")}))},children:(0,i.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,i.jsx)("div",{className:"button outlined light-gray",onClick:function(e){var l=(0,k.Z)({paradigm:"TypeScript",table:N,query:F,user:v});l&&navigator.clipboard.writeText(l).then((function(){window.alert("TypeScript Type Definition Copied")}))},children:(0,i.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,i.jsx)("div",{className:"flex-col w-full",style:$?{maxHeight:"200px"}:{},children:p&&p[0]&&p.map((function(e,l){return S++,(0,i.jsx)(b,{field:e,fieldIndex:l,setTargetField:x,setTableFields:m,refreshFieldsListRef:h,tableFields:p,database:j,setLoading:A,currentTable:N,user:v,isDelegated:D},S)}))}),w&&(0,i.jsx)(r.Z,{collapse:$||!1,setCollapse:U})]}):(0,i.jsxs)(d.Fragment,{children:[(0,i.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,i.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,i.jsxs)("div",{children:[(!D||D&&C)&&!R&&!L&&(0,i.jsxs)("div",{className:"button secondary outlined",onClick:function(e){$&&U(!1),s({setTableFields:m,tableFields:p,setRefresh:I,refreshFieldsListRef:h})},children:[(0,i.jsx)("span",{className:"symbol",children:"+"}),(0,i.jsx)("span",{children:"Add New Field"})]}),(0,i.jsx)("div",{className:"button outlined light-gray",onClick:function(e){if(N){var l=(0,k.Z)({paradigm:"JavaScript",table:N,query:F,user:v});l&&navigator.clipboard.writeText(l).then((function(){window.alert("JavaScript Type Definition Copied")}))}},children:(0,i.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,i.jsx)("div",{className:"button outlined light-gray",onClick:function(e){if(N){var l=(0,k.Z)({paradigm:"TypeScript",table:N,query:F,user:v});l&&navigator.clipboard.writeText(l).then((function(){window.alert("TypeScript Type Definition Copied")}))}},children:(0,i.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,i.jsxs)("div",{className:"flex-col w-full",style:$?{maxHeight:"200px"}:{},children:[p&&p[0]&&p.map((function(e,l){return S++,e.newTempField?(0,i.jsx)(_,{fieldIndex:l,tableFields:p,setTableFields:m,refreshFieldsListRef:h,database:j,currentTable:N,user:v},S):(0,i.jsx)(Z,{field:e,fieldIndex:l,setTargetField:x,setTableFields:m,refreshFieldsListRef:h,tableFields:p,database:j,currentTable:N,confirmedDelegetedUser:T,user:v},S)})),(!D||D&&C)&&!R&&!L&&(0,i.jsxs)(d.Fragment,{children:[(0,i.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:function(e){$&&U(!1),s({setTableFields:m,tableFields:p,setRefresh:I,refreshFieldsListRef:h})},children:[(0,i.jsx)("span",{className:"symbol",children:"+"}),(0,i.jsx)("span",{children:"Add New Field"})]}),g&&(0,i.jsx)("button",{className:"secondary w-full py-3",onClick:function(e){A(!0),y&&y(A)},children:"Update Table Fields"})]})]}),w&&(0,i.jsx)(r.Z,{collapse:$,setCollapse:U})]})]})}},95753:function(e,l,t){t.d(l,{Z:function(){return i}});var a=t(33907);function i(e){var l=e.paradigm,t=e.table,i=e.query,d=(e.user,"");try{var n=function(e){return(null===e||void 0===e?void 0:e.match(/int/i))?"number":(null===e||void 0===e||e.match(/text|varchar|timestamp/i),"string")},s="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),r=t.fields,o=[],c=[];o.push("type ".concat(s," = {")),c.push("/**\n * @typedef {object} ".concat(s)),r.forEach((function(e){var l,t=e.nullValue||(null===(l=e.fieldName)||void 0===l?void 0:l.match(a.Z))?"?":"";o.push(" ".concat(e.fieldName).concat(t,": ").concat(n(e.dataType||""),";")),c.push(" * @property {".concat(n(e.dataType||"")).concat(t,"} ").concat(e.fieldName))})),o.push("}"),c.push(" */"),(null===l||void 0===l?void 0:l.match(/javascript/i))&&(d=c.join("\n")),(null===l||void 0===l?void 0:l.match(/typescript/i))&&(d=o.join("\n"))}catch(u){console.log(u.message),d=null}return d}},36169:function(e,l,t){t.d(l,{Z:function(){return i}});var a=t(85893);t(67294);function i(e){var l=e.collapse,t=e.setCollapse;return(0,a.jsxs)("div",{className:"collapse-block"+(l?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:function(e){t(!l)},children:[(0,a.jsx)("span",{children:l?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(l?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(l?"":"rotate-180")})]})}},33907:function(e,l){l.Z=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/493-ec86d71e0fece010.js b/dsql-app/.local_dist/static/chunks/493-ec86d71e0fece010.js deleted file mode 100644 index c0b5bba..0000000 --- a/dsql-app/.local_dist/static/chunks/493-ec86d71e0fece010.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[493],{50027:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("path",{d:"m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-3 0-1.55-1.22-2.86-2.79-2.96zm-5.76.96v3h-2.91v-3H8l4-4 4 4h-2.55z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"},"1")],"BackupTwoTone");e.Z=o},64689:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("path",{d:"M18 19h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M12 3 6 7.58V6H4v3.11L1 11.4l1.21 1.59L4 11.62V21h16v-9.38l1.79 1.36L23 11.4 12 3zm6 16h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58V19zM10 1c0 1.66-1.34 3-3 3-.55 0-1 .45-1 1H4c0-1.66 1.34-3 3-3 .55 0 1-.45 1-1h2z"},"1")],"CottageTwoTone");e.Z=o},39269:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("path",{d:"M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm1 13h-2v-2h2v2zm0-4h-2V7h2v6z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-1-5h2v2h-2zm0-8h2v6h-2z"},"1")],"ErrorTwoTone");e.Z=o},28466:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("path",{d:"M6 10v10h5.29c-.19-.63-.29-1.3-.29-2 0-3.87 3.13-7 7-7v-1H6z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M6 20V10h12v1c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.42-.6-.75-1.28-.97-2H6zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z"},"1"),(0,s.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32z"},"2")],"LockPersonTwoTone");e.Z=o},38544:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("circle",{cx:"9",cy:"8",r:"2",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M9 15c-2.7 0-5.8 1.29-6 2.01V18h12v-1c-.2-.71-3.3-2-6-2z",opacity:".3"},"1"),(0,s.jsx)("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"},"2")],"PeopleAltTwoTone");e.Z=o},51903:function(t,e,r){"use strict";var n=r(64836);e.Z=void 0;var i=n(r(64938)),s=r(85893),o=(0,i.default)([(0,s.jsx)("path",{d:"M4 18h16V8H4v10zm8-3h6v2h-6v-2zm-5.91-4.59L7.5 9l4 4-4 4-1.41-1.41L8.67 13l-2.58-2.59z",opacity:".3"},"0"),(0,s.jsx)("path",{d:"M12 15h6v2h-6z"},"1"),(0,s.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H4V8h16v10z"},"2"),(0,s.jsx)("path",{d:"m7.5 17 4-4-4-4-1.41 1.41L8.67 13l-2.58 2.59z"},"3")],"TerminalTwoTone");e.Z=o},21876:function(t){!function(){var e={675:function(t,e){"use strict";e.byteLength=function(t){var e=h(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,s=h(t),o=s[0],a=s[1],c=new i(function(t,e,r){return 3*(e+r)/4-r}(0,o,a)),u=0,f=a>0?o-4:o;for(r=0;r>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,c[u++]=255&e);1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,s=[],o=16383,a=0,h=n-i;ah?h:a+o));1===i?(e=t[n-1],s.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],s.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return s.join("")};for(var r=[],n=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function u(t,e,r){for(var n,i=[],s=e;so)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,r){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return f(t)}return c(t,e,r)}function c(t,e,r){if("string"===typeof t)return function(t,e){"string"===typeof e&&""!==e||(e="utf8");if(!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|y(t,e),n=a(r),i=n.write(t,e);i!==r&&(n=n.slice(0,i));return n}(t,e);if(ArrayBuffer.isView(t))return p(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(V(t,ArrayBuffer)||t&&V(t.buffer,ArrayBuffer))return l(t,e,r);if("undefined"!==typeof SharedArrayBuffer&&(V(t,SharedArrayBuffer)||t&&V(t.buffer,SharedArrayBuffer)))return l(t,e,r);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return h.from(n,e,r);var i=function(t){if(h.isBuffer(t)){var e=0|d(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!==typeof t.length||F(t.length)?a(0):p(t);if("Buffer"===t.type&&Array.isArray(t.data))return p(t.data)}(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function f(t){return u(t),a(t<0?0:0|d(t))}function p(t){for(var e=t.length<0?0:0|d(t.length),r=a(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function y(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||V(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(t).length;default:if(i)return n?-1:q(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return x(this,e,r);case"base64":return T(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof e&&(e=h.from(e,n)),h.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):b(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var s,o=1,a=t.length,h=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;o=2,a/=2,h/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(s=r;sa&&(r=a-h),s=r;s>=0;s--){for(var f=!0,p=0;pi&&(n=i):n=i;var s=e.length;n>s/2&&(n=s/2);for(var o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:128===(192&(s=t[i+1]))&&(h=(31&c)<<6|63&s)>127&&(u=h);break;case 3:s=t[i+1],o=t[i+2],128===(192&s)&&128===(192&o)&&(h=(15&c)<<12|(63&s)<<6|63&o)>2047&&(h<55296||h>57343)&&(u=h);break;case 4:s=t[i+1],o=t[i+2],a=t[i+3],128===(192&s)&&128===(192&o)&&128===(192&a)&&(h=(15&c)<<18|(63&s)<<12|(63&o)<<6|63&a)>65535&&h<1114112&&(u=h)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=f}return O(n)}e.kMaxLength=o,h.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),h.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,r){return function(t,e,r){return u(t),t<=0?a(t):void 0!==e?"string"===typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},h.allocUnsafe=function(t){return f(t)},h.allocUnsafeSlow=function(t){return f(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(V(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),V(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);ir&&(t+=" ... "),""},s&&(h.prototype[s]=h.prototype.inspect),h.prototype.compare=function(t,e,r,n,i){if(V(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(e>>>=0),a=Math.min(s,o),c=this.slice(n,i),u=t.slice(e,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var s=!1;;)switch(n){case"hex":return w(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return k(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",s=e;sr)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,s){if(!h.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function I(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,s){return e=+e,r>>>=0,s||I(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,s){return e=+e,r>>>=0,s||I(t,0,r,8),i.write(t,e,r,n,52,8),r+8}h.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,s=0;++s>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},h.prototype.readUInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||N(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=this[t],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*e)),n},h.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||N(t,e,this.length);for(var n=e,i=1,s=this[t+--n];n>0&&(i*=256);)s+=this[t+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*e)),s},h.prototype.readInt8=function(t,e){return t>>>=0,e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt16BE=function(t,e){t>>>=0,e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||N(t,4,this.length),i.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||N(t,8,this.length),i.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||U(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,n)||U(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,s=1;for(this[e+i]=255&t;--i>=0&&(s*=256);)this[e+i]=t/s&255;return e+r},h.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);U(this,t,e,r,i-1,-i)}var s=0,o=1,a=0;for(this[e]=255&t;++s>0)-a&255;return e+r},h.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var i=Math.pow(2,8*r-1);U(this,t,e,r,i-1,-i)}var s=r-1,o=1,a=0;for(this[e+s]=255&t;--s>=0&&(o*=256);)t<0&&0===a&&0!==this[e+s+1]&&(a=1),this[e+s]=(t/o>>0)-a&255;return e+r},h.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},h.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},h.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},h.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},h.prototype.copy=function(t,e,r,n){if(!h.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--s)t[s+e]=this[s+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},h.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!h.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){var i=t.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(t=i)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(s=e;s55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function z(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function D(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function V(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function F(t){return t!==t}var H=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var s,o,a=8*i-n-1,h=(1<>1,u=-7,f=r?i-1:0,p=r?-1:1,l=t[e+f];for(f+=p,s=l&(1<<-u)-1,l>>=-u,u+=a;u>0;s=256*s+t[e+f],f+=p,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=n;u>0;o=256*o+t[e+f],f+=p,u-=8);if(0===s)s=1-c;else{if(s===h)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,n),s-=c}return(l?-1:1)*o*Math.pow(2,s-n)},e.write=function(t,e,r,n,i,s){var o,a,h,c=8*s-i-1,u=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:s-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-o))<1&&(o--,h*=2),(e+=o+f>=1?p/h:p*Math.pow(2,1-f))*h>=2&&(o++,h/=2),o+f>=u?(a=0,o=u):o+f>=1?(a=(e*h-1)*Math.pow(2,i),o+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+l]=255&a,l+=d,a/=256,i-=8);for(o=o<0;t[r+l]=255&o,l+=d,o/=256,c-=8);t[r+l-d]|=128*y}}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var s=r[t]={exports:{}},o=!0;try{e[t](s,s.exports,n),o=!1}finally{o&&delete r[t]}return s.exports}n.ab="//";var i=n(72);t.exports=i}()},56500:function(){},12617:function(t){var e;self,e=()=>(()=>{"use strict";var t={};return(()=>{var e=t;Object.defineProperty(e,"__esModule",{value:!0}),e.FitAddon=void 0,e.FitAddon=class{activate(t){this._terminal=t}dispose(){}fit(){const t=this.proposeDimensions();if(!t||!this._terminal||isNaN(t.cols)||isNaN(t.rows))return;const e=this._terminal._core;this._terminal.rows===t.rows&&this._terminal.cols===t.cols||(e._renderService.clear(),this._terminal.resize(t.cols,t.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const t=this._terminal._core,e=t._renderService.dimensions;if(0===e.css.cell.width||0===e.css.cell.height)return;const r=0===this._terminal.options.scrollback?0:t.viewport.scrollBarWidth,n=window.getComputedStyle(this._terminal.element.parentElement),i=parseInt(n.getPropertyValue("height")),s=Math.max(0,parseInt(n.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),a=i-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom"))),h=s-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-r;return{cols:Math.max(2,Math.floor(h/e.css.cell.width)),rows:Math.max(1,Math.floor(a/e.css.cell.height))}}}})(),t})(),t.exports=e()},48531:function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.onlyFirst,r=void 0!==e&&e,n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}r.d(e,{Z:function(){return n}})},53920:function(t,e,r){"use strict";r.d(e,{io:function(){return _t}});var n={};r.r(n),r.d(n,{Decoder:function(){return gt},Encoder:function(){return dt},PacketType:function(){return lt},protocol:function(){return pt}});const i=Object.create(null);i.open="0",i.close="1",i.ping="2",i.pong="3",i.message="4",i.upgrade="5",i.noop="6";const s=Object.create(null);Object.keys(i).forEach((t=>{s[i[t]]=t}));const o={type:"error",data:"parser error"},a="function"===typeof Blob||"undefined"!==typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),h="function"===typeof ArrayBuffer,c=t=>"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,u=({type:t,data:e},r,n)=>a&&e instanceof Blob?r?n(e):f(e,n):h&&(e instanceof ArrayBuffer||c(e))?r?n(e):f(new Blob([e]),n):n(i[t]+(e||"")),f=(t,e)=>{const r=new FileReader;return r.onload=function(){const t=r.result.split(",")[1];e("b"+(t||""))},r.readAsDataURL(t)};function p(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let l;const d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y="undefined"===typeof Uint8Array?[]:new Uint8Array(256);for(let Tt=0;Tt{if("string"!==typeof t)return{type:"message",data:b(t,e)};const r=t.charAt(0);if("b"===r)return{type:"message",data:v(t.substring(1),e)};return s[r]?t.length>1?{type:s[r],data:t.substring(1)}:{type:s[r]}:o},v=(t,e)=>{if(g){const r=(t=>{let e,r,n,i,s,o=.75*t.length,a=t.length,h=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);const c=new ArrayBuffer(o),u=new Uint8Array(c);for(e=0;e>4,u[h++]=(15&n)<<4|i>>2,u[h++]=(3&i)<<6|63&s;return c})(t);return b(r,e)}return{base64:!0,data:t}},b=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,w=String.fromCharCode(30);function E(){return new TransformStream({transform(t,e){!function(t,e){a&&t.data instanceof Blob?t.data.arrayBuffer().then(p).then(e):h&&(t.data instanceof ArrayBuffer||c(t.data))?e(p(t.data)):u(t,!1,(t=>{l||(l=new TextEncoder),e(l.encode(t))}))}(t,(r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const t=new DataView(i.buffer);t.setUint8(0,126),t.setUint16(1,n)}else{i=new Uint8Array(9);const t=new DataView(i.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!==typeof t.data&&(i[0]|=128),e.enqueue(i),e.enqueue(r)}))}})}let A;function k(t){return t.reduce(((t,e)=>t+e.length),0)}function _(t,e){if(t[0].length===e)return t.shift();const r=new Uint8Array(e);let n=0;for(let i=0;i(t.hasOwnProperty(r)&&(e[r]=t[r]),e)),{})}const O=T.setTimeout,R=T.clearTimeout;function x(t,e){e.useNativeTimers?(t.setTimeoutFn=O.bind(T),t.clearTimeoutFn=R.bind(T)):(t.setTimeoutFn=T.setTimeout.bind(T),t.clearTimeoutFn=T.clearTimeout.bind(T))}class S extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}class L extends B{constructor(t){super(),this.writable=!1,x(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,e,r){return super.emitReserved("error",new S(t,e,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=m(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){const e=function(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}(t);return e.length?"?"+e:""}}const N="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),U={};let I,M=0,P=0;function j(t){let e="";do{e=N[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function q(){const t=j(+new Date);return t!==I?(M=0,I=t):t+"."+j(M++)}for(;P<64;P++)U[N[P]]=P;let z=!1;try{z="undefined"!==typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Bt){}const D=z;function V(t){const e=t.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!e||D))return new XMLHttpRequest}catch(r){}if(!e)try{return new(T[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}function F(){}const H=null!=new V({xdomain:!1}).responseType;class Y extends B{constructor(t,e){super(),x(this,e),this.opts=e,this.method=e.method||"GET",this.uri=t,this.data=void 0!==e.data?e.data:null,this.create()}create(){var t;const e=C(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;const r=this.xhr=new V(e);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let t in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(t)&&r.setRequestHeader(t,this.opts.extraHeaders[t])}}catch(n){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{r.setRequestHeader("Accept","*/*")}catch(n){}null===(t=this.opts.cookieJar)||void 0===t||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var t;3===r.readyState&&(null===(t=this.opts.cookieJar)||void 0===t||t.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"===typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(n){return void this.setTimeoutFn((()=>{this.onError(n)}),0)}"undefined"!==typeof document&&(this.index=Y.requestsCount++,Y.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if("undefined"!==typeof this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=F,t)try{this.xhr.abort()}catch(e){}"undefined"!==typeof document&&delete Y.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Y.requestsCount=0,Y.requests={},"undefined"!==typeof document)if("function"===typeof attachEvent)attachEvent("onunload",W);else if("function"===typeof addEventListener){addEventListener("onpagehide"in T?"pagehide":"unload",W,!1)}function W(){for(let t in Y.requests)Y.requests.hasOwnProperty(t)&&Y.requests[t].abort()}const Z="function"===typeof Promise&&"function"===typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),K=T.WebSocket||T.MozWebSocket;r(21876).Buffer;const J="undefined"!==typeof navigator&&"string"===typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const X={websocket:class extends L{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),e=this.opts.protocols,r=J?{}:C(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=J?new K(t,e,r):e?new K(t,e):new K(t)}catch(Bt){return this.emitReserved("error",Bt)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e{try{this.ws.send(t)}catch(e){}n&&Z((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){"undefined"!==typeof this.ws&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}check(){return!!K}},webtransport:class extends L{get name(){return"webtransport"}doOpen(){"function"===typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((t=>{this.onError("webtransport error",t)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((t=>{const e=function(t,e){A||(A=new TextDecoder);const r=[];let n=0,i=-1,s=!1;return new TransformStream({transform(a,h){for(r.push(a);;){if(0===n){if(k(r)<1)break;const t=_(r,1);s=128===(128&t[0]),i=127&t[0],n=i<126?3:126===i?1:2}else if(1===n){if(k(r)<2)break;const t=_(r,2);i=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(k(r)<8)break;const t=_(r,8),e=new DataView(t.buffer,t.byteOffset,t.length),s=e.getUint32(0);if(s>Math.pow(2,21)-1){h.enqueue(o);break}i=s*Math.pow(2,32)+e.getUint32(4),n=3}else{if(k(r)t){h.enqueue(o);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(e).getReader(),n=E();n.readable.pipeTo(t.writable),this.writer=n.writable.getWriter();const i=()=>{r.read().then((({done:t,value:e})=>{t||(this.onPacket(e),i())})).catch((t=>{}))};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then((()=>this.onOpen()))}))})))}write(t){this.writable=!1;for(let e=0;e{n&&Z((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var t;null===(t=this.transport)||void 0===t||t.close()}},polling:class extends L{constructor(t){if(super(t),this.polling=!1,"undefined"!==typeof location){const e="https:"===location.protocol;let r=location.port;r||(r=e?"443":"80"),this.xd="undefined"!==typeof location&&t.hostname!==location.hostname||r!==t.port}const e=t&&t.forceBase64;this.supportsBinary=H&&!e,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const e=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let t=0;this.polling&&(t++,this.once("pollComplete",(function(){--t||e()}))),this.writable||(t++,this.once("drain",(function(){--t||e()})))}else e()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){((t,e)=>{const r=t.split(w),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,((t,e)=>{const r=t.length,n=new Array(r);let i=0;t.forEach(((t,s)=>{u(t,!1,(t=>{n[s]=t,++i===r&&e(n.join(w))}))}))})(t,(t=>{this.doWrite(t,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Y(this.uri(),t)}doWrite(t,e){const r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",((t,e)=>{this.onError("xhr post error",t,e)}))}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",((t,e)=>{this.onError("xhr poll error",t,e)})),this.pollXhr=t}}},$=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Q=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function G(t){if(t.length>2e3)throw"URI too long";const e=t,r=t.indexOf("["),n=t.indexOf("]");-1!=r&&-1!=n&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));let i=$.exec(t||""),s={},o=14;for(;o--;)s[Q[o]]=i[o]||"";return-1!=r&&-1!=n&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=function(t,e){const r=/\/{2,9}/g,n=e.replace(r,"/").split("/");"/"!=e.slice(0,1)&&0!==e.length||n.splice(0,1);"/"==e.slice(-1)&&n.splice(n.length-1,1);return n}(0,s.path),s.queryKey=function(t,e){const r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,n){e&&(r[e]=n)})),r}(0,s.query),s}class tt extends B{constructor(t,e={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],t&&"object"===typeof t&&(e=t,t=null),t?(t=G(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=G(e.host).host),x(this,e),this.secure=null!=e.secure?e.secure:"undefined"!==typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!==typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!==typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"===typeof this.opts.query&&(this.opts.query=function(t){let e={},r=t.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);const r=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new X[t](r)}open(){let t;if(this.opts.rememberUpgrade&&tt.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(e){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(t=>this.onClose("transport close",t)))}probe(t){let e=this.createTransport(t),r=!1;tt.priorWebsocketSuccess=!1;const n=()=>{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",(t=>{if(!r)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;tt.priorWebsocketSuccess="websocket"===e.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())}))}else{const t=new Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}})))};function i(){r||(r=!0,c(),e.close(),e=null)}const s=t=>{const r=new Error("probe error: "+t);r.transport=e.name,i(),this.emitReserved("upgradeError",r)};function o(){s("transport closed")}function a(){s("socket closed")}function h(t){e&&t.name!==e.name&&i()}const c=()=>{e.removeListener("open",n),e.removeListener("error",s),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",n),e.once("error",s),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn((()=>{r||e.open()}),200):e.open()}onOpen(){if(this.readyState="open",tt.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let t=0;const e=this.upgrades.length;for(;t{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(e):Math.ceil(1.33*(e.byteLength||e.size))),r>0&&t>this.maxPayload)return this.writeBuffer.slice(0,r);t+=2}var e;return this.writeBuffer}write(t,e,r){return this.sendPacket("message",t,e,r),this}send(t,e,r){return this.sendPacket("message",t,e,r),this}sendPacket(t,e,r,n){if("function"===typeof e&&(n=e,e=void 0),"function"===typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:t,data:e,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():t()})):this.upgrading?r():t()),this}onError(t){tt.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"===typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const e=[];let r=0;const n=t.length;for(;r"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(t))||nt&&t instanceof Blob||it&&t instanceof File}function ot(t,e){if(!t||"object"!==typeof t)return!1;if(Array.isArray(t)){for(let e=0,r=t.length;e=0&&t.num{delete this.acks[t];for(let e=0;e{this.io.clearTimeoutFn(i),e.apply(this,[null,...t])}}emitWithAck(t,...e){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{e.push(((t,e)=>r?t?i(t):n(e):n(t))),this.emit(t,...e)}))}_addToQueue(t){let e;"function"===typeof t[t.length-1]&&(e=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push(((t,...n)=>{if(r!==this._queue[0])return;return null!==t?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth((t=>{this._sendConnectPacket(t)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:lt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case lt.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case lt.EVENT:case lt.BINARY_EVENT:this.onevent(t);break;case lt.ACK:case lt.BINARY_ACK:this.onack(t);break;case lt.DISCONNECT:this.ondisconnect();break;case lt.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const r of e)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"===typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let r=!1;return function(...n){r||(r=!0,e.packet({type:lt.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"===typeof e&&(e.apply(this,t.data),delete this.acks[t.id])}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((t=>this.emitEvent(t))),this.receiveBuffer=[],this.sendBuffer.forEach((t=>{this.notifyOutgoingListeners(t),this.packet(t)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((t=>t())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:lt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Et.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},Et.prototype.reset=function(){this.attempts=0},Et.prototype.setMin=function(t){this.ms=t},Et.prototype.setMax=function(t){this.max=t},Et.prototype.setJitter=function(t){this.jitter=t};class At extends B{constructor(t,e){var r;super(),this.nsps={},this.subs=[],t&&"object"===typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,x(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=e.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new Et({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const i=e.parser||n;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new tt(this.uri,this.opts);const e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=vt(e,"open",(function(){r.onopen(),t&&t()})),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},s=vt(e,"error",i);if(!1!==this._timeout){const t=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),e.close()}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(vt(t,"ping",this.onping.bind(this)),vt(t,"data",this.ondata.bind(this)),vt(t,"error",this.onerror.bind(this)),vt(t,"close",this.onclose.bind(this)),vt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){Z((()=>{this.emitReserved("packet",t)}),this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new wt(this,t,e),this.nsps[t]=r),r}_destroy(t){const e=Object.keys(this.nsps);for(const r of e){if(this.nsps[r].active)return}this._close()}_packet(t){const e=this.encoder.encode(t);for(let r=0;rt())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,e){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()})))}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const kt={};function _t(t,e){"object"===typeof t&&(e=t,t=void 0);const r=function(t,e="",r){let n=t;r=r||"undefined"!==typeof location&&location,null==t&&(t=r.protocol+"//"+r.host),"string"===typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?r.protocol+t:r.host+t),/^(https?|wss?):\/\//.test(t)||(t="undefined"!==typeof r?r.protocol+"//"+t:"https://"+t),n=G(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+e,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(t,(e=e||{}).path||"/socket.io"),n=r.source,i=r.id,s=r.path,o=kt[i]&&s in kt[i].nsps;let a;return e.forceNew||e["force new connection"]||!1===e.multiplex||o?a=new At(n,e):(kt[i]||(kt[i]=new At(n,e)),a=kt[i]),r.query&&!e.query&&(e.query=r.queryKey),a.socket(r.path,e)}Object.assign(_t,{Manager:At,Socket:wt,io:_t,connect:_t})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5114-a70f18877cc7f8bc.js b/dsql-app/.local_dist/static/chunks/5114-a70f18877cc7f8bc.js deleted file mode 100644 index b52660e..0000000 --- a/dsql-app/.local_dist/static/chunks/5114-a70f18877cc7f8bc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5114],{97037:function(e,a,s){s.d(a,{Z:function(){return t}});var l=s(85893);s(67294);function t(e){var a=e.message;return(0,l.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,l.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,l.jsx)("span",{children:a})]})}},65114:function(e,a,s){s.d(a,{Z:function(){return p}});var l=s(828),t=s(85893),n=s(67294),r=s(86729),i=s(47568),o=s(97582);function d(){return(d=(0,i.Z)((function(e){var a,s,l,t,n,i,d;return(0,o.__generator)(this,(function(o){return a=e.e,s=e.setLoading,l=e.user,t=e.image,n=e.query,s(!0),i={first_name:a.target.first_name.value,last_name:a.target.last_name.value,email:l?null:a.target.email_address.value,username:l?null:a.target.username.value,password:l?null:a.target.password.value,image:t||null},(null===n||void 0===n?void 0:n.invite)&&(i.inviteObject=n),d=l?"/api/updateUser":"/api/registerUser",(0,r.Z)(d,{method:"post",body:i},!!l).then((function(e){console.log(e),!l&&(null===e||void 0===e?void 0:e.insertId)?(localStorage.setItem("id",e.insertId),(0,r.Z)("/api/loginUser",{method:"post",body:{email:i.email,password:i.password}}).then((function(e){console.log(e),localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("stripe_id",e.user.stripe_id),localStorage.setItem("user",JSON.stringify(e.userPayload)),window.location.href="/admin"}))):l&&(null===e||void 0===e?void 0:e.user)?window.location.reload():(null===e||void 0===e?void 0:e.msg)&&alert(e.msg)})).catch((function(e){console.log(e)})).finally((function(){setTimeout((function(){s(!1)}),2e3)})),[2]}))}))).apply(this,arguments)}var u,c=s(97037),m=s(95264),f=s(98374);function p(e){var a=e.user,s=e.query,i=e.image,o=(null===s||void 0===s?void 0:s.email)?s.email:(null===a||void 0===a?void 0:a.email)?a.email:"",p=(0,l.Z)(n.useState(null),2),g=p[0],v=p[1],x=(0,l.Z)(n.useState(!1),2),h=x[0],w=x[1];return(0,t.jsxs)("div",{className:"relative w-full max-w-2xl flex-col items-start",children:[h&&(0,t.jsx)(m.Z,{}),!a&&(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("hr",{className:"opacity-0"}),(0,t.jsx)(f.Z,{user:null,userType:"admin",setLoading:w}),(0,t.jsxs)("div",{className:"w-full justify-center relative",children:[(0,t.jsx)("span",{className:"bg-white dark:bg-slate-800 px-3 relative z-10",children:"OR"}),(0,t.jsx)("hr",{className:"absolute"})]})]}),(0,t.jsxs)("form",{className:"w-full flex flex-col items-start gap-4 relative",onSubmit:function(e){e.preventDefault(),function(e){d.apply(this,arguments)}({e:e,setLoading:w,user:a,image:i,query:s})},children:[g&&(0,t.jsx)(c.Z,{message:g}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"first_name",children:"First Name"}),(0,t.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"First Name",autoComplete:"given-name",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),v(null)):a.classList.add("warning")},defaultValue:a?a.first_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,t.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),v(null)):a.classList.add("warning")},defaultValue:a?a.last_name:"",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"username",children:"Username"}),(0,t.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),v(null)):a.classList.add("warning"),window.clearTimeout(u),u=setTimeout((function(){(0,r.Z)("/api/checkDuplicateData?type=username&value=".concat(a.value,"&tableName=users")).then((function(e){console.log(e),(null===e||void 0===e?void 0:e.result)?(v("Username Already Exists"),a.classList.add("warning")):(v(null),a.classList.remove("warning"))}))}),300)},defaultValue:a?a.username:"",required:!a,readOnly:!!a})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,t.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:function(e){var a=e.target;window.clearTimeout(u),u=setTimeout((function(){(0,r.Z)("/api/checkDuplicateData?type=email&value=".concat(a.value,"&tableName=users")).then((function(e){console.log(e),(null===e||void 0===e?void 0:e.result)?(v("Email Already Exists"),a.classList.add("warning")):(v(null),a.classList.remove("warning"))}))}),300)},defaultValue:o,required:!0,readOnly:!!a})]}),!a&&(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"password",children:"Password"}),(0,t.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,t.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,t.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:function(e){var a,s=e.target;(null===(a=s.closest("form"))||void 0===a?void 0:a.password.value)===s.value?s.classList.remove("warning"):s.classList.add("warning")},required:!0})]}),(0,t.jsxs)("span",{className:"text-sm",children:['By clicking "Create Account" you agree to our'," ",(0,t.jsx)("a",{href:"/terms",target:"_blank",className:"font-bold",children:"Terms and Conditions"})]})]}),(0,t.jsx)("button",{type:"submit",className:"w-full",children:a?(0,t.jsx)("span",{children:"Update Account Info"}):(0,t.jsx)("span",{children:"Create Account"})}),!a&&(0,t.jsx)(n.Fragment,{children:(0,t.jsxs)("span",{className:"text-sm",children:["Already Have an Account?"," ",(0,t.jsx)("a",{href:"/login",className:"font-bold",children:"Login"})]})})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5160-e9f06aec35447872.js b/dsql-app/.local_dist/static/chunks/5160-e9f06aec35447872.js new file mode 100644 index 0000000..52221e7 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/5160-e9f06aec35447872.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5160],{35160:(e,l,a)=>{a.d(l,{A:()=>o});var t=a(74848),n=a(96540),i=a(66051),s=a(39007),d=a(2543),r=a.n(d);function o(e){var l,d,o;let{targetField:u,fieldIndex:c,tableFields:m,setTableFields:x,refreshFieldsListRef:h,setActiveEdit:p,database:f,currentTable:v,user:g}=e,N=(null==u?void 0:u.dataType)?u.dataType.replace(/\d|\(|\)/g,""):null,j=(null==u?void 0:u.dataType)?u.dataType.replace(/[^\d]/g,""):"200",y=a(43431),b=n.useRef(r().cloneDeep(u)),T=n.useRef(),[w,_]=n.useState(u),[F,V]=n.useState(null==u?void 0:u.fieldName),[C,I]=n.useState(N),[S,A]=n.useState(j),[E,k]=n.useState("Varchar is simply letters and numbers within the range 0 - 255"),[D,K]=n.useState((null==u?void 0:u.richText)&&!(null==u?void 0:u.encrypted)?"Yes":"No"),R=!!(null==C?void 0:C.match(/uuid/i));return(0,t.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:T,children:(0,t.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:e=>{var l,a;e.preventDefault(),x(e=>(e[c]=w,e)),h.current(e=>e+1),null===(a=e.target.closest(".table-field-wrapper"))||void 0===a||null===(l=a.querySelector(".edit-table-field-section"))||void 0===l||l.classList.toggle("hidden")},children:[(0,t.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,t.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target;l.value=l.value.toLowerCase().replace(/ /g,"_"),_(e=>(e.fieldName=l.value,e.updatedField=!0,e.originName||(e.originName=F),e))},required:!0,defaultValue:F})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,t.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,t.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:E})})]})]}),(0,t.jsxs)("div",{className:"w-auto",children:[(0,t.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:e=>{let l=e.target;I(l.value),l.childNodes.forEach(e=>{e.value===l.value&&e.dataset.desc&&k(e.dataset.desc),e.value===l.value&&e.dataset.literal?(w.defaultValueLiteral=e.dataset.literal,w.nullValue=!1):delete w.defaultValueLiteral}),u.dataType=l.value+(l.value.match(/VARCHAR/)?"(".concat(S||200,")"):"")},defaultValue:C||void 0,children:y.map((e,l)=>e.name.match(/VARCHAR/)?(0,t.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(S||200)+")"},l+1):(0,t.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),(null==C?void 0:C.match(/VARCHAR/))&&(0,t.jsx)("input",{type:"number",defaultValue:S||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{A(e.target.value),u.dataType=C+"(".concat(e.target.value,")")}})]})]}),(null==C?void 0:C.match(/text/i))&&(0,t.jsx)(n.Fragment,{children:(0,t.jsx)(s.A,{targetField:u})}),!(null===(l=u.dataType)||void 0===l?void 0:l.match(/text/i))&&!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,t.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:(null==u?void 0:u.notNullValue)?"Yes":"No",onChange:e=>{console.log(u),"Yes"===e.target.value?u.notNullValue=!0:(u.notNullValue=!1,delete u.notNullValue)},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!R&&(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,t.jsx)("label",{htmlFor:"new_field_default_value",children:(null==w?void 0:null===(d=w.dataType)||void 0===d?void 0:d.match(/text$/i))?"Can't Set Default for text values":"Default Value (optional)"}),(0,t.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:(null==w?void 0:null===(o=w.dataType)||void 0===o?void 0:o.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null==w?void 0:w.defaultValue)?w.defaultValue:(null==w?void 0:w.nullValue)?"NULL":"",onInput:e=>{var l;let a=e.target;null!==(l=w.dataType)&&void 0!==l&&l.match(/text$/i)||_(e=>(a.value.match(/./)?delete e.notNullValue:(delete e.defaultValue,delete e.nullValue),a.value.match(/^null$/i)?(delete e.defaultValue,e.nullValue=!0):a.value.match(/./)&&(delete e.nullValue,e.defaultValue=a.value),e))}})]}),!R&&(0,t.jsx)(i.A,{database:f,setFieldData:_,setTableFields:x,tableFields:m,targetField:u,user:g,currentTable:v,fieldIndex:c})]}),(0,t.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,t.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,t.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:e=>{b.current&&(u=r().cloneDeep(b.current)),x(e=>{let l=r().cloneDeep(e);return c&&b.current&&(l[c]=r().cloneDeep(b.current)),l}),p&&p(!1)},children:"Cancel"})]})]})})}},66051:(e,l,a)=>{a.d(l,{A:()=>f});var t=a(74848),n=a(96540),i=a(25414),s=a(76897);function d(e){let{targetField:l}=e;if(!(null==l?void 0:l.richText))return null;let[a,d]=n.useState(l.cssFiles||[]),r=n.useRef(null);return n.useEffect(()=>{l.cssFiles=a},[a]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,t.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),a.map((e,l)=>(0,t.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,t.jsx)("span",{children:e}),(0,t.jsx)(s.A,{size:20,onClick:()=>{d(l=>l.filter(l=>l!==e))},className:"cursor-pointer hover:opacity-60 "})]},l+1)),(0,t.jsxs)("div",{className:"row w-full",children:[(0,t.jsx)(i.A,{name:"css-file",placeholder:"CSS file URL",elementRef:r}),(0,t.jsx)("button",{className:"secondary outlined",onClick:()=>{var e;let l=null===(e=r.current)||void 0===e?void 0:e.value;(null==l?void 0:l.match(/./))&&d(e=>[...new Set([...e,l])])},children:"Add"})]}),(0,t.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function r(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,t.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:(null==l?void 0:l.encrypted)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.encrypted=!0:(l.encrypted=!1,delete l.encrypted),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var o=a(94996);function u(e){let{targetField:l,setFieldData:a}=e;return null}function c(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,t.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.pattern=t.value:delete l.pattern},defaultValue:null==l?void 0:l.pattern}),(0,t.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:e=>{var a;let t=e.target;(null==t?void 0:null===(a=t.value)||void 0===a?void 0:a.length)>0?l.patternFlags=t.value:delete l.patternFlags},defaultValue:null==l?void 0:l.patternFlags})]})}var m=a(2543),x=a.n(m),h=a(44500);function p(e){let{targetField:l,setFieldData:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,t.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:(null==l?void 0:l.unique)?"Yes":"No",onChange:e=>{a&&a(l=>(e.target.value.match(/yes/i)?l.unique=!0:(l.unique=!1,delete l.unique),l))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function f(e){let{targetField:l,currentTable:a,database:i,tableFields:s,setTableFields:m,setFieldData:f,user:v,fieldIndex:g}=e,[N,j]=n.useState(!1),y=n.useRef(x().cloneDeep(l));return n.useEffect(()=>{},[]),(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:()=>{j(!0)},children:"More"}),(0,t.jsx)(h.A,{open:N,onClose:()=>{y.current&&(l=x().cloneDeep(y.current)),j(!1)},maxWidth:"600px",children:(0,t.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,t.jsx)("div",{className:"w-full justify-between",children:(0,t.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,t.jsx)(d,{targetField:l}),(0,t.jsx)(p,{targetField:l,setFieldData:f}),(0,t.jsx)(r,{targetField:l,setFieldData:f}),a&&(0,t.jsx)(o.A,{targetField:l,setFieldData:f,database:i,tableFields:s,setTableFields:m,currentTable:a,user:v}),(0,t.jsx)(u,{targetField:l,setFieldData:f}),(0,t.jsx)(c,{targetField:l}),(0,t.jsx)("button",{className:"w-full outlined more-padding",onClick:()=>{j(!1)},children:"Done"})]})})]})}},94996:(e,l,a)=>{a.d(l,{A:()=>d});var t=a(74848),n=a(96540),i=a(23698),s=a(620);function d(e){var l,a;let{targetField:d,setFieldData:r,tableFields:o,setTableFields:u,database:c,currentTable:m,user:x,setActiveEdit:h,activeClonedTable:p}=e,[f,v]=n.useState(null!=d&&!!d.foreignKey),[g,N]=n.useState(null),[j,y]=n.useState(null),[b,T]=n.useState(null),[w,_]=n.useState(null),[F,V]=n.useState(!1);return n.useEffect(()=>{(f||(null==d?void 0:d.foreignKey))&&(0,i.A)("/api/getUserSchemaData").then(e=>{if(e.success)try{let a=e.schemaData.filter(e=>e.dbFullName===c.db_full_name),t=m?a[0].tables.filter(e=>e.tableName!==m.tableName):a[0].tables;if(N(t),null==d?void 0:d.foreignKey){var l;let e=t.filter(e=>{var l;return e.tableName===(null==d?void 0:null===(l=d.foreignKey)||void 0===l?void 0:l.destinationTableName)});y(e[0]),(null===(l=e[0])||void 0===l?void 0:l.fields)&&T(e[0].fields)}}catch(e){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:e.message,user:x}})}})},[f]),(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[F&&(0,t.jsx)(s.A,{}),(0,t.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,t.jsx)("span",{children:"Foreign Key?"}),(0,t.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,t.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,t.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,t.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,t.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:(null==d?void 0:d.foreignKey)?"Yes":"No",onChange:e=>{e.target.value.match(/yes/i)?(v(!0),r&&r(e=>(e.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},e))):(v(!1),r&&r(e=>(delete e.foreignKey,e)))},children:[(0,t.jsx)("option",{value:"No",children:"No"}),(0,t.jsx)("option",{value:"Yes",children:"Yes"})]}),f&&g&&(0,t.jsx)(n.Fragment,{children:(0,t.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:(null==d?void 0:null===(l=d.foreignKey)||void 0===l?void 0:l.destinationTableName)?d.foreignKey.destinationTableName:void 0,onChange:e=>{var l;let a=e.target;if(null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){r?r(e=>{let l=e.foreignKey;return l&&(l.destinationTableName=void 0),e}):a.dataset.destinationTableName=void 0;return}let t=g.filter(l=>l.tableName===e.target.value)[0];y(t),(null==t?void 0:t.fields)&&T(t.fields),r?r(l=>{let a=l.foreignKey;return a&&(a.destinationTableName=e.target.value),l}):e.target.dataset.destinationTableName=e.target.value},children:[(0,t.jsx)("option",{value:"--",children:"--Select Table--"}),g.map((e,l)=>(0,t.jsx)("option",{value:e.tableName,children:e.tableFullName},l+1))]})}),j&&b&&(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:(null==d?void 0:null===(a=d.foreignKey)||void 0===a?void 0:a.destinationTableColumnName)?d.foreignKey.destinationTableColumnName:void 0,onChange:e=>{try{var l;let a=b.filter(l=>l.fieldName===e.target.value)[0];if(_(a),null===(l=e.target.value)||void 0===l?void 0:l.match(/--/)){r&&r(e=>{let l=e.foreignKey;return l&&(l.destinationTableColumnName=void 0),e});return}let t="dsql_".concat(c.user_id,"_").concat(c.db_slug,"_").concat(Date.now());r?r(e=>{e.dataType=a.dataType;let l=e.foreignKey;return l&&(l.destinationTableColumnName=a.fieldName,l.destinationTableColumnType=a.dataType,l.foreignKeyName=t),e}):(e.target.dataset.dataType=a.dataType,e.target.dataset.destinationTableColumnName=a.fieldName,e.target.dataset.foreignKeyName=t)}catch(e){(0,i.A)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:e.message,user:x}})}},children:[(0,t.jsx)("option",{value:"--",children:"--Select Column--"}),b.map((e,l)=>(0,t.jsx)("option",{value:e.fieldName,children:e.fieldName},l+1))]}),p&&w&&(0,t.jsx)("button",{className:"secondary w-full",onClick:e=>{var l,a;V(!0),(0,i.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:m,database:c.db_full_name,dbSlug:c.db_slug,delegated:null!==(a=window.location)&&void 0!==a&&null!==(l=a.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout(()=>{h&&h(!1)},1e3)})},children:"Add Foreign Key"})]}),p&&(0,t.jsx)("button",{className:"light-gray w-full",onClick:e=>{delete d.foreignKey,h&&h(!1)},children:"Cancel"})]})}},39007:(e,l,a)=>{a.d(l,{A:()=>n});var t=a(74848);function n(e){let{targetField:l}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,t.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,t.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:e=>{switch(delete l.json,delete l.richText,delete l.yaml,delete l.html,delete l.javascript,delete l.shell,e.target.value){case"plain":break;case"rte":l.richText=!0;break;case"json":l.json=!0;break;case"yaml":l.yaml=!0;break;case"html":l.html=!0;break;case"css":l.css=!0;break;case"javascript":l.javascript=!0;break;case"shell":l.shell=!0}},defaultValue:l.richText?"rte":l.json?"json":l.yaml?"yaml":l.html?"html":l.javascript?"javascript":l.shell?"shell":l.css?"css":"plain",children:[(0,t.jsx)("option",{value:"plain",children:"Plain Text"}),(0,t.jsx)("option",{value:"rte",children:"Rich Text"}),(0,t.jsx)("option",{value:"json",children:"JSON"}),(0,t.jsx)("option",{value:"yaml",children:"YAML"}),(0,t.jsx)("option",{value:"html",children:"HTML"}),(0,t.jsx)("option",{value:"css",children:"CSS"}),(0,t.jsx)("option",{value:"javascript",children:"Javascript"}),(0,t.jsx)("option",{value:"shell",children:"Shell"})]})]})}a(96540)},44500:(e,l,a)=>{a.d(l,{A:()=>d});var t=a(74848),n=a(96540),i=a(5338),s=a(76897);function d(e){let{children:l,open:a,setOpen:s,onClose:d,maxWidth:o}=e;return n.useEffect(()=>{if(a){let e=document.createElement("div");e.className="modal-wrapper",(0,i.createRoot)(e).render((0,t.jsx)(r,{onClose:d,maxWidth:o,children:l})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach(e=>{var l;null===(l=e.parentElement)||void 0===l||l.removeChild(e)})},[a]),(0,t.jsx)(t.Fragment,{})}function r(e){let{children:l,onClose:a,maxWidth:i,open:d}=e,r=n.useRef();return(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("div",{className:"modal-cancel",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})}}),(0,t.jsxs)("div",{className:"modal-content",style:{maxWidth:i||void 0},ref:r,children:[l," ",(0,t.jsx)("button",{className:"ghost modal-cancel-button",onClick:e=>{o({modalEl:e.target.closest(".modal-wrapper"),closeFn:a})},children:(0,t.jsx)(s.A,{})})]})]})}function o(e){var l;let{modalEl:a,closeFn:t}=e;t&&t(),null===(l=a.parentElement)||void 0===l||l.removeChild(a)}},43431:e=>{e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5313-568ff7314fa4913c.js b/dsql-app/.local_dist/static/chunks/5313-568ff7314fa4913c.js deleted file mode 100644 index ac90a89..0000000 --- a/dsql-app/.local_dist/static/chunks/5313-568ff7314fa4913c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5313],{85313:function(e,s,l){l.d(s,{Z:function(){return b}});var a=l(85893),t=l(67294),n=l(9008),r=l.n(n),i=l(828),c=l(64017),d=l(64689),x=l(38544),o=l(39269),u=l(50027),h=l(51903),m=l(28466);function p(e){var s=(0,i.Z)(t.useState(!0),2),l=s[0],n=s[1];return(0,a.jsxs)("aside",{className:"aside"+(l?" mobile-collapsed":" mobile-expanded"),style:{maxWidth:l?"250px":"300px",zIndex:800},children:[(0,a.jsx)(c.Z,{adminAside:!0,collapseAsideMobile:l,setCollapseAsideMobile:n}),(0,a.jsx)("hr",{className:"opacity-0 mt-4"}),(0,a.jsxs)("div",{className:"main-links"+(l?" hidden lg:flex":" "),children:[(0,a.jsxs)("a",{href:"/su","data-currentlink":"/su","data-strictlink":"true",children:[(0,a.jsx)(d.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Dashboard"})]}),(0,a.jsxs)("a",{href:"/su/users","data-currentlink":"/su/users",children:[(0,a.jsx)(x.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Users"})]}),(0,a.jsxs)("a",{href:"/su/error-logs","data-currentlink":"/su/error-logs",children:[(0,a.jsx)(o.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Error Logs"})]}),!1,(0,a.jsxs)("a",{href:"/su/backups","data-currentlink":"/su/backups",children:[(0,a.jsx)(u.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Backups"})]}),(0,a.jsxs)("a",{href:"/su/console","data-currentlink":"/su/console",children:[(0,a.jsx)(h.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Console"})]}),(0,a.jsxs)("a",{href:"/su/envar","data-currentlink":"/su/envar",children:[(0,a.jsx)(m.Z,{className:"text-slate-400"}),(0,a.jsx)("span",{children:"Env"})]})]})]})}var f=l(44981),j=l(8971);function g(e){var s=e.user,l=(e.extraHeaderContent,(0,i.Z)(t.useState(s||null),2)),n=(l[0],l[1]);return t.useEffect((function(){(null===s||void 0===s?void 0:s.logged_in_status)&&n(s||null)}),[s]),(0,a.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,a.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,a.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,a.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,a.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,a.jsx)("button",{className:"outlined gray ml-auto",onClick:function(e){var s=document.getElementById("main-nav-content-wrapper");null===s||void 0===s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,a.jsx)("span",{className:"font-semibold text-4xl",children:"\u2715"})})]}),(0,a.jsx)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:(0,a.jsx)("div",{className:"gap-2 flex-col-reverse xl:flex-row gap-y-6 w-full xl:w-auto py-2",children:(0,a.jsxs)("div",{className:"ml-auto dropdown-wrapper",children:[(0,a.jsx)("div",{className:"bg-white rounded-full overflow-hidden",style:{width:"36px",height:"36px"},children:(0,a.jsx)("img",{src:"/images/user-preset-thumbnail.png",alt:"User Image",width:35,className:"w-full h-full object-cover"})}),(0,a.jsx)("span",{children:(0,a.jsx)("b",{children:"Super User"})}),(0,a.jsx)(j.Z,{size:20}),(0,a.jsx)("div",{className:"dropdown",children:(0,a.jsx)("a",{href:"/su/logout",children:"Logout"})})]})})})]}),(0,a.jsx)("div",{className:"ml-2",children:(0,a.jsx)(f.Z,{})}),(0,a.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:function(e){var s=document.getElementById("main-nav-content-wrapper");null===s||void 0===s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,a.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var w=l(29678);function b(e){var s=e.children,l=e.head,n=e.user;return t.useEffect((function(){var e=document.querySelectorAll("aside .main-links a");(0,w.Z)({links:e})}),[]),(0,a.jsxs)(t.Fragment,{children:[(0,a.jsxs)(r(),{children:[(0,a.jsx)("link",{rel:"stylesheet",href:"/styles/admin.css"}),l]}),(0,a.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,a.jsx)(p,{}),(0,a.jsxs)("main",{className:"relative",children:[(0,a.jsx)(g,{user:n}),(0,a.jsx)("div",{className:"flex-col items-start gap-6 px-4 sl:px-8 py-8 bg-slate-50 dark:bg-slate-900",children:s}),(0,a.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,a.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,a.jsxs)("a",{href:"/",className:"flex items-center gap-2",children:[(0,a.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Datasquirel Logo",width:30}),(0,a.jsx)("span",{className:"text-lg font-bold",children:"Datasquirel"})]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[(new Date).getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/docs",children:"Docs"}),(0,a.jsx)("span",{className:"opacity-25",children:"|"}),(0,a.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5414-7768ca31c29a305e.js b/dsql-app/.local_dist/static/chunks/5414-7768ca31c29a305e.js new file mode 100644 index 0000000..1dd56a3 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/5414-7768ca31c29a305e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5414],{25414:(e,t,n)=>{let r,a;n.d(t,{A:()=>u});var o=n(74848),l=n(96540);function i(e){let t,{value:n,format:r}=e;if(!n)return 0;try{t="string"===r?n.toString().replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,","):parseInt(n.toString().replace(/\D/g,""))}catch(e){t=0,console.log(e)}return t}function s(e){var t;let n,{value:r,format:a,decimals:o}=e,l=(null==r?void 0:null===(t=r.toString())||void 0===t?void 0:t.match(/^\-/))?"-":"";try{if("string"===a){let e=r.toString().split(".");n=l+e[0].toString().replace(/[^0-9\.]/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")+(e[1]?o?".".concat(e[1].substring(0,o)):".".concat(e[1].substring(0,2)):"")}else n=parseFloat(l+r.toString().replace(/[^0-9\.]/g,""))}catch(e){n=0,console.log(e)}return n}function u(e){try{let{title:d,name:p,defaultValue:v,placeholder:g,autoComplete:m,onInputHandler:h,required:w,inputType:f,setAlert:x,prefix:b,minValue:S,maxValue:y,encrypted:j,numberText:I,appendCurrency:N,elementRef:T,onChangeHandler:F,value:L,step:D,decimal:M,pattern:k,info:E,fontSize:W,maxWidth:C,setValue:R,id:_}=e;function t(e){e.target.value.match(/./)?(e.target.classList.remove("warning"),x&&x(null)):e.target.required&&e.target.classList.add("warning"),I&&(e.target.value=e.target.value.toString().match(/^0+$/)?"0":e.target.value.toString().replace(M?/[^0-9\.]/g:/\D/g,"").replace(/^0*/,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")),h&&h(e),F&&F(e)}function n(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),n=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!n.classList.contains("hidden")){n.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&n.classList.contains("hidden"))){if(!t){n.classList.add("hidden");return}if(n.classList.contains("hidden")){n.classList.remove("hidden");return}n.classList.add("hidden")}}let q=T||l.useRef();function u(e){var t;let n=M?parseFloat(s({value:(null===(t=q.current)||void 0===t?void 0:t.value)||0}).toString())-(D?parseFloat(D.toString()):20):parseInt(i({value:q.current.value}).toString())-(D||20),r=M?s({value:n,format:"raw"}):i({value:n,format:"raw"});S&&"number"==typeof r&&ry||(q.current.value=n.toString(),R&&R(q.current.value))}return(0,o.jsxs)("div",{className:"form-input-wrapper flex flex-col items-start gap-0.5 w-full relative",style:{...C?{maxWidth:C}:{}},children:[d&&(0,o.jsx)("label",{htmlFor:p,children:d}),(0,o.jsxs)("div",{className:"flex items-center w-full relative",children:[b&&(0,o.jsx)("div",{className:"absolute left-4 bottom-2 text-lg",children:b}),(0,o.jsx)("input",{type:f||"text",name:p,id:_||p,ref:q,placeholder:g||d||"",autoComplete:m,onInput:e=>{t(e)},onChange:e=>{t(e)},value:L||void 0,defaultValue:L?void 0:v||void 0,pattern:k?k.toString():void 0,required:!!w&&w,style:{...W?{fontSize:W}:{},...b?{paddingLeft:"35px"}:{}},min:S,max:y,"data-encrypted":j||null,"data-appendcurrency":N||null,className:"bg-white"+(E?" pr-16":"")}),I&&(0,o.jsxs)("div",{className:"absolute gap-1"+(E?" right-12":" right-4"),style:{top:"50%",transform:"translate(0,-50%)"},children:[(0,o.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:e=>{e.preventDefault(),window.innerWidth<1200||(u(e),r=setTimeout(()=>{a=setInterval(()=>{u(e)},50)},200))},onTouchStart:e=>{e.preventDefault(),window.innerWidth>=1200||(u(e),r=setTimeout(()=>{a=setInterval(()=>{u(e)},50)},200))},onMouseUp:e=>{window.clearTimeout(r),window.clearInterval(a)},onTouchEnd:e=>{window.clearTimeout(r),window.clearInterval(a)},onMouseLeave:e=>{window.clearTimeout(r),window.clearInterval(a)},onTouchMove:e=>{e.preventDefault()},children:(0,o.jsx)("span",{className:"pointer-events-none",children:"-"})}),(0,o.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:e=>{e.preventDefault(),window.innerWidth<1200||(c(e),r=setTimeout(()=>{a=setInterval(()=>{c(e)},50)},200))},onTouchStart:e=>{e.preventDefault(),window.innerWidth>=1200||(c(e),r=setTimeout(()=>{a=setInterval(()=>{c(e)},50)},200))},onMouseUp:e=>{window.clearTimeout(r),window.clearInterval(a)},onTouchEnd:e=>{window.clearTimeout(r),window.clearInterval(a)},onMouseLeave:e=>{window.clearTimeout(r),window.clearInterval(a)},children:(0,o.jsx)("span",{className:"pointer-events-none",children:"+"})})]}),E&&(0,o.jsxs)("div",{className:"info-wrapper absolute right-2 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:n,onMouseLeave:n,onClick:n,children:[(0,o.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,o.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,o.jsx)("span",{children:E})}),(0,o.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormInput =>",e),(0,o.jsx)("div",{children:"Form Input Error"})}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5580-b9a6e4d2e2b38b6e.js b/dsql-app/.local_dist/static/chunks/5580-b9a6e4d2e2b38b6e.js new file mode 100644 index 0000000..7ac2814 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/5580-b9a6e4d2e2b38b6e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5580],{74791:(e,a,l)=>{l.d(a,{A:()=>n});var t=l(74848),c=l(96540),i=l(65113);function n(e){let{user:a,userImage:l,setUserImage:n,database:s,className:d}=e,r=c.useRef();return(0,t.jsxs)("div",{className:"card no-hover col"+(d?" "+d:""),children:[(0,t.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,t.jsx)("img",{src:l?"string"==typeof l?l:l.imageBase64Full:"/images/user-preset.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:r,"data-imagepreview":"image"})}),(0,t.jsxs)("div",{className:"w-full flex-col image-selector-wrapper",children:[(0,t.jsx)("div",{className:"button outlined secondary w-full whitespace-normal",onClick:e=>{e.target.closest(".image-selector-wrapper").querySelector("input").click()},children:"Upload Image"}),(0,t.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:async e=>{n(await (0,i.A)({imageInputFile:e.target.files[0],maxWidth:400}))}})]})]})}l(45165)},45165:(e,a,l)=>{l.d(a,{Ay:()=>n,PB:()=>s,fs:()=>d});var t=l(74848),c=l(76897),i=l(96540);function n(e){let{children:a,title:l,data:n,fullPage:s,wrapperClasses:r,closePopupDispatch:o,wrapperStyle:p,noContainer:h}=e;return s?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":l||null,style:p,children:[h?(0,t.jsx)(i.Fragment,{children:a}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:a}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),o&&o()},children:(0,t.jsx)(c.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":l||null,children:[h?(0,t.jsx)(i.Fragment,{children:a}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[a,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),h&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),o&&o()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),o&&o()}})]})}function s(e,a){let l=document.querySelector("[data-popupid='".concat(e,"']"));l&&(l.style.display="flex",a&&a(l))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},65113:(e,a,l)=>{l.d(a,{A:()=>t});async function t(e){let a,l,{imageInputFile:t,maxWidth:c}=e,i=document.querySelector("[data-imagepreview='image']"),n=t.name.replace(/\..*/,""),s=document.createElement("canvas"),d=t.type,r=c||null,o=URL.createObjectURL(t),p=new Image;return p.src=o,a=await new Promise((e,a)=>{p.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},p.onload=function(){if(URL.revokeObjectURL(this.src),r){let e=r/p.naturalWidth;s.width=p.naturalWidth{e.src=l}),e(l)}}),l=await new Promise((e,a)=>{s.toBlob(a=>{e(null==a?void 0:a.size)},d,.95)}),{imageBase64:a.replace(/.*?base64,/,""),imageBase64Full:a,imageName:n,imageSize:l}}},86625:(e,a,l)=>{var t=l(24994);a.A=void 0;var c=t(l(44888)),i=l(74848);a.A=(0,c.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},34181:(e,a,l)=>{var t=l(24994);a.A=void 0;var c=t(l(44888)),i=l(74848);a.A=(0,c.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},45014:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},59140:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},76897:(e,a,l)=>{l.d(a,{A:()=>t});let t=(0,l(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5622-0b01b71a2de3acf8.js b/dsql-app/.local_dist/static/chunks/5622-0b01b71a2de3acf8.js deleted file mode 100644 index 9461efc..0000000 --- a/dsql-app/.local_dist/static/chunks/5622-0b01b71a2de3acf8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5622],{77227:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"},"0"),(0,n.jsx)("path",{d:"M7 5v4H4V5h3m13 0v4h-3V5h3m0 10v4h-3v-4h3",opacity:".3"},"1")],"AccountTreeTwoTone");t.Z=i},31356:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M5 5v14h14V5H5zm9 12H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-2-6H7v-2h10v2zm0-4H7V7h10v2zm-3 8H7v-2h7v2z"},"1")],"ArticleTwoTone");t.Z=i},50027:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"m19.21 12.04-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c1.65 0 3-1.35 3-3 0-1.55-1.22-2.86-2.79-2.96zm-5.76.96v3h-2.91v-3H8l4-4 4 4h-2.55z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"},"1")],"BackupTwoTone");t.Z=i},64689:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M18 19h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M12 3 6 7.58V6H4v3.11L1 11.4l1.21 1.59L4 11.62V21h16v-9.38l1.79 1.36L23 11.4 12 3zm6 16h-5v-4h-2v4H6v-8.9l6-4.58 6 4.58V19zM10 1c0 1.66-1.34 3-3 3-.55 0-1 .45-1 1H4c0-1.66 1.34-3 3-3 .55 0 1-.45 1-1h2z"},"1")],"CottageTwoTone");t.Z=i},39269:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm1 13h-2v-2h2v2zm0-4h-2V7h2v6z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-1-5h2v2h-2zm0-8h2v6h-2z"},"1")],"ErrorTwoTone");t.Z=i},28466:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M6 10v10h5.29c-.19-.63-.29-1.3-.29-2 0-3.87 3.13-7 7-7v-1H6z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M6 20V10h12v1c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.42-.6-.75-1.28-.97-2H6zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6z"},"1"),(0,n.jsx)("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32z"},"2")],"LockPersonTwoTone");t.Z=i},38544:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("circle",{cx:"9",cy:"8",r:"2",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M9 15c-2.7 0-5.8 1.29-6 2.01V18h12v-1c-.2-.71-3.3-2-6-2z",opacity:".3"},"1"),(0,n.jsx)("path",{d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87zM15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24zm-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4zm6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2v1z"},"2")],"PeopleAltTwoTone");t.Z=i},51903:function(e,t,c){var s=c(64836);t.Z=void 0;var a=s(c(64938)),n=c(85893),i=(0,a.default)([(0,n.jsx)("path",{d:"M4 18h16V8H4v10zm8-3h6v2h-6v-2zm-5.91-4.59L7.5 9l4 4-4 4-1.41-1.41L8.67 13l-2.58-2.59z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M12 15h6v2h-6z"},"1"),(0,n.jsx)("path",{d:"M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H4V8h16v10z"},"2"),(0,n.jsx)("path",{d:"m7.5 17 4-4-4-4-1.41 1.41L8.67 13l-2.58 2.59z"},"3")],"TerminalTwoTone");t.Z=i},62435:function(e,t,c){c.d(t,{Z:function(){return v}});var s=c(828),a=c(85893),n=c(67294),i=c(31356),o=c(86729),l=c(95264),d=c(77227);function h(e){var t=e.docPageObject,c=(0,s.Z)(n.useState(!1),2),h=c[0],r=c[1],v=(0,s.Z)(n.useState([]),2),u=v[0],m=v[1];return n.useEffect((function(){(0,o.Z)("/api/admin/docs/get-child-pages",{method:"post",body:{pageId:t.id}}).then((function(e){e.success&&m(e.result)}))}),[]),(0,a.jsxs)("div",{className:"card col relative cursor-pointer",onClick:function(e){var c;(null===(c=e.target)||void 0===c?void 0:c.closest(".cancel-link"))?e.preventDefault():window.location.pathname="/su/docs/pages/".concat(t.id)},children:[h&&(0,a.jsx)(l.Z,{width:"20px"}),(0,a.jsxs)("div",{className:"w-full items-start",children:[(0,a.jsx)(i.Z,{color:"inherit",className:"opacity-40 text-gray-600"}),(0,a.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,a.jsx)("span",{className:"title",children:t.title}),(0,a.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:t.description||""}})]}),(0,a.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,a.jsx)("button",{onClick:function(){window.location.href="/su/docs/edit-page?id=".concat(t.id)},className:"outlined small-text light-gray",children:"Edit Page"}),(0,a.jsx)("button",{onClick:function(){window.confirm("Delete this page?")&&(r(!0),(0,o.Z)("/api/admin/docs/delete-page",{method:"post",body:t}).then((function(e){e.success&&window.location.reload(),setTimeout((function(){r(!1)}),1e3)})))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),u&&(0,a.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(d.Z,{className:"opacity-20",fontSize:"small"}),(0,a.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),u.map((function(e,t){return(0,a.jsxs)("div",{className:"card w-full",onClick:function(){window.location.pathname="/su/docs/pages/".concat(e.id)},children:[(0,a.jsx)(i.Z,{color:"inherit",className:"opacity-40 text-gray-500"}),(0,a.jsx)("span",{children:e.title})]},t)}))]})]})}var r=c(45449);function v(e){var t=e.data,c=function(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(u(!0),(0,o.Z)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then((function(t){t.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout((function(){u(!1)}),1e3)})).catch((function(e){setTimeout((function(){u(!1)}),1e3)})))},i=(t.env,t.docPages),d=(0,s.Z)(n.useState(!1),2),v=d[0],u=d[1];return(0,a.jsxs)(n.Fragment,{children:[v&&(0,a.jsx)(l.Z,{}),(0,a.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,a.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,a.jsxs)(r.Z,{children:[(0,a.jsx)("button",{className:"outlined gray",onClick:function(){c(!1)},children:"Push"}),(0,a.jsx)("button",{className:"outlined gray",onClick:function(){c(!0)},children:"Pull"})]})]})]}),(0,a.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:i.map((function(e,t){return(0,a.jsx)(h,{docPageObject:e},t)}))})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5667-9e7b94f8ce529764.js b/dsql-app/.local_dist/static/chunks/5667-9e7b94f8ce529764.js deleted file mode 100644 index 73bb340..0000000 --- a/dsql-app/.local_dist/static/chunks/5667-9e7b94f8ce529764.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5667],{10312:function(e,t,s){s.d(t,{Z:function(){return a}});const a=(0,s(45711).Z)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},37359:function(e,t,s){s.d(t,{Z:function(){return b}});var a=s(85893),n=s(67294),r=s(41457),i=s(424),c=s(97946),d=(s(68744),s(96891));function l(e){var t=n.useContext(r.DashboardContext),s=t.databases,i=t.setTargetDatabase,c=t.user;return(0,a.jsx)(n.Fragment,{children:(0,a.jsx)(d.Z,{databases:s,setTargetDatabase:i,title:"Recently added Databases",more:!0,user:c})})}var o=s(55592),u=s(33587),x=s(10312),m=s(78107);const h=(0,s(45711).Z)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function j(e){var t=e.icon,s=e.metric,n=e.count,r=e.url;return(0,a.jsxs)("a",{href:r,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:t}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:n}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s})]})]})}function v(e){var t=n.useContext(r.DashboardContext),s=(t.databases,t.setTargetDatabase,t.metrics),i=t.user;return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(j,{metric:"Databases Created",count:(null===s||void 0===s?void 0:s.dbCount)||0,icon:(0,a.jsx)(u.Z,{size:20,className:"text-secondary2"}),url:"/admin/".concat(null===i||void 0===i?void 0:i.id,"/databases")}),(0,a.jsx)(j,{metric:"Tables Created",count:(null===s||void 0===s?void 0:s.tablesCount)||0,icon:(0,a.jsx)(x.Z,{size:20,className:"text-primary"})}),(0,a.jsx)(j,{metric:"Media Added",count:(null===s||void 0===s?void 0:s.mediaCount)||0,icon:(0,a.jsx)(m.Z,{size:20,className:"text-slate-500"}),url:"/admin/".concat(null===i||void 0===i?void 0:i.id,"/media")}),(0,a.jsx)(j,{metric:"API Keys",count:(null===s||void 0===s?void 0:s.apiKeysCount)||0,icon:(0,a.jsx)(h,{size:20,className:"text-slate-900 dark:text-white"}),url:"/admin/".concat(null===i||void 0===i?void 0:i.id,"/api-keys")})]})})}function b(e){var t,s=n.useContext(r.DashboardContext),d=(s.databases,s.user);return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(i.Z,{user:d})]}),(null===d||void 0===d||null===(t=d.verification_status)||void 0===t?void 0:t.toString().match(/1/))?(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)(v,{}),(0,a.jsx)(l,{}),(0,a.jsx)(o.Z,{user:d})]}):(0,a.jsx)(c.Z,{})]})}},41457:function(e,t,s){s.r(t),s.d(t,{DashboardContext:function(){return u},__N_SSP:function(){return o},default:function(){return x}});var a=s(828),n=s(85893),r=s(67294),i=s(54858),c=s(37359),d=s(85012),l={},o=!0,u=r.createContext(l);function x(e){var t=e.user,s=e.databases,l=e.metrics,o=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,n.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),x=r.useState(null),m=(0,a.Z)(x,2),h=m[0],j=m[1];return(0,n.jsx)(i.Z,{head:o,user:t,children:(0,n.jsxs)(u.Provider,{value:{user:t,databases:s,targetDatabase:h,setTargetDatabase:j,metrics:l},children:[(0,n.jsx)(c.Z,{}),(0,n.jsx)(d.Z,{targetDatabase:h})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5680-7669f210caba7d73.js b/dsql-app/.local_dist/static/chunks/5680-7669f210caba7d73.js new file mode 100644 index 0000000..bd25f8b --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/5680-7669f210caba7d73.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5680],{35381:(e,t,o)=>{var n=o(24994);t.A=void 0;var r=n(o(44888)),i=o(74848);t.A=(0,r.default)([(0,i.jsx)("path",{d:"M8 16h12V4H8zm2-7h3V6h2v3h3v2h-3v3h-2v-3h-3z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2M8 2c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm12 14H8V4h12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z"},"1")],"LibraryAddTwoTone")},23238:(e,t,o)=>{o.d(t,{A:()=>n});let n=(0,o(95737).A)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},40640:function(e,t,o){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;o{Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var n=o(96540),r=o(40961);t.PopoverPortal=function(e){var t=e.container,o=e.element,i=e.scoutElement,a=e.children;return(0,n.useLayoutEffect)(function(){return t.appendChild(o),t.appendChild(i),function(){t.removeChild(o),t.removeChild(i)}},[t,o,i]),(0,r.createPortal)(a,o)}},46305:function(e,t,o){var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,o=1,n=arguments.length;ou?u-e:r,n=Number.isNaN(n=(n=nl?l-e:n)?0:n,r=Number.isNaN(r)?0:r,i){case"right":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid ").concat(c),left:0,top:n};case"left":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderLeft:"".concat(a,"px solid ").concat(c),right:0,top:n};case"bottom":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid ").concat(c),top:0,left:r};case"top":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderTop:"".concat(a,"px solid ").concat(c),bottom:0,left:r};default:return{display:"hidden"}}}())},[c,a,t.height,t.left,t.top,t.width,o.height,o.left,o.top,o.width,i])}}},5116:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var n=o(96540),r=o(72456);t.useElementRef=function(e){var t=e.containerClassName,o=e.containerStyle,i=(0,n.useRef)(),a=(0,n.useState)(function(){return(0,r.createContainer)({containerStyle:o,containerClassName:t})})[0];return(0,n.useLayoutEffect)(function(){a.className=t},[t,a]),(0,n.useLayoutEffect)(function(){Object.assign(a.style,o)},[o,a]),i.current=a,i}},52128:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useHandlePrevValues=void 0;var n=o(96540);t.useHandlePrevValues=function(e){var t=(0,n.useRef)(e.positions),o=(0,n.useRef)(e.reposition),r=(0,n.useRef)(e.transformMode),i=(0,n.useRef)(e.transform),a=(0,n.useRef)(e.boundaryElement),c=(0,n.useRef)(e.boundaryInset),u=(0,n.useCallback)(function(){t.current=e.positions,o.current=e.reposition,r.current=e.transformMode,i.current=e.transform,a.current=e.boundaryElement,c.current=e.boundaryInset},[e.boundaryElement,e.boundaryInset,e.positions,e.reposition,e.transform,e.transformMode]);return{prev:{positions:t.current,reposition:o.current,transformMode:r.current,transform:i.current,boundaryElement:a.current,boundaryInset:c.current},updatePrevValues:u}}},71292:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var n=o(96540);t.useMemoizedArray=function(e){var t=(0,n.useRef)(e);return(0,n.useMemo)(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var n=o(96540),r=o(72456),i=o(5116),a={position:"fixed",overflow:"visible",top:"0px",left:"0px"},c={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"};t.usePopover=function(e){var t=e.isOpen,o=e.childRef,u=e.positions,l=e.containerClassName,s=e.parentElement,d=e.transform,p=e.transformMode,f=e.align,v=e.padding,h=e.reposition,g=e.boundaryInset,m=e.boundaryElement,b=e.onPositionPopover,y=(0,i.useElementRef)({containerClassName:"react-tiny-popover-scout",containerStyle:c}),R=(0,i.useElementRef)({containerClassName:null!=l&&l.length>0&&"react-tiny-popover-container"!==l?"react-tiny-popover-container ".concat(l):"react-tiny-popover-container",containerStyle:a}),w=(0,n.useCallback)(function(e){var n,i,a=void 0===e?{}:e,c=a.positionIndex,l=void 0===c?0:c,P=a.parentRect,C=void 0===P?s.getBoundingClientRect():P,E=a.childRect,M=void 0===E?null===(n=null==o?void 0:o.current)||void 0===n?void 0:n.getBoundingClientRect():E,x=a.scoutRect,_=void 0===x?null===(i=null==y?void 0:y.current)||void 0===i?void 0:i.getBoundingClientRect():x,j=a.popoverRect,O=void 0===j?R.current.getBoundingClientRect():j,N=a.boundaryRect,T=void 0===N?m===s?C:m.getBoundingClientRect():N;if(M&&C&&t){if(d&&"absolute"===p){var A="function"==typeof d?d({childRect:M,popoverRect:O,parentRect:C,boundaryRect:T,padding:v,align:f,nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1}):d,k=A.top,L=A.left,V=Math.round(C.left+L-_.left),I=Math.round(C.top+k-_.top);R.current.style.transform="translate(".concat(V,"px, ").concat(I,"px)"),b({childRect:M,popoverRect:(0,r.createRect)({left:V,top:I,width:O.width,height:O.height}),parentRect:C,boundaryRect:T,padding:v,align:f,transform:{top:k,left:L},nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1});return}var S=l===u.length,z=S?u[0]:u[l],B=(0,r.getNewPopoverRect)({childRect:M,popoverRect:O,boundaryRect:T,position:z,align:f,padding:v,reposition:h},g),Y=B.rect;if(B.boundaryViolation&&h&&!S){w({positionIndex:l+1,childRect:M,popoverRect:O,parentRect:C,boundaryRect:T});return}var H=Y.top,F=Y.left,q=Y.width,D=Y.height,G=h&&!S,J=(0,r.getNudgedPopoverRect)(Y,T,g),K=J.left,Q=J.top,U=H,W=F;G&&(U=Q,W=K),U=Math.round(U-_.top),W=Math.round(W-_.left),R.current.style.transform="translate(".concat(W,"px, ").concat(U,"px)");var X={top:T.top+g-U,left:T.left+g-W,right:W+q-T.right+g,bottom:U+D-T.bottom+g},Z={childRect:M,popoverRect:(0,r.createRect)({left:W,top:U,width:q,height:D}),parentRect:C,boundaryRect:T,position:z,align:f,padding:v,nudgedTop:Q-H,nudgedLeft:K-F,boundaryInset:g,violations:{top:X.top<=0?0:X.top,left:X.left<=0?0:X.left,right:X.right<=0?0:X.right,bottom:X.bottom<=0?0:X.bottom},hasViolations:X.top>0||X.left>0||X.right>0||X.bottom>0};if(d){b(Z);var $="function"==typeof d?d(Z):d,ee=$.top,et=$.left;R.current.style.transform="translate(".concat(Math.round(W+(null!=et?et:0)),"px, ").concat(Math.round(U+(null!=ee?ee:0)),"px)"),Z.nudgedLeft+=null!=et?et:0,Z.nudgedTop+=null!=ee?ee:0,Z.transform={top:ee,left:et}}b(Z)}},[s,o,y,R,m,t,d,p,u,f,v,h,g,b]);return{positionPopover:w,popoverRef:R,scoutRef:y}}},72456:function(e,t){var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,o=1,n=arguments.length;oc.right-o||"bottom"===n&&s.bottom>c.bottom-o);return{rect:s,boundaryViolation:d}},t.getNudgedPopoverRect=function(e,n,r){var i=n.top+r,a=n.left+r,c=n.right-r,u=n.bottom-r,l=e.topu?u-e.height:l;var s=e.leftc?c-e.width:s,(0,t.createRect)(o(o({},e),{top:l,left:s}))}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/5949-b1c68b62cd5dbfee.js b/dsql-app/.local_dist/static/chunks/5949-b1c68b62cd5dbfee.js deleted file mode 100644 index 113d17e..0000000 --- a/dsql-app/.local_dist/static/chunks/5949-b1c68b62cd5dbfee.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5949],{96224:function(e,t,n){var a=n(64836);t.Z=void 0;var s=a(n(64938)),l=n(85893),c=(0,s.default)([(0,l.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,l.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,l.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,l.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");t.Z=c},88518:function(e,t,n){var a=n(64836);t.Z=void 0;var s=a(n(64938)),l=n(85893),c=(0,s.default)([(0,l.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");t.Z=c},57150:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},33587:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(e,t,n){n.d(t,{Z:function(){return a}});const a=(0,n(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},9417:function(e,t,n){n.d(t,{Z:function(){return f}});var a=n(828),s=n(29815),l=n(85893),c=n(67294),i=n(86729),o=n(25472),r=n(95264),d=n(49486),u=n(44114);function f(e){var t,f,h=e.targetUser,m=e.user,p=e.setTargetUser,x=n(19169);if(!h)return null;var v=(0,a.Z)(c.useState(!0),2),b=v[0],y=v[1],g=c.useState([]),k=(0,a.Z)(g,2),Z=k[0],j=k[1],w=(0,a.Z)(c.useState(!1),2),_=w[0],N=w[1],M=c.useState(h?null===(t=h.user_priviledge)||void 0===t?void 0:t.split("|"):[]),C=(0,a.Z)(M,2),T=C[0],z=C[1],E=(0,a.Z)(c.useState((null===h||void 0===h?void 0:h.database_access)?h.database_access.split("|"):[]),2),H=E[0],S=E[1],A=c.useState(h?null===(f=h.database_access)||void 0===f?void 0:f.split("|")[0]:null),L=(0,a.Z)(A,2),V=L[0],q=L[1],D=c.useState([]),U=(0,a.Z)(D,2),R=U[0],B=U[1],F=c.useState([]),I=(0,a.Z)(F,2),O=I[0],P=I[1];return c.useEffect((function(){(0,i.Z)("/api/getUserDatabases").then((function(e){e.success&&j(e.databases)}))}),[]),c.useEffect((function(){var e;h&&(V?(0,i.Z)("/api/getDatabaseTables?dbSlug=".concat(V,"&dbOwnerId=").concat(m.id,"&delegatedUserId=").concat(h.invited_user_id)).then((function(e){e.success&&(B(null),setTimeout((function(){B((0,s.Z)(e.tables))}),200)),e.accessed_tables&&e.accessed_tables[0]&&!O[0]&&P(e.accessed_tables.map((function(e){return"".concat(e.database,"-").concat(e.table)})))})):q((null===(e=h.database_access)||void 0===e?void 0:e.split("|")[0])||null))}),[V]),c.useEffect((function(){var e,t;(y(!0),h)&&(z((null===(e=h.user_priviledge)||void 0===e?void 0:e.split("|"))||[]),S((null===(t=h.database_access)||void 0===t?void 0:t.split("|"))||[]));setTimeout((function(){y(!1)}),500)}),[h]),c.useEffect((function(){q((null===H||void 0===H?void 0:H[0])||null)}),[H]),(0,l.jsxs)(o.ZP,{title:"target-user-popup",closePopupDispatch:function(){p(null)},children:[b&&(0,l.jsx)(r.Z,{position:"relative"}),!b&&h&&(0,l.jsx)(c.Fragment,{children:(0,l.jsxs)("div",{className:"flex-col w-full items-start p-4",children:[(0,l.jsxs)("h4",{className:"m-0",children:["Edit ",h.first_name," ",h.last_name,"'s Access"]}),(0,l.jsx)("hr",{}),(0,l.jsxs)("form",{className:"flex flex-col items-start w-full",onSubmit:function(e){e.preventDefault(),y(!0),(0,i.Z)("/api/updateAdminUserAccess",{method:"post",body:{userObject:h,user_priviledge:T.join("|"),database_access:null===H||void 0===H?void 0:H.join("|"),db_tables:H&&H[0]?O.join("|"):"",inv_user_id:h.invited_user_id}},!0).then((function(e){window.location.reload(),setTimeout((function(){y(!1)}),500)}))},children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Priviledges"}),(0,l.jsx)(d.Z,{checkBoxValues:x.map((function(e){return{title:e,name:e,default:!!T.includes(e),onChangeHandler:function(t){if(T.includes(e)){var n=T.filter((function(t){return t!=e}));z((0,s.Z)(n))}else z((function(t){return(0,s.Z)(t).concat([e])}))}}})),smallText:!0,flexRow:!0}),(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Databases Access"}),(0,l.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-1 mb-1.5",onClick:function(e){_?(Z.forEach((function(e){setTimeout((function(){var t=document.getElementById(e.db_slug);(null===t||void 0===t?void 0:t.checked)&&t.click()}),200)})),N(!1)):(Z.forEach((function(e){setTimeout((function(){var t=document.getElementById(e.db_slug);t.checked||t.click()}),200)})),N(!0))},children:_?"Deselect All":"Select All"}),(0,l.jsx)(d.Z,{checkBoxValues:Z.map((function(e){return{title:e.db_name,name:e.db_slug,onChangeHandler:function(t){if(H.includes(e.db_slug)){var n=H.filter((function(t){return t!=e.db_slug}));S((0,s.Z)(n))}else S((function(t){return(0,s.Z)(t).concat([e.db_slug])}));H.length===Z.length?N(!0):N(!1)},default:!!H.includes(e.db_slug)}})),smallText:!0,flexRow:!0}),H&&H[0]&&(0,l.jsxs)(c.Fragment,{children:[(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,l.jsx)(u.Z,{required:!0,selectOptions:Z.filter((function(e){return H.includes(e.db_slug)})).map((function(e){return{title:e.db_name,payload:e.db_slug}})),name:"databases",onChangeHandler:function(e){q(e.target.value)}}),(0,l.jsx)("div",{className:"h-2"}),R&&R[0]&&(0,l.jsx)(d.Z,{checkBoxValues:R.map((function(e){return{title:e.table_name,name:e.table_slug,onChangeHandler:function(t){if(O.includes("".concat(V,"-").concat(e.table_slug))){var n=O.filter((function(t){return t!="".concat(V,"-").concat(e.table_slug)}));P((0,s.Z)(n))}else P((function(t){return(0,s.Z)(t).concat(["".concat(V,"-").concat(e.table_slug)])}))},default:!!O.includes("".concat(V,"-").concat(e.table_slug))}})),smallText:!0,flexRow:!0})]}),(0,l.jsx)("button",{className:"mt-4 w-full",children:"Update User Access"})]})]})})]})}},49486:function(e,t,n){n.d(t,{Z:function(){return s}});var a=n(85893);n(67294);function s(e){var t=e.name,n=e.checkBoxValues,s=e.setAlert,l=e.labelColor,c=e.flexRow,i=e.baseText,o=e.smallText,r=e.className;return(0,a.jsx)("div",{className:"flex items-start gap-x-4"+(c?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:n.map((function(e,n){var c=e.payload,r=e.title,d=e.onChangeHandler,u=e.fixed,f=e.jsx,h=e.name?"".concat(t,"-").concat(e.name):c?t+"-"+c:t;return(0,a.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(o?" gap-1 ":" gap-2 ")+((null===e||void 0===e?void 0:e.className)?e.className:""),children:[(0,a.jsx)("input",{className:"m-0"+(o?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:h,id:h,onChange:function(t){s&&s(null),d&&d(t,e)},value:c,style:{minWidth:"20px"}}),f||(0,a.jsx)("label",{htmlFor:h,className:"m-0 "+(l||"text-slate-800 dark:text-white/80")+(i||o?" text-base":" text-lg"),children:r})]},n+1)}))})}},44114:function(e,t,n){n.d(t,{Z:function(){return l}});var a=n(85893),s=n(8971);n(67294);function l(e){var t=e.selectOptions,n=e.name,l=e.onChangeHandler,c=e.required,i=e.setAlert,o=e.title,r=e.defaultValue,d=e.info,u=e.id;try{var f=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),n=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||n.classList.contains("hidden")?e.type.match(/leave/i)&&n.classList.contains("hidden")||(t&&n.classList.contains("hidden")?n.classList.remove("hidden"):n.classList.add("hidden")):n.classList.add("hidden")}};return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[o&&(0,a.jsxs)("label",{htmlFor:n,children:[o,c?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:n,id:u||n,className:"w-full bg-white",required:c,onChange:function(e){i&&i(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:r||void 0,children:t.map((function(e,t){var n=e.payload,s=e.title;return(0,a.jsx)("option",{value:n,selected:!!e.default,children:s},t+1)}))}),(0,a.jsx)(s.Z,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:f,onMouseLeave:f,onClick:f,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:d})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(h){return console.log("ERROR in FormSelect =>",h),(0,a.jsx)("div",{children:"Form Select Error"})}}},29815:function(e,t,n){n.d(t,{Z:function(){return c}});var a=n(20943);var s=n(13375);var l=n(91566);function c(e){return function(e){if(Array.isArray(e))return(0,a.Z)(e)}(e)||(0,s.Z)(e)||(0,l.Z)(e)||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.")}()}},19169:function(e){e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6156-05a27ce6a6fd29e7.js b/dsql-app/.local_dist/static/chunks/6156-05a27ce6a6fd29e7.js new file mode 100644 index 0000000..807783a --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6156-05a27ce6a6fd29e7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6156],{46156:(e,l,t)=>{t.d(l,{A:()=>F});var a=t(74848),i=t(96540),d=t(36517);function s(e){let{tableFields:l,setTableFields:t,setRefresh:a,setPageRefresh:i,refreshFieldsListRef:d}=e,s=l.findIndex(e=>"date_created"===e.fieldName);l.splice(s,0,{newTempField:!0}),t(l),(null==d?void 0:d.current)&&d.current(e=>e+1)}var n=t(66604),r=t(620),o=t(58825),c=t(2543),u=t.n(c);function m(e){let{tableFields:l,setTableFields:t,refreshFieldsListRef:a,order:i,field:d,e:s}=e,n=u().cloneDeep(l),r=n.findIndex(e=>e.fieldName===d.fieldName);if(r<0)return;let o=n[r];if("up"===i&&r&&r<=1){console.log("Min Reached =>",r);return}if("down"===i&&r&&r>=n.length-7){console.log("Max Reached =>",r);return}try{var c,m;let e;let l=s.target.closest(".table-field-wrapper"),t=l.previousElementSibling,a=l.nextElementSibling,d=window.DSQL.Flip,n=d.getState(l);"up"===i?(e=d.getState(t),null===(c=l.parentNode)||void 0===c||c.insertBefore(l,t)):(null==a?void 0:a.nextElementSibling)&&(e=d.getState(a),null===(m=l.parentNode)||void 0===m||m.insertBefore(l,a.nextElementSibling)),d.from(n,{duration:.3,ease:"power1.inOut"}),d.from(e,{duration:.3,ease:"power1.inOut"})}catch(e){console.log("Error =>",e.message)}if(!r){console.log("No target Field Index =>",r);return}n.splice(r,1),"up"===i?n.splice(r-1,0,o):n.splice(r+1,0,o),setTimeout(()=>{t([...n]),a.current&&a.current(e=>e+1)},500)}var p=t(35160),x=t(94996),h=t(23698);function v(e){var l,t,d,s,n,r,c,u,m,p,v;let{field:f,setTargetField:g,fieldIndex:w,tableFields:b,setTableFields:y,refreshFieldsListRef:j,database:N,currentTable:_,user:T,isDelegated:F,setLoading:A}=e,[C,k]=i.useState(f),[S,D]=i.useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(S?" shadow-2xl shadow-slate-700/40 relative z-50":""),children:[(0,a.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(S?" rounded-t":" rounded")+((null===(l=C.fieldName)||void 0===l?void 0:l.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,a.jsx)("span",{className:"font-bold"+((null===(t=C.fieldName)||void 0===t?void 0:t.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:C.fieldName}),(0,a.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:C.dataType}),(null==C?void 0:C.foreignKey)&&(0,a.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,a.jsx)("span",{children:"Foreign Key: "}),(0,a.jsxs)("span",{children:[C.foreignKey.destinationTableName," ("," ",(0,a.jsx)("b",{children:C.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(d=C.fieldName)||void 0===d?void 0:d.match(o.A))&&(0,a.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(!F&&!(null===(s=C.fieldName)||void 0===s?void 0:s.match(o.A))&&(null===(n=C.dataType)||void 0===n?void 0:n.match(/INT/)))||C.foreignKey||(null==N?void 0:null===(c=N.active_clone)||void 0===c?void 0:null===(r=c.toString())||void 0===r?void 0:r.match(/1/))?!(!F&&!(null===(u=C.fieldName)||void 0===u?void 0:u.match(o.A))&&(null===(m=C.dataType)||void 0===m?void 0:m.match(/INT/)))||(null==N?void 0:null===(v=N.active_clone)||void 0===v?void 0:null===(p=v.toString())||void 0===p?void 0:p.match(/1/))?(0,a.jsx)(i.Fragment,{}):(0,a.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,a.jsx)("div",{className:"button py-1 text-xs light-gray",onClick:e=>{if(window.confirm("Delete this foreign Key?")){var l,t;delete f.foreignKey,A(!0),(0,h.A)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:_,database:N.db_full_name,dbSlug:N.db_slug,delegated:null!==(t=window.location)&&void 0!==t&&null!==(l=t.search)&&void 0!==l&&!!l.match(/delegated=true/i)}},!0).then(e=>{e.success?window.location.reload():window.alert("Update Failed, Please Try again.")})}},style:{color:"var(--slate-500)"},children:"Delete Foreign Key"})}):(0,a.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(0,a.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{S?D(!1):D(!0)},style:{color:"var(--slate-500)"},children:"Add Foreign Key"})})]}),S&&!F&&(0,a.jsx)("div",{className:"card col w-full -mt-5 pt-0 no-hover",children:(0,a.jsx)(x.A,{targetField:f,setFieldData:k,tableFields:b,setTableFields:y,database:N,currentTable:_,user:T,setActiveEdit:D,activeClonedTable:!0})})]})}var f=t(66051),g=t(39007);function w(e){let{fieldIndex:l,setTableFields:d,database:s,user:n,isNewField:r,setLiteralValue:o,tempFieldData:c,setTempFieldData:u,dataTypeValue:m,setDataTypeValue:p,dataType:x,setDataType:h,dataTypeDesc:v,setDataTypeDesc:w}=e,b=t(43431),y=i.useRef();i.useEffect(()=>{var e;y.current&&(y.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=y.current.querySelector("input"))||void 0===e||e.focus())},[]);let j=!!x.match(/uuid/i);return(0,a.jsxs)(i.Fragment,{children:[r&&(0,a.jsx)("span",{className:"absolute -top-4 text-sm bg-fuchsia-600 dark:bg-white text-white dark:text-fuchsia-800 px-3 py-1 rounded-full",children:"New Field"}),(0,a.jsxs)("div",{className:"gap-4 flex-wrap xl:flex-nowrap flex-col xl:flex-row items-stretch w-full xl:w-auto",children:[(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,a.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,a.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:async e=>{let l=e.target,t=l.value.toLowerCase().replace(/ /g,"_");l.value=t},required:!0})]}),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,a.jsxs)("div",{className:"items-start flex-wrap xl:flex-nowrap",children:[(0,a.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,a.jsxs)("div",{className:"dropdown-wrapper reversed text-sm w-full items-start gap-2",children:[(0,a.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,a.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,a.jsx)("span",{children:v})})]})]}),(0,a.jsxs)("div",{className:"w-full xl:w-auto",children:[(0,a.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl:w-auto",onChange:e=>{let l=e.target;h(l.value),l.childNodes.forEach(e=>{e.value===l.value&&w(e.dataset.desc),e.value===l.value&&e.dataset.literal&&o(e.dataset.literal)})},children:b.map((e,l)=>e.name.match(/VARCHAR/)?(0,a.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(m||200)+")"},l+1):(0,a.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},l+1))}),x.match(/VARCHAR/)&&(0,a.jsx)("input",{type:"number",defaultValue:m,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:e=>{p(e.target.value)}})]})]}),(null==x?void 0:x.match(/text/i))&&(0,a.jsx)(i.Fragment,{children:(0,a.jsx)(g.A,{targetField:c})}),!j&&(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,a.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,a.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",children:[(0,a.jsx)("option",{value:"No",children:"No"}),(0,a.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!j&&(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,a.jsx)("label",{htmlFor:"new_field_default_value",children:"Default Value (optional)"}),(0,a.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",placeholder:"Default Value"})]}),!j&&(0,a.jsx)(f.A,{database:s,setFieldData:u,targetField:c,user:n,fieldIndex:l})]}),(0,a.jsxs)("div",{className:"secondary mt-auto flex-wrap xl:flex-nowrap w-full xl:w-auto",children:[(0,a.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full sm:w-auto justify-center grow",children:"Add Field"}),(0,a.jsx)("div",{className:"button outlined-gray mt-auto py-2.5 w-full sm:w-auto justify-center grow",onClick:e=>{d(e=>e.filter((e,t)=>t!=l))},children:"Cancel"})]})]})}function b(e){let{fieldIndex:l,tableFields:d,setTableFields:s,refreshFieldsListRef:n,database:r,currentTable:o,user:c}=e;t(43431);let[u,m]=i.useState("VARCHAR"),[p,x]=i.useState("200"),[h,v]=i.useState("Varchar is simply letters and numbers within the range 0 - 255"),[f,g]=i.useState({}),b=i.useRef(),[y,j]=i.useState("");i.useEffect(()=>{var e;b.current&&(b.current.scrollIntoView({block:"center",behavior:"smooth"}),null===(e=b.current.querySelector("input"))||void 0===e||e.focus())},[]);let N=!!u.match(/uuid/i);return(0,a.jsx)("div",{className:"w-full mt-1 flex-wrap relative z-0 hover:z-20",ref:b,children:(0,a.jsx)("form",{className:"flex flex-row items-start gap-4 w-full justify-between border border-solid p-4 pt-6 border-slate-400 rounded focus:shadow-lg shadow-slate-400/40 dark:shadow-black/30 relative flex-wrap xl:flex-nowrap shadow-xl",onSubmit:e=>{var t,a,i,d,r,o;e.preventDefault();let c=f.foreignKey;c&&!c.destinationTableName&&delete f.foreignKey;let u=e.target,m=u.new_field_name.value,x=u.new_field_data_type.value,h=null===(t=u.new_field_required)||void 0===t?void 0:t.value,v=null===(a=u.new_field_default_value)||void 0===a?void 0:a.value,g=null===(i=u.encryption_field)||void 0===i?void 0:i.value,w=null===(d=u.rich_text_option)||void 0===d?void 0:d.value,b=u.foreign_key_field,j=u.foreign_key_destination_table_name,_=u.foreign_key_destination_table_column_name;null==b||b.value;let T={...f,fieldName:m,dataType:(null==f?void 0:f.dataType)&&(null==f?void 0:f.foreignKey)?f.dataType:(null==x?void 0:x.match(/VARCHAR/))?"".concat(x,"(").concat(p,")"):x};(null==h?void 0:h.match(/yes/i))?T.notNullValue=!0:(null==v?void 0:v.match(/./))||(T.nullValue=!0),(null==v?void 0:v.match(/./))&&(T.defaultValue=v),(null==g?void 0:g.match(/yes/i))&&(T.encrypted=!0),(null==_?void 0:null===(r=_.value)||void 0===r?void 0:r.match(/./i))&&!(null==_?void 0:null===(o=_.value)||void 0===o?void 0:o.match(/^--$/i))&&(T.dataType=_.dataset.dataType,T.foreignKey={foreignKeyName:_.dataset.foreignKeyName,destinationTableName:j.dataset.destinationTableName,destinationTableColumnName:_.dataset.destinationTableColumnName,cascadeDelete:!0}),(null==w?void 0:w.match(/yes/i))&&(T.richText=!0),N?(T.defaultValueLiteral=y,T.nullValue=!1):delete T.defaultValueLiteral,console.log("newFieldObject",T),function(e){let{fieldIndex:l,setTableFields:t,refreshFieldsListRef:a,payload:i}=e;t(e=>(e.splice(l,1,i),e)),(null==a?void 0:a.current)&&a.current(e=>e+1)}({fieldIndex:l,setTableFields:s,refreshFieldsListRef:n,payload:T})},children:(0,a.jsx)(w,{database:r,fieldIndex:l,isNewField:!0,literalValue:y,refreshFieldsListRef:n,setLiteralValue:j,setTableFields:s,user:c,currentTable:o,tableFields:d,tempFieldData:f,setTempFieldData:g,dataTypeValue:p,setDataTypeValue:x,dataType:u,setDataType:m,dataTypeDesc:h,setDataTypeDesc:v})})})}var y=t(60557),j=t(62027);function N(e){var l,t,d,s,n,r,c;let{field:u,setTargetField:x,fieldIndex:h,tableFields:v,setTableFields:f,refreshFieldsListRef:g,database:w,currentTable:b,confirmedDelegetedUser:N,user:_}=e,T=null==N?void 0:N.delegated,F=null==N?void 0:null===(l=N.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i);null==N||null===(t=N.priviledges)||void 0===t||t.match(/Delete Tables/i),null==N||null===(d=N.priviledges)||void 0===d||d.match(/Create Tables/i);let{active_clone:A,active_clone_parent_db:C,remote_connected:k}=w,[S,D]=i.useState(u),[E,K]=i.useState(!1);return(0,a.jsxs)("div",{className:"flex-col w-full table-field-wrapper"+(E?" shadow-2xl shadow-slate-300/40 dark:shadow-black/30 relative z-50":""),children:[(0,a.jsxs)("div",{className:"card no-hover items-center w-full py-4"+(E?" rounded-t":" rounded")+((null===(s=S.fieldName)||void 0===s?void 0:s.match(o.A))?" text-slate-400 pointer-events-none border-slate-200 border":" light-gray"),children:[(0,a.jsx)("span",{className:"font-bold"+((null===(n=S.fieldName)||void 0===n?void 0:n.match(o.A))?" dark:text-slate-500":" dark:text-white"),children:S.fieldName}),(0,a.jsx)("span",{className:"text-xs py-1 px-2 bg-slate-100 dark:bg-slate-700 dark:text-slate-200 rounded ",children:S.dataType}),(null==S?void 0:S.foreignKey)&&(0,a.jsxs)("div",{className:"text-xs bg-primary text-white px-2 py-0.5 rounded-full",children:[(0,a.jsx)("span",{children:"Foreign Key: "}),(0,a.jsxs)("span",{children:[S.foreignKey.destinationTableName," ("," ",(0,a.jsx)("b",{children:S.foreignKey.destinationTableColumnName})," ",")"]})]}),(null===(r=S.fieldName)||void 0===r?void 0:r.match(o.A))&&(0,a.jsx)("span",{className:"text-slate-300 text-sm font-semibold ml-0 md:ml-auto",children:"Default Field"}),!(null===(c=S.fieldName)||void 0===c?void 0:c.match(o.A))&&!C&&!k&&(0,a.jsx)("div",{className:"ml-0 md:ml-auto flex-wrap",children:(!T||T&&F)&&(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)(y.A,{children:[(0,a.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{E?K(!1):K(!0)},style:{color:"var(--slate-500)"},children:"Edit"}),!C&&!k&&(0,a.jsx)("div",{className:"button outlined py-1 text-xs gray",onClick:e=>{window.confirm('Delete "'.concat(u.fieldName,'"?'))&&f(e=>e.filter((e,l)=>l!=h))},style:{color:"var(--slate-500)"},children:"Delete"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full rotate-180",onClick:e=>{m({tableFields:v,setTableFields:f,refreshFieldsListRef:g,order:"up",field:u,e})},children:(0,a.jsx)(j.A,{size:20})}),(0,a.jsx)("div",{className:"button outlined gray p-2 w-8 h-8 rounded-full",onClick:e=>{m({tableFields:v,setTableFields:f,refreshFieldsListRef:g,order:"down",field:u,e})},children:(0,a.jsx)(j.A,{size:20})})]})]})})]}),E&&(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(p.A,{fieldIndex:h,tableFields:v,setTableFields:f,refreshFieldsListRef:g,targetField:u,setActiveEdit:K,database:w,currentTable:b,user:_})})]})}var _=t(41263);let T=1;function F(e){var l,o,c,u;let{user:m,tableFields:p,setTableFields:x,setTargetField:h,refreshFieldsListRef:f,updateTable:g,updateTableAfterFieldsUpdateFunction:w,collapsed:y,database:j,table:F,confirmedDelegetedUser:A,query:C}=e;(null==F?void 0:F.childTable)&&(null===(l=F.childTableDbFullName)||void 0===l||l.replace(new RegExp(/datasquirel_user_\d+_/),""));let k=null==A?void 0:A.delegated,S=null==A?void 0:null===(o=A.priviledges)||void 0===o?void 0:o.match(/Edit Tables/i);null==A||null===(c=A.priviledges)||void 0===c||c.match(/Delete Tables/i),null==A||null===(u=A.priviledges)||void 0===u||u.match(/Create Tables/i);let{active_clone:D,active_clone_parent_db:E,remote_connected:K}=j,[R,V]=i.useState(0);f.current=V;let[I,L]=i.useState(!1),[q,$]=i.useState(y||!1);return(i.useEffect(()=>{let{Flip:e}=t(28383);d.Ay.registerPlugin(e);let l=window.DSQL;l&&(l.Flip=e)},[]),k&&!S)?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("section",{className:"paper green",children:[I&&(0,a.jsx)(r.A,{}),(null==F?void 0:F.childTable)?(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,_.A)({paradigm:"JavaScript",table:F,query:C,user:m});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,a.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,a.jsx)("div",{className:"button outlined light-gray",onClick:e=>{let l=(0,_.A)({paradigm:"TypeScript",table:F,query:C,user:m});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,a.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,a.jsx)("div",{className:"flex-col w-full",style:q?{maxHeight:"200px"}:{},children:p&&p[0]&&p.map((e,l)=>(T++,(0,a.jsx)(v,{field:e,fieldIndex:l,setTargetField:h,setTableFields:x,refreshFieldsListRef:f,tableFields:p,database:j,setLoading:L,currentTable:F,user:m,isDelegated:k},T)))}),y&&(0,a.jsx)(n.A,{collapse:q||!1,setCollapse:$})]}):(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,a.jsx)("h2",{className:"text-xl m-0 text-left title",children:"Fields"}),(0,a.jsxs)("div",{children:[(!k||k&&S)&&!E&&!K&&(0,a.jsxs)("div",{className:"button secondary outlined",onClick:e=>{q&&$(!1),s({setTableFields:x,tableFields:p,setRefresh:V,refreshFieldsListRef:f})},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New Field"})]}),(0,a.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,_.A)({paradigm:"JavaScript",table:F,query:C,user:m});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("JavaScript Type Definition Copied")})},children:(0,a.jsx)("span",{children:"Copy TypeDef (JS)"})}),(0,a.jsx)("div",{className:"button outlined light-gray",onClick:e=>{if(!F)return;let l=(0,_.A)({paradigm:"TypeScript",table:F,query:C,user:m});l&&navigator.clipboard.writeText(l).then(()=>{window.alert("TypeScript Type Definition Copied")})},children:(0,a.jsx)("span",{children:"Copy TypeDef (TS)"})})]})]}),(0,a.jsxs)("div",{className:"flex-col w-full",style:q?{maxHeight:"200px"}:{},children:[p&&p[0]&&p.map((e,l)=>(T++,e.newTempField)?(0,a.jsx)(b,{fieldIndex:l,tableFields:p,setTableFields:x,refreshFieldsListRef:f,database:j,currentTable:F,user:m},T):(0,a.jsx)(N,{field:e,fieldIndex:l,setTargetField:h,setTableFields:x,refreshFieldsListRef:f,tableFields:p,database:j,currentTable:F,confirmedDelegetedUser:A,user:m},T)),(!k||k&&S)&&!E&&!K&&(0,a.jsxs)(i.Fragment,{children:[(0,a.jsxs)("div",{className:"button outlined gray w-full more-padding",style:{borderStyle:"dashed"},onClick:e=>{q&&$(!1),s({setTableFields:x,tableFields:p,setRefresh:V,refreshFieldsListRef:f})},children:[(0,a.jsx)("span",{className:"symbol",children:"+"}),(0,a.jsx)("span",{children:"Add New Field"})]}),g&&(0,a.jsx)("button",{className:"secondary w-full py-3",onClick:e=>{L(!0),w&&w(L)},children:"Update Table Fields"})]})]}),y&&(0,a.jsx)(n.A,{collapse:q,setCollapse:$})]})]})}},41263:(e,l,t)=>{t.d(l,{A:()=>i});var a=t(58825);function i(e){let{paradigm:l,table:t,query:i,user:d}=e,s="";try{let e="DSQL_".concat(i.single,"_").concat(i.single_table).toUpperCase(),d=t.fields;function n(e){return(null==e?void 0:e.match(/int/i))?"number":(null==e||e.match(/text|varchar|timestamp/i),"string")}let r=[],o=[];r.push("type ".concat(e," = {")),o.push("/**\n * @typedef {object} ".concat(e)),d.forEach(e=>{var l;let t=e.nullValue?"?":(null===(l=e.fieldName)||void 0===l?void 0:l.match(a.A))?"?":"";r.push(" ".concat(e.fieldName).concat(t,": ").concat(n(e.dataType||""),";")),o.push(" * @property {".concat(n(e.dataType||"")).concat(t,"} ").concat(e.fieldName))}),r.push("}"),o.push(" */"),(null==l?void 0:l.match(/javascript/i))&&(s=o.join("\n")),(null==l?void 0:l.match(/typescript/i))&&(s=r.join("\n"))}catch(e){console.log(e.message),s=null}return s}},66604:(e,l,t)=>{t.d(l,{A:()=>i});var a=t(74848);function i(e){let{collapse:l,setCollapse:t}=e;return(0,a.jsxs)("div",{className:"collapse-block"+(l?" -mt-16 -mb-6 pt-10":" mt-0 mb-0 p-0"),onClick:e=>{l?t(!1):t(!0)},children:[(0,a.jsx)("span",{children:l?"Expand":"Collapse"}),(0,a.jsx)("img",{src:"/images/down-arrow-dark.svg",alt:"Down Arrow",width:16,className:"dark:hidden opacity-30 "+(l?"":"rotate-180")}),(0,a.jsx)("img",{src:"/images/down-arrow-white.svg",alt:"Down Arrow",width:16,className:"opacity-30 hidden dark:flex "+(l?"":"rotate-180")})]})}t(96540)},58825:(e,l,t)=>{t.d(l,{A:()=>a});let a=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6460-4b0051e1ff7a0e1a.js b/dsql-app/.local_dist/static/chunks/6460-4b0051e1ff7a0e1a.js new file mode 100644 index 0000000..121f68a --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6460-4b0051e1ff7a0e1a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6460],{76919:(e,t,l)=>{l.d(t,{A:()=>c});var a=l(74848),s=l(96540),n=l(620),i=l(95896),d=l(23698);function r(e){let{paradigm:t,payload:l,setLoading:a,table:s,database:n}=e;a(!0),(0,d.A)("/api/exportTableData",{method:"POST",body:{paradigm:t,dbName:n.db_slug,tableName:s.tableName,payload:l}},!0).then(e=>{if(e.success){if("export"==t){let t=new Blob([JSON.stringify(e.data||[],null,4)],{type:"application/json"}),l=URL.createObjectURL(t),a=document.createElement("a");a.href=l,a.style.display="none",a.download="".concat(n.db_slug,"-").concat(s.tableName,"-").concat(Date.now(),".json"),document.body.appendChild(a),a.click(),document.body.removeChild(a)}else"import"==t&&(window.alert("Data Imported Successfully"),window.location.reload())}else e.msg&&window.alert(e.msg)}).catch(e=>{console.log(e)}).finally(()=>{a(!1)})}function c(e){let{database:t,table:l}=e,[d,c]=s.useState(!1),[o,u]=s.useState(!0),m=s.useRef(null);return s.useRef(null),(0,a.jsxs)("div",{className:"relative",children:[d&&(0,a.jsx)(n.A,{width:"15px"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{r({paradigm:"export",database:t,setLoading:c,table:l})},children:"Export"}),(0,a.jsx)("div",{className:"button outlined gray",onClick:e=>{var a,s;null===(a=m.current)||void 0===a||a.addEventListener("change",e=>{var a;c(!0);let s=e.target;if(!(null===(a=s.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected"),c(!1);return}(0,i.A)({inputFile:s.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))?r({paradigm:"import",payload:e.fileBase64,database:t,setLoading:c,table:l}):c(!1),u(!1),setTimeout(()=>{u(!0)},200)})}),null===(s=m.current)||void 0===s||s.click()},children:"Import"}),o&&(0,a.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:m})]})}},93644:(e,t,l)=>{l.d(t,{A:()=>r});var a=l(74848),s=l(96540),n=l(5143),i=l(23238),d=l(31942);function r(e){let{database:t,table:l,dbSchemaData:r,query:c}=e,[o,u]=s.useState(!1);return(0,a.jsx)(n.Popover,{isOpen:o,onClickOutside:()=>u(!1),positions:["bottom"],align:"end",content:(0,a.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,a.jsx)(d.A,{database:t,table:l,setOpenPopover:u,dbSchemaData:r,query:c}),(0,a.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,a.jsx)("button",{onClick:()=>{u(!o)},className:"outlined gray px-2 py-1.5",children:(0,a.jsx)(i.A,{})})})}},31942:(e,t,l)=>{l.d(t,{A:()=>m});var a=l(74848),s=l(60637),n=l(41301),i=l(620),d=l(44500),r=l(23698),c=l(2543),o=l.n(c),u=l(96540);function m(e){let{database:t,table:l,setOpenPopover:s,dbSchemaData:n,query:i}=e,[r,c]=u.useState(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:"ghost p-3 justify-start",onClick:()=>{c(!0),setTimeout(()=>{s&&s(!1)},200)},children:"Sync Data"}),(0,a.jsx)(d.A,{open:r,setOpen:c,children:(0,a.jsx)(p,{database:t,table:l,dbSchemaData:n,query:i})})]})}function p(e){let{database:t,table:l,query:d,dbSchemaData:c}=e,[m,p]=u.useState(c),[h,f]=u.useState("Push"),[x,b]=u.useState(null==m?void 0:m[0]),[v,g]=u.useState(null==x?void 0:x.tables),[j,N]=u.useState(null==v?void 0:v[0]),[y,w]=u.useState(!1),[T,S]=u.useState(!1);return u.useEffect(()=>{o().isEqual(null==l?void 0:l.fields,null==j?void 0:j.fields)?S(!0):S(!1)},[j,b]),u.useEffect(()=>{d.delegated&&(0,r.A)("/api/get-authorized-databases").then(e=>{e.success&&e.payload&&p(e.payload)})},[]),(0,a.jsxs)("div",{className:"stack gap-2 relative w-full",children:[y||!m&&(0,a.jsx)(i.A,{width:"20px"}),(0,a.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),T?(0,a.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,a.jsx)("b",{children:l.tableFullName})," ","schema"]}):(0,a.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,a.jsx)("b",{children:l.tableFullName})]}),m&&(0,a.jsxs)("form",{onSubmit:e=>{!function(e){var t,l,a;let{e:s,setLoading:n,database:i,table:d,query:c}=e;s.preventDefault(),n(!0);let o=s.target,u=null===(t=o.paradigm)||void 0===t?void 0:t.value,m=null===(l=o.database)||void 0===l?void 0:l.value,p=null===(a=o.table)||void 0===a?void 0:a.value,h={paradigm:u,src:{db:i.db_slug,table:d.tableName},dst:{db:m,table:p},delegated:c.delegated};if(!window.confirm("Pull"==u?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?")){setTimeout(()=>{n(!1)},1e3);return}(0,r.A)("/api/sync-table-data",{method:"POST",body:{...h}},!0).then(e=>{e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)}).finally(()=>{setTimeout(()=>{n(!1)},1e3)})}({e,database:t,setLoading:w,table:l,query:d})},className:"w-full stack gap-2 items-stretch",children:[(0,a.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,a.jsx)(s.A,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:e=>{f(e.target.value)}}),(0,a.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==h?(0,a.jsxs)(a.Fragment,{children:["Sync data from the current table(",(0,a.jsx)("b",{children:l.tableFullName}),") to the selected table below"]}):(0,a.jsxs)(a.Fragment,{children:["Sync data from the selected table below to the current table(",(0,a.jsx)("b",{children:l.tableFullName}),")"]})})]}),(0,a.jsx)(n.A,{selectOptions:m.filter(e=>e.dbFullName!==t.db_full_name).map(e=>({title:e.dbName,payload:e.dbSlug})),name:"database",onChangeHandler:e=>{let t=m.find(t=>t.dbSlug==e.target.value);if(t){var l;b(t),g(t.tables),N(null===(l=t.tables)||void 0===l?void 0:l[0])}}}),(0,a.jsx)(n.A,{selectOptions:v.map(e=>({title:e.tableFullName,payload:e.tableName})),name:"table",onChangeHandler:e=>{let t=v.find(t=>t.tableName===e.target.value);t&&N(t)}}),(0,a.jsx)("button",{className:T?"":"disabled",children:"Sync"})]})]})}},55098:(e,t,l)=>{let a;l.d(t,{A:()=>x});var s=l(74848),n=l(96540),i=l(47111),d=l(31041),r=l(41301),c=l(25414),o=l(23698),u=l(620);function m(e){var t,i,m,p;let{data:h}=e,{table:f,entries:x,activeEntries:b,setActiveEntries:v,confirmedDelegetedUser:g,database:j,targetField:N,searchTerm:y}=n.useContext(d.TableEntriesContext);l(43431),null==g||g.delegated,null==g||null===(t=g.priviledges)||void 0===t||t.match(/Edit Tables/i),null==g||null===(i=g.priviledges)||void 0===i||i.match(/Delete Tables/i),null==g||null===(m=g.priviledges)||void 0===m||m.match(/Create Tables/i);let[w,T]=n.useState(!1),S=n.useRef();n.useEffect(()=>{S.current&&S.current.focus()},[]);let[E,A]=n.useState(null);function _(e){var t,l;if(T(!0),b&&v(null),!(null==e?void 0:e.toString().match(/./))){setTimeout(()=>{v&&v(x||[]),T(!1)},500);return}window.clearTimeout(a);let s=null==f?void 0:f.fields.filter(e=>e.fieldName===(null==N?void 0:N.current)),n=s&&s[0]&&(null===(l=s[0].dataType)||void 0===l?void 0:l.match(/int/i))||(null==N?void 0:null===(t=N.current)||void 0===t?void 0:t.match(/^id$/))?"equal":"like";a=setTimeout(()=>{T(!1),(0,o.A)("/api/queryEntriesSearchTerm?db=".concat(null==j?void 0:j.db_full_name,"&table=").concat(null==f?void 0:f.tableName,"&field=").concat(null==N?void 0:N.current,"&term=").concat(e,"&operator=").concat(n)).then(e=>{"number"==typeof e.count&&A(e.count),e.success&&v&&v(e.result),T(!1)})},500)}return(0,s.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),(null==y?void 0:y.current)&&_(y.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,s.jsx)("div",{className:"max-w-xs",children:(0,s.jsx)(r.A,{required:!0,selectOptions:f?f.fields.map(e=>({title:e.fieldName||"",payload:e.fieldName||""})):[],name:"database_tables",onChangeHandler:e=>{N&&(N.current=e.target.value)},title:"Select Field",defaultValue:null==N?void 0:N.current,id:"entries-search-field-select"})}),(0,s.jsx)("div",{className:"grow",children:(0,s.jsx)(c.A,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:e=>{var t;let l=e.target;(null===(t=l.value)||void 0===t?void 0:t.match(/./))&&y?y.current=l.value:y&&(y.current=null),_(l.value)},elementRef:S,id:"entries-search-input"})}),w&&(0,s.jsx)("div",{className:"relative items-center justify-center",children:(0,s.jsx)("div",{className:"relative mt-5 w-6",children:(0,s.jsx)(u.A,{width:"20px"})})})]}),(null==y?void 0:null===(p=y.current)||void 0===p?void 0:p.match(/./))&&(0,s.jsx)("div",{className:"py-4",children:(0,s.jsxs)("span",{className:"text-lg",children:["number"==typeof E?E>0?(0,s.jsxs)("b",{children:[E," "]}):(0,s.jsx)(s.Fragment,{children:"No "}):"... ","Search result",E&&1!==E?"s":""," for"," ",(0,s.jsxs)("b",{children:['"',y.current,'"']})]})})]})}var p=l(35381),h=l(76919),f=l(93644);function x(e){var t,l,a,d,r;let{user:c,entries:o,database:x,table:b,setTargetEntry:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,title:w,confirmedDelegetedUser:T,query:S,search:E,entriesCount:A}=e;null==T||T.delegated,null==T||null===(t=T.priviledges)||void 0===t||t.match(/Edit Tables/i),null==T||null===(l=T.priviledges)||void 0===l||l.match(/Delete Tables/i),null==T||null===(a=T.priviledges)||void 0===a||a.match(/Create Tables/i),null==T||null===(d=T.priviledges)||void 0===d||d.match(/Edit Entries/i),null==T||null===(r=T.priviledges)||void 0===r||r.match(/Delete Entries/i);let{active_clone:_,active_clone_parent_db:C,remote_connected:F}=x;return(0,s.jsx)(n.Fragment,{children:(0,s.jsxs)("section",{className:"paper gray gray-bg",children:[w&&(0,s.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:w}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("a",{className:"button flex gap-2 items-center",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(h.A,{database:x,table:b}),(0,s.jsx)(f.A,{database:x,table:b,dbSchemaData:g,query:S})]})]}),E&&(0,s.jsx)(m,{}),(0,s.jsxs)("div",{className:"w-full flex-col gap-6",children:[(null==o?void 0:o[0])&&o.map(e=>(0,s.jsx)(n.Fragment,{children:(0,s.jsx)(i.A,{user:c,database:x,table:b,dbSchemaData:g,richTextEditors:j,dataTypes:y,entry:e,query:S,confirmedDelegetedUser:T,jsonTextEditors:N})},e.id)),!o&&(0,s.jsx)("div",{className:"w-full h-[300px]",children:(0,s.jsx)(u.A,{position:"relative"})}),o&&!(null==o?void 0:o[0])&&(0,s.jsxs)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,s.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,s.jsx)(p.A,{className:"opacity-20 my-4",sx:{fontSize:80}}),(0,s.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),A&&A>10?(0,s.jsx)("a",{href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.tableName,"/entries"),className:"button outlined gray w-full -mb-4",children:(0,s.jsx)("span",{children:"See All Entries"})}):null,(null==o?void 0:o[0])&&w&&(0,s.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:"/admin/".concat(null==c?void 0:c.id,"/databases/").concat(x.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]})]})]})})}l(31942)},47111:(e,t,l)=>{l.d(t,{A:()=>b});var a=l(74848),s=l(96540),n=l(58825),i=l(23698),d=l(17531),r=l(66604),c=l(620),o=l(52507),u=l(2543),m=l.n(u),p=l(41263),h=l(23238),f=l(5143);function x(e){let{user:t,table:l,entry:n,url:i,query:d}=e,[r,c]=s.useState(!1),o=s.useRef(null);return(0,a.jsx)("div",{className:"relative z-[1000]",children:(0,a.jsx)(f.Popover,{isOpen:r,onClickOutside:()=>c(!1),containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,a.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,a.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(n)).then(()=>{window.alert("Post Copied"),c(!1)})},children:"Copy Object"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,p.A)({paradigm:"JavaScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("JavaScript Type Definition Copied"),c(!1)})},children:"Copy JS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("button",{className:"plain-text justify-start py-3",onClick:()=>{let e=(0,p.A)({paradigm:"TypeScript",table:l,query:d,user:t});navigator.clipboard.writeText(e||"").then(()=>{window.alert("TypeScript Type Definition Copied"),c(!1)})},children:"Copy TS Type Definition"}),(0,a.jsx)("hr",{className:"m-0"}),(0,a.jsx)("a",{href:i,className:"button plain-text justify-start py-3",children:(0,a.jsx)("span",{children:"View Entry"})})]})}),children:(0,a.jsx)("button",{onClick:()=>{c(!r)},ref:o,className:"ghost p-2",children:(0,a.jsx)(h.A,{})})})})}function b(e){var t,l,u,p,h;let{user:f,database:b,table:v,dbSchemaData:g,richTextEditors:j,jsonTextEditors:N,dataTypes:y,entry:w,entryPage:T,confirmedDelegetedUser:S,query:E}=e,A=v.fields.filter(e=>e.fieldName&&!e.fieldName.match(n.A)),_=v.fields.find(e=>"uuid"===e.fieldName),C=null==S?void 0:S.delegated;null==S||null===(t=S.priviledges)||void 0===t||t.match(/Edit Tables/i),null==S||null===(l=S.priviledges)||void 0===l||l.match(/Delete Tables/i),null==S||null===(u=S.priviledges)||void 0===u||u.match(/Create Tables/i),null==S||null===(p=S.priviledges)||void 0===p||p.match(/Edit Entries/i);let F=null==S?void 0:null===(h=S.priviledges)||void 0===h?void 0:h.match(/Delete Entries/i);_&&A.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),A.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),A.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),A.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),A.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});let[k,D]=s.useState(!1),[R,I]=s.useState(!0),[O,P]=s.useState(w),[U,q]=s.useState(!1);s.useRef(null);let L=s.useRef([]),[H,B]=s.useState("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id));s.useEffect(()=>{(null==S?void 0:S.dbUserId)&&Number(f.id)!==Number(S.dbUserId)&&B("/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/").concat(O.id)+window.location.search)},[]);let z="".concat(b.db_slug,"-").concat(v.tableName,"-").concat(O.id,"-submit-button");return(0,a.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,a.jsx)("a",{href:H,onClick:e=>{let t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,a.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:e=>{let t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(H,"__blank"):window.location.href=H)},children:[(0,a.jsxs)("span",{children:["Entry #",O.id]}),(0,a.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!C||C&&F)&&(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(k?" pointer-events-none opacity-40":""),onClick:e=>{window.confirm("Delete Entry #".concat(O.id,"?"))&&(D(!0),(0,i.A)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:b.db_full_name,tableName:v.tableName,entryId:O.id,dbSlug:b.db_slug,dbId:b.id,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,d.A)().then(()=>{window.location.reload()}):(window.alert(e.msg),setTimeout(()=>{D(!1)},500))}))},children:"Delete Entry"}),!T&&(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:e=>{R?I(!1):I(!0)},children:R?(0,a.jsx)("span",{children:"Expand"}):(0,a.jsx)("span",{children:"Collapse"})})]}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)("div",{className:"button ghost px-0",onClick:e=>{let t=m().cloneDeep(w);delete t.date_created,delete t.date_created_code,delete t.date_created_timestamp,delete t.date_updated,delete t.date_updated_code,delete t.date_updated_timestamp,delete t.id,delete t.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(t)),window.location.href="/admin/".concat(null==f?void 0:f.id,"/databases/").concat(b.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry?duplicate=true&id=").concat(w.id)},children:(0,a.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,a.jsx)("span",{className:"opacity-20",children:"|"}),(0,a.jsx)(x,{table:v,user:f,entry:w,query:E,url:H})]})]})}),(0,a.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:T?{}:{maxHeight:R?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:e=>{e.preventDefault(),D(!0);let t={},l=e.target;A.forEach(e=>{var a;if(!e.fieldName||!l[e.fieldName])return;let s="string"!=typeof l[e.fieldName].value,n="number"!=typeof l[e.fieldName].value;(s||n||l[e.fieldName].value)&&(null!==(a=l[e.fieldName])&&void 0!==a&&a.dataset.default||(t[e.fieldName]=l[e.fieldName].value))}),L.current[0]&&L.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getContent())}),N.current[0]&&N.current.forEach(e=>{var l;(null==e?void 0:e.fieldName)&&(null==e?void 0:null===(l=e.ref)||void 0===l?void 0:l.current)&&(t[e.fieldName]=e.ref.current.getValue())}),(0,i.A)("/api/updateTableEntry",{method:"post",body:{dbFullName:b.db_full_name,dbSlug:b.db_slug,dbId:b.id,tableName:v.tableName,entryId:O.id,payload:t,tableSchema:v,delegated:null==E?void 0:E.delegated,confirmedDelegetedUser:S}},!0).then(e=>{e.success?(0,i.A)("/api/refreshEntry?table=".concat(v.tableName,"&db=").concat(b.db_full_name,"&id=").concat(O.id,"&schema=").concat(JSON.stringify(v))).then(e=>{e.success&&(P(e.entry),setTimeout(()=>{D(!1)},500))}):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout(()=>{D(!1)},500))})},onKeyUp:e=>{if(e.ctrlKey&&"Enter"==e.key){var t;window.confirm("Update this Form?")&&(null===(t=document.getElementById(z))||void 0===t||t.click())}},children:[k&&(0,a.jsx)(c.A,{}),(R&&!T?A.slice(0,3):A).map((e,t)=>{let l=y.filter(t=>{var l;return t.name===(null===(l=e.dataType)||void 0===l?void 0:l.replace(/\d|\(|\)/g,""))});return(0,a.jsx)(o.A,{fieldObject:e,dataTypeSchema:l[0],richTextEditors:j,currentRichTextEditorForms:L,entry:O,query:E,entryPage:T,confirmedDelegetedUser:S,jsonTextEditors:N,formButtonId:z},t+1)}),(0,a.jsx)("button",{type:"submit",className:k?" pointer-events-none opacity-40":"",id:z,children:"Update Entry"})]}),!T&&(0,a.jsx)(r.A,{collapse:R,setCollapse:I})]})}},60637:(e,t,l)=>{l.d(t,{A:()=>s});var a=l(74848);function s(e){let{radioValues:t,name:l,onChangeHandler:s,setAlert:n,flexRow:i,labelColor:d,baseText:r,smallText:c,className:o}=e;try{return(0,a.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(i?"":" flex-col ")+(o||""),children:t.map((e,t)=>{let{payload:i,title:o,jsx:u}=e,m=!1===i?i:i||o||null;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("input",{className:"m-0"+(r?" w-5 h-5":c?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:l,id:l+"_"+m,onChange:t=>{n&&n(null),e.onChangeHandler?e.onChangeHandler(t):s&&s(t)},value:"string"==typeof m?m:void 0}),u||(0,a.jsx)("label",{htmlFor:l+"_"+m,className:"text-lg m-0 "+(d||"text-slate-800")+(r?" text-base":c?" text-sm":" text-lg"),children:o})]},t+1)})})}catch(e){return console.log("ERROR in FormRadio =>",e),(0,a.jsx)("div",{children:"Form Radio Error"})}}l(96540)},41301:(e,t,l)=>{l.d(t,{A:()=>n});var a=l(74848),s=l(62027);function n(e){let{selectOptions:t,name:l,onChangeHandler:n,required:i,setAlert:d,title:r,defaultValue:c,info:o,id:u}=e;try{function m(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),l=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!l.classList.contains("hidden")){l.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&l.classList.contains("hidden"))){if(!t){l.classList.add("hidden");return}if(l.classList.contains("hidden")){l.classList.remove("hidden");return}l.classList.add("hidden")}}return(0,a.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[r&&(0,a.jsxs)("label",{htmlFor:l,children:[r,i?"":" (optional)"]}),(0,a.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,a.jsx)("select",{name:l,id:u||l,className:"w-full bg-white",required:i,onChange:e=>{d&&d(null),e.target.classList.remove("warning"),n&&n(e)},defaultValue:c||void 0,children:t.map((e,t)=>{let{payload:l,title:s}=e;return(0,a.jsx)("option",{value:l,selected:!!e.default,children:s},t+1)})}),(0,a.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,a.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:m,onMouseLeave:m,onClick:m,children:[(0,a.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,a.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,a.jsx)("span",{children:o})}),(0,a.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,a.jsx)("div",{children:"Form Select Error"})}}l(96540)},31041:(e,t,l)=>{let a;l.r(t),l.d(t,{TableEntriesContext:()=>w,__N_SSP:()=>y,default:()=>T});var s=l(74848),n=l(96540),i=l(51187),d=l(99862),r=l(4709),c=l(77121),o=l(55098),u=l(12378),m=l(98070),p=l(36836),h=l(620),f=l(23698);l(2543);var x=l(76919),b=l(93644);function v(e){var t,a,i;let{user:h,database:f,table:v,dbSchemaData:j,setTargetEntry:N,richTextEditors:y,jsonTextEditors:T,query:S,confirmedDelegetedUser:E,activeEntries:A,entriesCount:_,setActiveEntries:C}=n.useContext(w),F=l(43431);return null==E||E.delegated,null==E||null===(t=E.priviledges)||void 0===t||t.match(/Edit Tables/i),null==E||null===(a=E.priviledges)||void 0===a||a.match(/Delete Tables/i),null==E||null===(i=E.priviledges)||void 0===i||i.match(/Create Tables/i),(0,s.jsxs)(n.Fragment,{children:[(0,s.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,s.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)(d.A,{}),(0,s.jsx)("h1",{className:"text-3xl m-0",children:(0,s.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,s.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[v.tableFullName,(0,s.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,s.jsx)(c.A,{slugText:v.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,s.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==h?void 0:h.id,"/databases/").concat(f.db_slug,"/tables/").concat(v.tableName,"/entries/add-entry"),className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,s.jsx)("span",{className:"symbol",children:"+"}),(0,s.jsx)("span",{children:"Add New Entry"})]}),(0,s.jsx)(x.A,{database:f,table:v}),(0,s.jsx)(b.A,{database:f,table:v,dbSchemaData:j,query:S})]})]}),(0,s.jsx)(r.A,{confirmedDelegetedUser:null==S?void 0:S.delegated,user:h})]}),f.active_clone?(0,s.jsx)(u.A,{database:f,user:h}):(0,s.jsx)(s.Fragment,{}),f.remote_connected?(0,s.jsx)(p.p,{database:f}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(m.A,{table:v,database:f,user:h}),(0,s.jsx)(o.A,{user:h,entries:A,database:f,table:v,setTargetEntry:N,dbSchemaData:j,richTextEditors:y,dataTypes:F,query:S,confirmedDelegetedUser:E,jsonTextEditors:T,search:!0}),_>20&&(0,s.jsx)(g,{activeEntries:A,setActiveEntries:C,database:f,table:v,entriesCount:_})]})}function g(e){let{activeEntries:t,setActiveEntries:l,database:i,table:d,entriesCount:r}=e,c=n.useContext(w),o=n.useRef(),u=n.useRef(1),m=20*Number(u.current);return(n.useEffect(()=>{function e(e,t){var s;if(null==e?void 0:null===(s=e[0])||void 0===s?void 0:s.isIntersecting){let e=document.getElementById("entries-search-input"),t=document.getElementById("entries-search-field-select"),s={tableName:d.tableName,dbName:i.db_slug,page:u.current,tableSchema:d,search:e?e.value:void 0,searchField:t?t.value:void 0,delegated:!!c.query.delegated};(0,f.A)("/api/infiniteScroll",{method:"POST",body:s},!0).then(e=>{e.success&&(e.page&&(u.current=e.page),window.clearTimeout(a),a=setTimeout(()=>{var t,a;(null===(t=e.data)||void 0===t?void 0:t[0])&&(null===(a=e.data)||void 0===a?void 0:a[0])&&l(t=>t?[...t,...e.data]:null)},500))}).catch(e=>{console.log("Infinite Scroll Error =>",e)}).finally(()=>{console.log("Infinite Scroll Done. Page",u.current)})}}let t={rootMargin:"0px 0px 0px 0px"};setTimeout(()=>{requestAnimationFrame(()=>{let l=new IntersectionObserver(e,t);o.current&&l.observe(o.current)})},1e3)},[]),m>=r)?(0,s.jsx)(n.Fragment,{}):(0,s.jsx)("div",{className:"w-full flex items-center justify-center",ref:o,children:(0,s.jsx)(h.A,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var j=l(85897),N=l(55107),y=!0;let w=n.createContext({});function T(e){let{user:t,database:l,table:a,dbSchemaData:d,entries:r,query:c,confirmedDelegetedUser:o,entriesCount:u}=e,m="".concat(a.tableFullName," Table Entries | Datasquirel"),p=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("title",{children:m}),(0,s.jsx)("meta",{name:"description",content:"All Entries in table"})]}),[h,f]=n.useState(null),[x,b]=n.useState(r),g=n.useRef("title"),y=n.useRef(null),T=n.useRef([]),S=n.useRef([]);return(0,s.jsx)(i.A,{head:p,user:t,extraHeaderContent:(0,s.jsx)(j.A,{database:l,query:c,confirmedDelegetedUser:o,user:t}),children:(0,s.jsxs)(w.Provider,{value:{user:t,database:l,table:a,dbSchemaData:d,entries:r,targetEntry:h,setTargetEntry:f,richTextEditors:T,jsonTextEditors:S,query:c,confirmedDelegetedUser:o,activeEntries:x,setActiveEntries:b,targetField:g,searchTerm:y,entriesCount:u},children:[(0,s.jsx)(v,{}),(0,s.jsx)(N.A,{snug:!0})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6836-dd09a62c09c3ff54.js b/dsql-app/.local_dist/static/chunks/6836-dd09a62c09c3ff54.js new file mode 100644 index 0000000..fe66b9f --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6836-dd09a62c09c3ff54.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6836],{36836:(e,l,a)=>{a.d(l,{A:()=>c,p:()=>d});var s=a(74848),t=a(96540),n=a(98963),i=a(12378);function c(e){var l,a,c;let{database:o,tables:r,setTargetTable:u,confirmedDelegetedUser:m,query:p,user:h}=e;return null==m||m.delegated,null==m||null===(l=m.priviledges)||void 0===l||l.match(/Edit Tables/i),null==m||null===(a=m.priviledges)||void 0===a||a.match(/Delete Tables/i),null==m||null===(c=m.priviledges)||void 0===c||c.match(/Create Tables/i),(0,s.jsxs)(t.Fragment,{children:[o.active_clone&&h?(0,s.jsx)(i.A,{database:o,user:h}):(0,s.jsx)(s.Fragment,{}),o.remote_connected?(0,s.jsx)(d,{database:o}):(0,s.jsx)(s.Fragment,{}),(0,s.jsxs)("section",{className:"paper gray",children:[r&&r[0]?(0,s.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,s.jsx)("a",{href:"/admin/".concat(null==h?void 0:h.id,"/databases/").concat(o.db_slug,"/tables"),className:"button outlined gray small-text",children:"See All Tables"})]}):(0,s.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,s.jsx)("hr",{}),h?(0,s.jsx)(n.A,{database:o,tables:r,setTargetTable:u,confirmedDelegetedUser:m,query:p,user:h}):null]})]})}function d(e){var l;let{database:a}=e;return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:null===(l=a.remote_db_full_name)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,s.jsx)("a",{className:"font-bold text-inherit",href:a.remote_connection_host,target:"_blank",children:a.remote_connection_host})," ","Host"]})})}},98963:(e,l,a)=>{a.d(l,{A:()=>w});var s=a(74848),t=a(96540),n=a(77121),i=a(45165),c=a(60557),d=a(74897),o=a(18453);function r(e){var l,a,r,u;let{table:m,setTargetTable:p,database:h,confirmedDelegetedUser:x,query:f,icons:b,user:v}=e,j=null==x?void 0:x.delegated,g=null==x?void 0:null===(l=x.priviledges)||void 0===l?void 0:l.match(/Edit Tables/i),N=null==x?void 0:null===(a=x.priviledges)||void 0===a?void 0:a.match(/Delete Tables/i);null==x||null===(r=x.priviledges)||void 0===r||r.match(/Create Table/i);let{active_clone:y,active_clone_parent_db:w,remote_connected:_}=h;return(0,s.jsxs)("a",{href:"/admin/".concat(null==v?void 0:v.id,"/databases/").concat(h.db_slug,"/tables/").concat(m.table_slug),className:"card w-full items-center justify-between py-4"+((null==m?void 0:m.child_table)?" green":""),onClick:e=>{e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,s.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,s.jsx)(d.A,{fontSize:"small",className:"opacity-50",color:"action"}),(0,s.jsx)("span",{className:"title",style:{fontSize:"16px"},children:m.table_name}),(0,s.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(u=m.date_created)||void 0===u?void 0:u.substring(0,21)]})]}),(0,s.jsxs)("div",{className:"flex-wrap",children:[(0,s.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,s.jsxs)(c.A,{children:[(0,s.jsx)(n.A,{slugText:m.table_slug||"",outlined:!0}),(!j||j&&g)&&!w&&!_&&(0,s.jsx)(t.Fragment,{children:(0,s.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(h.db_slug,"/tables/").concat(m.table_slug,"/edit-table")},children:(0,s.jsx)("span",{children:"Edit"})})}),!w&&!m.child_table&&(0,s.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==v?void 0:v.id,"/databases/").concat(h.db_slug,"/tables/add-table?clone=true&clone_db=").concat(h.db_slug,"&clone_table=").concat(m.table_slug)},children:(0,s.jsx)("span",{children:"Clone"})}),(!j||j&&N)&&!w&&!_&&(0,s.jsx)("div",{className:"button outlined light-gray small-text",onClick:e=>{p(m),(0,i.PB)("delete-table-confirmation")},children:(0,s.jsx)("span",{children:"Delete"})})]})}),(0,s.jsx)(o.A,{className:"text-slate-600",size:20})]})]})}var u=a(85373),m=a(75238),p=a(53193),h=a(74315),x=a(61476),f=a(4532),b=a(23698),v=a(95896),j=a(620);function g(e){let{database:l}=e,a=t.useRef(),[n,i]=t.useState(!1);return(0,s.jsxs)(t.Fragment,{children:[(0,s.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:a}),(0,s.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var s,t;null===(s=a.current)||void 0===s||s.addEventListener("change",e=>{var a;let s=e.target;if(!(null===(a=s.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,v.A)({inputFile:s.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,b.A)("/api/importDatabase",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(t=a.current)||void 0===t||t.click()},children:[n&&(0,s.jsx)(j.A,{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,s.jsx)(f.A,{sx:{fontSize:80},className:"opacity-20"}),(0,s.jsx)("span",{className:"",children:"Import Database"})]})]})}var N=a(48144);function y(e){let{database:l}=e,a=t.useRef(),[n,i]=t.useState(!1);return(0,s.jsxs)(t.Fragment,{children:[(0,s.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:a}),(0,s.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:e=>{var s,t;null===(s=a.current)||void 0===s||s.addEventListener("change",e=>{var a;let s=e.target;if(!(null===(a=s.files)||void 0===a?void 0:a[0])){window.alert("No FIles selected");return}(0,v.A)({inputFile:s.files[0]}).then(e=>{window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(i(!0),(0,b.A)("/api/importDatabaseSchema",{method:"post",body:{database:l,fileBase64:e.fileBase64}},!0).then(e=>{e.success?window.location.reload():window.alert("Import Failed!"),setTimeout(()=>{i(!1)},1e3)}))})}),null===(t=a.current)||void 0===t||t.click()},children:[n&&(0,s.jsx)(j.A,{}),(0,s.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,s.jsx)(N.A,{sx:{fontSize:80},className:"opacity-20"}),(0,s.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}function w(e){var l,a,n;let{database:i,tables:c,setTargetTable:d,confirmedDelegetedUser:o,query:f,user:b}=e,v=null==o?void 0:o.delegated;null==o||null===(l=o.priviledges)||void 0===l||l.match(/Edit Tables/i),null==o||null===(a=o.priviledges)||void 0===a||a.match(/Delete Tables/i);let j=null==o?void 0:null===(n=o.priviledges)||void 0===n?void 0:n.match(/Create Table/i),N=(!c||!c[0])&&!v||(!c||!c[0])&&!!v&&!!j,{active_clone:w,active_clone_parent_db:_,remote_connected:A}=i;return(0,s.jsx)(t.Fragment,{children:(0,s.jsxs)("div",{className:"w-full flex-col",children:[c&&c[0]&&c.map(e=>(0,s.jsx)(r,{table:e,setTargetTable:d,database:i,confirmedDelegetedUser:o,query:f,icons:{edit:u.A,duplicate:m.A,delete:p.A,copy:h.A},user:b},e.id)),N&&!_&&!A&&(0,s.jsx)(t.Fragment,{children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,s.jsxs)("a",{href:"/admin/".concat(null==b?void 0:b.id,"/databases/").concat(i.db_slug,"/tables/add-table"),className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,s.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,s.jsx)(x.A,{sx:{fontSize:100},className:"opacity-20"}),(0,s.jsx)("span",{className:"",children:"Add Table"})]}),(0,s.jsx)(g,{database:i}),(0,s.jsx)(y,{database:i})]})}),(!c||!c[0])&&v&&(0,s.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}},12378:(e,l,a)=>{a.d(l,{A:()=>t});var s=a(74848);function t(e){var l;let{database:a,user:t}=e,n=null===(l=a.active_clone_parent_db)||void 0===l?void 0:l.replace(/datasquirel_user_\d+_/,""),i="/admin/".concat(null==t?void 0:t.id,"/databases/").concat(n);return(0,s.jsx)("div",{className:"info green",children:(0,s.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,s.jsx)("b",{children:(0,s.jsx)("a",{href:i,target:"_blank",className:"query-url",children:n})})]})})}a(96540)},45165:(e,l,a)=>{a.d(l,{Ay:()=>i,PB:()=>c,fs:()=>d});var s=a(74848),t=a(76897),n=a(96540);function i(e){let{children:l,title:a,data:i,fullPage:c,wrapperClasses:o,closePopupDispatch:r,wrapperStyle:u,noContainer:m}=e;return c?(0,s.jsxs)("div",{className:"popup-bg overflow-hidden "+(o||""),"data-popupid":a||null,style:u,children:[m?(0,s.jsx)(n.Fragment,{children:l}):(0,s.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:l}),(0,s.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{d(),r&&r()},children:(0,s.jsx)(t.A,{color:"white",size:20})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),r&&r()}})]}):(0,s.jsxs)("div",{className:"popup-bg","data-popupid":a||null,children:[m?(0,s.jsx)(n.Fragment,{children:l}):(0,s.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[l,(0,s.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{d(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})})]}),m&&(0,s.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{d(),r&&r()},children:(0,s.jsx)("span",{className:"font-normal",children:"✖"})}),(0,s.jsx)("div",{className:"popup-canceller",onClick:e=>{d(),r&&r()}})]})}function c(e,l){let a=document.querySelector("[data-popupid='".concat(e,"']"));a&&(a.style.display="flex",l&&l(a))}function d(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},95896:(e,l,a)=>{a.d(l,{A:()=>s});async function s(e){let{inputFile:l}=e;try{let e=l.name.replace(/\..*/,""),a=await new Promise((e,a)=>{var s=new FileReader;s.readAsDataURL(l),s.onload=function(){e(s.result)},s.onerror=function(e){console.log("Error: ",e.message)}});return{fileBase64:a.replace(/.*?base64,/,""),fileBase64Full:a,fileName:e,fileSize:l.size,fileType:l.type}}catch(e){return console.log("Image Processing Error! =>",e.message),{fileBase64:null,fileBase64Full:null,fileName:l.name,fileSize:null,fileType:null}}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/6946-fbee9d68cca6962a.js b/dsql-app/.local_dist/static/chunks/6946-fbee9d68cca6962a.js new file mode 100644 index 0000000..cc5b14f --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/6946-fbee9d68cca6962a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6946],{80443:(e,t,a)=>{a.d(t,{A:()=>o});var l=a(74848),s=a(96540),c=a(23698),i=a(45165),d=a(620),n=a(21458),r=a(41301);function o(e){var t,o;let{targetUser:u,user:h,setTargetUser:m}=e,p=a(49436);if(!u)return null;let[x,b]=s.useState(!0),[f,v]=s.useState([]),[y,g]=s.useState(!1),[k,j]=s.useState(u?null===(t=u.user_priviledge)||void 0===t?void 0:t.split("|"):[]),[A,w]=s.useState((null==u?void 0:u.database_access)?u.database_access.split("|"):[]),[_,N]=s.useState(u?null===(o=u.database_access)||void 0===o?void 0:o.split("|")[0]:null),[M,C]=s.useState([]),[E,S]=s.useState([]);return s.useEffect(()=>{(0,c.A)("/api/getUserDatabases").then(e=>{e.success&&v(e.databases)})},[]),s.useEffect(()=>{if(u){if(_)(0,c.A)("/api/getDatabaseTables?dbSlug=".concat(_,"&dbOwnerId=").concat(h.id,"&delegatedUserId=").concat(u.invited_user_id)).then(e=>{e.success&&(C(null),setTimeout(()=>{C([...e.tables])},200)),e.accessed_tables&&e.accessed_tables[0]&&!E[0]&&S(e.accessed_tables.map(e=>"".concat(e.database,"-").concat(e.table)))});else{var e;N((null===(e=u.database_access)||void 0===e?void 0:e.split("|")[0])||null)}}},[_]),s.useEffect(()=>{if(b(!0),u){var e,t;j((null===(e=u.user_priviledge)||void 0===e?void 0:e.split("|"))||[]),w((null===(t=u.database_access)||void 0===t?void 0:t.split("|"))||[])}setTimeout(()=>{b(!1)},500)},[u]),s.useEffect(()=>{N((null==A?void 0:A[0])||null)},[A]),(0,l.jsxs)(i.Ay,{title:"target-user-popup",closePopupDispatch:()=>{m(null)},children:[x&&(0,l.jsx)(d.A,{position:"relative"}),!x&&u&&(0,l.jsx)(s.Fragment,{children:(0,l.jsxs)("div",{className:"flex-col w-full items-start p-4",children:[(0,l.jsxs)("h4",{className:"m-0",children:["Edit ",u.first_name," ",u.last_name,"'s Access"]}),(0,l.jsx)("hr",{}),(0,l.jsxs)("form",{className:"flex flex-col items-start w-full",onSubmit:e=>{e.preventDefault(),b(!0),(0,c.A)("/api/updateAdminUserAccess",{method:"post",body:{userObject:u,user_priviledge:k.join("|"),database_access:null==A?void 0:A.join("|"),db_tables:A&&A[0]?E.join("|"):"",inv_user_id:u.invited_user_id}},!0).then(e=>{window.location.reload(),setTimeout(()=>{b(!1)},500)})},children:[(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Priviledges"}),(0,l.jsx)(n.A,{checkBoxValues:p.map(e=>({title:e,name:e,default:!!k.includes(e),onChangeHandler:t=>{k.includes(e)?j([...k.filter(t=>t!=e)]):j(t=>[...t,e])}})),smallText:!0,flexRow:!0}),(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Databases Access"}),(0,l.jsx)("span",{className:"button outlined gray px-4 py-1 -mt-1 mb-1.5",onClick:e=>{y?(f.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);(null==t?void 0:t.checked)&&t.click()},200)}),g(!1)):(f.forEach(e=>{setTimeout(()=>{let t=document.getElementById(e.db_slug);t.checked||t.click()},200)}),g(!0))},children:y?"Deselect All":"Select All"}),(0,l.jsx)(n.A,{checkBoxValues:f.map(e=>({title:e.db_name,name:e.db_slug,onChangeHandler:t=>{A.includes(e.db_slug)?w([...A.filter(t=>t!=e.db_slug)]):w(t=>[...t,e.db_slug]),A.length===f.length?g(!0):g(!1)},default:!!A.includes(e.db_slug)})),smallText:!0,flexRow:!0}),A&&A[0]&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)("hr",{className:"my-6"}),(0,l.jsx)("h3",{className:"m-0 text-lg font-semibold mb-2 text-slate-600",children:"Database Tables"}),(0,l.jsx)(r.A,{required:!0,selectOptions:f.filter(e=>A.includes(e.db_slug)).map(e=>({title:e.db_name,payload:e.db_slug})),name:"databases",onChangeHandler:e=>{N(e.target.value)}}),(0,l.jsx)("div",{className:"h-2"}),M&&M[0]&&(0,l.jsx)(n.A,{checkBoxValues:M.map(e=>({title:e.table_name,name:e.table_slug,onChangeHandler:t=>{E.includes("".concat(_,"-").concat(e.table_slug))?S([...E.filter(t=>t!="".concat(_,"-").concat(e.table_slug))]):S(t=>[...t,"".concat(_,"-").concat(e.table_slug)])},default:!!E.includes("".concat(_,"-").concat(e.table_slug))})),smallText:!0,flexRow:!0})]}),(0,l.jsx)("button",{className:"mt-4 w-full",children:"Update User Access"})]})]})})]})}},21458:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(74848);function s(e){let{name:t,checkBoxValues:a,setAlert:s,labelColor:c,flexRow:i,baseText:d,smallText:n,className:r}=e;return(0,l.jsx)("div",{className:"flex items-start gap-x-4"+(i?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(r||""),children:a.map((e,a)=>{let{payload:i,title:r,onChangeHandler:o,fixed:u,jsx:h}=e,m=e.name?"".concat(t,"-").concat(e.name):i?t+"-"+i:t;return(0,l.jsxs)("div",{className:"flex items-center"+(e.default&&u?" pointer-events-none":"")+(n?" gap-1 ":" gap-2 ")+((null==e?void 0:e.className)?e.className:""),children:[(0,l.jsx)("input",{className:"m-0"+(n?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:m,id:m,onChange:t=>{s&&s(null),o&&o(t,e)},value:i,style:{minWidth:"20px"}}),h||(0,l.jsx)("label",{htmlFor:m,className:"m-0 "+(c||"text-slate-800 dark:text-white/80")+(d||n?" text-base":" text-lg"),children:r})]},a+1)})})}a(96540)},41301:(e,t,a)=>{a.d(t,{A:()=>c});var l=a(74848),s=a(62027);function c(e){let{selectOptions:t,name:a,onChangeHandler:c,required:i,setAlert:d,title:n,defaultValue:r,info:o,id:u}=e;try{function h(e){if(e.type.match(/enter/i)&&window.innerWidth<1200)return;let t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");if(e.type.match(/leave/i)&&!a.classList.contains("hidden")){a.classList.add("hidden");return}if(!(e.type.match(/leave/i)&&a.classList.contains("hidden"))){if(!t){a.classList.add("hidden");return}if(a.classList.contains("hidden")){a.classList.remove("hidden");return}a.classList.add("hidden")}}return(0,l.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(o?" pr-8":""),children:[n&&(0,l.jsxs)("label",{htmlFor:a,children:[n,i?"":" (optional)"]}),(0,l.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,l.jsx)("select",{name:a,id:u||a,className:"w-full bg-white",required:i,onChange:e=>{d&&d(null),e.target.classList.remove("warning"),c&&c(e)},defaultValue:r||void 0,children:t.map((e,t)=>{let{payload:a,title:s}=e;return(0,l.jsx)("option",{value:a,selected:!!e.default,children:s},t+1)})}),(0,l.jsx)(s.A,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),o&&(0,l.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:h,onMouseLeave:h,onClick:h,children:[(0,l.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,l.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,l.jsx)("span",{children:o})}),(0,l.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(e){return console.log("ERROR in FormSelect =>",e),(0,l.jsx)("div",{children:"Form Select Error"})}}a(96540)},34181:(e,t,a)=>{var l=a(24994);t.A=void 0;var s=l(a(44888)),c=a(74848);t.A=(0,s.default)([(0,c.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,c.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},45014:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},59140:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},76897:(e,t,a)=>{a.d(t,{A:()=>l});let l=(0,a(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},49436:e=>{e.exports=JSON.parse('["Edit Tables","Update Entries","Create Table","Delete Entries","Delete Tables"]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7200-4c384098300f07db.js b/dsql-app/.local_dist/static/chunks/7200-4c384098300f07db.js deleted file mode 100644 index b235f85..0000000 --- a/dsql-app/.local_dist/static/chunks/7200-4c384098300f07db.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7200],{5467:function(e,t,n){var i=n(64836);t.Z=void 0;var a=i(n(64938)),l=n(85893),s=(0,a.default)([(0,l.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3l4-4zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v1zM7 3h10v1H7V3zm10 18H7v-1h10v1z"},"1")],"SendToMobileTwoTone");t.Z=s},57632:function(e,t,n){var i=n(64836);t.Z=void 0;var a=i(n(64938)),l=n(85893),s=(0,a.default)([(0,l.jsx)("path",{d:"M14 5H5v14h14v-9h-5V5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",opacity:".3"},"0"),(0,l.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,l.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9l-6-6zm4 16H5V5h9v5h5v9z"},"2"),(0,l.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,l.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone");t.Z=s},85541:function(e,t,n){var i=n(64836);t.Z=void 0;var a=i(n(64938)),l=n(85893),s=(0,a.default)([(0,l.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5zm6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"},"1")],"TipsAndUpdatesTwoTone");t.Z=s},76915:function(e,t,n){n.d(t,{Z:function(){return i}});const i=(0,n(45711).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},58261:function(e,t,n){n.d(t,{Z:function(){return i}});const i=(0,n(45711).Z)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},44114:function(e,t,n){n.d(t,{Z:function(){return l}});var i=n(85893),a=n(8971);n(67294);function l(e){var t=e.selectOptions,n=e.name,l=e.onChangeHandler,s=e.required,c=e.setAlert,o=e.title,r=e.defaultValue,d=e.info,h=e.id;try{var u=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),n=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||n.classList.contains("hidden")?e.type.match(/leave/i)&&n.classList.contains("hidden")||(t&&n.classList.contains("hidden")?n.classList.remove("hidden"):n.classList.add("hidden")):n.classList.add("hidden")}};return(0,i.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(d?" pr-8":""),children:[o&&(0,i.jsxs)("label",{htmlFor:n,children:[o,s?"":" (optional)"]}),(0,i.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,i.jsx)("select",{name:n,id:h||n,className:"w-full bg-white",required:s,onChange:function(e){c&&c(null),e.target.classList.remove("warning"),l&&l(e)},defaultValue:r||void 0,children:t.map((function(e,t){var n=e.payload,a=e.title;return(0,i.jsx)("option",{value:n,selected:!!e.default,children:a},t+1)}))}),(0,i.jsx)(a.Z,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),d&&(0,i.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:u,onMouseLeave:u,onClick:u,children:[(0,i.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,i.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,i.jsx)("span",{children:d})}),(0,i.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(p){return console.log("ERROR in FormSelect =>",p),(0,i.jsx)("div",{children:"Form Select Error"})}}},7947:function(e,t,n){n(85893),n(67294)},22434:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(828),a=n(85893),l=n(67294),s=n(41899),c=n(35922);function o(e){var t=e.content,n=e.language,o=e.style,r=(0,i.Z)(l.useState(!1),2),d=r[0],h=r[1],u=function(e,t){"clickaway"!==t&&h(!1)},p=(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("button",{className:"outlined gray",style:{border:"none",padding:"2px",width:"20px",height:"20px",color:"white"},onClick:u,children:"\u2716"})});return(0,a.jsxs)("pre",{className:"language-".concat(n||"javascript"," w-full overflow-hidden code-block relative max-w-4xl"),style:o||{},children:[(0,a.jsx)("code",{className:"w-full",style:{wordBreak:"break-all"},children:t}),(0,a.jsx)("button",{className:"outlined absolute top-2 right-2 z-20 copy-code hover:opacity-50",style:{padding:"2px",border:"none"},onClick:function(e){navigator.clipboard.writeText(t).then((function(){h(!0)}))},children:(0,a.jsx)(s.Z,{fontSize:"small",color:"action"})}),(0,a.jsx)(c.Z,{open:d,autoHideDuration:2e3,onClose:u,children:(0,a.jsxs)("div",{className:"h-full text-white px-4 py-2 justify-between rounded",style:{maxWidth:"250px",width:"250px",backgroundColor:"#0b8862"},children:[(0,a.jsx)("span",{children:"Code Copied!"}),p]})})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7538-4d24663ed2f4cf5c.js b/dsql-app/.local_dist/static/chunks/7538-4d24663ed2f4cf5c.js new file mode 100644 index 0000000..3f8c058 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/7538-4d24663ed2f4cf5c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7538],{99928:(e,a,s)=>{s.d(a,{A:()=>u});var t=s(74848),l=s(96540),i=s(70910),n=s(45165),d=s(23698),c=s(620),r=s(60557),o=s(18453);function u(e){var a;let{database:s,setTargetDatabase:u,delegated:x,icons:m,user:p}=e,h="/admin/".concat(null==p?void 0:p.id,"/databases/").concat(s.db_slug)+(x?"?delegated=true&dbUserId=".concat(s.user_id):""),{active_clone:j,active_clone_parent_db:g}=s,[f,b]=l.useState(!1);return(0,t.jsxs)("a",{href:h,className:"card",onClick:e=>{(e.target.closest(".db-list-item-actions-block")||e.target.closest(".cancel-link"))&&e.preventDefault(),x&&(e.preventDefault(),b(!0),(0,d.A)("/api/getDelegatedDatabaseToken",{method:"post",body:{rootUserId:s.user_id,priviledges:s.user_priviledge,database:s.db_slug}},!0).then(e=>{e.success&&(window.location.href=h)}),setTimeout(()=>{b(!1)},1e3))},children:[f&&(0,t.jsx)(c.A,{width:"20px"}),(0,t.jsx)("img",{src:s.db_image?s.db_image:"/images/folder.svg",alt:"Folder Image",width:20,className:s.db_image?"avatar":"avatar opacity-50"}),(0,t.jsxs)("div",{className:"flex-col items-start grow",children:[(0,t.jsx)("span",{className:"title",children:s.db_name}),g&&(0,t.jsxs)("span",{className:"text-xs bg-emerald-100 dark:bg-emerald-100/10 text-emerald-700 dark:text-emerald-200 px-2 py-0.5 rounded-full mb-1",children:["This Database is an active Clone of"," ",(0,t.jsx)("b",{children:g.replace(/datasquirel_user_\d+_/,"")})]}),(0,t.jsx)("div",{className:"-mt-2",children:(0,t.jsx)(i.A,{slugText:s.db_slug,smaller:!0})}),(0,t.jsx)("div",{className:"-mt-1 gap-1",children:(0,t.jsx)(i.A,{slugText:s.db_full_name,smaller:!0,full:!0})}),!x&&(0,t.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(a=s.date_created)||void 0===a?void 0:a.substring(0,21)]}),x&&(0,t.jsxs)("div",{className:"flex items-center mt-2",children:[(0,t.jsx)("img",{src:s.image_thumbnail,alt:"",className:"w-8 h-8 rounded-full object-cover"}),(0,t.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-600",children:[s.first_name," ",s.last_name]}),(0,t.jsx)("span",{className:"text-xs text-slate-400",children:s.email})]})]}),(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,t.jsxs)(r.A,{children:[!x&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.pathname="/admin/".concat(null==p?void 0:p.id,"/databases/").concat(s.db_slug,"/edit-database")},children:(0,t.jsx)("span",{children:"Edit"})}),!x&&!j&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{window.location.href="/admin/".concat(null==p?void 0:p.id,"/databases/add-database?duplicate=").concat(s.db_full_name)},children:(0,t.jsx)("span",{children:"Duplicate"})}),!x&&(0,t.jsx)("button",{className:"outlined light-gray small-text",onClick:e=>{u&&u(s),(0,n.PB)("delete-database-confirmation")},children:(0,t.jsx)("span",{children:"Delete"})})]})}),(0,t.jsx)(o.A,{className:"text-slate-600",size:20})]})]})]})}},67720:(e,a,s)=>{s.d(a,{A:()=>o});var t=s(74848),l=s(96540),i=s(98471),n=s(4709),d=s(55624),c=s(82171),r=s(56417);function o(e){var a;let{databases:s,setTargetDatabase:o,user:u}=l.useContext(i.DatabasesContext);return(0,t.jsxs)(l.Fragment,{children:[(0,t.jsxs)("div",{className:"flex-col items-start gap-0 w-full",children:[(0,t.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,t.jsx)("h1",{className:"text-3xl m-0",children:"Databases"}),(0,t.jsxs)("a",{href:"/admin/".concat(null==u?void 0:u.id,"/databases/add-database"),className:"button flex items-center gap-2",children:[(0,t.jsx)("span",{className:"symbol",children:"+"}),(0,t.jsx)("span",{children:"Add Database"})]})]}),(0,t.jsx)(n.A,{user:u})]}),(null==u?void 0:null===(a=u.verification_status)||void 0===a?void 0:a.toString().match(/1/))?(0,t.jsxs)(l.Fragment,{children:[(0,t.jsx)(c.A,{databases:s,setTargetDatabase:o,user:u}),(0,t.jsx)(r.A,{user:u})]}):(0,t.jsx)(d.A,{})]})}},82171:(e,a,s)=>{s.d(a,{A:()=>u});var t=s(74848),l=s(96540),i=s(99928),n=s(85373),d=s(75238),c=s(53193),r=s(74315),o=s(4532);function u(e){let{databases:a,setTargetDatabase:s,title:u,more:x,user:m}=e;return(0,t.jsx)(l.Fragment,{children:(0,t.jsxs)("section",{className:"paper",children:[(0,t.jsx)("h2",{className:"text-xl m-0",children:u||"Database List"}),m&&a&&a[0]&&s&&(0,t.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:a.map(e=>(0,t.jsx)(i.A,{database:e,setTargetDatabase:s,icons:{edit:n.A,duplicate:d.A,delete:c.A,copy:r.A},user:m},e.id))}),x&&a&&a[0]&&(0,t.jsx)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases"),className:"button w-full more-padding",children:"See All Databases"}),!a||!a[0]&&(0,t.jsxs)("a",{href:"/admin/".concat(null==m?void 0:m.id,"/databases/add-database"),className:"button outlined gray dashed w-full p-10 flex-col",children:[(0,t.jsx)("span",{className:"text-slate-400",children:"No Databases Created."}),(0,t.jsx)(o.A,{color:"action",sx:{fontSize:80},className:"opacity-40"}),(0,t.jsx)("span",{className:"",children:"Add Database"})]})]})})}},56417:(e,a,s)=>{s.d(a,{A:()=>x});var t=s(74848),l=s(96540),i=s(85373),n=s(75238),d=s(53193),c=s(74315),r=s(620),o=s(23698),u=s(99928);function x(e){let{user:a}=e,[s,x]=l.useState(null),[m,p]=l.useState(!1);return l.useEffect(()=>{(0,o.A)("/api/getDelegatedDatabases").then(e=>{e.success&&(x(e.databases),p(!1))})},[]),(0,t.jsxs)("section",{className:"paper",children:[(0,t.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"Delegated Databases"}),m&&(0,t.jsx)(r.A,{}),a&&s?s[0]?(0,t.jsx)(l.Fragment,{children:(0,t.jsx)("div",{className:"w-full grid grid-cols-1 sl:grid-cols-2 xl:grid-cols-3 items-stretch gap-6",children:s.map(e=>(0,t.jsx)(u.A,{database:e,delegated:!0,icons:{edit:i.A,duplicate:n.A,delete:d.A,copy:c.A},user:a},e.id))})}):(0,t.jsx)(l.Fragment,{children:(0,t.jsx)("span",{className:"info gray w-full font-normal justify-center",children:"No Delegated Databases Yet"})}):(0,t.jsx)(l.Fragment,{children:(0,t.jsx)("div",{className:"w-full justify-center",children:(0,t.jsx)(r.A,{position:"relative",width:"20px"})})})]})}},45165:(e,a,s)=>{s.d(a,{Ay:()=>n,PB:()=>d,fs:()=>c});var t=s(74848),l=s(76897),i=s(96540);function n(e){let{children:a,title:s,data:n,fullPage:d,wrapperClasses:r,closePopupDispatch:o,wrapperStyle:u,noContainer:x}=e;return d?(0,t.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":s||null,style:u,children:[x?(0,t.jsx)(i.Fragment,{children:a}):(0,t.jsx)("div",{className:"relative w-full h-full z-50","data-data":n?JSON.stringify(n):"",children:a}),(0,t.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:e=>{c(),o&&o()},children:(0,t.jsx)(l.A,{color:"white",size:20})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),o&&o()}})]}):(0,t.jsxs)("div",{className:"popup-bg","data-popupid":s||null,children:[x?(0,t.jsx)(i.Fragment,{children:a}):(0,t.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":n?JSON.stringify(n):"",children:[a,(0,t.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:e=>{c(),o&&o()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})})]}),x&&(0,t.jsx)("button",{className:"gray popup-cancel-button",onClick:e=>{c(),o&&o()},children:(0,t.jsx)("span",{className:"font-normal",children:"✖"})}),(0,t.jsx)("div",{className:"popup-canceller",onClick:e=>{c(),o&&o()}})]})}function d(e,a){let s=document.querySelector("[data-popupid='".concat(e,"']"));s&&(s.style.display="flex",a&&a(s))}function c(e){document.querySelectorAll("[data-popupid]").forEach(e=>{e.style.display="none"}),e&&e()}},55624:(e,a,s)=>{s.d(a,{A:()=>l});var t=s(74848);function l(e){return(0,t.jsxs)("a",{href:"/email-verification",className:"card w-full items-center justify-center py-4 gap-2",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Down Arrow",width:25,className:""}),(0,t.jsx)("span",{children:"Your Account is not verified. Please verify your account."})]})}s(96540)},94909:(e,a,s)=>{s.d(a,{A:()=>t});let t=(0,s(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},98471:(e,a,s)=>{s.r(a),s.d(a,{DatabasesContext:()=>r,__N_SSP:()=>c,default:()=>o});var t=s(74848),l=s(96540),i=s(51187),n=s(67720),d=s(47652),c=!0;let r=l.createContext({});function o(e){let{user:a,databases:s}=e,c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("title",{children:"Databases | Datasquirel"}),(0,t.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[o,u]=l.useState(0);return(0,t.jsx)(i.A,{head:c,user:a,children:(0,t.jsxs)(r.Provider,{value:{user:a,databases:s,targetDatabase:o,setTargetDatabase:u},children:[(0,t.jsx)(n.A,{}),(0,t.jsx)(d.A,{targetDatabase:o})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7623-2ea9f881dc00955d.js b/dsql-app/.local_dist/static/chunks/7623-2ea9f881dc00955d.js new file mode 100644 index 0000000..3c70868 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/7623-2ea9f881dc00955d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7623],{97340:(t,e,n)=>{n.d(e,{A:()=>o});let o=function(t,e=[]){if(void 0===t)return{};let n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}},57223:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(96540);function i(t){if(parseInt(o.version,10)>=19){var e;return(null==t||null==(e=t.props)?void 0:e.ref)||null}return(null==t?void 0:t.ref)||null}},25908:(t,e,n)=>{n.d(e,{A:()=>d});var o=n(58168),i=n(98587),a=n(31523),r=n(34164),l=n(97340);let s=function(t){if(void 0===t)return{};let e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e},u=function(t){let{getSlotProps:e,additionalProps:n,externalSlotProps:i,externalForwardedProps:a,className:u}=t;if(!e){let t=(0,r.A)(null==n?void 0:n.className,u,null==a?void 0:a.className,null==i?void 0:i.className),e=(0,o.A)({},null==n?void 0:n.style,null==a?void 0:a.style,null==i?void 0:i.style),l=(0,o.A)({},n,a,i);return t.length>0&&(l.className=t),Object.keys(e).length>0&&(l.style=e),{props:l,internalRef:void 0}}let p=(0,l.A)((0,o.A)({},a,i)),d=s(i),c=s(a),v=e(p),f=(0,r.A)(null==v?void 0:v.className,null==n?void 0:n.className,u,null==a?void 0:a.className,null==i?void 0:i.className),h=(0,o.A)({},null==v?void 0:v.style,null==n?void 0:n.style,null==a?void 0:a.style,null==i?void 0:i.style),E=(0,o.A)({},v,n,c,d);return f.length>0&&(E.className=f),Object.keys(h).length>0&&(E.style=h),{props:E,internalRef:v.ref}},p=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"],d=function(t){var e,n;let{elementType:r,externalSlotProps:l,ownerState:s,skipResolvingSlotProps:d=!1}=t,c=(0,i.A)(t,p),v=d?{}:"function"==typeof l?l(s,void 0):l,{props:f,internalRef:h}=u((0,o.A)({},c,{externalSlotProps:v})),E=(0,a.A)(h,null==v?void 0:v.ref,null==(e=t.additionalProps)?void 0:e.ref);return n=(0,o.A)({},f,{ref:E}),void 0===r||"string"==typeof r?n:(0,o.A)({},n,{ownerState:(0,o.A)({},n.ownerState,s)})}},34544:(t,e,n)=>{n.d(e,{A:()=>b});var o=n(98587),i=n(58168),a=n(96540),r=n(34164),l=n(75659),s=n(771),u=n(3552);let p=t=>((t<1?5.11916*t**2:4.5*Math.log(t+1)+2)/100).toFixed(2);var d=n(98301),c=n(38413),v=n(31609);function f(t){return(0,v.Ay)("MuiPaper",t)}(0,c.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var h=n(74848);let E=["className","component","elevation","square","variant"],x=t=>{let{square:e,elevation:n,variant:o,classes:i}=t;return(0,l.A)({root:["root",o,!e&&"rounded","elevation"===o&&"elevation".concat(n)]},f,i)},m=(0,u.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e["elevation".concat(n.elevation)]]}})(t=>{var e;let{theme:n,ownerState:o}=t;return(0,i.A)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!o.square&&{borderRadius:n.shape.borderRadius},"outlined"===o.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===o.variant&&(0,i.A)({boxShadow:(n.vars||n).shadows[o.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,s.X4)("#fff",p(o.elevation)),", ").concat((0,s.X4)("#fff",p(o.elevation)),")")},n.vars&&{backgroundImage:null==(e=n.vars.overlays)?void 0:e[o.elevation]}))}),b=a.forwardRef(function(t,e){let n=(0,d.b)({props:t,name:"MuiPaper"}),{className:a,component:l="div",elevation:s=1,square:u=!1,variant:p="elevation"}=n,c=(0,o.A)(n,E),v=(0,i.A)({},n,{component:l,elevation:s,square:u,variant:p}),f=x(v);return(0,h.jsx)(m,(0,i.A)({as:l,ownerState:v,className:(0,r.A)(f.root,a),ref:e},c))})},63891:(t,e,n)=>{n.d(e,{A:()=>s}),n(96540);var o=n(51264),i=n(53951);let a=(0,o.A)();var r=n(40949),l=n(58720);function s(){let t=function(t=a){return(0,i.A)(t)}(r.A);return t[l.A]||t}},82586:(t,e,n)=>{n.d(e,{c:()=>i,q:()=>o});let o=t=>t.scrollTop;function i(t,e){var n,o;let{timeout:i,easing:a,style:r={}}=t;return{duration:null!=(n=r.transitionDuration)?n:"number"==typeof i?i:i[e.mode]||0,easing:null!=(o=r.transitionTimingFunction)?o:"object"==typeof a?a[e.mode]:a,delay:r.transitionDelay}}},21962:(t,e,n)=>{n.d(e,{Ay:()=>E});var o=n(98587);function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var a=n(96540),r=n(40961);let l={disabled:!1},s=a.createContext(null);var u="unmounted",p="exited",d="entering",c="entered",v="exiting",f=function(t){function e(e,n){o=t.call(this,e,n)||this;var o,i,a=n&&!n.isMounting?e.enter:e.appear;return o.appearStatus=null,e.in?a?(i=p,o.appearStatus=d):i=c:i=e.unmountOnExit||e.mountOnEnter?u:p,o.state={status:i},o.nextCallback=null,o}e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:p}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==c&&(e=d):(n===d||n===c)&&(e=v)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,o=this.props.timeout;return t=e=n=o,null!=o&&"number"!=typeof o&&(t=o.exit,e=o.enter,n=void 0!==o.appear?o.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){if(this.cancelNextCallback(),e===d){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&n.scrollTop}this.performEnter(t)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},n.performEnter=function(t){var e=this,n=this.props.enter,o=this.context?this.context.isMounting:t,i=this.props.nodeRef?[o]:[r.findDOMNode(this),o],a=i[0],s=i[1],u=this.getTimeouts(),p=o?u.appear:u.enter;if(!t&&!n||l.disabled){this.safeSetState({status:c},function(){e.props.onEntered(a)});return}this.props.onEnter(a,s),this.safeSetState({status:d},function(){e.props.onEntering(a,s),e.onTransitionEnd(p,function(){e.safeSetState({status:c},function(){e.props.onEntered(a,s)})})})},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);if(!e||l.disabled){this.safeSetState({status:p},function(){t.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:v},function(){t.props.onExiting(o),t.onTransitionEnd(n.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(o)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,e.nextCallback=null,t(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==t&&!this.props.addEndListener;if(!n||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,i=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,(0,o.A)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.createElement(s.Provider,{value:null},"function"==typeof n?n(t,i):a.cloneElement(a.Children.only(n),i))},e}(a.Component);function h(){}f.contextType=s,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED=u,f.EXITED=p,f.ENTERING=d,f.ENTERED=c,f.EXITING=v;let E=f}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/7901-841b99c96481dd31.js b/dsql-app/.local_dist/static/chunks/7901-841b99c96481dd31.js deleted file mode 100644 index b6e7dff..0000000 --- a/dsql-app/.local_dist/static/chunks/7901-841b99c96481dd31.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7901],{27901:function(e,t,n){n.d(t,{Z:function(){return c}});var r,a,o=n(26042),i=n(85893),l=n(67294);function s(e){var t,n=e.value,r=e.format;if(!n)return 0;try{if("string"===r)t=n.toString().replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",");else t=parseInt(n.toString().replace(/\D/g,""))}catch(a){t=0,console.log(a)}return t}function u(e){var t,n,r=e.value,a=e.format,o=e.decimals,i=(null===(t=null===r||void 0===r?void 0:r.toString())||void 0===t?void 0:t.match(/^\-/))?"-":"";try{if("string"===a){var l=r.toString().split(".");n=i+l[0].toString().replace(/[^0-9\.]/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")+(l[1]?".".concat(o?l[1].substring(0,o):l[1].substring(0,2)):"")}else n=parseFloat(i+r.toString().replace(/[^0-9\.]/g,""))}catch(s){n=0,console.log(s)}return n}function c(e){try{var t=function(e){e.target.value.match(/./)?(e.target.classList.remove("warning"),b&&b(null)):e.target.required&&e.target.classList.add("warning"),T&&(e.target.value=e.target.value.toString().match(/^0+$/)?"0":e.target.value.toString().replace(k?/[^0-9\.]/g:/\D/g,"").replace(/^0*/,"").replace(/\B(?=(\d{3})+(?!\d))/g,",")),h&&h(e),L&&L(e)},n=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),n=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||n.classList.contains("hidden")?e.type.match(/leave/i)&&n.classList.contains("hidden")||(t&&n.classList.contains("hidden")?n.classList.remove("hidden"):n.classList.add("hidden")):n.classList.add("hidden")}},c=function(e){var t,n=k?parseFloat(u({value:(null===(t=_.current)||void 0===t?void 0:t.value)||0}).toString())-(M?parseFloat(M.toString()):20):parseInt(s({value:_.current.value}).toString())-(M||20),r=k?u({value:n,format:"raw"}):s({value:n,format:"raw"});y&&"number"==typeof r&&rj||(_.current.value=n.toString(),V&&V(_.current.value))},p=e.title,f=e.name,v=e.defaultValue,m=e.placeholder,g=e.autoComplete,h=e.onInputHandler,w=e.required,x=e.inputType,b=e.setAlert,S=e.prefix,y=e.minValue,j=e.maxValue,I=e.encrypted,T=e.numberText,N=e.appendCurrency,F=e.elementRef,L=e.onChangeHandler,D=e.value,M=e.step,k=e.decimal,C=e.pattern,E=e.info,W=e.fontSize,R=e.maxWidth,V=e.setValue,q=e.id,_=F||l.useRef();return(0,i.jsxs)("div",{className:"form-input-wrapper flex flex-col items-start gap-0.5 w-full relative",style:(0,o.Z)({},R?{maxWidth:R}:{}),children:[p&&(0,i.jsx)("label",{htmlFor:f,children:p}),(0,i.jsxs)("div",{className:"flex items-center w-full relative",children:[S&&(0,i.jsx)("div",{className:"absolute left-4 bottom-2 text-lg",children:S}),(0,i.jsx)("input",{type:x||"text",name:f,id:q||f,ref:_,placeholder:m||(p||""),autoComplete:g,onInput:function(e){t(e)},onChange:function(e){t(e)},value:D||void 0,defaultValue:D?void 0:v||void 0,pattern:C?C.toString():void 0,required:w||!1,style:(0,o.Z)({},W?{fontSize:W}:{},S?{paddingLeft:"35px"}:{}),min:y,max:j,"data-encrypted":I||null,"data-appendcurrency":N||null,className:"bg-white"+(E?" pr-16":"")}),T&&(0,i.jsxs)("div",{className:"absolute gap-1"+(E?" right-12":" right-4"),style:{top:"50%",transform:"translate(0,-50%)"},children:[(0,i.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:function(e){e.preventDefault(),window.innerWidth<1200||(c(),r=setTimeout((function(){a=setInterval((function(){c()}),50)}),200))},onTouchStart:function(e){e.preventDefault(),window.innerWidth>=1200||(c(),r=setTimeout((function(){a=setInterval((function(){c()}),50)}),200))},onMouseUp:function(e){window.clearTimeout(r),window.clearInterval(a)},onTouchEnd:function(e){window.clearTimeout(r),window.clearInterval(a)},onMouseLeave:function(e){window.clearTimeout(r),window.clearInterval(a)},onTouchMove:function(e){e.preventDefault()},children:(0,i.jsx)("span",{className:"pointer-events-none",children:"-"})}),(0,i.jsx)("span",{className:"number-text-button w-10 md:w-8 h-10 md:h-8 rounded-full bg-slate-100 dark:bg-slate-800 flex items-center justify-center cursor-pointer hover:bg-slate-200 text-2xl font-semibold touch-none",onMouseDown:function(e){e.preventDefault(),window.innerWidth<1200||(d(),r=setTimeout((function(){a=setInterval((function(){d()}),50)}),200))},onTouchStart:function(e){e.preventDefault(),window.innerWidth>=1200||(d(),r=setTimeout((function(){a=setInterval((function(){d()}),50)}),200))},onMouseUp:function(e){window.clearTimeout(r),window.clearInterval(a)},onTouchEnd:function(e){window.clearTimeout(r),window.clearInterval(a)},onMouseLeave:function(e){window.clearTimeout(r),window.clearInterval(a)},children:(0,i.jsx)("span",{className:"pointer-events-none",children:"+"})})]}),E&&(0,i.jsxs)("div",{className:"info-wrapper absolute right-2 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:n,onMouseLeave:n,onClick:n,children:[(0,i.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,i.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,i.jsx)("span",{children:E})}),(0,i.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(z){return console.log("ERROR in FormInput =>",z),(0,i.jsx)("div",{children:"Form Input Error"})}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8012-d8811518e02e800f.js b/dsql-app/.local_dist/static/chunks/8012-d8811518e02e800f.js new file mode 100644 index 0000000..3edfdd7 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8012-d8811518e02e800f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8012],{52507:(e,t,l)=>{l.d(t,{A:()=>E});var a=l(74848),d=l(96540),i=l(620),r=l(17500),s=l(93813),n=l(5338);function o(e){let{editor:t,rootElement:l}=e;return(0,a.jsx)("div",{className:"embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full",children:(0,a.jsxs)("form",{onSubmit:e=>{e.preventDefault();let a=e.target["embed-text-area"].value;if(!(null==a?void 0:a.match(/./)))return alert("Please Enter HTML Text to continue.");t.insertContent(a),document.body.removeChild(l)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,a.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,a.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,a.jsx)("button",{type:"submit",children:"Embed"})]})})}function c(e){let{editor:t}=e;navigator.clipboard.writeText((null==t?void 0:t.getContent())||"").then(()=>{alert("Html Copied to Clipboard!")})}var u=l(76897),m=l(85471),p=l.n(m);function f(e){let{editor:t,rootElement:l}=e,i=t.getContent(),r=d.useRef(),s=d.useRef(),[n,o]=d.useState(null);return d.useEffect(()=>{try{var e;if(!(null===(e=ace)||void 0===e?void 0:e.edit)||!r.current){console.log("Ace Editor not found!");return}let t=ace.edit(r.current);t.setOptions({mode:"ace/mode/html",value:p()(i)}),o(t);try{ace.require("ace/ext/beautify").beautify(t.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}},[]),(0,a.jsxs)("div",{onKeyUp:e=>{if(e.ctrlKey&&"Enter"==e.key){var t;null===(t=s.current)||void 0===t||t.click()}},children:[(0,a.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,a.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,a.jsx)("div",{ref:r,className:"w-full h-[80vh] text-[18px]"}),(0,a.jsx)("button",{className:"absolute bottom-4 right-4",onClick:e=>{if(n){let e=n.getValue();t.setContent(e),setTimeout(()=>{document.body.removeChild(l)},200)}},ref:s,children:"Save"})]})}),(0,a.jsx)("button",{className:"absolute top-4 right-8 rounded-full white",onClick:()=>{try{document.body.removeChild(l)}catch(e){}},style:{width:"40px",height:"40px",padding:"0",zIndex:"12039800000"},children:(0,a.jsx)(u.A,{})})]})}function x(e){let{editor:t}=e,l=document.createElement("div");l.style.position="fixed",l.style.width="100vw",l.style.height="100vh",l.style.zIndex="123000000000000000",l.style.backgroundColor="rgba(0,0,0,0.8)",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.top="0",l.style.left="0",document.body.append(l),l.onclick=e=>{e.target.closest(".embed-popup-form-content-wrapper")||document.body.removeChild(l)},t&&n.createRoot(l).render((0,a.jsx)(f,{editor:t,rootElement:l}))}function h(e){let{editor:t}=e,l=document.createElement("div");l.style.position="fixed",l.style.width="100vw",l.style.height="100vh",l.style.zIndex="123000000000000000",l.style.backgroundColor="rgba(0,0,0,0.8)",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.top="0",l.style.left="0",document.body.append(l),l.onclick=e=>{if(e.target.closest(".embed-popup-form-content-wrapper")){console.log("Still In Form");return}document.body.removeChild(l)},t&&n.createRoot(l).render((0,a.jsx)(o,{editor:t,rootElement:l}))}function b(e){let{fieldObject:t,dataTypeSchema:l,richTextEditors:n,entry:o,currentRichTextEditorForms:u,entryPage:m,formButtonId:p}=e,[f,b]=d.useState(!1),y=d.useRef(),v=d.useRef();return d.useEffect(()=>{b(!0)},[]),d.useEffect(()=>{f&&(n.current.push({fieldName:t.fieldName||"",ref:v}),u.current.push({fieldName:t.fieldName||"",ref:v}))},[f]),(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,a.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:t.fieldName,children:[t.encrypted&&(0,a.jsx)(r.A,{fontSize:"small",className:"opacity-50"}),(0,a.jsx)("span",{children:t.fieldName})]}),(0,a.jsxs)("div",{ref:y,id:t.fieldName,className:"w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},children:[!f&&(0,a.jsx)(i.A,{}),f&&(0,a.jsx)(d.Fragment,{children:(0,a.jsx)(s.K,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:(e,t)=>{v.current=t},initialValue:t.defaultValue||(o&&t.fieldName&&o[t.fieldName]?o[t.fieldName]:""),init:{height:m?400:300,width:"100%",convert_urls:!1,menubar:!1,plugins:["advlist","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount"],toolbar:"undo redo | blocks | bold italic forecolor | link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat help | editCode embedCode copyCode",placeholder:"Type something ...",document_base_url:"/",content_css:t.cssFiles||void 0,setup:e=>{!function(e){let{editor:t,formButtonId:l}=e;t.addShortcut("meta+13","Save Entry.",()=>{var e;window.confirm("Update this Form?")&&l&&(null===(e=document.getElementById(l))||void 0===e||e.click())}),t.addShortcut("meta+shift+e","Edit Code.",()=>{x({editor:t})}),t.addShortcut("meta+shift+d","Embed Code.",()=>{h({editor:t})}),t.addShortcut("meta+shift+c","Copy Code.",()=>{c({editor:t})}),t.ui.registry.addButton("editCode",{icon:"edit-block",onAction:e=>x({editor:t}),tooltip:"Edit HTML Code"}),t.ui.registry.addButton("embedCode",{icon:"sourcecode",onAction:e=>h({editor:t}),tooltip:"Embed Code"}),t.ui.registry.addButton("copyCode",{icon:"copy",onAction:e=>c({editor:t}),tooltip:"Copy HTML"})}({editor:e,formButtonId:p})}}})})]})]})}var y=l(23698);l(68553);var v=l(61356),g=l(89894);function N(e){let{fieldObject:t,typeFinal:l,isExpanded:d,setHeight:i,COLLAPSED_HEIGHT:s,EXPANDED_HEIGHT:n}=e;return(0,a.jsxs)("div",{className:"gap-2 w-full",children:[(0,a.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:t.fieldName,children:[t.encrypted&&(0,a.jsx)(r.A,{fontSize:"small",className:"opacity-50"}),(0,a.jsx)("span",{children:t.fieldName})]}),(0,a.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,a.jsx)("span",{children:l})}),(0,a.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:e=>{d?i(s):i(n)},children:[(0,a.jsx)("span",{className:"font-semibold text-sm",children:d?"Collapse":"Expand"}),d?(0,a.jsx)(v.A,{size:18,className:"mt-[-1px]"}):(0,a.jsx)(g.A,{size:18,className:"mt-[-1px]"})]})]})}function j(e){let{fieldObject:t,dataTypeSchema:l,entry:i,entryPage:r,jsonTextEditors:s,type:n}=e,o=n||"json";try{let[e,l]=d.useState(0),[r,n]=d.useState(300),c=d.useRef(),u=d.useRef();return d.useEffect(()=>{!function(e){let{jsonEditorRef:t,fieldObject:l,setRefresh:a,typeFinal:d,entry:i,jsonTextEditors:r,editorRef:s}=e;try{var n;if(!(null===(n=ace)||void 0===n?void 0:n.edit)||!t.current||!l.fieldName){console.log("Ace Editor not found!"),setTimeout(()=>{a(e=>e+1)},1e3);return}let e=ace.edit(t.current);e.setOptions({mode:"ace/mode/"+d,value:l.defaultValue?l.defaultValue:(null==i?void 0:i[l.fieldName])?(()=>{if("json"!==d)return i[l.fieldName];try{return JSON.stringify(JSON.parse(i[l.fieldName]),null,4)}catch(e){return i[l.fieldName]}})():"",placeholder:"json"==d?"{} ...":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),r.current.push({fieldName:l.fieldName,ref:s}),s.current=e;try{ace.require("ace/ext/beautify").beautify(e.session)}catch(e){}}catch(e){console.log("JSON Editor ERROR =>",e.message)}}({editorRef:u,entry:i,fieldObject:t,jsonEditorRef:c,jsonTextEditors:s,setRefresh:l,typeFinal:o})},[e]),(0,a.jsx)(d.Fragment,{children:(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,a.jsx)(N,{fieldObject:t,isExpanded:300!==r,setHeight:n,typeFinal:o,COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,a.jsx)(w,{height:r,jsonEditorRef:c})]})})}catch(e){return d.useEffect(()=>{(0,y.A)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:e.message}})},[]),(0,a.jsx)(d.Fragment,{children:(0,a.jsx)("span",{children:"Editor Load Error"})})}}function w(e){let{height:t,jsonEditorRef:l}=e;return(0,a.jsx)("div",{className:"w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px",height:"".concat(t,"px")},children:(0,a.jsx)("div",{ref:l,className:"w-full text-[18px] h-full"})})}function E(e){var t,l,i,s,n,o,c,u,m;let{fieldObject:p,dataTypeSchema:f,richTextEditors:x,jsonTextEditors:h,entry:y,currentRichTextEditorForms:v,confirmedDelegetedUser:g,query:N,entryPage:w,formButtonId:E}=e;null==g||g.delegated,null==g||null===(t=g.priviledges)||void 0===t||t.match(/Edit Tables/i),null==g||null===(l=g.priviledges)||void 0===l||l.match(/Delete Tables/i),null==g||null===(i=g.priviledges)||void 0===i||i.match(/Create Tables/i),null==g||null===(s=g.priviledges)||void 0===s||s.match(/Edit Entries/i),null==g||null===(n=g.priviledges)||void 0===n||n.match(/Delete Entries/i);let T=function(e){var t,l,d,i,r,s,n,o;let c,{fieldObject:u,dataTypeSchema:m,elementRef:p,entry:f}=e,x=e=>{let t=e.target.closest("form");if(!t)return;let l=null==t?void 0:t.querySelector("#slug");l&&(l.value=e.target.value.toLowerCase().replace(/ /g,"-").replace(/[^a-z\-0-9]/g,""))};return u.defaultField?c=(0,a.jsx)("input",{ref:p,type:"text",name:"def_field_"+u.fieldName,id:"def_field_"+u.fieldName,placeholder:u.fieldName,defaultValue:f&&f[u.fieldName||""]?f[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},readOnly:!0,"data-default":"true"}):((null===(t=u.dataType)||void 0===t?void 0:t.match(/varchar/i))&&(c=(0,a.jsx)("textarea",{ref:p,name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,maxLength:(null===(s=u.dataType)||void 0===s?void 0:null===(r=s.match(/\d+/))||void 0===r?void 0:r[0])?parseInt((null===(o=u.dataType)||void 0===o?void 0:null===(n=o.match(/\d+/))||void 0===n?void 0:n[0])||""):void 0,defaultValue:f&&f[u.fieldName||""]?f[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},onChange:e=>{var t;(null===(t=u.fieldName)||void 0===t?void 0:t.match(/^title$/))&&x(e)}})),(null===(l=u.dataType)||void 0===l?void 0:l.match(/int$/i))&&(c=(0,a.jsx)("input",{ref:p,type:"number",name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,max:m.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:f&&f[u.fieldName||""]?f[u.fieldName||""]:u.defaultValue?u.defaultValue:"",onChange:e=>{}})),(null===(d=u.dataType)||void 0===d?void 0:d.match(/text$/i))&&(c=(0,a.jsx)("textarea",{ref:p,name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,defaultValue:f&&f[u.fieldName||""]?f[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},rows:10,onChange:e=>{}})),(null===(i=u.fieldName)||void 0===i?void 0:i.match(/password|^pass$|^key$/i))&&(c=(0,a.jsxs)("div",{className:"w-full relative",children:[(0,a.jsx)("input",{ref:p,type:"password",name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,max:m.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:f&&f[u.fieldName]?f[u.fieldName]:u.defaultValue?u.defaultValue:"",onChange:e=>{}}),(0,a.jsx)("span",{className:"absolute right-4 cursor-pointer",onClick:e=>{let t=e.target.closest("div").querySelector("input");"password"===t.type?(t.type="text",e.target.innerText="Hide"):(t.type="password",e.target.innerText="Reveal")},children:"Reveal"})]})),c||(c=(0,a.jsx)("input",{ref:p,type:"text",name:u.fieldName,id:u.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:f&&f[u.fieldName||""]?f[u.fieldName||""]:u.defaultValue?u.defaultValue:"",onChange:e=>{}})),c)}({fieldObject:p,dataTypeSchema:f,elementRef:d.useRef(),entry:y});if((null===(o=p.dataType)||void 0===o?void 0:o.match(/text$/i))&&p.richText&&!p.plainText&&!(null===(c=p.fieldName)||void 0===c?void 0:c.match(/^pass|^key$/i))&&!p.encrypted||p.encrypted&&p.richText)return(0,a.jsx)(d.Fragment,{children:(0,a.jsx)(b,{fieldObject:p,dataTypeSchema:f,richTextEditors:x,currentRichTextEditorForms:v,entry:y,entryPage:w,formButtonId:E})});let C=p.json||p.yaml||p.html||p.css||p.javascript||p.shell;return(null===(u=p.dataType)||void 0===u?void 0:u.match(/text$/i))&&C&&!p.plainText&&!(null===(m=p.fieldName)||void 0===m?void 0:m.match(/^pass|^key$/i))&&!p.encrypted||p.encrypted&&C?(0,a.jsx)(j,{fieldObject:p,dataTypeSchema:f,entry:y,entryPage:w,jsonTextEditors:h,type:p.json?"json":p.yaml?"yaml":p.html?"html":p.css?"css":p.javascript?"javascript":p.shell?"shell":"json"}):(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(p.defaultField?" opacity-50":""),children:[(0,a.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:p.fieldName,children:[p.encrypted&&(0,a.jsx)(d.Fragment,{children:(0,a.jsx)(r.A,{fontSize:"small",className:"opacity-50"})}),(0,a.jsx)("span",{children:p.fieldName}),p.defaultField&&(0,a.jsx)("span",{className:"bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs",children:"Default Field"})]}),T]})}},98070:(e,t,l)=>{l.d(t,{A:()=>i});var a=l(74848),d=l(96540);function i(e){let{table:t,database:l,user:i,activeDbClone:r}=e,s=(null==t?void 0:t.childTableDbFullName)?t.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null,n=t.childTableDbFullName===l.db_full_name;return s?(0,a.jsxs)("span",{className:"info small green gap-1"+((null==l?void 0:l.active_clone)?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,a.jsx)("a",{href:"/admin/".concat(null==i?void 0:i.id,"/databases/").concat(s,"/tables/").concat(t.childTableName),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:t.childTableName})})," ","in"," ",n?(0,a.jsxs)("span",{children:["this current database(",(0,a.jsx)("b",{children:l.db_name}),")."]}):(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)("a",{href:"/admin/".concat(null==i?void 0:i.id,"/databases/").concat(s),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,a.jsx)("b",{children:s})}),(0,a.jsx)("span",{children:"database."})]})," ",(null==l?void 0:l.active_clone)?"":"Only Foreign keys and Entries can be updated."]}):(0,a.jsx)(d.Fragment,{})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8135-acf650078aafbbbc.js b/dsql-app/.local_dist/static/chunks/8135-acf650078aafbbbc.js new file mode 100644 index 0000000..15117a9 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8135-acf650078aafbbbc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8135],{43502:(e,t,a)=>{a.d(t,{A:()=>h});var s=a(74848),l=a(96540),i=a(57457),c=a(23698),d=a(620),n=a(46466);function r(e){let{docPageObject:t}=e,[a,r]=l.useState(!1),[o,h]=l.useState([]);return l.useEffect(()=>{(0,c.A)("/api/admin/docs/get-child-pages",{method:"post",body:{pageId:t.id}}).then(e=>{e.success&&h(e.result)})},[]),(0,s.jsxs)("div",{className:"card col relative cursor-pointer",onClick:e=>{var a;(null===(a=e.target)||void 0===a?void 0:a.closest(".cancel-link"))?e.preventDefault():window.location.pathname="/su/docs/pages/".concat(t.id)},children:[a&&(0,s.jsx)(d.A,{width:"20px"}),(0,s.jsxs)("div",{className:"w-full items-start",children:[(0,s.jsx)(i.A,{color:"inherit",className:"opacity-40 text-gray-600"}),(0,s.jsxs)("div",{className:"flex-col items-start gap-0 relative z-10",children:[(0,s.jsx)("span",{className:"title",children:t.title}),(0,s.jsx)("span",{className:"-my-3",dangerouslySetInnerHTML:{__html:t.description||""}})]}),(0,s.jsxs)("div",{className:"ml-auto cancel-link",children:[(0,s.jsx)("button",{onClick:()=>{window.location.href="/su/docs/edit-page?id=".concat(t.id)},className:"outlined small-text light-gray",children:"Edit Page"}),(0,s.jsx)("button",{onClick:()=>{window.confirm("Delete this page?")&&(r(!0),(0,c.A)("/api/admin/docs/delete-page",{method:"post",body:t}).then(e=>{e.success&&window.location.reload(),setTimeout(()=>{r(!1)},1e3)}))},className:"outlined small-text light-gray",children:"Delete Page"})]})]}),o&&(0,s.jsxs)("div",{className:"-mt-[40px] pt-[40px] ml-[10px] pl-[20px] border-0 border-l border-slate-200 border-solid w-full flex-col items-start cancel-link",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(n.A,{className:"opacity-20",fontSize:"small"}),(0,s.jsx)("span",{className:"text-slate-300 font-semibold",children:"Children Pages"})]}),o.map((e,t)=>(0,s.jsxs)("div",{className:"card w-full",onClick:()=>{window.location.pathname="/su/docs/pages/".concat(e.id)},children:[(0,s.jsx)(i.A,{color:"inherit",className:"opacity-40 text-gray-500"}),(0,s.jsx)("span",{children:e.title})]},t))]})]})}var o=a(60557);function h(e){let{data:t}=e,{env:a}=t,i=t.docPages,[n,h]=l.useState(!1);function p(e){window.confirm(e?"Update Docs DB from JSON file?":"Update docs json file?")&&(h(!0),(0,c.A)("/api/admin/docs/persist",{method:"post",body:{pull:e}}).then(t=>{t.success?window.alert(e?"Docs database table Updated Sucessfully!":"JSON data written Successfully!"):window.alert("Operation failed!"),setTimeout(()=>{h(!1)},1e3)}).catch(e=>{setTimeout(()=>{h(!1)},1e3)}))}return(0,s.jsxs)(l.Fragment,{children:[n&&(0,s.jsx)(d.A,{}),(0,s.jsxs)("section",{className:"items-start justify-start p-6",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between w-full mb-6",children:[(0,s.jsx)("h2",{className:"text-xl m-0",children:"Documentation Pages"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("a",{href:"/su/docs/create-page",className:"button",children:"Create Page"}),(0,s.jsxs)(o.A,{children:[(0,s.jsx)("button",{className:"outlined gray",onClick:()=>{p(!1)},children:"Push"}),(0,s.jsx)("button",{className:"outlined gray",onClick:()=>{p(!0)},children:"Pull"})]})]})]}),(0,s.jsx)("div",{className:"paper flex-col items-stretch gap-10 w-full",children:i.map((e,t)=>(0,s.jsx)(r,{docPageObject:e},t))})]})]})}},46466:(e,t,a)=>{var s=a(24994);t.A=void 0;var l=s(a(44888)),i=a(74848);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z"},"0"),(0,i.jsx)("path",{d:"M7 5v4H4V5zm13 0v4h-3V5zm0 10v4h-3v-4z",opacity:".3"},"1")],"AccountTreeTwoTone")},57457:(e,t,a)=>{var s=a(24994);t.A=void 0;var l=s(a(44888)),i=a(74848);t.A=(0,l.default)([(0,i.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-2-6H7v-2h10zm0-4H7V7h10zm-3 8H7v-2h7z"},"1")],"ArticleTwoTone")},87296:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},6831:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},68622:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},97206:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},14858:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2750:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},42595:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},94909:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/820-56dea9360dca328f.js b/dsql-app/.local_dist/static/chunks/820-56dea9360dca328f.js new file mode 100644 index 0000000..a0af289 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/820-56dea9360dca328f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[820],{75849:(e,t,s)=>{s.d(t,{A:()=>v});var a=s(74848),l=s(96540),n=s(55436),r=s(4709),i=s(55624);s(67720);var c=s(82171);function d(e){let{databases:t,setTargetDatabase:s,user:r}=l.useContext(n.DashboardContext);return(0,a.jsx)(l.Fragment,{children:(0,a.jsx)(c.A,{databases:t,setTargetDatabase:s,title:"Recently added Databases",more:!0,user:r})})}var o=s(56417),x=s(59140),u=s(18190),h=s(1915);let m=(0,s(95737).A)("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);function j(e){let{icon:t,metric:s,count:l,url:n}=e;return(0,a.jsxs)("a",{href:n,className:"card col w-full",children:[(0,a.jsx)("div",{className:"absolute top-4 right-4",children:t}),(0,a.jsxs)("div",{className:"content-block",children:[(0,a.jsx)("span",{className:"metric text-slate-800 dark:text-white",children:l}),(0,a.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s})]})]})}function y(e){let{databases:t,setTargetDatabase:s,metrics:r,user:i}=l.useContext(n.DashboardContext);return(0,a.jsx)("section",{className:"p-0",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 w-full gap-6 items-stretch",children:[(0,a.jsx)(j,{metric:"Databases Created",count:(null==r?void 0:r.dbCount)||0,icon:(0,a.jsx)(x.A,{size:20,className:"text-secondary2"}),url:"/admin/".concat(null==i?void 0:i.id,"/databases")}),(0,a.jsx)(j,{metric:"Tables Created",count:(null==r?void 0:r.tablesCount)||0,icon:(0,a.jsx)(u.A,{size:20,className:"text-primary"})}),(0,a.jsx)(j,{metric:"Media Added",count:(null==r?void 0:r.mediaCount)||0,icon:(0,a.jsx)(h.A,{size:20,className:"text-slate-500"}),url:"/admin/".concat(null==i?void 0:i.id,"/media")}),(0,a.jsx)(j,{metric:"API Keys",count:(null==r?void 0:r.apiKeysCount)||0,icon:(0,a.jsx)(m,{size:20,className:"text-slate-900 dark:text-white"}),url:"/admin/".concat(null==i?void 0:i.id,"/api-keys")})]})})}function v(e){var t;let{databases:s,user:c}=l.useContext(n.DashboardContext);return(0,a.jsxs)(l.Fragment,{children:[(0,a.jsxs)("div",{className:"flex-col items-start gap-0",children:[(0,a.jsx)("h1",{className:"text-3xl m-0",children:"Dashboard"}),(0,a.jsx)(r.A,{user:c})]}),(null==c?void 0:null===(t=c.verification_status)||void 0===t?void 0:t.toString().match(/1/))?(0,a.jsxs)(l.Fragment,{children:[(0,a.jsx)(y,{}),(0,a.jsx)(d,{}),(0,a.jsx)(o.A,{user:c})]}):(0,a.jsx)(i.A,{})]})}},18190:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(95737).A)("Sheet",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["line",{x1:"3",x2:"21",y1:"9",y2:"9",key:"1vqk6q"}],["line",{x1:"3",x2:"21",y1:"15",y2:"15",key:"o2sbyz"}],["line",{x1:"9",x2:"9",y1:"9",y2:"21",key:"1ib60c"}],["line",{x1:"15",x2:"15",y1:"9",y2:"21",key:"1n26ft"}]])},55436:(e,t,s)=>{s.r(t),s.d(t,{DashboardContext:()=>d,__N_SSP:()=>c,default:()=>o});var a=s(74848),l=s(96540),n=s(51187),r=s(75849),i=s(47652),c=!0;let d=l.createContext({});function o(e){let{user:t,databases:s,metrics:c}=e,o=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("title",{children:"User Dashboard | Datasquirel"}),(0,a.jsx)("meta",{name:"description",content:"Welcome to your data app"})]}),[x,u]=l.useState(null);return(0,a.jsx)(n.A,{head:o,user:t,children:(0,a.jsxs)(d.Provider,{value:{user:t,databases:s,targetDatabase:x,setTargetDatabase:u,metrics:c},children:[(0,a.jsx)(r.A,{}),(0,a.jsx)(i.A,{targetDatabase:x})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8264-5901ddfeb3cb03ce.js b/dsql-app/.local_dist/static/chunks/8264-5901ddfeb3cb03ce.js deleted file mode 100644 index 6e0b6e3..0000000 --- a/dsql-app/.local_dist/static/chunks/8264-5901ddfeb3cb03ce.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8264],{58264:function(e,a,l){l.d(a,{Z:function(){return c},w:function(){return o}});var n=l(85893),t=l(67294),s=l(46734),i=l(94986);function c(e){var a,l,c,r=e.database,d=e.tables,u=e.setTargetTable,f=e.confirmedDelegetedUser,m=e.query,p=e.user;null===f||void 0===f||f.delegated,null===f||void 0===f||null===(a=f.priviledges)||void 0===a||a.match(/Edit Tables/i),null===f||void 0===f||null===(l=f.priviledges)||void 0===l||l.match(/Delete Tables/i),null===f||void 0===f||null===(c=f.priviledges)||void 0===c||c.match(/Create Tables/i);return(0,n.jsxs)(t.Fragment,{children:[r.active_clone&&p?(0,n.jsx)(i.Z,{database:r,user:p}):(0,n.jsx)(n.Fragment,{}),r.remote_connected?(0,n.jsx)(o,{database:r}):(0,n.jsx)(n.Fragment,{}),(0,n.jsxs)("section",{className:"paper gray",children:[d&&d[0]?(0,n.jsxs)("div",{className:"flex-wrap gap-4 justify-between w-full",children:[(0,n.jsx)("h2",{className:"text-xl m-0",children:"Tables"}),(0,n.jsx)("a",{href:"/admin/".concat(null===p||void 0===p?void 0:p.id,"/databases/").concat(r.db_slug,"/tables"),className:"button outlined gray small-text",children:"See All Tables"})]}):(0,n.jsx)("h2",{className:"text-xl m-0",children:"This Database is empty"}),(0,n.jsx)("hr",{}),p?(0,n.jsx)(s.Z,{database:r,tables:d,setTargetTable:u,confirmedDelegetedUser:f,query:m,user:p}):null]})]})}function o(e){var a,l=e.database;return(0,n.jsx)("div",{className:"info green",children:(0,n.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,n.jsx)("b",{children:null===(a=l.remote_db_full_name)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,"")})," ","on"," ",(0,n.jsx)("a",{className:"font-bold text-inherit",href:l.remote_connection_host,target:"_blank",children:l.remote_connection_host})," ","Host"]})})}},46734:function(e,a,l){l.d(a,{Z:function(){return w}});var n=l(85893),t=l(67294),s=l(79230),i=l(25472),c=l(45449),o=l(80173),r=l(64998);function d(e){var a,l,d,u,f=e.table,m=e.setTargetTable,p=e.database,h=e.confirmedDelegetedUser,v=(e.query,e.icons,e.user),b=null===h||void 0===h?void 0:h.delegated,x=null===h||void 0===h||null===(a=h.priviledges)||void 0===a?void 0:a.match(/Edit Tables/i),g=null===h||void 0===h||null===(l=h.priviledges)||void 0===l?void 0:l.match(/Delete Tables/i),j=(null===h||void 0===h||null===(d=h.priviledges)||void 0===d||d.match(/Create Table/i),p.active_clone,p.active_clone_parent_db),N=p.remote_connected;return(0,n.jsxs)("a",{href:"/admin/".concat(null===v||void 0===v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(f.table_slug),className:"card w-full items-center justify-between py-4"+((null===f||void 0===f?void 0:f.child_table)?" green":""),onClick:function(e){e.target.closest(".db-list-item-actions-block")&&e.preventDefault()},children:[(0,n.jsxs)("div",{className:"flex-wrap items-center flex",children:[(0,n.jsx)(o.Z,{fontSize:"small",className:"opacity-50",color:"action"}),(0,n.jsx)("span",{className:"title",style:{fontSize:"16px"},children:f.table_name}),(0,n.jsxs)("span",{className:"text-sm text-slate-400",children:["Created: ",null===(u=f.date_created)||void 0===u?void 0:u.substring(0,21)]})]}),(0,n.jsxs)("div",{className:"flex-wrap",children:[(0,n.jsx)("div",{className:"db-list-item-actions-block flex-wrap",children:(0,n.jsxs)(c.Z,{children:[(0,n.jsx)(s.Z,{slugText:f.table_slug||"",outlined:!0}),(!b||b&&x)&&!j&&!N&&(0,n.jsx)(t.Fragment,{children:(0,n.jsx)("div",{className:"button outlined light-gray small-text",onClick:function(e){window.location.pathname="/admin/".concat(null===v||void 0===v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/").concat(f.table_slug,"/edit-table")},children:(0,n.jsx)("span",{children:"Edit"})})}),!j&&!f.child_table&&(0,n.jsx)("div",{className:"button outlined light-gray small-text",onClick:function(e){window.location.href="/admin/".concat(null===v||void 0===v?void 0:v.id,"/databases/").concat(p.db_slug,"/tables/add-table?clone=true&clone_db=").concat(p.db_slug,"&clone_table=").concat(f.table_slug)},children:(0,n.jsx)("span",{children:"Clone"})}),(!b||b&&g)&&!j&&!N&&(0,n.jsx)("div",{className:"button outlined light-gray small-text",onClick:function(e){m(f),(0,i.Mw)("delete-table-confirmation")},children:(0,n.jsx)("span",{children:"Delete"})})]})}),(0,n.jsx)(r.Z,{className:"text-slate-600",size:20})]})]})}var u=l(63749),f=l(96673),m=l(29277),p=l(66022),h=l(17621),v=l(828),b=l(74458),x=l(86729),g=l(53314),j=l(95264);function N(e){var a=e.database,l=t.useRef(),s=(0,v.Z)(t.useState(!1),2),i=s[0],c=s[1];return(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)("input",{type:"file",name:"sql-file-input",id:"sql-file-input",accept:".sql",className:"hidden",ref:l}),(0,n.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:function(e){var n,t;null===(n=l.current)||void 0===n||n.addEventListener("change",(function(e){var l,n=e.target;(null===(l=n.files)||void 0===l?void 0:l[0])?(0,g.Z)({inputFile:n.files[0]}).then((function(e){window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(c(!0),(0,x.Z)("/api/importDatabase",{method:"post",body:{database:a,fileBase64:e.fileBase64}},!0).then((function(e){e.success?window.location.reload():window.alert("Import Failed!"),setTimeout((function(){c(!1)}),1e3)})))})):window.alert("No FIles selected")})),null===(t=l.current)||void 0===t||t.click()},children:[i&&(0,n.jsx)(j.Z,{}),(0,n.jsx)("span",{className:"text-slate-400",children:"Do you have an SQL file already?"}),(0,n.jsx)(b.Z,{sx:{fontSize:80},className:"opacity-20"}),(0,n.jsx)("span",{className:"",children:"Import Database"})]})]})}var _=l(57632);function y(e){var a=e.database,l=t.useRef(),s=(0,v.Z)(t.useState(!1),2),i=s[0],c=s[1];return(0,n.jsxs)(t.Fragment,{children:[(0,n.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:l}),(0,n.jsxs)("button",{className:"flex-col normal-weight outlined gray dashed w-full p-8 relative",onClick:function(e){var n,t;null===(n=l.current)||void 0===n||n.addEventListener("change",(function(e){var l,n=e.target;(null===(l=n.files)||void 0===l?void 0:l[0])?(0,g.Z)({inputFile:n.files[0]}).then((function(e){window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))&&(c(!0),(0,x.Z)("/api/importDatabaseSchema",{method:"post",body:{database:a,fileBase64:e.fileBase64}},!0).then((function(e){e.success?window.location.reload():window.alert("Import Failed!"),setTimeout((function(){c(!1)}),1e3)})))})):window.alert("No FIles selected")})),null===(t=l.current)||void 0===t||t.click()},children:[i&&(0,n.jsx)(j.Z,{}),(0,n.jsx)("span",{className:"text-slate-400",children:"Do you have a JSON schema?"}),(0,n.jsx)(_.Z,{sx:{fontSize:80},className:"opacity-20"}),(0,n.jsx)("span",{className:"",children:"Import JSON schema"})]})]})}function w(e){var a,l,s,i=e.database,c=e.tables,o=e.setTargetTable,r=e.confirmedDelegetedUser,v=e.query,b=e.user,x=null===r||void 0===r?void 0:r.delegated,g=(null===r||void 0===r||null===(a=r.priviledges)||void 0===a||a.match(/Edit Tables/i),null===r||void 0===r||null===(l=r.priviledges)||void 0===l||l.match(/Delete Tables/i),null===r||void 0===r||null===(s=r.priviledges)||void 0===s?void 0:s.match(/Create Table/i)),j=!(c&&c[0]||x)||!(c&&c[0]||!x||!g),_=(i.active_clone,i.active_clone_parent_db),w=i.remote_connected;return(0,n.jsx)(t.Fragment,{children:(0,n.jsxs)("div",{className:"w-full flex-col",children:[c&&c[0]&&c.map((function(e){return(0,n.jsx)(d,{table:e,setTargetTable:o,database:i,confirmedDelegetedUser:r,query:v,icons:{edit:u.Z,duplicate:f.Z,delete:m.Z,copy:p.Z},user:b},e.id)})),j&&!_&&!w&&(0,n.jsx)(t.Fragment,{children:(0,n.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 items-stretch gap-6",children:[(0,n.jsxs)("a",{href:"/admin/".concat(null===b||void 0===b?void 0:b.id,"/databases/").concat(i.db_slug,"/tables/add-table"),className:"button flex-col normal-weight outlined gray dashed border-dotted w-full p-8",children:[(0,n.jsx)("span",{className:"text-slate-400",children:"No Tables Created."}),(0,n.jsx)(h.Z,{sx:{fontSize:100},className:"opacity-20"}),(0,n.jsx)("span",{className:"",children:"Add Table"})]}),(0,n.jsx)(N,{database:i}),(0,n.jsx)(y,{database:i})]})}),(!c||!c[0])&&x&&(0,n.jsx)("span",{className:"text-sm bg-slate-100 px-3 py-2 rounded w-full flex items-center justify-center text-slate-400",children:"Tables will show here once the owner of the database adds one"})]})})}},94986:function(e,a,l){l.d(a,{Z:function(){return t}});var n=l(85893);l(67294);function t(e){var a,l=e.database,t=e.user,s=null===(a=l.active_clone_parent_db)||void 0===a?void 0:a.replace(/datasquirel_user_\d+_/,""),i="/admin/".concat(null===t||void 0===t?void 0:t.id,"/databases/").concat(s);return(0,n.jsx)("div",{className:"info green",children:(0,n.jsxs)("span",{className:"text font-normal",children:["This database is an active clone of"," ",(0,n.jsx)("b",{children:(0,n.jsx)("a",{href:i,target:"_blank",className:"query-url",children:s})})]})})}},25472:function(e,a,l){l.d(a,{Mw:function(){return c},ZP:function(){return i},j4:function(){return o}});var n=l(85893),t=l(41352),s=l(67294);function i(e){var a=e.children,l=e.title,i=e.data,c=e.fullPage,r=e.wrapperClasses,d=e.closePopupDispatch,u=e.wrapperStyle,f=e.noContainer;return c?(0,n.jsxs)("div",{className:"popup-bg overflow-hidden "+(r||""),"data-popupid":l||null,style:u,children:[f?(0,n.jsx)(s.Fragment,{children:a}):(0,n.jsx)("div",{className:"relative w-full h-full z-50","data-data":i?JSON.stringify(i):"",children:a}),(0,n.jsx)("button",{className:"popup-cancel-button fixed outlined gray",onClick:function(e){o(),d&&d()},children:(0,n.jsx)(t.Z,{color:"white",size:20})}),(0,n.jsx)("div",{className:"popup-canceller",onClick:function(e){o(),d&&d()}})]}):(0,n.jsxs)("div",{className:"popup-bg","data-popupid":l||null,children:[f?(0,n.jsx)(s.Fragment,{children:a}):(0,n.jsxs)("div",{className:"popup-content-container minimal-scrollbars","data-data":i?JSON.stringify(i):"",children:[a,(0,n.jsx)("button",{className:"outlined gray popup-cancel-button",onClick:function(e){o(),d&&d()},children:(0,n.jsx)("span",{className:"font-normal",children:"\u2716"})})]}),f&&(0,n.jsx)("button",{className:"gray popup-cancel-button",onClick:function(e){o(),d&&d()},children:(0,n.jsx)("span",{className:"font-normal",children:"\u2716"})}),(0,n.jsx)("div",{className:"popup-canceller",onClick:function(e){o(),d&&d()}})]})}function c(e,a){var l=document.querySelector("[data-popupid='".concat(e,"']"));l&&(l.style.display="flex",a&&a(l))}function o(e){document.querySelectorAll("[data-popupid]").forEach((function(e){e.style.display="none"})),e&&e()}},53314:function(e,a,l){l.d(a,{Z:function(){return s}});var n=l(47568),t=l(97582);function s(e){return i.apply(this,arguments)}function i(){return(i=(0,n.Z)((function(e){var a,l,n,s;return(0,t.__generator)(this,(function(t){switch(t.label){case 0:a=e.inputFile,t.label=1;case 1:return t.trys.push([1,3,,4]),l=a.name.replace(/\..*/,""),[4,new Promise((function(e,l){var n=new FileReader;n.readAsDataURL(a),n.onload=function(){e(n.result)},n.onerror=function(e){console.log("Error: ",e.message)}}))];case 2:return[2,{fileBase64:(n=t.sent()).replace(/.*?base64,/,""),fileBase64Full:n,fileName:l,fileSize:a.size,fileType:a.type}];case 3:return s=t.sent(),console.log("Image Processing Error! =>",s.message),[2,{fileBase64:null,fileBase64Full:null,fileName:a.name,fileSize:null,fileType:null}];case 4:return[2]}}))}))).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8374-f28680e628b18bd5.js b/dsql-app/.local_dist/static/chunks/8374-f28680e628b18bd5.js deleted file mode 100644 index 99a0345..0000000 --- a/dsql-app/.local_dist/static/chunks/8374-f28680e628b18bd5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8374],{98374:function(e,n,r){r.d(n,{Z:function(){return t}});r(828),r(85893),r(67294),r(47568),r(97582),r(86729);r(29137);function t(e){e.user,e.userType,e.setLoading;return null}},29137:function(e,n,r){r.d(n,{Z:function(){return u}});var t=r(47568),s=r(97582);function u(){return c.apply(this,arguments)}function c(){return(c=(0,t.Z)((function(){var e,n;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),[4,caches.keys()];case 1:return(e=r.sent())[0]?[4,Promise.all(e.map((function(e){return caches.delete(e)})))]:[3,3];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:return n=r.sent(),console.log("Error in clearing cache =>",n.message),[3,5];case 5:return[2]}}))}))).apply(this,arguments)}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8446-a36a685092b53a06.js b/dsql-app/.local_dist/static/chunks/8446-a36a685092b53a06.js deleted file mode 100644 index c11f7fe..0000000 --- a/dsql-app/.local_dist/static/chunks/8446-a36a685092b53a06.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8446],{30073:function(e,t,o){var n=o(64836);t.Z=void 0;var r=n(o(64938)),i=o(85893),a=(0,r.default)([(0,i.jsx)("path",{d:"M8 16h12V4H8v12zm2-7h3V6h2v3h3v2h-3v3h-2v-3h-3V9z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M4 22h14v-2H4V6H2v14c0 1.1.9 2 2 2zM8 2c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H8zm12 14H8V4h12v12zm-7-2h2v-3h3V9h-3V6h-2v3h-3v2h3z"},"1")],"LibraryAddTwoTone");t.Z=a},9404:function(e,t,o){o.d(t,{Z:function(){return n}});const n=(0,o(45711).Z)("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]])},62841:function(e,t,o){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,o=1,n=arguments.length;ol?l-e:r,n=(n=nd?d-e:n,n=Number.isNaN(n)?0:n,r=Number.isNaN(r)?0:r,i){case"right":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid ").concat(c),left:0,top:n};case"left":return{borderTop:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid transparent"),borderLeft:"".concat(a,"px solid ").concat(c),right:0,top:n};case"bottom":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderBottom:"".concat(a,"px solid ").concat(c),top:0,left:r};case"top":return{borderLeft:"".concat(a,"px solid transparent"),borderRight:"".concat(a,"px solid transparent"),borderTop:"".concat(a,"px solid ").concat(c),bottom:0,left:r};default:return{display:"hidden"}}}())}),[c,a,t.height,t.left,t.top,t.width,o.height,o.left,o.top,o.width,i])}}},83423:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var n=o(67294),r=o(62319);t.useElementRef=function(e){var t=e.containerClassName,o=e.containerStyle,i=(0,n.useRef)(),a=(0,n.useState)((function(){return(0,r.createContainer)({containerStyle:o,containerClassName:t})}))[0];return(0,n.useLayoutEffect)((function(){a.className=t}),[t,a]),(0,n.useLayoutEffect)((function(){Object.assign(a.style,o)}),[o,a]),i.current=a,i}},9270:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.useHandlePrevValues=void 0;var n=o(67294);t.useHandlePrevValues=function(e){var t=(0,n.useRef)(e.positions),o=(0,n.useRef)(e.reposition),r=(0,n.useRef)(e.transformMode),i=(0,n.useRef)(e.transform),a=(0,n.useRef)(e.boundaryElement),c=(0,n.useRef)(e.boundaryInset),u=(0,n.useCallback)((function(){t.current=e.positions,o.current=e.reposition,r.current=e.transformMode,i.current=e.transform,a.current=e.boundaryElement,c.current=e.boundaryInset}),[e.boundaryElement,e.boundaryInset,e.positions,e.reposition,e.transform,e.transformMode]);return{prev:{positions:t.current,reposition:o.current,transformMode:r.current,transform:i.current,boundaryElement:a.current,boundaryInset:c.current},updatePrevValues:u}}},16444:function(e,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var n=o(67294);t.useMemoizedArray=function(e){var t=(0,n.useRef)(e);return(0,n.useMemo)((function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var o=0;o0&&"react-tiny-popover-container"!==l?"react-tiny-popover-container ".concat(l):"react-tiny-popover-container",containerStyle:a}),w=(0,n.useCallback)((function(e){var n,i,a=void 0===e?{}:e,c=a.positionIndex,l=void 0===c?0:c,P=a.parentRect,C=void 0===P?d.getBoundingClientRect():P,E=a.childRect,M=void 0===E?null===(n=null===o||void 0===o?void 0:o.current)||void 0===n?void 0:n.getBoundingClientRect():E,x=a.scoutRect,_=void 0===x?null===(i=null===y||void 0===y?void 0:y.current)||void 0===i?void 0:i.getBoundingClientRect():x,j=a.popoverRect,O=void 0===j?R.current.getBoundingClientRect():j,N=a.boundaryRect,T=void 0===N?m===d?C:m.getBoundingClientRect():N;if(M&&C&&t){if(s&&"absolute"===p){var A="function"===typeof s?s({childRect:M,popoverRect:O,parentRect:C,boundaryRect:T,padding:v,align:f,nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1}):s,k=A.top,L=A.left,V=Math.round(C.left+L-_.left),I=Math.round(C.top+k-_.top);return R.current.style.transform="translate(".concat(V,"px, ").concat(I,"px)"),void b({childRect:M,popoverRect:(0,r.createRect)({left:V,top:I,width:O.width,height:O.height}),parentRect:C,boundaryRect:T,padding:v,align:f,transform:{top:k,left:L},nudgedTop:0,nudgedLeft:0,boundaryInset:g,violations:r.EMPTY_RECT,hasViolations:!1})}var S=l===u.length,z=S?u[0]:u[l],B=(0,r.getNewPopoverRect)({childRect:M,popoverRect:O,boundaryRect:T,position:z,align:f,padding:v,reposition:h},g),Y=B.rect;if(B.boundaryViolation&&h&&!S)w({positionIndex:l+1,childRect:M,popoverRect:O,parentRect:C,boundaryRect:T});else{var H=Y.top,F=Y.left,q=Y.width,Z=Y.height,D=h&&!S,G=(0,r.getNudgedPopoverRect)(Y,T,g),J=G.left,K=G.top,Q=H,U=F;D&&(Q=K,U=J),Q=Math.round(Q-_.top),U=Math.round(U-_.left),R.current.style.transform="translate(".concat(U,"px, ").concat(Q,"px)");var W={top:T.top+g-Q,left:T.left+g-U,right:U+q-T.right+g,bottom:Q+Z-T.bottom+g},X={childRect:M,popoverRect:(0,r.createRect)({left:U,top:Q,width:q,height:Z}),parentRect:C,boundaryRect:T,position:z,align:f,padding:v,nudgedTop:K-H,nudgedLeft:J-F,boundaryInset:g,violations:{top:W.top<=0?0:W.top,left:W.left<=0?0:W.left,right:W.right<=0?0:W.right,bottom:W.bottom<=0?0:W.bottom},hasViolations:W.top>0||W.left>0||W.right>0||W.bottom>0};if(s){b(X);var $="function"===typeof s?s(X):s,ee=$.top,te=$.left;R.current.style.transform="translate(".concat(Math.round(U+(null!==te&&void 0!==te?te:0)),"px, ").concat(Math.round(Q+(null!==ee&&void 0!==ee?ee:0)),"px)"),X.nudgedLeft+=null!==te&&void 0!==te?te:0,X.nudgedTop+=null!==ee&&void 0!==ee?ee:0,X.transform={top:ee,left:te}}b(X)}}}),[d,o,y,R,m,t,s,p,u,f,v,h,g,b]);return{positionPopover:w,popoverRef:R,scoutRef:y}}},62319:function(e,t){var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,o=1,n=arguments.length;oc.right-o||"bottom"===n&&d.bottom>c.bottom-o)}};t.getNudgedPopoverRect=function(e,n,r){var i=n.top+r,a=n.left+r,c=n.right-r,u=n.bottom-r,l=e.topu?u-e.height:l;var d=e.leftc?c-e.width:d,(0,t.createRect)(o(o({},e),{top:l,left:d}))}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8473-1a1faf3d4d34beef.js b/dsql-app/.local_dist/static/chunks/8473-1a1faf3d4d34beef.js deleted file mode 100644 index 141b1bd..0000000 --- a/dsql-app/.local_dist/static/chunks/8473-1a1faf3d4d34beef.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8473],{42065:function(e,n,t){var r=t(64836);n.Z=void 0;var o=r(t(64938)),i=t(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76z"}),"ArrowBackIosRounded");n.Z=a},41899:function(e,n,t){var r=t(64836);n.Z=void 0;var o=r(t(64938)),i=t(85893),a=(0,o.default)((0,i.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}),"ContentCopy");n.Z=a},35922:function(e,n,t){t.d(n,{Z:function(){return $}});var r=t(63366),o=t(87462),i=t(67294),a=t(94780),s=t(78987),c=t(33703),u=t(59948),l=t(82690),d=t(85893);function f(e){return e.substring(2).toLowerCase()}function m(e){const{children:n,disableReactTree:t=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),m=i.useRef(null),g=i.useRef(!1),p=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{g.current=!0}),0),()=>{g.current=!1})),[]);const h=(0,c.Z)(n.ref,m),v=(0,u.Z)((e=>{const n=p.current;p.current=!1;const r=(0,l.Z)(m.current);if(!g.current||!m.current||"clientX"in e&&function(e,n){return n.documentElement.clientWidth-1:!r.documentElement.contains(e.target)||m.current.contains(e.target),i||!t&&n||o(e)})),E=e=>t=>{p.current=!0;const r=n.props[e];r&&r(t)},Z={ref:h};return!1!==a&&(Z[a]=E(a)),i.useEffect((()=>{if(!1!==a){const e=f(a),n=(0,l.Z)(m.current),t=()=>{s.current=!0};return n.addEventListener(e,v),n.addEventListener("touchmove",t),()=>{n.removeEventListener(e,v),n.removeEventListener("touchmove",t)}}}),[v,a]),!1!==r&&(Z[r]=E(r)),i.useEffect((()=>{if(!1!==r){const e=f(r),n=(0,l.Z)(m.current);return n.addEventListener(e,v),()=>{n.removeEventListener(e,v)}}}),[v,r]),(0,d.jsx)(i.Fragment,{children:i.cloneElement(n,Z)})}var g=t(30437);var p=t(2641),h=t(2734),v=t(54502),E=t(98216),Z=t(84527),y=t(30577),x=t(51705);const w=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function C(e){return`scale(${e}, ${e**2})`}const b={entering:{opacity:1,transform:C(1)},entered:{opacity:1,transform:"none"}},k="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),L=i.forwardRef((function(e,n){const{addEndListener:t,appear:a=!0,children:s,easing:c,in:u,onEnter:l,onEntered:f,onEntering:m,onExit:g,onExited:p,onExiting:v,style:E,timeout:L="auto",TransitionComponent:R=Z.ZP}=e,S=(0,r.Z)(e,w),O=i.useRef(),T=i.useRef(),P=(0,h.Z)(),M=i.useRef(null),j=(0,x.Z)(M,s.ref,n),z=e=>n=>{if(e){const t=M.current;void 0===n?e(t):e(t,n)}},H=z(m),A=z(((e,n)=>{(0,y.n)(e);const{duration:t,delay:r,easing:o}=(0,y.C)({style:E,timeout:L,easing:c},{mode:"enter"});let i;"auto"===L?(i=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=i):i=t,e.style.transition=[P.transitions.create("opacity",{duration:i,delay:r}),P.transitions.create("transform",{duration:k?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,n)})),D=z(f),B=z(v),N=z((e=>{const{duration:n,delay:t,easing:r}=(0,y.C)({style:E,timeout:L,easing:c},{mode:"exit"});let o;"auto"===L?(o=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=o):o=n,e.style.transition=[P.transitions.create("opacity",{duration:o,delay:t}),P.transitions.create("transform",{duration:k?o:.666*o,delay:k?t:t||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=C(.75),g&&g(e)})),_=z(p);return i.useEffect((()=>()=>{clearTimeout(O.current)}),[]),(0,d.jsx)(R,(0,o.Z)({appear:a,in:u,nodeRef:M,onEnter:A,onEntered:D,onEntering:H,onExit:N,onExited:_,onExiting:B,addEndListener:e=>{"auto"===L&&(O.current=setTimeout(e,T.current||0)),t&&t(M.current,e)},timeout:"auto"===L?null:L},S,{children:(e,n)=>i.cloneElement(s,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:C(.75),visibility:"exited"!==e||u?void 0:"hidden"},b[e],E,s.props.style),ref:j},n))}))}));L.muiSupportAuto=!0;var R=L,S=t(90512),O=t(41796),T=t(90629),P=t(1588),M=t(34867);function j(e){return(0,M.Z)("MuiSnackbarContent",e)}(0,P.Z)("MuiSnackbarContent",["root","message","action"]);const z=["action","className","message","role"],H=(0,p.ZP)(T.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,n)=>n.root})((({theme:e})=>{const n="light"===e.palette.mode?.8:.98,t=(0,O._4)(e.palette.background.default,n);return(0,o.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(t),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:t,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),A=(0,p.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,n)=>n.message})({padding:"8px 0"}),D=(0,p.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,n)=>n.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});var B=i.forwardRef((function(e,n){const t=(0,v.Z)({props:e,name:"MuiSnackbarContent"}),{action:i,className:s,message:c,role:u="alert"}=t,l=(0,r.Z)(t,z),f=t,m=(e=>{const{classes:n}=e;return(0,a.Z)({root:["root"],action:["action"],message:["message"]},j,n)})(f);return(0,d.jsxs)(H,(0,o.Z)({role:u,square:!0,elevation:6,className:(0,S.Z)(m.root,s),ownerState:f,ref:n},l,{children:[(0,d.jsx)(A,{className:m.message,ownerState:f,children:c}),i?(0,d.jsx)(D,{className:m.action,ownerState:f,children:i}):null]}))}));function N(e){return(0,M.Z)("MuiSnackbar",e)}(0,P.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const _=["onEnter","onExited"],W=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],I=(0,p.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[`anchorOrigin${(0,E.Z)(t.anchorOrigin.vertical)}${(0,E.Z)(t.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:n})=>(0,o.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===n.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===n.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===n.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,o.Z)({},"top"===n.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===n.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===n.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===n.anchorOrigin.horizontal&&{right:24,left:"auto"})})));var $=i.forwardRef((function(e,n){const t=(0,v.Z)({props:e,name:"MuiSnackbar"}),c=(0,h.Z)(),l={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{action:f,anchorOrigin:{vertical:p,horizontal:Z}={vertical:"bottom",horizontal:"left"},autoHideDuration:y=null,children:x,className:w,ClickAwayListenerProps:C,ContentProps:b,disableWindowBlurListener:k=!1,message:L,open:S,TransitionComponent:O=R,transitionDuration:T=l,TransitionProps:{onEnter:P,onExited:M}={}}=t,j=(0,r.Z)(t.TransitionProps,_),z=(0,r.Z)(t,W),H=(0,o.Z)({},t,{anchorOrigin:{vertical:p,horizontal:Z},autoHideDuration:y,disableWindowBlurListener:k,TransitionComponent:O,transitionDuration:T}),A=(e=>{const{classes:n,anchorOrigin:t}=e,r={root:["root",`anchorOrigin${(0,E.Z)(t.vertical)}${(0,E.Z)(t.horizontal)}`]};return(0,a.Z)(r,N,n)})(H),{getRootProps:D,onClickAway:$}=function(e={}){const{autoHideDuration:n=null,disableWindowBlurListener:t=!1,onClose:r,open:a,resumeHideDuration:s}=e,c=i.useRef();i.useEffect((()=>{if(a)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==r||r(e,"escapeKeyDown")}}),[a,r]);const l=(0,u.Z)(((e,n)=>{null==r||r(e,n)})),d=(0,u.Z)((e=>{r&&null!=e&&(clearTimeout(c.current),c.current=setTimeout((()=>{l(null,"timeout")}),e))}));i.useEffect((()=>(a&&d(n),()=>{clearTimeout(c.current)})),[a,n,d]);const f=()=>{clearTimeout(c.current)},m=i.useCallback((()=>{null!=n&&d(null!=s?s:.5*n)}),[n,s,d]),p=e=>n=>{const t=e.onFocus;null==t||t(n),f()},h=e=>n=>{const t=e.onMouseEnter;null==t||t(n),f()},v=e=>n=>{const t=e.onMouseLeave;null==t||t(n),m()};return i.useEffect((()=>{if(!t&&a)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}}),[t,m,a]),{getRootProps:(n={})=>{const t=(0,o.Z)({},(0,g._)(e),(0,g._)(n));return(0,o.Z)({role:"presentation"},n,t,{onBlur:(r=t,e=>{const n=r.onBlur;null==n||n(e),m()}),onFocus:p(t),onMouseEnter:h(t),onMouseLeave:v(t)});var r},onClickAway:e=>{null==r||r(e,"clickaway")}}}((0,o.Z)({},H)),[F,V]=i.useState(!0),X=(0,s.y)({elementType:I,getSlotProps:D,externalForwardedProps:z,ownerState:H,additionalProps:{ref:n},className:[A.root,w]});return!S&&F?null:(0,d.jsx)(m,(0,o.Z)({onClickAway:$},C,{children:(0,d.jsx)(I,(0,o.Z)({},X,{children:(0,d.jsx)(O,(0,o.Z)({appear:!0,in:S,timeout:T,direction:"top"===p?"down":"up",onEnter:(e,n)=>{V(!1),P&&P(e,n)},onExited:e=>{V(!0),M&&M(e)}},j,{children:x||(0,d.jsx)(B,(0,o.Z)({message:L,action:f},b))}))}))}))}))}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8521-4c189a61028357c2.js b/dsql-app/.local_dist/static/chunks/8521-4c189a61028357c2.js new file mode 100644 index 0000000..defb98e --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8521-4c189a61028357c2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8521],{52917:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"M11.71 17.99C8.53 17.84 6 15.22 6 12c0-3.31 2.69-6 6-6 3.22 0 5.84 2.53 5.99 5.71l-2.1-.63C15.48 9.31 13.89 8 12 8c-2.21 0-4 1.79-4 4 0 1.89 1.31 3.48 3.08 3.89zM22 12c0 .3-.01.6-.04.9l-1.97-.59c.01-.1.01-.21.01-.31 0-4.42-3.58-8-8-8s-8 3.58-8 8 3.58 8 8 8c.1 0 .21 0 .31-.01l.59 1.97c-.3.03-.6.04-.9.04-5.52 0-10-4.48-10-10S6.48 2 12 2s10 4.48 10 10m-3.77 4.26L22 15l-10-3 3 10 1.26-3.77 4.27 4.27 1.98-1.98z"}),"AdsClickTwoTone")},58349:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},64930:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M8 9h8v10H8z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"m15.5 4-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteTwoTone")},33622:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2M4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12m8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4-3.6 8-8 8"}),"DoDisturbAltTwoTone")},66154:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"M17 5h-2V3h2zm-2 10v6l2.29-2.29 2.3 2.29L21 19.59l-2.29-2.29L21 15zm4-6h2V7h-2zm0 4h2v-2h-2zm-8 8h2v-2h-2zM7 5h2V3H7zM3 17h2v-2H3zm2 4v-2H3c0 1.1.9 2 2 2M19 3v2h2c0-1.1-.9-2-2-2m-8 2h2V3h-2zM3 9h2V7H3zm4 12h2v-2H7zm-4-8h2v-2H3zm0-8h2V3c-1.1 0-2 .9-2 2"}),"HighlightAltTwoTone")},16837:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M8 9.86v4.28L11.03 12z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M14.5 12 6 6v12zM8 9.86 11.03 12 8 14.14zM16 6h2v12h-2z"},"1")],"SkipNextTwoTone")},61373:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M16 14.14V9.86L12.97 12z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M6 6h2v12H6zm12 12V6l-8.5 6zm-2-3.86L12.97 12 16 9.86z"},"1")],"SkipPreviousTwoTone")},31524:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M15.22 4.75 7.87 7.79l4.96 11.96 7.35-3.05zM11 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1",opacity:".3"},"0"),(0,a.jsx)("path",{d:"m3.87 11.18-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61l1.34.56zm18.16 4.77L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.21 1.03-1.23 1.8-.01.27.04.54.15.8l4.96 11.97c.31.76 1.05 1.22 1.83 1.23.26 0 .52-.05.77-.15l7.36-3.05c1.02-.42 1.51-1.59 1.09-2.6m-9.2 3.8L7.87 7.79l7.35-3.04h.01l4.95 11.95z"},"1"),(0,a.jsx)("circle",{cx:"11",cy:"9",r:"1"},"2"),(0,a.jsx)("path",{d:"m9.33 21.75-3.45-8.34v6.34c0 1.1.9 2 2 2z"},"3")],"StyleTwoTone")},17416:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"m18 4-3 3h2v13h2V7h2zm-6.2 11.5v-5l2.2-.9V7.5L3 12.25v1.5l11 4.75v-2.1zM4.98 13 10 11.13v3.74z"}),"TextRotateUpTwoTone")},26261:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)((0,a.jsx)("path",{d:"M15.75 5h-1.5L9.5 16h2.1l.9-2.2h5l.9 2.2h2.1zm-2.62 7L15 6.98 16.87 12zM6 20l3-3H7V4H5v13H3z"}),"TextRotateVerticalTwoTone")},53657:(e,t,r)=>{var n=r(24994);t.A=void 0;var o=n(r(44888)),a=r(74848);t.A=(0,o.default)([(0,a.jsx)("path",{d:"M5 19h14V5H5zm7-12h6v2h-6zm-3 4h6v2H9zm-3 4h6v2H6z",opacity:".3"},"0"),(0,a.jsx)("path",{d:"M6 15h6v2H6zm6-8h6v2h-6zm-3 4h6v2H9z"},"1"),(0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14z"},"2")],"ViewTimelineTwoTone")},89657:(e,t,r)=>{r.d(t,{Ay:()=>D});var n=r(98587),o=r(58168),a=r(96540),i=r(34164),l=r(75659),s=r(73788),c=r(68144),d=r(21962),u=r(57223),p=r(24904),h=r(13372),f=r(63891),m=r(82586),v=r(34013),A=r(74848);let y=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x(e,t,r){let n=function(e,t,r){let n;let o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,v.A)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=i.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?a?"translateX(".concat(a.right+l-o.left,"px)"):"translateX(".concat(i.innerWidth+l-o.left,"px)"):"right"===e?a?"translateX(-".concat(o.right-a.left-l,"px)"):"translateX(-".concat(o.left+o.width-l,"px)"):"up"===e?a?"translateY(".concat(a.bottom+s-o.top,"px)"):"translateY(".concat(i.innerHeight+s-o.top,"px)"):a?"translateY(-".concat(o.top-a.top+o.height-s,"px)"):"translateY(-".concat(o.top+o.height-s,"px)")}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}let g=a.forwardRef(function(e,t){let r=(0,f.A)(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:c=!0,children:g,container:k,direction:b="down",easing:E=i,in:w,onEnter:M,onEntered:T,onEntering:R,onExit:z,onExited:P,onExiting:C,style:j,timeout:S=l,TransitionComponent:L=d.Ay}=e,I=(0,n.A)(e,y),N=a.useRef(null),H=(0,h.A)((0,u.A)(g),N,t),D=e=>t=>{e&&(void 0===t?e(N.current):e(N.current,t))},V=D((e,t)=>{x(b,e,k),(0,m.q)(e),M&&M(e,t)}),B=D((e,t)=>{let n=(0,m.c)({timeout:S,style:j,easing:E},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,o.A)({},n)),e.style.transition=r.transitions.create("transform",(0,o.A)({},n)),e.style.webkitTransform="none",e.style.transform="none",R&&R(e,t)}),O=D(T),F=D(C),q=D(e=>{let t=(0,m.c)({timeout:S,style:j,easing:E},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),x(b,e,k),z&&z(e)}),U=D(e=>{e.style.webkitTransition="",e.style.transition="",P&&P(e)}),K=a.useCallback(()=>{N.current&&x(b,N.current,k)},[b,k]);return a.useEffect(()=>{if(w||"down"===b||"right"===b)return;let e=(0,p.A)(()=>{N.current&&x(b,N.current,k)}),t=(0,v.A)(N.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[b,w,k]),a.useEffect(()=>{w||K()},[w,K]),(0,A.jsx)(L,(0,o.A)({nodeRef:N,onEnter:V,onEntered:O,onEntering:B,onExit:q,onExited:U,onExiting:F,addEndListener:e=>{s&&s(N.current,e)},appear:c,in:w,timeout:S},I,{children:(e,t)=>a.cloneElement(g,(0,o.A)({ref:H,style:(0,o.A)({visibility:"exited"!==e||w?void 0:"hidden"},j,g.props.style)},t))}))});var k=r(34544),b=r(97306),E=r(98301),w=r(3552),M=r(64891),T=r(38413),R=r(31609);function z(e){return(0,R.Ay)("MuiDrawer",e)}(0,T.A)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let P=["BackdropProps"],C=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],j=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},S=e=>{let{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,b.A)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,b.A)(r))]};return(0,l.A)(o,z,t)},L=(0,w.Ay)(c.A,{name:"MuiDrawer",slot:"Root",overridesResolver:j})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}}),I=(0,w.Ay)("div",{shouldForwardProp:M.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:j})({flex:"0 0 auto"}),N=(0,w.Ay)(k.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,b.A)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,b.A)(r.anchor))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})}),H={left:"right",right:"left",top:"down",bottom:"up"},D=a.forwardRef(function(e,t){let r=(0,E.b)({props:e,name:"MuiDrawer"}),l=(0,f.A)(),c=(0,s.I)(),d={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{anchor:u="left",BackdropProps:p,children:h,className:m,elevation:v=16,hideBackdrop:y=!1,ModalProps:{BackdropProps:x}={},onClose:k,open:b=!1,PaperProps:w={},SlideProps:M,TransitionComponent:T=g,transitionDuration:R=d,variant:z="temporary"}=r,j=(0,n.A)(r.ModalProps,P),D=(0,n.A)(r,C),V=a.useRef(!1);a.useEffect(()=>{V.current=!0},[]);let B=function(e,t){let{direction:r}=e;return"rtl"===r&&-1!==["left","right"].indexOf(t)?H[t]:t}({direction:c?"rtl":"ltr"},u),O=(0,o.A)({},r,{anchor:u,elevation:v,open:b,variant:z},D),F=S(O),q=(0,A.jsx)(N,(0,o.A)({elevation:"temporary"===z?v:0,square:!0},w,{className:(0,i.A)(F.paper,w.className),ownerState:O,children:h}));if("permanent"===z)return(0,A.jsx)(I,(0,o.A)({className:(0,i.A)(F.root,F.docked,m),ownerState:O,ref:t},D,{children:q}));let U=(0,A.jsx)(T,(0,o.A)({in:b,direction:H[B],timeout:R,appear:V.current},M,{children:q}));return"persistent"===z?(0,A.jsx)(I,(0,o.A)({className:(0,i.A)(F.root,F.docked,m),ownerState:O,ref:t},D,{children:U})):(0,A.jsx)(L,(0,o.A)({BackdropProps:(0,o.A)({},p,x,{transitionDuration:R}),className:(0,i.A)(F.root,F.modal,m),open:b,ownerState:O,onClose:k,hideBackdrop:y,ref:t},D,j,{children:U}))})},68144:(e,t,r)=>{r.d(t,{A:()=>Q});var n=r(98587),o=r(58168),a=r(96540),i=r(34164),l=r(75659),s=r(25908),c=r(31523),d=r(57223),u=r(32325),p=r(74848);function h(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t)),r=t('[name="'.concat(e.name,'"]:checked'));return r||(r=t('[name="'.concat(e.name,'"]'))),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function f(){return!0}let m=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=h,isEnabled:l=f,open:s}=e,m=a.useRef(!1),v=a.useRef(null),A=a.useRef(null),y=a.useRef(null),x=a.useRef(null),g=a.useRef(!1),k=a.useRef(null),b=(0,c.A)((0,d.A)(t),k),E=a.useRef(null);a.useEffect(()=>{s&&k.current&&(g.current=!r)},[r,s]),a.useEffect(()=>{if(!s||!k.current)return;let e=(0,u.A)(k.current);return!k.current.contains(e.activeElement)&&(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex","-1"),g.current&&k.current.focus()),()=>{o||(y.current&&y.current.focus&&(m.current=!0,y.current.focus()),y.current=null)}},[s]),a.useEffect(()=>{if(!s||!k.current)return;let e=(0,u.A)(k.current),t=t=>{E.current=t,!n&&l()&&"Tab"===t.key&&e.activeElement===k.current&&t.shiftKey&&(m.current=!0,A.current&&A.current.focus())},r=()=>{let t=k.current;if(null===t)return;if(!e.hasFocus()||!l()||m.current){m.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==v.current&&e.activeElement!==A.current)return;if(e.activeElement!==x.current)x.current=null;else if(null!==x.current)return;if(!g.current)return;let r=[];if((e.activeElement===v.current||e.activeElement===A.current)&&(r=i(k.current)),r.length>0){var o,a;let e=!!((null==(o=E.current)?void 0:o.shiftKey)&&(null==(a=E.current)?void 0:a.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,l,s,i]);let w=e=>{null===y.current&&(y.current=e.relatedTarget),g.current=!0};return(0,p.jsxs)(a.Fragment,{children:[(0,p.jsx)("div",{tabIndex:s?0:-1,onFocus:w,ref:v,"data-testid":"sentinelStart"}),a.cloneElement(t,{ref:b,onFocus:e=>{null===y.current&&(y.current=e.relatedTarget),g.current=!0,x.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,p.jsx)("div",{tabIndex:s?0:-1,onFocus:w,ref:A,"data-testid":"sentinelEnd"})]})};var v=r(40961),A=r(21529),y=r(17365);let x=a.forwardRef(function(e,t){let{children:r,container:n,disablePortal:o=!1}=e,[i,l]=a.useState(null),s=(0,c.A)(a.isValidElement(r)?(0,d.A)(r):null,t);return((0,A.A)(()=>{!o&&l(("function"==typeof n?n():n)||document.body)},[n,o]),(0,A.A)(()=>{if(i&&!o)return(0,y.A)(t,i),()=>{(0,y.A)(t,null)}},[t,i,o]),o)?a.isValidElement(r)?a.cloneElement(r,{ref:s}):(0,p.jsx)(a.Fragment,{children:r}):(0,p.jsx)(a.Fragment,{children:i?v.createPortal(r,i):i})});var g=r(3552),k=r(98301),b=r(21962),E=r(63891),w=r(82586),M=r(13372);let T=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],R={entering:{opacity:1},entered:{opacity:1}},z=a.forwardRef(function(e,t){let r=(0,E.A)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:s=!0,children:c,easing:u,in:h,onEnter:f,onEntered:m,onEntering:v,onExit:A,onExited:y,onExiting:x,style:g,timeout:k=i,TransitionComponent:z=b.Ay}=e,P=(0,n.A)(e,T),C=a.useRef(null),j=(0,M.A)(C,(0,d.A)(c),t),S=e=>t=>{if(e){let r=C.current;void 0===t?e(r):e(r,t)}},L=S(v),I=S((e,t)=>{(0,w.q)(e);let n=(0,w.c)({style:g,timeout:k,easing:u},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),f&&f(e,t)}),N=S(m),H=S(x),D=S(e=>{let t=(0,w.c)({style:g,timeout:k,easing:u},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),A&&A(e)}),V=S(y);return(0,p.jsx)(z,(0,o.A)({appear:s,in:h,nodeRef:C,onEnter:I,onEntered:N,onEntering:L,onExit:D,onExited:V,onExiting:H,addEndListener:e=>{l&&l(C.current,e)},timeout:k},P,{children:(e,t)=>a.cloneElement(c,(0,o.A)({style:(0,o.A)({opacity:0,visibility:"exited"!==e||h?void 0:"hidden"},R[e],g,c.props.style),ref:j},t))}))});var P=r(38413),C=r(31609);function j(e){return(0,C.Ay)("MuiBackdrop",e)}(0,P.A)("MuiBackdrop",["root","invisible"]);let S=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],L=e=>{let{classes:t,invisible:r}=e;return(0,l.A)({root:["root",r&&"invisible"]},j,t)},I=(0,g.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,o.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})}),N=a.forwardRef(function(e,t){var r,a,l;let s=(0,k.b)({props:e,name:"MuiBackdrop"}),{children:c,className:d,component:u="div",components:h={},componentsProps:f={},invisible:m=!1,open:v,slotProps:A={},slots:y={},TransitionComponent:x=z,transitionDuration:g}=s,b=(0,n.A)(s,S),E=(0,o.A)({},s,{component:u,invisible:m}),w=L(E),M=null!=(r=A.root)?r:f.root;return(0,p.jsx)(x,(0,o.A)({in:v,timeout:g},b,{children:(0,p.jsx)(I,(0,o.A)({"aria-hidden":!0},M,{as:null!=(a=null!=(l=y.root)?l:h.Root)?a:u,className:(0,i.A)(w.root,d,null==M?void 0:M.className),ownerState:(0,o.A)({},E,null==M?void 0:M.ownerState),classes:w,ref:t,children:c}))}))});var H=r(71547),D=r(76673),V=r(97340),B=r(44877);function O(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function F(e){return parseInt((0,B.A)(e).getComputedStyle(e).paddingRight,10)||0}function q(e,t,r,n,o){let a=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===a.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&O(e,o)})}function U(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class K{add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&O(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);q(t,e.mount,e.modalRef,n,!0);let o=U(this.containers,e=>e.container===t);return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=U(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,u.A)(e);return t.body===e?(0,B.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=function(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}((0,u.A)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight="".concat(F(n)+e,"px");let t=(0,u.A)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(F(t)+e,"px")})}if(n.parentNode instanceof DocumentFragment)e=(0,u.A)(n).body;else{let t=n.parentElement,r=(0,B.A)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(e=>{let{value:t,el:r,property:n}=e;t?r.style.setProperty(n,t):r.style.removeProperty(n)})}}(n,t))}remove(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this.modals.indexOf(e);if(-1===r)return r;let n=U(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&O(e.modalRef,t),q(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&O(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}}let Y=new K,W=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Y,closeAfterTransition:l=!1,onTransitionEnter:s,onTransitionExited:d,children:p,onClose:h,open:f,rootRef:m}=e,v=a.useRef({}),A=a.useRef(null),y=a.useRef(null),x=(0,c.A)(y,m),[g,k]=a.useState(!f),b=!!p&&p.props.hasOwnProperty("in"),E=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(E=!1);let w=()=>(0,u.A)(A.current),M=()=>(v.current.modalRef=y.current,v.current.mount=A.current,v.current),T=()=>{i.mount(M(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},R=(0,H.A)(()=>{let e=("function"==typeof t?t():t)||w().body;i.add(M(),e),y.current&&T()}),z=a.useCallback(()=>i.isTopModal(M()),[i]),P=(0,H.A)(e=>{A.current=e,e&&(f&&z()?T():y.current&&O(y.current,E))}),C=a.useCallback(()=>{i.remove(M(),E)},[E,i]);a.useEffect(()=>()=>{C()},[C]),a.useEffect(()=>{f?R():b&&l||C()},[f,C,b,l,R]);let j=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&z()&&!r&&(t.stopPropagation(),h&&h(t,"escapeKeyDown"))},S=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&h&&h(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,V.A)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n=(0,o.A)({},r,t);return(0,o.A)({role:"presentation"},n,{onKeyDown:j(n),ref:x})},getBackdropProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.A)({"aria-hidden":!0},e,{onClick:S(e),open:f})},getTransitionProps:()=>({onEnter:(0,D.A)(()=>{k(!1),s&&s()},null==p?void 0:p.props.onEnter),onExited:(0,D.A)(()=>{k(!0),d&&d(),l&&C()},null==p?void 0:p.props.onExited)}),rootRef:x,portalRef:P,isTopModal:z,exited:g,hasTransition:b}};function X(e){return(0,C.Ay)("MuiModal",e)}(0,P.A)("MuiModal",["root","hidden","backdrop"]);let _=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],G=e=>{let{open:t,exited:r,classes:n}=e;return(0,l.A)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},X,n)},Z=(0,g.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})}),J=(0,g.Ay)(N,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Q=a.forwardRef(function(e,t){var r,l,c,d,u,h;let f=(0,k.b)({name:"MuiModal",props:e}),{BackdropComponent:v=J,BackdropProps:A,className:y,closeAfterTransition:g=!1,children:b,container:E,component:w,components:M={},componentsProps:T={},disableAutoFocus:R=!1,disableEnforceFocus:z=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:j=!1,disableScrollLock:S=!1,hideBackdrop:L=!1,keepMounted:I=!1,onBackdropClick:N,open:H,slotProps:D,slots:V}=f,B=(0,n.A)(f,_),O=(0,o.A)({},f,{closeAfterTransition:g,disableAutoFocus:R,disableEnforceFocus:z,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:j,disableScrollLock:S,hideBackdrop:L,keepMounted:I}),{getRootProps:F,getBackdropProps:q,getTransitionProps:U,portalRef:K,isTopModal:Y,exited:X,hasTransition:Q}=W((0,o.A)({},O,{rootRef:t})),$=(0,o.A)({},O,{exited:X}),ee=G($),et={};if(void 0===b.props.tabIndex&&(et.tabIndex="-1"),Q){let{onEnter:e,onExited:t}=U();et.onEnter=e,et.onExited=t}let er=null!=(r=null!=(l=null==V?void 0:V.root)?l:M.Root)?r:Z,en=null!=(c=null!=(d=null==V?void 0:V.backdrop)?d:M.Backdrop)?c:v,eo=null!=(u=null==D?void 0:D.root)?u:T.root,ea=null!=(h=null==D?void 0:D.backdrop)?h:T.backdrop,ei=(0,s.A)({elementType:er,externalSlotProps:eo,externalForwardedProps:B,getSlotProps:F,additionalProps:{ref:t,as:w},ownerState:$,className:(0,i.A)(y,null==eo?void 0:eo.className,null==ee?void 0:ee.root,!$.open&&$.exited&&(null==ee?void 0:ee.hidden))}),el=(0,s.A)({elementType:en,externalSlotProps:ea,additionalProps:A,getSlotProps:e=>q((0,o.A)({},e,{onClick:t=>{N&&N(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,i.A)(null==ea?void 0:ea.className,null==A?void 0:A.className,null==ee?void 0:ee.backdrop),ownerState:$});return I||H||Q&&!X?(0,p.jsx)(x,{ref:K,container:E,disablePortal:C,children:(0,p.jsxs)(er,(0,o.A)({},ei,{children:[!L&&v?(0,p.jsx)(en,(0,o.A)({},el)):null,(0,p.jsx)(m,{disableEnforceFocus:z,disableAutoFocus:R,disableRestoreFocus:j,isEnabled:Y,open:H,children:a.cloneElement(b,et)})]}))}):null})},87296:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("CloudUpload",[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"M12 12v9",key:"192myk"}],["path",{d:"m16 16-4-4-4 4",key:"119tzi"}]])},6831:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("DatabaseBackup",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 12a9 3 0 0 0 5 2.69",key:"1ui2ym"}],["path",{d:"M21 9.3V5",key:"6k6cib"}],["path",{d:"M3 5v14a9 3 0 0 0 6.47 2.88",key:"i62tjy"}],["path",{d:"M12 12v4h4",key:"1bxaet"}],["path",{d:"M13 20a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L12 16",key:"1f4ei9"}]])},68622:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},97206:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]])},14858:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("LockKeyhole",[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]])},2750:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},42595:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("SquareChevronRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]])},94909:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8717-b60634778115f32f.js b/dsql-app/.local_dist/static/chunks/8717-b60634778115f32f.js new file mode 100644 index 0000000..301f91a --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8717-b60634778115f32f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8717],{87220:(e,r,o)=>{o.d(r,{A:()=>t});let t=(0,o(95737).A)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},94909:(e,r,o)=>{o.d(r,{A:()=>t});let t=(0,o(95737).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},50856:(e,r,o)=>{o.d(r,{QP:()=>K});let t=e=>{let r=a(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},a=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{i(o,t,e,r)}),t},i=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){i(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{i(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],a=0,i=0;for(let d=0;di?o-i:void 0}};return o?e=>o({className:e,parseClassName:s}):s},g=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),f=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(f),a="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:i,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){a=r+(a.length>0?" "+a:a);continue}u=!1}let m=g(i).join(":"),f=d?m+"!":m,h=f+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+a:a)}return a};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},v=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,G=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>E(e)||z.has(e)||k.test(e),N=e=>V(e,"length",B),E=e=>!!e&&!Number.isNaN(Number(e)),$=e=>V(e,"number",E),I=e=>!!e&&Number.isInteger(Number(e)),_=e=>e.endsWith("%")&&E(e.slice(0,-1)),O=e=>v.test(e),A=e=>j.test(e),R=new Set(["length","size","percentage"]),W=e=>V(e,R,D),q=e=>V(e,"position",D),T=new Set(["image","url"]),H=e=>V(e,T,J),Q=e=>V(e,"",F),U=()=>!0,V=(e,r,o)=>{let t=v.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},B=e=>C.test(e)&&!S.test(e),D=()=>!1,F=e=>G.test(e),J=e=>M.test(e);Symbol.toStringTag;let K=function(e,...r){let o,t,n;let l=function(a){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(a)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=w("colors"),r=w("spacing"),o=w("blur"),t=w("brightness"),n=w("borderColor"),l=w("borderRadius"),s=w("borderSpacing"),a=w("borderWidth"),i=w("contrast"),d=w("grayscale"),c=w("hueRotate"),p=w("invert"),u=w("gap"),b=w("gradientColorStops"),g=w("gradientColorStopPositions"),m=w("inset"),f=w("margin"),h=w("opacity"),y=w("padding"),x=w("saturate"),v=w("scale"),k=w("sepia"),z=w("skew"),j=w("space"),C=w("translate"),S=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",O,r],R=()=>[O,r],T=()=>["",P,N],V=()=>["auto",E,O],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",O],L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[E,O];return{cacheSize:500,separator:":",theme:{colors:[U],spacing:[P,N],blur:["none","",A,O],brightness:X(),borderColor:[e],borderRadius:["none","","full",A,O],borderSpacing:R(),borderWidth:T(),contrast:X(),grayscale:K(),hueRotate:X(),invert:K(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[_,N],inset:M(),margin:M(),opacity:X(),padding:R(),saturate:X(),scale:X(),sepia:K(),skew:X(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",O]}],container:["container"],columns:[{columns:[A]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...B(),O]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,O]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",O]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",I,O]}],"grid-cols":[{"grid-cols":[U]}],"col-start-end":[{col:["auto",{span:["full",I,O]},O]}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":[U]}],"row-start-end":[{row:["auto",{span:[I,O]},O]}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",O]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",O]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...J()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...J(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...J(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",O,r]}],"min-w":[{"min-w":[O,r,"min","max","fit"]}],"max-w":[{"max-w":[O,r,"none","full","min","max","fit","prose",{screen:[A]},A]}],h:[{h:[O,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[O,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[O,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[O,r,"auto","min","max","fit"]}],"font-size":[{text:["base",A,N]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[U]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",O]}],"line-clamp":[{"line-clamp":["none",E,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,O]}],"list-image":[{"list-image":["none",O]}],"list-style-type":[{list:["none","disc","decimal",O]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,N]}],"underline-offset":[{"underline-offset":["auto",P,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),q]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",W]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},H]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:D()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[P,O]}],"outline-w":[{outline:[P,N]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:T()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[P,N]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",A,Q]}],"shadow-color":[{shadow:[U]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[i]}],"drop-shadow":[{"drop-shadow":["","none",A,O]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[i]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",O]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",O]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",O]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[I,O]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",O]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,N,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8866-9b36026d12284c11.js b/dsql-app/.local_dist/static/chunks/8866-9b36026d12284c11.js new file mode 100644 index 0000000..ffbd59f --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/8866-9b36026d12284c11.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8866],{47652:(e,a,t)=>{t.d(a,{A:()=>i});var h=t(74848),l=t(96540),d=t(23698),c=t(45165),o=t(620);function i(e){let{targetDatabase:a}=e,[t,i]=l.useState(!1);return(0,h.jsxs)(c.Ay,{title:"delete-database-confirmation",children:[t&&(0,h.jsx)(o.A,{width:"20px"}),(0,h.jsxs)("h4",{className:"m-0",children:["Delete '",(null==a?void 0:a.db_name)?a.db_name:"This Database","' database?"]}),(0,h.jsxs)("div",{children:[(0,h.jsx)("button",{className:"outlined"+(t?" pointer-events-none opacity-40":""),onClick:e=>{if(!a){alert("No Target Database Selected!");return}i(!0),window.confirm("Note that you will loose all data in this database. Continue?")?(0,d.A)("/api/deleteUserDatabase",{method:"post",body:a},!0).then(e=>{e.success&&window.location.reload()}):i(!1)},children:(0,h.jsx)("span",{children:"Yes"})}),(0,h.jsx)("button",{onClick:e=>{(0,c.fs)()},children:(0,h.jsx)("span",{children:"Cancel"})})]})]})}},70910:(e,a,t)=>{t.d(a,{A:()=>d});var h=t(74848);t(96540);var l=t(74315);function d(e){let{slugText:a,smaller:t,outlined:d,full:c}=e;return(0,h.jsxs)("span",{className:"button break-words text-wrap cancel-link "+(d?" outlined gray":"light-gray")+(t?" small-text":""),onClick:e=>{navigator.clipboard.writeText(a).then(()=>{alert("".concat(c?"Database Full name":"Database Slug",' "').concat(a,'" Copied to Clipboard. Use this as the database name when querying data'))})},style:{wordWrap:"break-word",wordBreak:"break-all"},children:[(0,h.jsx)(l.A,{color:"action",sx:{opacity:.5,fontSize:15}}),(0,h.jsx)("span",{children:a})]})}},34181:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4M2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96M3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4z"},"1")],"CloudOffTwoTone")},74315:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M9 4h9v12H9z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"},"1")],"CopyAllTwoTone")},53193:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M16 9H8v10h8zm-.47 7.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M14.12 10.47 12 12.59l-2.13-2.12-1.41 1.41L10.59 14l-2.12 2.12 1.41 1.41L12 15.41l2.12 2.12 1.41-1.41L13.41 14l2.12-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4zM6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8z"},"1")],"DeleteForeverTwoTone")},75238:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M14.17 3H8v14h11V7.83zm2.33 12h-6v-2h6zm0-6h-2v2h-2V9h-2V7h2V5h2v2h2z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"M18 23H4c-1.1 0-2-.9-2-2V7h2v14h14zM14.5 7V5h-2v2h-2v2h2v2h2V9h2V7zm2 6h-6v2h6zM15 1H8c-1.1 0-1.99.9-1.99 2L6 17c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V7zm4 16H8V3h6.17L19 7.83z"},"1")],"DifferenceTwoTone")},85373:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)([(0,d.jsx)("path",{d:"M12.06 10.02 5 17.08V18h.92l7.06-7.06z",opacity:".3"},"0"),(0,d.jsx)("path",{d:"m15 16-4 4h10v-4zm-2.94-8.81L3 16.25V20h3.75l9.06-9.06zM5.92 18H5v-.92l7.06-7.06.92.92zm12.79-9.96c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75z"},"1")],"DriveFileRenameOutlineTwoTone")},4532:(e,a,t)=>{var h=t(24994);a.A=void 0;var l=h(t(44888)),d=t(74848);a.A=(0,l.default)((0,d.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageTwoTone")},45014:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},18453:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},59140:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},2894:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},79508:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},79753:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},1915:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},87273:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},5922:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("ShieldEllipsis",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]])},76897:(e,a,t)=>{t.d(a,{A:()=>h});let h=(0,t(95737).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/8887-5917115e54cd417b.js b/dsql-app/.local_dist/static/chunks/8887-5917115e54cd417b.js deleted file mode 100644 index 1d2b6b4..0000000 --- a/dsql-app/.local_dist/static/chunks/8887-5917115e54cd417b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8887],{96224:function(e,a,t){var n=t(64836);a.Z=void 0;var s=n(t(64938)),i=t(85893),l=(0,s.default)([(0,i.jsx)("path",{d:"m16 7.58-5.5-2.4L5 7.58v3.6c0 3.5 2.33 6.74 5.5 7.74.25-.08.49-.2.73-.3-.15-.51-.23-1.06-.23-1.62 0-2.97 2.16-5.43 5-5.91V7.58z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z",opacity:".3"},"1"),(0,i.jsx)("circle",{cx:"17",cy:"15.5",r:"1.12"},"2"),(0,i.jsx)("path",{d:"M18 11.09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55C13.18 21.99 14.97 23 17 23c3.31 0 6-2.69 6-6 0-2.97-2.16-5.43-5-5.91zM11 17c0 .56.08 1.11.23 1.62-.24.11-.48.22-.73.3-3.17-1-5.5-4.24-5.5-7.74v-3.6l5.5-2.4 5.5 2.4v3.51c-2.84.48-5 2.94-5 5.91zm6 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"},"3"),(0,i.jsx)("path",{d:"M17 17.5c-.73 0-2.19.36-2.24 1.08.5.71 1.32 1.17 2.24 1.17s1.74-.46 2.24-1.17c-.05-.72-1.51-1.08-2.24-1.08z"},"4")],"AdminPanelSettingsTwoTone");a.Z=l},88518:function(e,a,t){var n=t(64836);a.Z=void 0;var s=n(t(64938)),i=t(85893),l=(0,s.default)([(0,i.jsx)("path",{d:"M22 15c0-1.66-1.34-3-3-3h-1.5v-.5C17.5 8.46 15.04 6 12 6c-.77 0-1.49.17-2.16.46L20.79 17.4c.73-.55 1.21-1.41 1.21-2.4zM2 14c0 2.21 1.79 4 4 4h9.73l-8-8H6c-2.21 0-4 1.79-4 4z",opacity:".3"},"0"),(0,i.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.33 0-2.57.36-3.65.97l1.49 1.49C10.51 6.17 11.23 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 .99-.48 1.85-1.21 2.4l1.41 1.41c1.09-.92 1.8-2.27 1.8-3.81 0-2.64-2.05-4.78-4.65-4.96zM3 5.27l2.77 2.77h-.42C2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h11.73l2 2 1.41-1.41L4.41 3.86 3 5.27zM7.73 10l8 8H6c-2.21 0-4-1.79-4-4s1.79-4 4-4h1.73z"},"1")],"CloudOffTwoTone");a.Z=l},57150:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},33587:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},49525:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(e,a,t){t.d(a,{Z:function(){return n}});const n=(0,t(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},43726:function(e,a,t){t.d(a,{Z:function(){return u}});var n=t(828),s=t(85893),i=t(67294),l=t(95264),r=t(96706),c=(t(94105),t(25472),t(73121)),d=t(21933);function u(e){var a=i.useContext(r.AddDatabaseContext),t=a.user,u=a.dbImage,o=a.setDbImage,m=a.query;if(!t)return(0,s.jsx)(i.Fragment,{});var p=(0,n.Z)(i.useState(null),2),h=(p[0],p[1],(0,n.Z)(i.useState(!1),2)),f=h[0],g=h[1];return(0,s.jsx)("section",{className:"card",children:(0,s.jsxs)("div",{className:"w-full grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[f&&(0,s.jsx)(l.Z,{}),(0,s.jsxs)("div",{className:"flex-col items-start",children:[(0,s.jsx)("h2",{className:"text-xl m-0 text-left w-full",children:"New Database Information"}),t&&u&&o&&(0,s.jsx)(c.Z,{user:t,dbImage:u,setDbImage:o,setLoading:g,query:m})]}),t&&u&&o&&(0,s.jsx)(d.Z,{user:t,dbImage:u,setDbImage:o})]})})}},73121:function(e,a,t){t.d(a,{Z:function(){return g}});var n=t(47568),s=t(828),i=t(97582),l=t(85893),r=t(67294),c=t(94105),d=t(97037),u=(t(73935),t(86729)),o=t(81069);function m(){return(m=(0,n.Z)((function(e){var a,t,n,s,l,r,c,d,m,p,h,f,g,b;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return a=e.e,t=e.setLoading,n=e.dbImage,s=e.database,l=e.user,t(!0),f={db_description:(null===(r=a.target.database_description)||void 0===r||null===(c=r.value)||void 0===c?void 0:c.match(/./))?a.target.database_description.value:null,db_name:(null===(d=a.target.database_name)||void 0===d||null===(m=d.value)||void 0===m?void 0:m.match(/./))?a.target.database_name.value:null,db_slug:(null===(p=a.target.database_slug)||void 0===p||null===(h=p.value)||void 0===h?void 0:h.match(/./))?a.target.database_slug.value:null,db_full_name:s.db_full_name,id:s.id,active_clone:s.active_clone,active_clone_parent_db:s.active_clone_parent_db},n?"string"!==typeof n?[3,1]:(f.db_image=n,[3,3]):[3,4];case 1:return"object"!==typeof n?[3,3]:[4,(0,u.Z)("/api/addUserMedia",{method:"post",body:{media:[n],folder:f.db_slug.replace(/_/g,"-"),type:"image"}},!0)];case 2:b=i.sent(),f.db_image=(null===(g=null===b||void 0===b?void 0:b.mediaData[0])||void 0===g?void 0:g.media_thumbnail_url)?b.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png",i.label=3;case 3:return[3,5];case 4:f.db_image="/images/database-placeholder.png",i.label=5;case 5:return(0,u.Z)("/api/updateUserDatabase",{method:"post",body:f},!0).then((function(e){e.success?(0,o.Z)().then((function(){window.location.pathname="/admin/".concat(null===l||void 0===l?void 0:l.id,"/databases"),setTimeout((function(){t(!1)}),1e3)})):(alert("Error! Please Try Again"),setTimeout((function(){t(!1)}),1e3))})),[2]}}))}))).apply(this,arguments)}function p(){return(p=(0,n.Z)((function(e){var a,t,n,s,l,r,c,d,m,p,h,f;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:return a=e.e,t=e.setLoading,n=e.dbImage,s=e.keepUpdated,l=e.keepDataUpdated,r=e.query,c=e.user,t(!0),p={db_name:a.target.database_name.value,db_slug:a.target.database_slug.value,db_description:(null===(d=a.target.database_description)||void 0===d||null===(m=d.value)||void 0===m?void 0:m.match(/./))?a.target.database_description.value:null},n?"string"!==typeof n?[3,1]:(p.db_image=n,[3,3]):[3,3];case 1:return"object"!==typeof n?[3,3]:[4,(0,u.Z)("/api/addUserMedia",{method:"post",body:{media:[n],folder:p.db_slug.replace(/_/g,"-"),type:"image"}},!0)];case 2:f=i.sent(),p.db_image=(null===(h=null===f||void 0===f?void 0:f.mediaData[0])||void 0===h?void 0:h.media_thumbnail_url)?f.mediaData[0].media_thumbnail_url:"/images/database-placeholder.png",i.label=3;case 3:return(null===r||void 0===r?void 0:r.duplicate)&&(p.duplicate=r.duplicate,p.keepUpdated=s||!1,p.keepDataUpdated=l||!1),(0,u.Z)("/api/createUserDatabase",{method:"post",body:p},!0).then((function(e){e.success?(0,o.Z)().then((function(){window.location.pathname="/admin/".concat(null===c||void 0===c?void 0:c.id,"/databases/").concat(p.db_slug)})):setTimeout((function(){t(!1)}),1e3)})),[2]}}))}))).apply(this,arguments)}var h,f=t(49486);function g(e){var a=e.user,t=e.dbImage,u=(e.setDbImage,e.database),o=e.setLoading,g=e.query;function b(e){return v.apply(this,arguments)}function v(){return(v=(0,n.Z)((function(e){return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return(null===u||void 0===u?void 0:u.db_slug)===e?[2,null]:[4,(0,c.Z)({tableName:"user_databases",columnName:"db_slug",value:e,userId:a.id})];case 1:return[2,t.sent()]}}))}))).apply(this,arguments)}var x=r.useState(null),y=(0,s.Z)(x,2),_=y[0],w=y[1],j=(0,s.Z)(r.useState(!1),2),Z=j[0],k=j[1],N=(0,s.Z)(r.useState(!1),2),D=N[0];N[1];return(0,l.jsxs)("form",{className:"w-full max-w-none xl:max-w-lg flex flex-col items-start gap-4 relative",onSubmit:function(e){e.preventDefault(),u?function(e){m.apply(this,arguments)}({e:e,setLoading:o,dbImage:t,database:u,user:a}):function(e){p.apply(this,arguments)}({e:e,setLoading:o,dbImage:t,keepUpdated:Z,keepDataUpdated:D,query:g,user:a})},children:[_&&(0,l.jsx)(d.Z,{message:_}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_name",children:"Name"}),(0,l.jsx)("input",{type:"text",name:"database_name",id:"database_name",placeholder:"Database Name",onInput:function(){var e=(0,n.Z)((function(e){var a,t,n;return(0,i.__generator)(this,(function(s){return a=e.target,t=a.closest("form"),a.value.match(/./)?(a.classList.remove("warning"),w(null)):a.classList.add("warning"),t&&(t.database_slug.value=a.value.toLowerCase().replace(/ /g,"_").replace(/[^a-zA-Z0-9-_]/g,""),n=t.database_slug.value,window.clearTimeout(h),h=setTimeout((function(){b(n).then((function(e){(null===e||void 0===e?void 0:e.result)?(t.database_slug.classList.add("warning"),w("Duplicate Database Name")):(t.database_slug.classList.remove("warning"),w(null))}))}),300)),[2]}))}));return function(a){return e.apply(this,arguments)}}(),defaultValue:u?u.db_name:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_slug",children:"Slug"}),(0,l.jsx)("input",{type:"text",name:"database_slug",id:"database_slug",placeholder:"Database Slug",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),w(null)):a.classList.add("warning");var t=a.value;window.clearTimeout(h),h=setTimeout((function(){b(t).then((function(e){(null===e||void 0===e?void 0:e.result)?(a.classList.add("warning"),w("Duplicate Database Name")):(a.classList.remove("warning"),w(null))}))}),300)},defaultValue:u?u.db_slug:"",required:!0})]}),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,l.jsx)("label",{htmlFor:"database_description",children:"Description (optional)"}),(0,l.jsx)("textarea",{name:"database_description",id:"database_description",placeholder:"Short Description of database",defaultValue:u?u.db_description:""})]}),(null===g||void 0===g?void 0:g.duplicate)&&(0,l.jsx)(r.Fragment,{children:(0,l.jsxs)("div",{className:"card col items-start",children:[(0,l.jsx)(f.Z,{checkBoxValues:[{payload:"Keep New Database Updated?",title:"Keep New Database Updated?",name:"clone_database",onChangeHandler:function(e){e.target.checked?k(!0):k(!1)}}]}),(0,l.jsx)("span",{className:"text-sm italic text-slate-600 dark:text-slate-300",children:"By checking this box the new Database stays up to date with changes to the structure of the parent Database"})]})}),(0,l.jsxs)("button",{type:"submit",className:"w-full",children:[u?"Update":"Create"," Database"]})]})}},21933:function(e,a,t){t.d(a,{Z:function(){return u}});var n=t(47568),s=t(97582),i=t(85893),l=t(67294),r=t(36718),c=t(25472),d=t(45449);function u(e){e.user;var a=e.dbImage,t=e.setDbImage,u=(e.database,l.useRef());return(0,i.jsxs)("div",{className:"card no-hover col items-center justify-center",children:[(0,i.jsx)("h4",{className:"m-0",children:"Database Image"}),(0,i.jsx)("div",{className:"bg-white rounded-full overflow-hidden w-24 h-24",children:(0,i.jsx)("img",{src:a?"string"===typeof a?a:a.imageBase64Full:"/images/database-placeholder.png",alt:"Database Image",width:100,className:"w-full h-full object-cover",ref:u,"data-imagepreview":"image"})}),(0,i.jsxs)("div",{className:"w-full flex-col",id:"edit-database-image-option-wrapper",children:[(0,i.jsxs)(d.Z,{column:!0,className:"w-full",children:[(0,i.jsx)("button",{className:"outlined w-full whitespace-normal",onClick:function(e){(0,c.Mw)("user-media-popup")},children:"Choose Image from uploads"}),(0,i.jsx)("button",{className:"outlined secondary w-full whitespace-normal",onClick:function(e){var a,t,n=e.target;null===(t=null===(a=null===n||void 0===n?void 0:n.closest("#edit-database-image-option-wrapper"))||void 0===a?void 0:a.querySelector("input"))||void 0===t||t.click()},children:"Choose Image from Computer"})]}),(0,i.jsx)("input",{type:"file",accept:".png,.jpg,.jpeg,.webp",placeholder:"Choose Database Image",className:"hidden",onChange:function(){var e=(0,n.Z)((function(e){var a,n;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return a=e.target.files[0],[4,(0,r.Z)({imageInputFile:a,maxWidth:400})];case 1:return n=s.sent(),t(n),[2]}}))}));return function(a){return e.apply(this,arguments)}}()})]})]})}},79310:function(e,a,t){t.d(a,{Z:function(){return d}});var n=t(828),s=t(85893),i=t(67294),l=t(86729),r=t(25472),c=t(95264);t(99967);function d(e){var a=e.setDbImage,t=(0,n.Z)(i.useState(!0),2),d=t[0],u=t[1],o=i.useState(null),m=(0,n.Z)(o,2),p=m[0],h=m[1];return i.useEffect((function(){(0,l.Z)("/api/getUserMedia").then((function(e){u(!1),h(e.media)}))}),[]),(0,s.jsxs)(r.ZP,{title:"user-media-popup",children:[d&&(0,s.jsx)(c.Z,{width:"20px"}),(0,s.jsx)("h4",{className:"m-0 text-lg",children:"Your Uploaded Images"}),(0,s.jsx)("div",{className:"grid grid-cols-2",children:p&&p[0]&&p.filter((function(e){return"image"==e.media_type})).map((function(e,t){return(0,s.jsx)("div",{className:"w-full h-44 cursor-pointer hover:opacity-70",onClick:function(t){a(e.media_thumbnail_url||null),(0,r.j4)()},children:(0,s.jsx)("img",{src:e.media_thumbnail_url,alt:"User Media",className:"w-full h-full object-contain"})},t+1)}))})]})}},49486:function(e,a,t){t.d(a,{Z:function(){return s}});var n=t(85893);t(67294);function s(e){var a=e.name,t=e.checkBoxValues,s=e.setAlert,i=e.labelColor,l=e.flexRow,r=e.baseText,c=e.smallText,d=e.className;return(0,n.jsx)("div",{className:"flex items-start gap-x-4"+(l?" flex-row flex-wrap gap-y-2 ":" flex-col gap-y-4 ")+(d||""),children:t.map((function(e,t){var l=e.payload,d=e.title,u=e.onChangeHandler,o=e.fixed,m=e.jsx,p=e.name?"".concat(a,"-").concat(e.name):l?a+"-"+l:a;return(0,n.jsxs)("div",{className:"flex items-center"+(e.default&&o?" pointer-events-none":"")+(c?" gap-1 ":" gap-2 ")+((null===e||void 0===e?void 0:e.className)?e.className:""),children:[(0,n.jsx)("input",{className:"m-0"+(c?" w-4 h-4":" w-5 h-5"),type:"checkbox",defaultChecked:!!e.default,name:p,id:p,onChange:function(a){s&&s(null),u&&u(a,e)},value:l,style:{minWidth:"20px"}}),m||(0,n.jsx)("label",{htmlFor:p,className:"m-0 "+(i||"text-slate-800 dark:text-white/80")+(r||c?" text-base":" text-lg"),children:d})]},t+1)}))})}},97037:function(e,a,t){t.d(a,{Z:function(){return s}});var n=t(85893);t(67294);function s(e){var a=e.message;return(0,n.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,n.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,n.jsx)("span",{children:a})]})}},94105:function(e,a,t){t.d(a,{Z:function(){return l}});var n=t(47568),s=t(97582),i=(t(73935),t(86729));function l(e){return r.apply(this,arguments)}function r(){return(r=(0,n.Z)((function(e){var a,t,n,l,r,c;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return a=e.tableName,t=e.columnName,n=e.value,l=e.dbFullName,e.dispatch,r=e.userId,c=e.dbId,[4,(0,i.Z)("/api/checkDuplicateData?tableName=".concat(a,"&type=").concat(t,"&value=").concat(n).concat(l?"&dbFullName="+l:"").concat(r?"&userId="+r:"").concat(c?"&dbId="+c:""))];case 1:return[2,s.sent()]}}))}))).apply(this,arguments)}},36718:function(e,a,t){t.d(a,{Z:function(){return i}});var n=t(47568),s=t(97582);function i(e){return l.apply(this,arguments)}function l(){return(l=(0,n.Z)((function(e){var a,t,n,i,l,r,c,d,u,o,m,p,h;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return a=e.imageInputFile,t=e.maxWidth,n=document.querySelector("[data-imagepreview='image']"),i=a.name.replace(/\..*/,""),c=document.createElement("canvas"),d=a.type,u=.95,o=t||null,null,m=a,p=URL.createObjectURL(m),(h=new Image).src=p,[4,new Promise((function(e,a){h.onerror=function(){URL.revokeObjectURL(this.src),console.log("Cannot load image")},h.onload=function(){if(URL.revokeObjectURL(this.src),o){var a=o/h.naturalWidth;c.width=h.naturalWidth{var r=a(24994);t.A=void 0;var o=r(a(44888)),n=a(74848);t.A=(0,o.default)((0,n.jsx)("path",{d:"M16.62 2.99c-.49-.49-1.28-.49-1.77 0L6.54 11.3c-.39.39-.39 1.02 0 1.41l8.31 8.31c.49.49 1.28.49 1.77 0s.49-1.28 0-1.77L9.38 12l7.25-7.25c.48-.48.48-1.28-.01-1.76"}),"ArrowBackIosRounded")},1771:(e,t,a)=>{a.d(t,{A:()=>h});var r=a(98587),o=a(58168),n=a(96540),i=a(34164),l=a(75659),d=a(60132),s=a(98301),c=a(3552),p=a(38413),u=a(31609);function A(e){return(0,u.Ay)("MuiTable",e)}(0,p.A)("MuiTable",["root","stickyHeader"]);var v=a(74848);let g=["className","component","padding","size","stickyHeader"],y=e=>{let{classes:t,stickyHeader:a}=e;return(0,l.A)({root:["root",a&&"stickyHeader"]},A,t)},b=(0,c.Ay)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:a}=e;return(0,o.A)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,o.A)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},a.stickyHeader&&{borderCollapse:"separate"})}),m="table",h=n.forwardRef(function(e,t){let a=(0,s.b)({props:e,name:"MuiTable"}),{className:l,component:c=m,padding:p="normal",size:u="medium",stickyHeader:A=!1}=a,h=(0,r.A)(a,g),f=(0,o.A)({},a,{component:c,padding:p,size:u,stickyHeader:A}),x=y(f),w=n.useMemo(()=>({padding:p,size:u,stickyHeader:A}),[p,u,A]);return(0,v.jsx)(d.A.Provider,{value:w,children:(0,v.jsx)(b,(0,o.A)({as:c,role:c===m?null:"table",ref:t,className:(0,i.A)(x.root,l),ownerState:f},h))})})},60132:(e,t,a)=>{a.d(t,{A:()=>r});let r=a(96540).createContext()},54672:(e,t,a)=>{a.d(t,{A:()=>r});let r=a(96540).createContext()},39990:(e,t,a)=>{a.d(t,{A:()=>f});var r=a(58168),o=a(98587),n=a(96540),i=a(34164),l=a(75659),d=a(54672),s=a(98301),c=a(3552),p=a(38413),u=a(31609);function A(e){return(0,u.Ay)("MuiTableBody",e)}(0,p.A)("MuiTableBody",["root"]);var v=a(74848);let g=["className","component"],y=e=>{let{classes:t}=e;return(0,l.A)({root:["root"]},A,t)},b=(0,c.Ay)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),m={variant:"body"},h="tbody",f=n.forwardRef(function(e,t){let a=(0,s.b)({props:e,name:"MuiTableBody"}),{className:n,component:l=h}=a,c=(0,o.A)(a,g),p=(0,r.A)({},a,{component:l}),u=y(p);return(0,v.jsx)(d.A.Provider,{value:m,children:(0,v.jsx)(b,(0,r.A)({className:(0,i.A)(u.root,n),as:l,ref:t,role:l===h?null:"rowgroup",ownerState:p},c))})})},40219:(e,t,a)=>{a.d(t,{A:()=>h});var r=a(98587),o=a(58168),n=a(96540),i=a(34164),l=a(75659),d=a(771),s=a(97306),c=a(60132),p=a(54672),u=a(98301),A=a(3552),v=a(80943),g=a(74848);let y=["align","className","component","padding","scope","size","sortDirection","variant"],b=e=>{let{classes:t,variant:a,align:r,padding:o,size:n,stickyHeader:i}=e,d={root:["root",a,i&&"stickyHeader","inherit"!==r&&"align".concat((0,s.A)(r)),"normal"!==o&&"padding".concat((0,s.A)(o)),"size".concat((0,s.A)(n))]};return(0,l.A)(d,v.r,t)},m=(0,A.Ay)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,t[a.variant],t["size".concat((0,s.A)(a.size))],"normal"!==a.padding&&t["padding".concat((0,s.A)(a.padding))],"inherit"!==a.align&&t["align".concat((0,s.A)(a.align))],a.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:a}=e;return(0,o.A)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,d.a)((0,d.X4)(t.palette.divider,1),.88):(0,d.e$)((0,d.X4)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===a.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===a.variant&&{color:(t.vars||t).palette.text.primary},"footer"===a.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===a.size&&{padding:"6px 16px",["&.".concat(v.A.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===a.padding&&{width:48,padding:"0 0 0 4px"},"none"===a.padding&&{padding:0},"left"===a.align&&{textAlign:"left"},"center"===a.align&&{textAlign:"center"},"right"===a.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===a.align&&{textAlign:"justify"},a.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})}),h=n.forwardRef(function(e,t){let a;let l=(0,u.b)({props:e,name:"MuiTableCell"}),{align:d="inherit",className:s,component:A,padding:v,scope:h,size:f,sortDirection:x,variant:w}=l,M=(0,r.A)(l,y),T=n.useContext(c.A),k=n.useContext(p.A),C=k&&"head"===k.variant,R=h;"td"===(a=A||(C?"th":"td"))?R=void 0:!R&&C&&(R="col");let H=w||k&&k.variant,N=(0,o.A)({},l,{align:d,component:a,padding:v||(T&&T.padding?T.padding:"normal"),size:f||(T&&T.size?T.size:"medium"),sortDirection:x,stickyHeader:"head"===H&&T&&T.stickyHeader,variant:H}),z=b(N),j=null;return x&&(j="asc"===x?"ascending":"descending"),(0,g.jsx)(m,(0,o.A)({as:a,ref:t,className:(0,i.A)(z.root,s),"aria-sort":j,scope:R,ownerState:N},M))})},80943:(e,t,a)=>{a.d(t,{A:()=>i,r:()=>n});var r=a(38413),o=a(31609);function n(e){return(0,o.Ay)("MuiTableCell",e)}let i=(0,r.A)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"])},20044:(e,t,a)=>{a.d(t,{A:()=>b});var r=a(58168),o=a(98587),n=a(96540),i=a(34164),l=a(75659),d=a(98301),s=a(3552),c=a(38413),p=a(31609);function u(e){return(0,p.Ay)("MuiTableContainer",e)}(0,c.A)("MuiTableContainer",["root"]);var A=a(74848);let v=["className","component"],g=e=>{let{classes:t}=e;return(0,l.A)({root:["root"]},u,t)},y=(0,s.Ay)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),b=n.forwardRef(function(e,t){let a=(0,d.b)({props:e,name:"MuiTableContainer"}),{className:n,component:l="div"}=a,s=(0,o.A)(a,v),c=(0,r.A)({},a,{component:l}),p=g(c);return(0,A.jsx)(y,(0,r.A)({ref:t,as:l,className:(0,i.A)(p.root,n),ownerState:c},s))})},77568:(e,t,a)=>{a.d(t,{A:()=>f});var r=a(58168),o=a(98587),n=a(96540),i=a(34164),l=a(75659),d=a(54672),s=a(98301),c=a(3552),p=a(38413),u=a(31609);function A(e){return(0,u.Ay)("MuiTableHead",e)}(0,p.A)("MuiTableHead",["root"]);var v=a(74848);let g=["className","component"],y=e=>{let{classes:t}=e;return(0,l.A)({root:["root"]},A,t)},b=(0,c.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),m={variant:"head"},h="thead",f=n.forwardRef(function(e,t){let a=(0,s.b)({props:e,name:"MuiTableHead"}),{className:n,component:l=h}=a,c=(0,o.A)(a,g),p=(0,r.A)({},a,{component:l}),u=y(p);return(0,v.jsx)(d.A.Provider,{value:m,children:(0,v.jsx)(b,(0,r.A)({as:l,className:(0,i.A)(u.root,n),ref:t,role:l===h?null:"rowgroup",ownerState:p},c))})})},78036:(e,t,a)=>{a.d(t,{A:()=>f});var r=a(58168),o=a(98587),n=a(96540),i=a(34164),l=a(75659),d=a(771),s=a(54672),c=a(98301),p=a(3552),u=a(38413),A=a(31609);function v(e){return(0,A.Ay)("MuiTableRow",e)}let g=(0,u.A)("MuiTableRow",["root","selected","hover","head","footer"]);var y=a(74848);let b=["className","component","hover","selected"],m=e=>{let{classes:t,selected:a,hover:r,head:o,footer:n}=e;return(0,l.A)({root:["root",a&&"selected",r&&"hover",o&&"head",n&&"footer"]},v,t)},h=(0,p.Ay)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:a}=e;return[t.root,a.head&&t.head,a.footer&&t.footer]}})(e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(g.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(g.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,d.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,d.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}}),f=n.forwardRef(function(e,t){let a=(0,c.b)({props:e,name:"MuiTableRow"}),{className:l,component:d="tr",hover:p=!1,selected:u=!1}=a,A=(0,o.A)(a,b),v=n.useContext(s.A),g=(0,r.A)({},a,{component:d,hover:p,selected:u,head:v&&"head"===v.variant,footer:v&&"footer"===v.variant}),f=m(g);return(0,y.jsx)(h,(0,r.A)({as:d,ref:t,className:(0,i.A)(f.root,l),role:"tr"===d?null:"row",ownerState:g},A))})}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9035-b11038b244e852f0.js b/dsql-app/.local_dist/static/chunks/9035-b11038b244e852f0.js deleted file mode 100644 index b56a7c1..0000000 --- a/dsql-app/.local_dist/static/chunks/9035-b11038b244e852f0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9035],{82943:function(e,t,a){a.d(t,{Z:function(){return c}});var n=a(828),l=a(85893),i=a(67294),s=a(95264),r=a(53314),d=a(86729);function o(e){var t=e.paradigm,a=e.payload,n=e.setLoading,l=e.table,i=e.database;n(!0),(0,d.Z)("/api/exportTableData",{method:"POST",body:{paradigm:t,dbName:i.db_slug,tableName:l.tableName,payload:a}},!0).then((function(e){if(e.success)if("export"==t){var a=e.data,n=JSON.stringify(a||[],null,4),s=new Blob([n],{type:"application/json"}),r=URL.createObjectURL(s),d=document.createElement("a");d.href=r,d.style.display="none",d.download="".concat(i.db_slug,"-").concat(l.tableName,"-").concat(Date.now(),".json"),document.body.appendChild(d),d.click(),document.body.removeChild(d)}else"import"==t&&(window.alert("Data Imported Successfully"),window.location.reload());else e.msg&&window.alert(e.msg)})).catch((function(e){console.log(e)})).finally((function(){n(!1)}))}function c(e){var t=e.database,a=e.table,d=function(){h(!1),setTimeout((function(){h(!0)}),200)},c=(0,n.Z)(i.useState(!1),2),u=c[0],m=c[1],f=(0,n.Z)(i.useState(!0),2),v=f[0],h=f[1],p=i.useRef(null);i.useRef(null);return(0,l.jsxs)("div",{className:"relative",children:[u&&(0,l.jsx)(s.Z,{width:"15px"}),(0,l.jsx)("div",{className:"button outlined gray",onClick:function(e){o({paradigm:"export",database:t,setLoading:m,table:a})},children:"Export"}),(0,l.jsx)("div",{className:"button outlined gray",onClick:function(e){var n,l;null===(n=p.current)||void 0===n||n.addEventListener("change",(function(e){var n;m(!0);var l=e.target;if(!(null===(n=l.files)||void 0===n?void 0:n[0]))return window.alert("No FIles selected"),void m(!1);(0,r.Z)({inputFile:l.files[0]}).then((function(e){window.confirm("Use this file '".concat(e.fileName,"' as your import file?"))?(o({paradigm:"import",payload:e.fileBase64,database:t,setLoading:m,table:a}),d()):(m(!1),d())}))})),null===(l=p.current)||void 0===l||l.click()},children:"Import"}),v&&(0,l.jsx)("input",{type:"file",name:"json_file_input",id:"json_file_input",accept:".json",className:"hidden",ref:p})]})}},13684:function(e,t,a){a.d(t,{Z:function(){return o}});var n=a(828),l=a(85893),i=a(67294),s=a(82106),r=a(9404),d=a(40436);function o(e){var t=e.database,a=e.table,o=e.dbSchemaData,c=e.query,u=(0,n.Z)(i.useState(!1),2),m=u[0],f=u[1];return(0,l.jsx)(s.Popover,{isOpen:m,onClickOutside:function(){return f(!1)},positions:["bottom"],align:"end",content:(0,l.jsxs)("div",{className:"stack items-stretch bg-white rounded shadow-md gap-0 min-w-[200px]",children:[(0,l.jsx)(d.Z,{database:t,table:a,setOpenPopover:f,dbSchemaData:o,query:c}),(0,l.jsx)("hr",{className:"m-0"})]}),containerClassName:"z-[1000]",children:(0,l.jsx)("button",{onClick:function(){f(!m)},className:"outlined gray px-2 py-1.5",children:(0,l.jsx)(r.Z,{})})})}},40436:function(e,t,a){a.d(t,{Z:function(){return v}});var n=a(828),l=a(85893),i=a(22348),s=a(44114),r=a(95264),d=a(59471),o=a(86729),c=a(26042);var u=a(96486),m=a.n(u),f=a(67294);function v(e){var t=e.database,a=e.table,i=e.setOpenPopover,s=e.dbSchemaData,r=e.query,o=(0,n.Z)(f.useState(!1),2),c=o[0],u=o[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("button",{className:"ghost p-3 justify-start",onClick:function(){u(!0),setTimeout((function(){i&&i(!1)}),200)},children:"Sync Data"}),(0,l.jsx)(d.Z,{open:c,setOpen:u,children:(0,l.jsx)(h,{database:t,table:a,dbSchemaData:s,query:r})})]})}function h(e){var t=e.database,a=e.table,d=e.query,u=e.dbSchemaData,v=(0,n.Z)(f.useState(u),2),h=v[0],p=v[1],b=(0,n.Z)(f.useState("Push"),2),x=b[0],g=b[1],j=(0,n.Z)(f.useState(null===h||void 0===h?void 0:h[0]),2),y=j[0],N=j[1],w=(0,n.Z)(f.useState(null===y||void 0===y?void 0:y.tables),2),T=w[0],E=w[1],S=(0,n.Z)(f.useState(null===T||void 0===T?void 0:T[0]),2),Z=S[0],_=S[1],C=(0,n.Z)(f.useState(!1),2),D=C[0],F=C[1],k=(0,n.Z)(f.useState(!1),2),q=k[0],R=k[1];return f.useEffect((function(){var e=m().isEqual(null===a||void 0===a?void 0:a.fields,null===Z||void 0===Z?void 0:Z.fields);R(!!e)}),[Z,N]),f.useEffect((function(){d.delegated&&(0,o.Z)("/api/get-authorized-databases").then((function(e){e.success&&e.payload&&p(e.payload)}))}),[]),(0,l.jsxs)("div",{className:"stack gap-2 relative w-full",children:[D||!h&&(0,l.jsx)(r.Z,{width:"20px"}),(0,l.jsx)("h3",{className:"m-0 text-lg",children:"Sync Data with another table"}),q?(0,l.jsxs)("span",{className:"info green inline",children:["The selected table matches ",(0,l.jsx)("b",{children:a.tableFullName})," ","schema"]}):(0,l.jsxs)("span",{className:"info warning inline",children:["The selected table is not compatible with"," ",(0,l.jsx)("b",{children:a.tableFullName})]}),h&&(0,l.jsxs)("form",{onSubmit:function(e){!function(e){var t,a,n,l=e.e,i=e.setLoading,s=e.database,r=e.table,d=e.query;l.preventDefault(),i(!0);var u=l.target,m=null===(t=u.paradigm)||void 0===t?void 0:t.value,f=null===(a=u.database)||void 0===a?void 0:a.value,v=null===(n=u.table)||void 0===n?void 0:n.value,h={paradigm:m,src:{db:s.db_slug,table:r.tableName},dst:{db:f,table:v},delegated:d.delegated},p="Pull"==m?"NOTE: This operation will override the current database entries. Continue?":"NOTE: This operation will override the selected database entries. Continue?";window.confirm(p)?(0,o.Z)("/api/sync-table-data",{method:"POST",body:(0,c.Z)({},h)},!0).then((function(e){e.success?(window.alert("Data Sync Successful"),window.location.reload()):e.msg&&window.alert("ERROR: "+e.msg)})).finally((function(){setTimeout((function(){i(!1)}),1e3)})):setTimeout((function(){i(!1)}),1e3)}({e:e,database:t,setLoading:F,table:a,query:d})},className:"w-full stack gap-2 items-stretch",children:[(0,l.jsxs)("div",{className:"stack gap-2 my-2",children:[(0,l.jsx)(i.Z,{radioValues:[{title:"Push",payload:"Push",default:!0},{title:"Pull",payload:"Pull"}],name:"paradigm",smallText:!0,flexRow:!0,onChangeHandler:function(e){g(e.target.value)}}),(0,l.jsx)("span",{className:"text-xs text-slate-500 dark:text-slate-400",children:"Push"==x?(0,l.jsxs)(l.Fragment,{children:["Sync data from the current table(",(0,l.jsx)("b",{children:a.tableFullName}),") to the selected table below"]}):(0,l.jsxs)(l.Fragment,{children:["Sync data from the selected table below to the current table(",(0,l.jsx)("b",{children:a.tableFullName}),")"]})})]}),(0,l.jsx)(s.Z,{selectOptions:h.filter((function(e){return e.dbFullName!==t.db_full_name})).map((function(e){return{title:e.dbName,payload:e.dbSlug}})),name:"database",onChangeHandler:function(e){var t,a=h.find((function(t){return t.dbSlug==e.target.value}));a&&(N(a),E(a.tables),_(null===(t=a.tables)||void 0===t?void 0:t[0]))}}),(0,l.jsx)(s.Z,{selectOptions:T.map((function(e){return{title:e.tableFullName,payload:e.tableName}})),name:"table",onChangeHandler:function(e){var t=T.find((function(t){return t.tableName===e.target.value}));t&&_(t)}}),(0,l.jsx)("button",{className:q?"":"disabled",children:"Sync"})]})]})}},6122:function(e,t,a){a.d(t,{Z:function(){return b}});var n,l=a(85893),i=a(67294),s=a(51985),r=a(828),d=a(37722),o=a(44114),c=a(27901),u=a(86729),m=a(95264);function f(e){e.data;var t,s,f,v,h=function(e){if(Z(!0),g&&j(null),null===e||void 0===e?void 0:e.toString().match(/./)){window.clearTimeout(n);var t=null===b||void 0===b?void 0:b.fields.filter((function(e){return e.fieldName===(null===w||void 0===w?void 0:w.current)})),a=function(){var e,a;if(t&&t[0]&&(null===(a=t[0].dataType)||void 0===a?void 0:a.match(/int/i)))return"equal";return(null===w||void 0===w||null===(e=w.current)||void 0===e?void 0:e.match(/^id$/))?"equal":"like"}();n=setTimeout((function(){Z(!1),(0,u.Z)("/api/queryEntriesSearchTerm?db=".concat(null===N||void 0===N?void 0:N.db_full_name,"&table=").concat(null===b||void 0===b?void 0:b.tableName,"&field=").concat(null===w||void 0===w?void 0:w.current,"&term=").concat(e,"&operator=").concat(a)).then((function(e){"number"==typeof e.count&&F(e.count),e.success&&j&&j(e.result),Z(!1)}))}),500)}else setTimeout((function(){j&&j(x||[]),Z(!1)}),500)},p=i.useContext(d.TableEntriesContext),b=p.table,x=p.entries,g=p.activeEntries,j=p.setActiveEntries,y=p.confirmedDelegetedUser,N=p.database,w=p.targetField,T=p.searchTerm,E=(a(89594),null===y||void 0===y||y.delegated,null===y||void 0===y||null===(t=y.priviledges)||void 0===t||t.match(/Edit Tables/i),null===y||void 0===y||null===(s=y.priviledges)||void 0===s||s.match(/Delete Tables/i),null===y||void 0===y||null===(f=y.priviledges)||void 0===f||f.match(/Create Tables/i),(0,r.Z)(i.useState(!1),2)),S=E[0],Z=E[1],_=i.useRef();i.useEffect((function(){_.current&&_.current.focus()}),[]);var C=(0,r.Z)(i.useState(null),2),D=C[0],F=C[1];return(0,l.jsxs)("div",{className:"w-full flex-col items-stretch",children:[(0,l.jsxs)("form",{onSubmit:function(e){e.preventDefault(),(null===T||void 0===T?void 0:T.current)&&h(T.current)},className:"flex flex-row items-stretch gap-4 w-full",children:[(0,l.jsx)("div",{className:"max-w-xs",children:(0,l.jsx)(o.Z,{required:!0,selectOptions:b?b.fields.map((function(e){return{title:e.fieldName||"",payload:e.fieldName||""}})):[],name:"database_tables",onChangeHandler:function(e){w&&(w.current=e.target.value)},title:"Select Field",defaultValue:null===w||void 0===w?void 0:w.current,id:"entries-search-field-select"})}),(0,l.jsx)("div",{className:"grow",children:(0,l.jsx)(c.Z,{title:"Search Term",placeholder:"Enter search term that corresponds with the selected field type ...",onInputHandler:function(e){var t,a=e.target;(null===(t=a.value)||void 0===t?void 0:t.match(/./))&&T?T.current=a.value:T&&(T.current=null),h(a.value)},elementRef:_,id:"entries-search-input"})}),S&&(0,l.jsx)("div",{className:"relative items-center justify-center",children:(0,l.jsx)("div",{className:"relative mt-5 w-6",children:(0,l.jsx)(m.Z,{width:"20px"})})})]}),(null===T||void 0===T||null===(v=T.current)||void 0===v?void 0:v.match(/./))&&(0,l.jsx)("div",{className:"py-4",children:(0,l.jsxs)("span",{className:"text-lg",children:["number"==typeof D?D>0?(0,l.jsxs)("b",{children:[D," "]}):(0,l.jsx)(l.Fragment,{children:"No "}):"... ","Search result",D&&1!==D?"s":""," for"," ",(0,l.jsxs)("b",{children:['"',T.current,'"']})]})})]})}var v=a(30073),h=a(82943),p=a(13684);a(40436);function b(e){var t,a,n,r,d,o=e.user,c=e.entries,u=e.database,b=e.table,x=(e.setTargetEntry,e.dbSchemaData),g=e.richTextEditors,j=e.jsonTextEditors,y=e.dataTypes,N=e.title,w=e.confirmedDelegetedUser,T=e.query,E=e.search,S=e.entriesCount;null===w||void 0===w||w.delegated,null===w||void 0===w||null===(t=w.priviledges)||void 0===t||t.match(/Edit Tables/i),null===w||void 0===w||null===(a=w.priviledges)||void 0===a||a.match(/Delete Tables/i),null===w||void 0===w||null===(n=w.priviledges)||void 0===n||n.match(/Create Tables/i),null===w||void 0===w||null===(r=w.priviledges)||void 0===r||r.match(/Edit Entries/i),null===w||void 0===w||null===(d=w.priviledges)||void 0===d||d.match(/Delete Entries/i),u.active_clone,u.active_clone_parent_db,u.remote_connected;return(0,l.jsx)(i.Fragment,{children:(0,l.jsxs)("section",{className:"paper gray gray-bg",children:[N&&(0,l.jsxs)("div",{className:"justify-between w-full flex-wrap px-4 sm:px-0 pt-4 sm:pt-0",children:[(0,l.jsx)("h2",{className:"text-xl m-0",children:N}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("a",{className:"button flex gap-2 items-center",href:"/admin/".concat(null===o||void 0===o?void 0:o.id,"/databases/").concat(u.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]}),(0,l.jsx)(h.Z,{database:u,table:b}),(0,l.jsx)(p.Z,{database:u,table:b,dbSchemaData:x,query:T})]})]}),E&&(0,l.jsx)(f,{}),(0,l.jsxs)("div",{className:"w-full flex-col gap-6",children:[(null===c||void 0===c?void 0:c[0])&&c.map((function(e){return(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(s.Z,{user:o,database:u,table:b,dbSchemaData:x,richTextEditors:g,dataTypes:y,entry:e,query:T,confirmedDelegetedUser:w,jsonTextEditors:j})},e.id)})),!c&&(0,l.jsx)("div",{className:"w-full h-[300px]",children:(0,l.jsx)(m.Z,{position:"relative"})}),c&&!(null===c||void 0===c?void 0:c[0])&&(0,l.jsxs)("a",{href:"/admin/".concat(null===o||void 0===o?void 0:o.id,"/databases/").concat(u.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),className:"border-dotted border-slate-200 border-2 p-4 w-full flex-col rounded flex items-center hover:border-primary/50 gap-2",children:[(0,l.jsx)("span",{className:"text-slate-400 text-center",children:"No Entries Added Yet."}),(0,l.jsx)(v.Z,{className:"opacity-20 my-4",sx:{fontSize:80}}),(0,l.jsx)("span",{className:"text-center",children:"Add an Entry to this Table"})]}),S&&S>10?(0,l.jsx)("a",{href:"/admin/".concat(null===o||void 0===o?void 0:o.id,"/databases/").concat(u.db_slug,"/tables/").concat(b.tableName,"/entries"),className:"button outlined gray w-full -mb-4",children:(0,l.jsx)("span",{children:"See All Entries"})}):null,(null===c||void 0===c?void 0:c[0])&&N&&(0,l.jsxs)("a",{className:"button flex gap-2 items-center w-full justify-center mt-2 more-padding",href:"/admin/".concat(null===o||void 0===o?void 0:o.id,"/databases/").concat(u.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),style:{borderStyle:"dotted",borderWidth:"2px"},children:[(0,l.jsx)("span",{className:"symbol",children:"+"}),(0,l.jsx)("span",{children:"Add New Entry"})]})]})]})})}},51985:function(e,t,a){a.d(t,{Z:function(){return x}});var n=a(828),l=a(85893),i=a(67294),s=a(33907),r=a(86729),d=a(81069),o=a(36169),c=a(95264),u=a(54559),m=a(96486),f=a.n(m),v=a(95753),h=a(9404),p=a(82106);function b(e){var t=e.user,a=e.table,s=e.entry,r=e.url,d=e.query,o=(0,n.Z)(i.useState(!1),2),c=o[0],u=o[1],m=i.useRef(null);return(0,l.jsx)("div",{className:"relative z-[1000]",children:(0,l.jsx)(p.Popover,{isOpen:c,onClickOutside:function(){return u(!1)},containerClassName:"z-[1000]",positions:["bottom"],align:"end",content:(0,l.jsx)("div",{className:"bg-white dark:bg-slate-900 rounded shadow-md cancel-link",children:(0,l.jsxs)("div",{className:"flex-col min-w-[200px] items-stretch gap-0",children:[(0,l.jsx)("button",{className:"plain-text justify-start py-3",onClick:function(){navigator.clipboard.writeText(JSON.stringify(s)).then((function(){window.alert("Post Copied"),u(!1)}))},children:"Copy Object"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("button",{className:"plain-text justify-start py-3",onClick:function(){var e=(0,v.Z)({paradigm:"JavaScript",table:a,query:d,user:t});navigator.clipboard.writeText(e||"").then((function(){window.alert("JavaScript Type Definition Copied"),u(!1)}))},children:"Copy JS Type Definition"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("button",{className:"plain-text justify-start py-3",onClick:function(){var e=(0,v.Z)({paradigm:"TypeScript",table:a,query:d,user:t});navigator.clipboard.writeText(e||"").then((function(){window.alert("TypeScript Type Definition Copied"),u(!1)}))},children:"Copy TS Type Definition"}),(0,l.jsx)("hr",{className:"m-0"}),(0,l.jsx)("a",{href:r,className:"button plain-text justify-start py-3",children:(0,l.jsx)("span",{children:"View Entry"})})]})}),children:(0,l.jsx)("button",{onClick:function(){u(!c)},ref:m,className:"ghost p-2",children:(0,l.jsx)(h.Z,{})})})})}function x(e){var t,a,m,v,h,p=e.user,x=e.database,g=e.table,j=(e.dbSchemaData,e.richTextEditors),y=e.jsonTextEditors,N=e.dataTypes,w=e.entry,T=e.entryPage,E=e.confirmedDelegetedUser,S=e.query,Z=g.fields.filter((function(e){return e.fieldName&&!e.fieldName.match(s.Z)})),_=g.fields.find((function(e){return"uuid"===e.fieldName})),C=null===E||void 0===E?void 0:E.delegated,D=(null===E||void 0===E||null===(t=E.priviledges)||void 0===t||t.match(/Edit Tables/i),null===E||void 0===E||null===(a=E.priviledges)||void 0===a||a.match(/Delete Tables/i),null===E||void 0===E||null===(m=E.priviledges)||void 0===m||m.match(/Create Tables/i),null===E||void 0===E||null===(v=E.priviledges)||void 0===v||v.match(/Edit Entries/i),null===E||void 0===E||null===(h=E.priviledges)||void 0===h?void 0:h.match(/Delete Entries/i));_&&Z.unshift({dataType:"UUID",fieldName:"uuid",defaultField:!0}),Z.unshift({dataType:"BIGINT",fieldName:"id",defaultField:!0}),Z.push({dataType:"VARCHAR(250)",fieldName:"date_created",defaultField:!0}),Z.push({dataType:"BIGINT",fieldName:"date_created_code",defaultField:!0}),Z.push({dataType:"TIMESTAMP",fieldName:"date_created_timestamp",defaultField:!0}),Z.push({dataType:"VARCHAR(250)",fieldName:"date_updated",defaultField:!0}),Z.push({dataType:"BIGINT",fieldName:"date_updated_code",defaultField:!0}),Z.push({dataType:"TIMESTAMP",fieldName:"date_updated_timestamp",defaultField:!0});var F=(0,n.Z)(i.useState(!1),2),k=F[0],q=F[1],R=(0,n.Z)(i.useState(!0),2),I=R[0],O=R[1],P=(0,n.Z)(i.useState(w),2),U=P[0],A=P[1],L=(0,n.Z)(i.useState(!1),2),H=(L[0],L[1],i.useRef(null),i.useRef([])),B=(0,n.Z)(i.useState("/admin/".concat(null===p||void 0===p?void 0:p.id,"/databases/").concat(x.db_slug,"/tables/").concat(g.tableName,"/entries/").concat(U.id)),2),z=B[0],M=B[1];i.useEffect((function(){(null===E||void 0===E?void 0:E.dbUserId)&&Number(p.id)!==Number(E.dbUserId)&&M("/admin/".concat(null===p||void 0===p?void 0:p.id,"/databases/").concat(x.db_slug,"/tables/").concat(g.tableName,"/entries/").concat(U.id)+window.location.search)}),[]);var V="".concat(x.db_slug,"-").concat(g.tableName,"-").concat(U.id,"-submit-button");return(0,l.jsxs)("div",{className:"card col w-full overflow-hidden",children:[(0,l.jsx)("a",{href:z,onClick:function(e){var t=e.target;(t.closest(".cancel-link")||t.closest(".MuiPopover-root"))&&e.preventDefault()},className:"w-full",children:(0,l.jsxs)("div",{className:"w-full bg-slate-700 text-white py-2 px-4 rounded justify-between flex-wrap hover:bg-slate-800 cursor-pointer relative z-[1000] ",onClick:function(e){var t=e.target;t.closest(".cancel-link")||t.closest(".MuiPopover-root")||(e.ctrlKey?window.open(z,"__blank"):window.location.href=z)},children:[(0,l.jsxs)("span",{children:["Entry #",U.id]}),(0,l.jsxs)("div",{className:"flex-wrap cancel-link",children:[(!C||C&&D)&&(0,l.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer"+(k?" pointer-events-none opacity-40":""),onClick:function(e){window.confirm("Delete Entry #".concat(U.id,"?"))&&(q(!0),(0,r.Z)("/api/deleteTableEntry"+window.location.search,{method:"post",body:{dbFullName:x.db_full_name,tableName:g.tableName,entryId:U.id,dbSlug:x.db_slug,dbId:x.id,delegated:null===S||void 0===S?void 0:S.delegated,confirmedDelegetedUser:E}},!0).then((function(e){e.success?(0,d.Z)().then((function(){window.location.reload()})):(window.alert(e.msg),setTimeout((function(){q(!1)}),500))})))},children:"Delete Entry"}),!T&&(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)("span",{className:"opacity-20",children:"|"}),(0,l.jsx)("span",{className:"text-slate-300 hover:text-fuchsia-200 cursor-pointer",onClick:function(e){O(!I)},children:I?(0,l.jsx)("span",{children:"Expand"}):(0,l.jsx)("span",{children:"Collapse"})})]}),(0,l.jsx)("span",{className:"opacity-20",children:"|"}),(0,l.jsx)("div",{className:"button ghost px-0",onClick:function(e){var t=f().cloneDeep(w);delete t.date_created,delete t.date_created_code,delete t.date_created_timestamp,delete t.date_updated,delete t.date_updated_code,delete t.date_updated_timestamp,delete t.id,delete t.uuid,localStorage.setItem("duplicate_entry",JSON.stringify(t)),window.location.href="/admin/".concat(null===p||void 0===p?void 0:p.id,"/databases/").concat(x.db_slug,"/tables/").concat(g.tableName,"/entries/add-entry?duplicate=true&id=").concat(w.id)},children:(0,l.jsx)("span",{className:"text-slate-300",children:"Duplicate"})}),(0,l.jsx)("span",{className:"opacity-20",children:"|"}),(0,l.jsx)(b,{table:g,user:p,entry:w,query:S,url:z})]})]})}),(0,l.jsxs)("form",{className:"w-full flex flex-col items-stretch gap-8 minimal-scrollbars relative",style:T?{}:{maxHeight:I?"300px":"none",paddingTop:"10px",paddingBottom:"10px",overflow:"hidden"},onSubmit:function(e){e.preventDefault(),q(!0);var t={},a=e.target;Z.forEach((function(e){var n;if(e.fieldName&&a[e.fieldName]){var l="string"!==typeof a[e.fieldName].value,i="number"!==typeof a[e.fieldName].value;(l||i||a[e.fieldName].value)&&((null===(n=a[e.fieldName])||void 0===n?void 0:n.dataset.default)||(t[e.fieldName]=a[e.fieldName].value))}})),H.current[0]&&H.current.forEach((function(e){var a;(null===e||void 0===e?void 0:e.fieldName)&&(null===e||void 0===e||null===(a=e.ref)||void 0===a?void 0:a.current)&&(t[e.fieldName]=e.ref.current.getContent())})),y.current[0]&&y.current.forEach((function(e){var a;(null===e||void 0===e?void 0:e.fieldName)&&(null===e||void 0===e||null===(a=e.ref)||void 0===a?void 0:a.current)&&(t[e.fieldName]=e.ref.current.getValue())})),(0,r.Z)("/api/updateTableEntry",{method:"post",body:{dbFullName:x.db_full_name,dbSlug:x.db_slug,dbId:x.id,tableName:g.tableName,entryId:U.id,payload:t,tableSchema:g,delegated:null===S||void 0===S?void 0:S.delegated,confirmedDelegetedUser:E}},!0).then((function(e){e.success?(0,r.Z)("/api/refreshEntry?table=".concat(g.tableName,"&db=").concat(x.db_full_name,"&id=").concat(U.id,"&schema=").concat(JSON.stringify(g))).then((function(e){e.success&&(A(e.entry),setTimeout((function(){q(!1)}),500))})):(window.alert(e.msg+"\n"+(e.err||"")),setTimeout((function(){q(!1)}),500))}))},onKeyUp:function(e){if(e.ctrlKey&&"Enter"==e.key){var t;if(!window.confirm("Update this Form?"))return;null===(t=document.getElementById(V))||void 0===t||t.click()}},children:[k&&(0,l.jsx)(c.Z,{}),(I&&!T?Z.slice(0,3):Z).map((function(e,t){var a=N.filter((function(t){var a;return t.name===(null===(a=e.dataType)||void 0===a?void 0:a.replace(/\d|\(|\)/g,""))}));return(0,l.jsx)(u.Z,{fieldObject:e,dataTypeSchema:a[0],richTextEditors:j,currentRichTextEditorForms:H,entry:U,query:S,entryPage:T,confirmedDelegetedUser:E,jsonTextEditors:y,formButtonId:V},t+1)})),(0,l.jsx)("button",{type:"submit",className:k?" pointer-events-none opacity-40":"",id:V,children:"Update Entry"})]}),!T&&(0,l.jsx)(o.Z,{collapse:I,setCollapse:O})]})}},22348:function(e,t,a){a.d(t,{Z:function(){return l}});var n=a(85893);a(67294);function l(e){var t=e.radioValues,a=e.name,l=e.onChangeHandler,i=e.setAlert,s=e.flexRow,r=e.labelColor,d=e.baseText,o=e.smallText,c=e.className;try{return(0,n.jsx)("div",{className:"flex items-start gap-4 flex-wrap "+(s?"":" flex-col ")+(c||""),children:t.map((function(e,t){var s=e.payload,c=e.title,u=e.jsx,m=!1===s?s:s||(c||null);return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("input",{className:"m-0"+(d?" w-5 h-5":o?" w-4 h-4":" w-6 h-6"),type:"radio",defaultChecked:!!e.default,name:a,id:a+"_"+m,onChange:function(t){i&&i(null),e.onChangeHandler?e.onChangeHandler(t):l&&l(t)},value:"string"==typeof m?m:void 0}),u||(0,n.jsx)("label",{htmlFor:a+"_"+m,className:"text-lg m-0 "+(r||"text-slate-800")+(d?" text-base":o?" text-sm":" text-lg"),children:c})]},t+1)}))})}catch(u){return console.log("ERROR in FormRadio =>",u),(0,n.jsx)("div",{children:"Form Radio Error"})}}},44114:function(e,t,a){a.d(t,{Z:function(){return i}});var n=a(85893),l=a(8971);a(67294);function i(e){var t=e.selectOptions,a=e.name,i=e.onChangeHandler,s=e.required,r=e.setAlert,d=e.title,o=e.defaultValue,c=e.info,u=e.id;try{var m=function(e){if(!(e.type.match(/enter/i)&&window.innerWidth<1200)){var t=e.target.closest(".info-wrapper"),a=t.querySelector(".info-dropdown");!e.type.match(/leave/i)||a.classList.contains("hidden")?e.type.match(/leave/i)&&a.classList.contains("hidden")||(t&&a.classList.contains("hidden")?a.classList.remove("hidden"):a.classList.add("hidden")):a.classList.add("hidden")}};return(0,n.jsxs)("div",{className:"form-select-block flex items-start flex-col gap-0.5 w-full relative"+(c?" pr-8":""),children:[d&&(0,n.jsxs)("label",{htmlFor:a,children:[d,s?"":" (optional)"]}),(0,n.jsxs)("div",{className:"flex items-center w-full relative",children:[(0,n.jsx)("select",{name:a,id:u||a,className:"w-full bg-white",required:s,onChange:function(e){r&&r(null),e.target.classList.remove("warning"),i&&i(e)},defaultValue:o||void 0,children:t.map((function(e,t){var a=e.payload,l=e.title;return(0,n.jsx)("option",{value:a,selected:!!e.default,children:l},t+1)}))}),(0,n.jsx)(l.Z,{className:"absolute right-2 text-base text-slate-500 pointer-events-none",size:20}),c&&(0,n.jsxs)("div",{className:"info-wrapper absolute -right-10 w-8 h-8 rounded-full bg-white flex items-center justify-center z-10",style:{top:"50%",transform:"translate(0,-50%)"},onMouseEnter:m,onMouseLeave:m,onClick:m,children:[(0,n.jsx)("img",{src:"/images/info-outlined-black.png",alt:"",className:"w-6 h-6 object-contain opacity-60 pointer-events-none"}),(0,n.jsx)("div",{className:"info-dropdown absolute top-9 right-0 bg-white w-52 md:w-96 p-2 sm:p-6 shadow-xl rounded hidden text-center border border-slate-300 border-solid",children:(0,n.jsx)("span",{children:c})}),(0,n.jsx)("div",{className:"absolute -top-2 w-12",style:{height:"45px"}})]})]})]})}catch(f){return console.log("ERROR in FormSelect =>",f),(0,n.jsx)("div",{children:"Form Select Error"})}}},37722:function(e,t,a){a.r(t),a.d(t,{TableEntriesContext:function(){return S},__N_SSP:function(){return E},default:function(){return Z}});var n,l=a(828),i=a(85893),s=a(67294),r=a(54858),d=a(29815),o=a(61781),c=a(424),u=a(79230),m=a(6122),f=a(94986),v=a(88515),h=a(58264),p=a(95264),b=a(86729),x=(a(96486),a(82943)),g=a(13684);function j(e){var t,n,l,r=s.useContext(S),d=r.user,p=r.database,b=r.table,j=r.dbSchemaData,N=r.setTargetEntry,w=r.richTextEditors,T=r.jsonTextEditors,E=r.query,Z=r.confirmedDelegetedUser,_=r.activeEntries,C=r.entriesCount,D=r.setActiveEntries,F=a(89594);null===Z||void 0===Z||Z.delegated,null===Z||void 0===Z||null===(t=Z.priviledges)||void 0===t||t.match(/Edit Tables/i),null===Z||void 0===Z||null===(n=Z.priviledges)||void 0===n||n.match(/Delete Tables/i),null===Z||void 0===Z||null===(l=Z.priviledges)||void 0===l||l.match(/Create Tables/i);return(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)("div",{className:"flex-col items-start gap-0 w-full relative z-50",children:[(0,i.jsxs)("div",{className:"w-full justify-between flex-wrap",children:[(0,i.jsxs)("div",{className:"flex-wrap",children:[(0,i.jsx)(o.Z,{}),(0,i.jsx)("h1",{className:"text-3xl m-0",children:(0,i.jsxs)("span",{className:"flex items-center flex-wrap gap-2",children:["All Entries In"," ",(0,i.jsxs)("span",{className:"bg-slate-100 dark:bg-slate-800 px-2 py-1 border border-solid border-slate-400 dark:border-slate-600 rounded relative",children:[b.tableFullName,(0,i.jsx)("div",{className:"absolute -top-5 -right-4",children:(0,i.jsx)(u.Z,{slugText:b.tableName,justIcon:!0})})]})," ","Table"]})})]}),(0,i.jsxs)("div",{className:"w-full sm:w-auto",children:[(0,i.jsxs)("a",{href:"/admin/".concat(null===d||void 0===d?void 0:d.id,"/databases/").concat(p.db_slug,"/tables/").concat(b.tableName,"/entries/add-entry"),className:"button flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,i.jsx)("span",{className:"symbol",children:"+"}),(0,i.jsx)("span",{children:"Add New Entry"})]}),(0,i.jsx)(x.Z,{database:p,table:b}),(0,i.jsx)(g.Z,{database:p,table:b,dbSchemaData:j,query:E})]})]}),(0,i.jsx)(c.Z,{confirmedDelegetedUser:null===E||void 0===E?void 0:E.delegated,user:d})]}),p.active_clone?(0,i.jsx)(f.Z,{database:p,user:d}):(0,i.jsx)(i.Fragment,{}),p.remote_connected?(0,i.jsx)(h.w,{database:p}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(v.Z,{table:b,database:p,user:d}),(0,i.jsx)(m.Z,{user:d,entries:_,database:p,table:b,setTargetEntry:N,dbSchemaData:j,richTextEditors:w,dataTypes:F,query:E,confirmedDelegetedUser:Z,jsonTextEditors:T,search:!0}),C>20&&(0,i.jsx)(y,{activeEntries:_,setActiveEntries:D,database:p,table:b,entriesCount:C})]})}function y(e){e.activeEntries;var t=e.setActiveEntries,a=e.database,l=e.table,r=e.entriesCount,o=s.useContext(S),c=s.useRef(),u=s.useRef(1),m=20*Number(u.current),f=Boolean(m>=r);return s.useEffect((function(){var e=function(e,i){var s;if(null===e||void 0===e||null===(s=e[0])||void 0===s?void 0:s.isIntersecting){var r=document.getElementById("entries-search-input"),c=document.getElementById("entries-search-field-select"),m={tableName:l.tableName,dbName:a.db_slug,page:u.current,tableSchema:l,search:r?r.value:void 0,searchField:c?c.value:void 0,delegated:Boolean(o.query.delegated)};(0,b.Z)("/api/infiniteScroll",{method:"POST",body:m},!0).then((function(e){e.success&&(e.page&&(u.current=e.page),window.clearTimeout(n),n=setTimeout((function(){var a,n;(null===(a=e.data)||void 0===a?void 0:a[0])&&(null===(n=e.data)||void 0===n?void 0:n[0])&&t((function(t){return t?(0,d.Z)(t).concat((0,d.Z)(e.data)):null}))}),500))})).catch((function(e){console.log("Infinite Scroll Error =>",e)})).finally((function(){console.log("Infinite Scroll Done. Page",u.current)}))}},i={rootMargin:"0px 0px 0px 0px"};setTimeout((function(){requestAnimationFrame((function(){var t=new IntersectionObserver(e,i);c.current&&t.observe(c.current)}))}),1e3)}),[]),f?(0,i.jsx)(s.Fragment,{}):(0,i.jsx)("div",{className:"w-full flex items-center justify-center",ref:c,children:(0,i.jsx)(p.Z,{position:"relative",style:{backgroundColor:"transparent"},width:"20px"})})}var N=a(4423),w=a(4514),T={},E=!0,S=s.createContext(T);function Z(e){var t=e.user,a=e.database,n=e.table,d=e.dbSchemaData,o=e.entries,c=e.query,u=e.confirmedDelegetedUser,m=e.entriesCount,f="".concat(n.tableFullName," Table Entries | Datasquirel"),v=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:f}),(0,i.jsx)("meta",{name:"description",content:"All Entries in table"})]}),h=(0,l.Z)(s.useState(null),2),p=h[0],b=h[1],x=(0,l.Z)(s.useState(o),2),g=x[0],y=x[1],T=s.useRef("title"),E=s.useRef(null),Z=s.useRef([]),_=s.useRef([]);return(0,i.jsx)(r.Z,{head:v,user:t,extraHeaderContent:(0,i.jsx)(N.Z,{database:a,query:c,confirmedDelegetedUser:u,user:t}),children:(0,i.jsxs)(S.Provider,{value:{user:t,database:a,table:n,dbSchemaData:d,entries:o,targetEntry:p,setTargetEntry:b,richTextEditors:Z,jsonTextEditors:_,query:c,confirmedDelegetedUser:u,activeEntries:g,setActiveEntries:y,targetField:T,searchTerm:E,entriesCount:m},children:[(0,i.jsx)(j,{}),(0,i.jsx)(w.Z,{snug:!0})]})})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9365-101d5c9d637cef9a.js b/dsql-app/.local_dist/static/chunks/9365-101d5c9d637cef9a.js deleted file mode 100644 index 221e659..0000000 --- a/dsql-app/.local_dist/static/chunks/9365-101d5c9d637cef9a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9365],{424:function(e,s,a){a.d(s,{Z:function(){return i}});var t=a(828),n=a(85893),l=a(67294);function i(e){var s,a,i,r=e.confirmedDelegetedUser,c=e.linksArray,d=e.user,o=(null===r||void 0===r||r.delegated,null===r||void 0===r||null===(s=r.priviledges)||void 0===s||s.match(/Edit Tables/i),null===r||void 0===r||null===(a=r.priviledges)||void 0===a||a.match(/Delete Tables/i),null===r||void 0===r||null===(i=r.priviledges)||void 0===i||i.match(/Create Tables/i),l.useState(c||null)),u=(0,t.Z)(o,2),x=u[0],h=u[1];return l.useEffect((function(){var e;if(!c){var s=window.location.pathname,a=s.split("/"),t=[];t.push({title:"Home",path:s.match(/admin/)?"/admin":"/"});null===(e=window.location.search)||void 0===e||e.match(/delegated=true/);a.forEach((function(e,s,a){(null===e||void 0===e?void 0:e.match(/./))&&1!=s&&(e.match(/^\d+$/)&&d||t.push({title:e,path:function(){for(var e="",t=0;ts||!n.match(/./)||(e+="/".concat(n))}return e}()}))})),h(t)}}),[]),x&&x[1]?(0,n.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:x.map((function(e,s,a){return s===x.length-1?(0,n.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,n.jsxs)(l.Fragment,{children:[(0,n.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,n.jsx)("span",{className:"opacity-20",children:"|"})]},s)}))}):(0,n.jsx)(l.Fragment,{})}},96355:function(e,s,a){a.d(s,{Z:function(){return x}});var t=a(828),n=a(85893),l=a(67294),i=a(86729),r=a(81069),c=a(95264),d=a(88518),o=a(68599),u=a(62888);function x(e){var s=(0,t.Z)(l.useState(!0),2),a=s[0],x=s[1],h=(0,t.Z)(l.useState(0),2),m=h[0],f=h[1],p=(0,t.Z)(l.useState(0),2),j=(p[0],p[1]);return l.useEffect((function(){m||(0,i.Z)("/api/getDiskUsage").then((function(e){(null===e||void 0===e?void 0:e.total)&&(f(e.total),localStorage.setItem("disk_usage",e.total)),x(!1)}))}),[]),a?(0,n.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,n.jsx)(c.Z,{width:"15px",position:"relative"})}):(0,n.jsx)(l.Fragment,{children:m?(0,n.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:function(e){x(!0),(0,r.Z)().then((function(){j((function(e){return e+1})),x(!1)}))},children:[a&&(0,n.jsx)(c.Z,{width:"15px"}),(0,n.jsx)(o.Z,{size:20,className:"text-slate-400 mr-[3px]"}),(0,n.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:m&&m.toFixed(2)}),(0,n.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,n.jsx)(u.Z,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,n.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,n.jsx)(d.Z,{color:"inherit",className:"opacity-50 text-slate-500",fontSize:"small"}),(0,n.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},81069:function(e,s,a){a.d(s,{Z:function(){return i}});var t=a(47568),n=a(97582),l=a(86729);function i(){return r.apply(this,arguments)}function r(){return(r=(0,t.Z)((function(){var e;return(0,n.__generator)(this,(function(s){switch(s.label){case 0:return[4,(0,l.Z)("/api/getDiskUsage")];case 1:return e=s.sent(),localStorage.setItem("disk_usage",e.total),[2]}}))}))).apply(this,arguments)}},54858:function(e,s,a){a.d(s,{Z:function(){return N}});var t=a(85893),n=a(67294),l=a(9008),i=a.n(l),r=(a(15281),a(828)),c=a(64017),d=a(96224),o=a(73486),u=a(33587),x=a(78107),h=a(49525),m=a(57150),f=a(3848),p=a(4844);function j(e){var s=e.user,a=(0,r.Z)(n.useState(!0),2),l=a[0],i=a[1];return(0,t.jsxs)("aside",{className:"aside"+(l?" mobile-collapsed":" mobile-expanded"),children:[(0,t.jsx)(c.Z,{adminAside:!0,collapseAsideMobile:l,setCollapseAsideMobile:i}),(0,t.jsx)("hr",{className:"opacity-0 mt-4"}),(0,t.jsxs)("div",{className:"main-links"+(l?" hidden lg:flex":" "),children:[(0,t.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,t.jsx)(o.Z,{size:20}),(0,t.jsx)("span",{children:"Dashboard"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/databases"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/databases"),children:[(0,t.jsx)(u.Z,{size:20}),(0,t.jsx)("span",{children:"Databases"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/media"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/media"),children:[(0,t.jsx)(x.Z,{size:20}),(0,t.jsx)("span",{children:"Media"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/users"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/users"),children:[(0,t.jsx)(h.Z,{size:20}),(0,t.jsx)("span",{children:"Users"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/schema"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/schema"),children:[(0,t.jsx)(m.Z,{size:20}),(0,t.jsx)("span",{children:"Schema"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/api-keys"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/api-keys"),children:[(0,t.jsx)(f.Z,{size:20}),(0,t.jsx)("span",{children:"API Keys"})]}),(0,t.jsxs)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/connect"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/connect"),children:[(0,t.jsx)(p.Z,{size:20}),(0,t.jsx)("span",{children:"Connect"})]}),1==s.id&&(0,t.jsx)(n.Fragment,{children:(0,t.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,t.jsx)(d.Z,{className:"text-slate-400"}),(0,t.jsx)("span",{children:"Super Admin User"})]})}),(0,t.jsx)("hr",{className:"opacity-80"}),(0,t.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,t.jsx)("a",{href:"/admin/".concat(null===s||void 0===s?void 0:s.id,"/settings"),"data-currentlink":"/admin/".concat(null===s||void 0===s?void 0:s.id,"/settings"),children:(0,t.jsx)("span",{children:"Settings"})}),(0,t.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,t.jsx)("span",{children:"Documentation"})}),(0,t.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,t.jsx)("span",{children:"Logout"})})]})]})]})}a(87108);var v=a(65484);function g(e){var s=e.user,a=e.extraHeaderContent,l=(0,r.Z)(n.useState(s||null),2),i=l[0],c=l[1];return n.useEffect((function(){(null===s||void 0===s?void 0:s.logged_in_status)&&c(s||null)}),[s]),(0,t.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,t.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,t.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,t.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,t.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,t.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,t.jsx)("button",{className:"outlined gray ml-auto",onClick:function(e){var s=document.getElementById("main-nav-content-wrapper");null===s||void 0===s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,t.jsx)("span",{className:"font-semibold text-4xl",children:"\u2715"})})]}),(0,t.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,t.jsx)("div",{className:"gap-6",children:a}),(0,t.jsx)(v.Z,{activeUser:i})]})]}),(0,t.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:function(e){var s=document.getElementById("main-nav-content-wrapper");null===s||void 0===s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,t.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var b=a(29678),w=a(96355),k=a(86729);function N(e){var s=e.children,a=e.head,l=e.user,r=(e.productionEnvironment,e.extraHeaderContent);e.aceEditor;return r||(r=(0,t.jsx)(w.Z,{})),n.useEffect((function(){var e=document.querySelectorAll("aside .main-links a");(0,b.Z)({links:e}),document.cookie.match(/user_refresh=1/)&&(0,k.Z)("/api/reAuthenticateUser",{method:"post",body:{}},!0).then((function(e){e.status&&e.user&&(document.cookie="user_refresh=0;max-age=0",localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.user)),window.location.reload())}))}),[]),(0,t.jsxs)(n.Fragment,{children:[(0,t.jsxs)(i(),{children:[a,(0,t.jsxs)(n.Fragment,{children:[(0,t.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,t.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,t.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,t.jsx)(j,{user:l}),(0,t.jsxs)("main",{className:"relative",children:[(0,t.jsx)(g,{user:l,extraHeaderContent:r}),(0,t.jsx)("div",{className:"admin-content",children:s}),(0,t.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,t.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,t.jsx)(c.Z,{})}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[(new Date).getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/docs",children:"Docs"}),(0,t.jsx)("span",{className:"opacity-25",children:"|"}),(0,t.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/94726e6d-127d67a0a413791e.js b/dsql-app/.local_dist/static/chunks/94726e6d-127d67a0a413791e.js new file mode 100644 index 0000000..4719f61 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/94726e6d-127d67a0a413791e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6834],{48607:(t,e,r)=>{function i(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}r.d(e,{B0:()=>tf,Dx:()=>eY,E_:()=>th,J7:()=>e2,Ks:()=>U,OF:()=>A,St:()=>e1,Uc:()=>e_,Vy:()=>t6,Yz:()=>m,Zm:()=>eP,a0:()=>ta,au:()=>ef,dg:()=>j,fA:()=>tu,l1:()=>eK,l_:()=>tJ,n:()=>to,n6:()=>eM,os:()=>ra,qA:()=>eu,vM:()=>L,vQ:()=>x,vX:()=>F,wU:()=>tt});var s,a,o,u,h,_,f,l,c,d,p,m={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},v={duration:.5,overwrite:!1,delay:0},g=2*Math.PI,y=g/4,T=0,w=Math.sqrt,b=Math.cos,k=Math.sin,x=function(t){return"string"==typeof t},D=function(t){return"function"==typeof t},M=function(t){return"number"==typeof t},A=function(t){return void 0===t},C=function(t){return"object"==typeof t},R=function(t){return!1!==t},E=function(){return"undefined"!=typeof window},S=function(t){return D(t)||x(t)},O="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},z=Array.isArray,P=/(?:-?\.?\d|\.)+/gi,F=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,L=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,I=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,U=/[+-]=-?[.\d]+/,B=/[^,'"\[\]\s]+/gi,q=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,N={},Q={},V=function(t){return(Q=tg(t,N))&&ra},j=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},G=function(t,e){return!e&&console.warn(t)},W=function(t,e){return t&&(N[t]=e)&&Q&&(Q[t]=e)||N},Y=function(){return 0},H={suppressEvents:!0,isStart:!0,kill:!1},J={suppressEvents:!0,kill:!1},K={suppressEvents:!0},X={},Z=[],$={},tt={},te={},tr=30,ti=[],tn="",ts=function(t){var e,r,i=t[0];if(C(i)||D(i)||(t=[t]),!(e=(i._gsap||{}).harness)){for(r=ti.length;r--&&!ti[r].targetTest(i););e=ti[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new eM(t[r],e)))||t.splice(r,1);return t},ta=function(t){return t._gsap||ts(tZ(t))[0]._gsap},to=function(t,e,r){return(r=t[e])&&D(r)?t[e]():A(r)&&t.getAttribute&&t.getAttribute(e)||r},tu=function(t,e){return(t=t.split(",")).forEach(e)||t},th=function(t){return Math.round(1e5*t)/1e5||0},t_=function(t){return Math.round(1e7*t)/1e7||0},tf=function(t,e){var r=e.charAt(0),i=parseFloat(e.substr(2));return t=parseFloat(t),"+"===r?t+i:"-"===r?t-i:"*"===r?t*i:t/i},tl=function(t,e){for(var r=e.length,i=0;0>t.indexOf(e[i])&&++is;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},tx=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},tD=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},tM=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},tA=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},tC=function(t,e,r,i){return t._startAt&&(a?t._startAt.revert(J):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},tR=function(t){return t._repeat?tE(t._tTime,t=t.duration()+t._rDelay)*t:0},tE=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},tS=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},tO=function(t){return t._end=t_(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},tz=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=t_(r._time-(t._ts>0?e/t._ts:-(((t._dirty?t.totalDuration():t._tDur)-e)/t._ts))),tO(t),r._dirty||tM(r,t)),t},tP=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._start1e-8)&&e.render(r,!0)),tM(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},tF=function(t,e,r,i){return e.parent&&tD(e),e._start=t_((M(r)?r:r||t!==u?tG(t,r,e):t._time)+e._delay),e._end=t_(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),tk(t,e,"_first","_last",t._sort?"_start":0),tB(e)||(t._recent=e),i||tP(t,e),t._ts<0&&tz(t,t._tTime),t},tL=function(t,e){return(N.ScrollTrigger||j("scrollTrigger",e))&&N.ScrollTrigger.create(e,t)},tI=function(t,e,r,i,n){return(eF(t,e,n),t._initted)?!r&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==ef.frame?(Z.push(t),t._lazy=[n,i],1):void 0:1},tU=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(0>r.rawTime()||t(r))},tB=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},tq=function(t,e,r,i){var n,s,o,u=t.ratio,h=e<0||!e&&(!t._start&&tU(t)&&!(!t._initted&&tB(t))||(t._ts<0||t._dp._ts<0)&&!tB(t))?0:1,_=t._rDelay,f=0;if(_&&t._repeat&&(s=tE(f=tH(0,t._tDur,e),_),t._yoyo&&1&s&&(h=1-h),s!==tE(t._tTime,_)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||a||i||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&tI(t,e,i,r,f))return;for(o=t._zTime,t._zTime=e||(r?1e-8:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=f,n=t._pt;n;)n.r(h,n.d),n=n._next;e<0&&tC(t,e,r,!0),t._onUpdate&&!r&&t9(t,"onUpdate"),f&&t._repeat&&!r&&t.parent&&t9(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&tD(t,1),r||a||(t9(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)},tN=function(t,e,r){var i;if(r>e)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start0&&!i&&tz(t,t._tTime=t._tDur*a),t.parent&&tO(t),r||tM(t.parent,t),t},tV=function(t){return t instanceof eC?tM(t):tQ(t,t._dur)},tj={_start:0,endTime:Y,totalDuration:Y},tG=function t(e,r,i){var n,s,a,o=e.labels,u=e._recent||tj,h=e.duration()>=1e8?u.endTime(!1):e._dur;return x(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s)?(n>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(z(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+s:h+s):null==r?h:+r},tW=function(t,e,r){var i,n,s=M(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=R(n.vars.inherit)&&n.parent;o.immediateRender=R(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new eQ(e[0],o,e[a+1])},tY=function(t,e){return t||0===t?e(t):e},tH=function(t,e,r){return re?e:r},tJ=function(t,e){return x(t)&&(e=q.exec(t))?e[1]:""},tK=[].slice,tX=function(t,e){return t&&C(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&C(t[0]))&&!t.nodeType&&t!==h},tZ=function(t,e,r){var i;return o&&!e&&o.selector?o.selector(t):x(t)&&!r&&(_||!el())?tK.call((e||f).querySelectorAll(t),0):z(t)?(void 0===i&&(i=[]),t.forEach(function(t){var e;return x(t)&&!r||tX(t,1)?(e=i).push.apply(e,tZ(t)):i.push(t)})||i):tX(t)?tK.call(t,0):t?[t]:[]},t$=function(t){return t=tZ(t)[0]||G("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return tZ(e,r.querySelectorAll?r:r===t?G("Invalid scope")||f.createElement("div"):t)}},t0=function(t){return t.sort(function(){return .5-Math.random()})},t1=function(t){if(D(t))return t;var e=C(t)?t:{each:t},r=ew(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,o=isNaN(i)||a,u=e.axis,h=i,_=i;return x(i)?h=_=({center:.5,edges:.5,end:1})[i]||0:!a&&o&&(h=i[0],_=i[1]),function(t,a,f){var l,c,d,p,m,v,g,y,T,b=(f||e).length,k=s[b];if(!k){if(!(T="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(g=-1e8;g<(g=f[T++].getBoundingClientRect().left)&&Tg&&(g=m),mb?b-1:u?"y"===u?b/T:T:Math.max(T,b/T))||0)*("edges"===i?-1:1),k.b=b<0?n-b:n,k.u=tJ(e.amount||e.each)||0,r=r&&b<0?ey(r):r}return b=(k[t]-k.min)/k.max||0,t_(k.b+(r?r(b):b)*k.v)+k.u}},t2=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=t_(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(M(r)?0:tJ(r))}},t5=function(t,e){var r,i,n=z(t);return!n&&C(t)&&(r=n=t.radius||1e8,t.values?(i=!M((t=tZ(t.values))[0]))&&(r*=r):t=t2(t.increment)),tY(e,n?D(t)?function(e){return Math.abs((i=t(e))-e)<=r?i:e}:function(e){for(var n,s,a=parseFloat(i?e.x:e),o=parseFloat(i?e.y:0),u=1e8,h=0,_=t.length;_--;)(n=i?(n=t[_].x-a)*n+(s=t[_].y-o)*s:Math.abs(t[_]-a))(n=Math.abs(n))&&(s=i,o=n);return s},t9=function(t,e,r){var i,n,s,a=t.vars,u=a[e],h=o,_=t._ctx;if(u)return i=a[e+"Params"],n=a.callbackScope||t,r&&Z.length&&tc(),_&&(o=_),s=i?u.apply(n,i):u.call(n),o=h,s},et=function(t){return tD(t),t.scrollTrigger&&t.scrollTrigger.kill(!!a),1>t.progress()&&t9(t,"onInterrupt"),t},ee=[],er=function(t){if(t){if(t=!t.name&&t.default||t,E()||t.headless){var e=t.name,r=D(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:Y,render:eX,add:eO,kill:e$,modifier:eZ,rawVars:0},s={targetTest:0,get:0,getSetter:eY,aliases:{},register:0};if(el(),t!==i){if(tt[e])return;tv(i,tv(tT(t,n),s)),tg(i.prototype,tg(n,tT(t,s))),tt[i.prop=e]=i,t.targetTest&&(ti.push(i),X[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}W(e,i),t.register&&t.register(ra,i,e2)}else ee.push(t)}},ei={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},en=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*255+.5|0},es=function(t,e,r){var i,n,s,a,o,u,h,_,f,l,c=t?M(t)?[t>>16,t>>8&255,255&t]:0:ei.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),ei[t])c=ei[t];else if("#"===t.charAt(0)){if(t.length<6&&(t="#"+(i=t.charAt(1))+i+(n=t.charAt(2))+n+(s=t.charAt(3))+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(c=parseInt(t.substr(1,6),16))>>16,c>>8&255,255&c,parseInt(t.substr(7),16)/255];c=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3)){if(c=l=t.match(P),e){if(~t.indexOf("="))return c=t.match(F),r&&c.length<4&&(c[3]=1),c}else a=+c[0]%360/360,o=+c[1]/100,n=(u=+c[2]/100)<=.5?u*(o+1):u+o-u*o,i=2*u-n,c.length>3&&(c[3]*=1),c[0]=en(a+1/3,i,n),c[1]=en(a,i,n),c[2]=en(a-1/3,i,n)}else c=t.match(P)||ei.transparent;c=c.map(Number)}return e&&!l&&(u=((h=Math.max(i=c[0]/255,n=c[1]/255,s=c[2]/255))+(_=Math.min(i,n,s)))/2,h===_?a=o=0:(f=h-_,o=u>.5?f/(2-h-_):f/(h+_),a=(h===i?(n-s)/f+(no||y<0)&&(c+=y-u),d+=y,((_=(l=d-c)-v)>0||T)&&(p=++i.frame,n=l-1e3*i.time,i.time=l/=1e3,v+=_+(_>=m?4:m-_),f=1),T||(t=e(r)),f)for(s=0;s=e&&s--},_listeners:g}}(),el=function(){return!p&&ef.wake()},ec={},ed=/^[\d.\-M][\d.\-,\s]/,ep=/["']/g,em=function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o1&&r.config?r.config.apply(null,~t.indexOf("{")?[em(e[1])]:ev(t).split(",").map(tp)):ec._CE&&ed.test(t)?ec._CE("",t):r},ey=function(t){return function(e){return 1-t(1-e)}},eT=function t(e,r){for(var i,n=e._first;n;)n instanceof eC?t(n,r):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===r||(n.timeline?t(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},ew=function(t,e){return t&&(D(t)?t:ec[t]||eg(t))||e},eb=function(t,e,r,i){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===i&&(i=function(t){return t<.5?e(2*t)/2:1-e((1-t)*2)/2});var n,s={easeIn:e,easeOut:r,easeInOut:i};return tu(t,function(t){for(var e in ec[t]=N[t]=s,ec[n=t.toLowerCase()]=r,s)ec[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=ec[t+"."+e]=s[e]}),s},ek=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t((e-.5)*2)/2}},ex=function t(e,r,i){var n=r>=1?r:1,s=(i||(e?.3:.45))/(r<1?r:1),a=s/g*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*k((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:ek(o);return s=g/s,u.config=function(r,i){return t(e,r,i)},u},eD=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:ek(i);return n.config=function(r){return t(e,r)},n};tu("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var r=e<5?e+1:e;eb(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow((1-t)*2,r)/2})}),ec.Linear.easeNone=ec.none=ec.Linear.easeIn,eb("Elastic",ex("in"),ex("out"),ex()),function(t,e){var r=1/2.75,i=1/2.75*2,n=1/2.75*2.5,s=function(s){return s0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,tQ(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(el(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(tz(this,t),!r._dp||r.parent||tP(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:-((r.totalDuration()-r._tTime)/r._ts))&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&tF(this._dp,this,this._start-this._delay)}return this._tTime===t&&(this._dur||e)&&(!this._initted||1e-8!==Math.abs(this._zTime))&&(t||this._initted||!this.add&&!this._ptLookup)||(this._ts||(this._pTime=t),td(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+tR(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(1&this.iteration())?1-t:t)+tR(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?tE(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return -1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?tS(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(tH(-Math.abs(this._delay),this._tDur,r),!1!==e),tO(this),tA(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(el(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&tF(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(R(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&1>this.totalProgress())?this._tTime%(this._dur+this._rDelay):this._ts?tS(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=K);var e=a;return a=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),a=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,tV(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,tV(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(tG(this,t),R(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,R(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!!(!e||this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise(function(r){var i=D(t)?t:tm,n=function(){var t=e.then;e.then=null,D(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n})},e.kill=function(){et(this)},t}();tv(eA.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var eC=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=R(e.sortChildren),u&&tF(e.parent||u,i(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&tL(i(n),e.scrollTrigger),n}n(e,t);var r=e.prototype;return r.to=function(t,e,r){return tW(0,arguments,this),this},r.from=function(t,e,r){return tW(1,arguments,this),this},r.fromTo=function(t,e,r,i){return tW(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,tw(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new eQ(t,e,tG(this,r),1),this},r.call=function(t,e,r){return tF(this,eQ.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new eQ(t,r,tG(this,n)),this},r.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,tw(r).immediateRender=R(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},r.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,tw(i).immediateRender=R(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},r.render=function(t,e,r){var i,n,s,o,h,_,f,l,c,d,p,m,v=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,T=t<=0?0:t_(t),w=this._zTime<0!=t<0&&(this._initted||!y);if(this!==u&&T>g&&t>=0&&(T=g),T!==this._tTime||r||w){if(v!==this._time&&y&&(T+=this._time-v,t+=this._time-v),i=T,c=this._start,_=!(l=this._ts),w&&(y||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,h=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(i=t_(T%h),T===g?(o=this._repeat,i=y):((o=~~(T/h))&&o===T/h&&(i=y,o--),i>y&&(i=y)),d=tE(this._tTime,h),!v&&this._tTime&&d!==o&&this._tTime-d*h-this._dur<=0&&(d=o),p&&1&o&&(i=y-i,m=1),o!==d&&!this._lock){var b=p&&1&d,k=b===(p&&1&o);if(o=v&&t>=0)for(n=this._first;n;){if(s=n._next,(n._act||i>=n._start)&&n._ts&&f!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!_){f=0,s&&(T+=this._zTime=-1e-8);break}}n=s}else{n=this._last;for(var x=t<0?t:i;n;){if(s=n._prev,(n._act||x<=n._end)&&n._ts&&f!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(x-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(x-n._start)*n._ts,e,r||a&&(n._initted||n._startAt)),i!==this._time||!this._ts&&!_){f=0,s&&(T+=this._zTime=x?-1e-8:1e-8);break}}n=s}}if(f&&!e&&(this.pause(),f.render(i>=v?0:-1e-8)._zTime=i>=v?1:-1,this._ts))return this._start=c,tO(this),this.render(t,e,r);this._onUpdate&&!e&&t9(this,"onUpdate",!0),(T===g&&this._tTime>=this.totalDuration()||!T&&v)&&(c===this._start||Math.abs(l)!==Math.abs(this._ts))&&!this._lock&&((t||!y)&&(T===g&&this._ts>0||!T&&this._ts<0)&&tD(this,1),e||t<0&&!v||!T&&!v&&g||(t9(this,T===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(T0)&&this._prom()))}return this},r.add=function(t,e){var r=this;if(M(e)||(e=tG(this,e,t)),!(t instanceof eA)){if(z(t))return t.forEach(function(t){return r.add(t,e)}),this;if(x(t))return this.addLabel(t,e);if(!D(t))return this;t=eQ.delayedCall(0,t)}return this!==t?tF(this,t,e):this},r.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-1e8);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof eQ?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return x(t)?this.removeLabel(t):D(t)?this.killTweensOf(t):(tx(this,t),t===this._recent&&(this._recent=this._last),tM(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=t_(ef.time-(this._ts>0?e/this._ts:-((this.totalDuration()-e)/this._ts)))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=tG(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var i=eQ.delayedCall(0,e||Y,r);return i.data="isPause",this._hasPause=1,tF(this,i,tG(this,t))},r.removePause=function(t){var e=this._first;for(t=tG(this,t);e;)e._start===t&&"isPause"===e.data&&tD(e),e=e._next},r.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)eR!==i[n]&&i[n].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,i=[],n=tZ(t),s=this._first,a=M(e);s;)s instanceof eQ?tl(s._targets,n)&&(a?(!eR||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},r.tweenTo=function(t,e){e=e||{};var r,i=this,n=tG(i,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,_=eQ.to(i,tv({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||1e-8,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());_._dur!==t&&tQ(_,t,0,1).render(_._time,!0,!0),r=1}o&&o.apply(_,u||[])}},e));return h?_.render(0):_},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,tv({startAt:{time:tG(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),t4(this,tG(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),t4(this,tG(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return tM(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),tM(this)},r.totalDuration=function(t){var e,r,i,n=0,s=this._last,a=1e8;if(arguments.length)return this.timeScale((this._repeat<0?this.duration():this.totalDuration())/(this.reversed()?-t:t));if(this._dirty){for(i=this.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(r=s._start)>a&&this._sort&&s._ts&&!this._lock?(this._lock=1,tF(this,s,r-s._delay,1)._lock=0):a=r,r<0&&s._ts&&(n-=r,(!i&&!this._dp||i&&i.smoothChildTiming)&&(this._start+=r/this._ts,this._time-=r,this._tTime-=r),this.shiftChildren(-r,!1,-Infinity),a=0),s._end>n&&s._ts&&(n=s._end),s=e;tQ(this,this===u&&this._time>n?this._time:n,1,1),this._dirty=0}return this._tDur},e.updateRoot=function(t){if(u._ts&&(td(u,tS(t,u)),c=ef.frame),ef.frame>=tr){tr+=m.autoSleep||120;var e=u._first;if((!e||!e._ts)&&m.autoSleep&&ef._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ef.sleep()}}},e}(eA);tv(eC.prototype,{_lock:0,_hasPause:0,_forcing:0});var eR,eE,eS=function(t,e,r,i,n,s,a){var o,u,h,_,f,l,c,d,p=new e2(this._pt,t,e,0,1,eK,null,n),m=0,v=0;for(p.b=r,p.e=i,r+="",i+="",(c=~i.indexOf("random("))&&(i=t6(i)),s&&(s(d=[r,i],t,e),r=d[0],i=d[1]),u=r.match(I)||[];o=I.exec(i);)_=o[0],f=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===f.substr(-5)&&(h=1),_!==u[v++]&&(l=parseFloat(u[v-1])||0,p._pt={_next:p._pt,p:f||1===v?f:",",s:l,c:"="===_.charAt(1)?tf(l,_)-l:parseFloat(_)-l,m:h&&h<4?Math.round:0},m=I.lastIndex);return p.c=m")}),h.duration();else{for(c in f={},x)"ease"===c||"easeEach"===c||eU(c,x[c],f,x.easeEach);for(c in f)for(_=0,L=f[c].sort(function(t,e){return t.t-e.t}),B=0;_c-1e-8&&!p?c:t<1e-8?0:t;if(d){if(m!==this._tTime||!t||r||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==p){if(i=m,_=this.timeline,this._repeat){if(a=d+this._rDelay,this._repeat<-1&&p)return this.totalTime(100*a+t,e,r);if(i=t_(m%a),m===c?(s=this._repeat,i=d):((s=~~(m/a))&&s===t_(m/a)&&(i=d,s--),i>d&&(i=d)),(u=this._yoyo&&1&s)&&(f=this._yEase,i=d-i),o=tE(this._tTime,a),i===l&&!r&&this._initted&&s===o)return this._tTime=m,this;s!==o&&(_&&this._yEase&&eT(_,u),this.vars.repeatRefresh&&!u&&!this._lock&&this._time!==a&&this._initted&&(this._lock=r=1,this.render(t_(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(tI(this,p?t:i,r,e,m))return this._tTime=0,this;if(l!==this._time&&!(r&&this.vars.repeatRefresh&&s!==o))return this;if(d!==this._dur)return this.render(t,e,r)}if(this._tTime=m,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(f||this._ease)(i/d),this._from&&(this.ratio=h=1-h),i&&!l&&!e&&!s&&(t9(this,"onStart"),this._tTime!==m))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;_&&_.render(t<0?t:_._dur*_._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(p&&tC(this,t,e,r),t9(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&t9(this,"onRepeat"),(m===this._tDur||!m)&&this._tTime===m&&(p&&!this._onUpdate&&tC(this,t,!0,!0),(t||!d)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&tD(this,1),!e&&!(p&&!l)&&(m||l||u)&&(t9(this,m===c?"onComplete":"onReverseComplete",!0),this._prom&&!(m0)&&this._prom()))}}else tq(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return e&&this.vars.runBackwards||(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,i,n){p||ef.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return(this._initted||eF(this,s),eL(this,t,e,r,i,this._ease(s/this._dur),s,n))?this.resetTo(t,e,r,i,1):(tz(this,0),this.parent||tk(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?et(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,eR&&!0!==eR.vars.overwrite)._first||et(this),this.parent&&r!==this.timeline.totalDuration()&&tQ(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,s,a,o,u,h,_=this._targets,f=t?tZ(t):_,l=this._ptLookup,c=this._pt;if((!e||"all"===e)&&tb(_,f))return"all"===e&&(this._pt=0),et(this);for(i=this._op=this._op||[],"all"!==e&&(x(e)&&(o={},tu(e,function(t){return o[t]=1}),e=o),e=eI(_,e)),h=_.length;h--;)if(~f.indexOf(_[h]))for(o in n=l[h],"all"===e?(i[h]=e,a=n,s={}):(s=i[h]=i[h]||{},a=e),a)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||tx(this,u,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&c&&et(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return tW(1,arguments)},e.delayedCall=function(t,r,i,n){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},e.fromTo=function(t,e,r){return tW(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return u.killTweensOf(t,e,r)},e}(eA);tv(eQ.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),tu("staggerTo,staggerFrom,staggerFromTo",function(t){eQ[t]=function(){var e=new eC,r=tK.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}});var eV=function(t,e,r){return t[e]=r},ej=function(t,e,r){return t[e](r)},eG=function(t,e,r,i){return t[e](i.fp,r)},eW=function(t,e,r){return t.setAttribute(e,r)},eY=function(t,e){return D(t[e])?ej:A(t[e])&&t.setAttribute?eW:eV},eH=function(t,e){return e.set(e.t,e.p,Math.round((e.s+e.c*t)*1e6)/1e6,e)},eJ=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},eK=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},eX=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},eZ=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},e$=function(t){for(var e,r,i=this._pt;i;)r=i._next,(i.p!==t||i.op)&&i.op!==t?i.dep||(e=1):tx(this,i,"_pt"),i=r;return!e},e0=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},e1=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},e2=function(){function t(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||eH,this.d=a||this,this.set=o||eV,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=e0,this.m=t,this.mt=r,this.tween=e},t}();tu(tn+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return X[t]=1}),N.TweenMax=N.TweenLite=eQ,N.TimelineLite=N.TimelineMax=eC,u=new eC({sortChildren:!1,defaults:v,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),m.stringFilter=e_;var e5=[],e8={},e3=[],e6=0,e7=0,e4=function(t){return(e8[t]||e3).map(function(t){return t()})},e9=function(){var t=Date.now(),e=[];t-e6>2&&(e4("matchMediaInit"),e5.forEach(function(t){var r,i,n,s,a=t.queries,o=t.conditions;for(i in a)(r=h.matchMedia(a[i]).matches)&&(n=1),r!==o[i]&&(o[i]=r,s=1);s&&(t.revert(),n&&e.push(t))}),e4("matchMediaRevert"),e.forEach(function(t){return t.onMatch(t,function(e){return t.add(null,e)})}),e6=t,e4("matchMedia"))},rt=function(){function t(t,e){this.selector=e&&t$(e),this.data=[],this._r=[],this.isReverted=!1,this.id=e7++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){D(t)&&(r=e,e=t,t=D);var i=this,n=function(){var t,n=o,s=i.selector;return n&&n!==i&&n.data.push(i),r&&(i.selector=t$(r)),o=i,t=e.apply(i,arguments),D(t)&&i._r.push(t),o=n,i.selector=s,i.isReverted=!1,t};return i.last=n,t===D?n(i,function(t){return i.add(null,t)}):t?i[t]=n:n},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach(function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof eQ&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)}),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,i=r.getTweens(),n=r.data.length;n--;)"isFlip"===(e=r.data[n]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach(function(t){return i.splice(i.indexOf(t),1)}));for(i.map(function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}}).sort(function(t,e){return e.g-t.g||-1/0}).forEach(function(e){return e.t.revert(t)}),n=r.data.length;n--;)(e=r.data[n])instanceof eC?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):e instanceof eQ||!e.revert||e.revert(t);r._r.forEach(function(e){return e(t,r)}),r.isReverted=!0}():this.data.forEach(function(t){return t.kill&&t.kill()}),this.clear(),e)for(var i=e5.length;i--;)e5[i].id===this.id&&e5.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),re=function(){function t(t){this.contexts=[],this.scope=t,o&&o.data.push(this)}var e=t.prototype;return e.add=function(t,e,r){C(t)||(t={matches:t});var i,n,s,a=new rt(0,r||this.scope),u=a.conditions={};for(n in o&&!a.selector&&(a.selector=o.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===n?s=1:(i=h.matchMedia(t[n]))&&(0>e5.indexOf(a)&&e5.push(a),(u[n]=i.matches)&&(s=1),i.addListener?i.addListener(e9):i.addEventListener("change",e9));return s&&e(a,function(t){return a.add(null,t)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(e){return e.kill(t,!0)})},t}(),rr={registerPlugin:function(){for(var t=arguments.length,e=Array(t),r=0;r1){var i=t.map(function(t){return ra.quickSetter(t,e,r)}),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var s=tt[e],a=ta(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var i=new s;d._pt=0,i.init(t,r?e+r:e,d,0,[t]),i.render(1,i),d._pt&&eX(1,d)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var i,n=ra.to(t,tg(((i={})[e]="+=0.1",i.paused=!0,i),r||{})),s=function(t,r,i){return n.resetTo(e,t,r,i)};return s.tween=n,s},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ew(t.ease,v.ease)),ty(v,t||{})},config:function(t){return ty(m,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach(function(t){return t&&!tt[t]&&!N[t]&&G(e+" effect requires "+t+" plugin.")}),te[e]=function(t,e,i){return r(tZ(t),tv(e||{},n),i)},s&&(eC.prototype[e]=function(t,r,i){return this.add(te[e](t,C(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){ec[t]=ew(e)},parseEase:function(t,e){return arguments.length?ew(t,e):ec},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new eC(t);for(n.smoothChildTiming=R(t.smoothChildTiming),u.remove(n),n._dp=0,n._time=n._tTime=u._time,r=u._first;r;)i=r._next,(e||!(!r._dur&&r instanceof eQ&&r.vars.onComplete===r._targets[0]))&&tF(n,r,r._start-r._delay),r=i;return tF(u,n,0),n},context:function(t,e){return t?new rt(t,e):o},matchMedia:function(t){return new re(t)},matchMediaRefresh:function(){return e5.forEach(function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()})||e9()},addEventListener:function(t,e){var r=e8[t]||(e8[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=e8[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:function t(e,r,i){var n=r-e;return z(e)?t3(e,t(0,e.length),r):tY(i,function(t){return(n+(t-e)%n)%n+e})},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return z(e)?t3(e,t(0,e.length-1),r):tY(i,function(t){return t=(s+(t-e)%s)%s||0,e+(t>n?s-t:t)})},distribute:t1,random:t8,snap:t5,normalize:function(t,e,r){return t7(t,e,0,1,r)},getUnit:tJ,clamp:function(t,e,r){return tY(r,function(r){return tH(t,e,r)})},splitColor:es,toArray:tZ,selector:t$,mapRange:t7,pipe:function(){for(var t=arguments.length,e=Array(t),r=0;rs;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[i]=e,e._prev=a,e.parent=e._dp=t,e},Dt=function(t,e,r,i){void 0===r&&(r="_first"),void 0===i&&(i="_last");var n=e._prev,s=e._next;n?n._next=s:t[r]===e&&(t[r]=s),s?s._prev=n:t[i]===e&&(t[i]=n),e._next=e._prev=e.parent=null},Mt=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},At=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ct=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Rt=function(t,e,r,i){return t._startAt&&(a?t._startAt.revert(K):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,i))},Et=function t(e){return!e||e._ts&&t(e.parent)},St=function(t){return t._repeat?Ot(t._tTime,t=t.duration()+t._rDelay)*t:0},Ot=function(t,e){var r=Math.floor(t/=e);return t&&r===t?r-1:r},zt=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Pt=function(t){return t._end=lt(t._start+(t._tDur/Math.abs(t._ts||t._rts||y)||0))},Ft=function(t,e){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=lt(r._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Pt(t),r._dirty||At(r,t)),t},Lt=function(t,e){var r;if((e._time||!e._dur&&e._initted||e._starty)&&e.render(r,!0)),At(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},It=function(t,e,r,i){return e.parent&&Mt(e),e._start=lt((C(r)?r:r||t!==u?Gt(t,r,e):t._time)+e._delay),e._end=lt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),xt(t,e,"_first","_last",t._sort?"_start":0),qt(e)||(t._recent=e),i||Lt(t,e),t._ts<0&&Ft(t,t._tTime),t},Ut=function(t,e){return(V.ScrollTrigger||W("scrollTrigger",e))&&V.ScrollTrigger.create(e,t)},Bt=function(t,e,r,i,n){return je(t,e,n),t._initted?!r&&t._pt&&!a&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&c!==ke.frame?(tt.push(t),t._lazy=[n,i],1):void 0:1},Nt=function t(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||t(r))},qt=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Qt=function(t,e,r,i){var n=t._repeat,s=lt(e)||0,a=t._tTime/t._tDur;return a&&!i&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:lt(s*(n+1)+t._rDelay*n):s,a>0&&!i&&Ft(t,t._tTime=t._tDur*a),t.parent&&Pt(t),r||At(t.parent,t),t},Vt=function(t){return t instanceof Ue?At(t):Qt(t,t._dur)},jt={_start:0,endTime:H,totalDuration:H},Gt=function t(e,r,i){var n,s,a,o=e.labels,u=e._recent||jt,h=e.duration()>=g?u.endTime(!1):e._dur;return M(r)&&(isNaN(r)||r in o)?(s=r.charAt(0),a="%"===r.substr(-1),n=r.indexOf("="),"<"===s||">"===s?(n>=0&&(r=r.replace(/=/,"")),("<"===s?u._start:u.endTime(u._repeat>=0))+(parseFloat(r.substr(1))||0)*(a?(n<0?u:i).totalDuration()/100:1)):n<0?(r in o||(o[r]=h),o[r]):(s=parseFloat(r.charAt(n-1)+r.substr(n+1)),a&&i&&(s=s/100*(F(i)?i[0]:i).totalDuration()),n>1?t(e,r.substr(0,n-1),i)+s:h+s)):null==r?h:+r},Wt=function(t,e,r){var i,n,s=C(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=r,t){for(i=o,n=r;n&&!("immediateRender"in i);)i=n.vars.defaults||{},n=S(n.vars.inherit)&&n.parent;o.immediateRender=S(i.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new He(e[0],o,e[a+1])},Yt=function(t,e){return t||0===t?e(t):e},$t=function(t,e,r){return re?e:r},Ht=function(t,e){return M(t)&&(e=Q.exec(t))?e[1]:""},Jt=[].slice,Kt=function(t,e){return t&&E(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&E(t[0]))&&!t.nodeType&&t!==h},Xt=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var i;return M(t)&&!e||Kt(t,1)?(i=r).push.apply(i,Zt(t)):r.push(t)}))||r},Zt=function(t,e,r){return o&&!e&&o.selector?o.selector(t):!M(t)||r||!f&&xe()?F(t)?Xt(t,r):Kt(t)?Jt.call(t,0):t?[t]:[]:Jt.call((e||_).querySelectorAll(t),0)},te=function(t){return t=Zt(t)[0]||Y("Invalid scope")||{},function(e){var r=t.current||t.nativeElement||t;return Zt(e,r.querySelectorAll?r:r===t?Y("Invalid scope")||_.createElement("div"):t)}},ee=function(t){return t.sort((function(){return.5-Math.random()}))},re=function(t){if(A(t))return t;var e=E(t)?t:{each:t},r=Se(e.ease),i=e.from||0,n=parseFloat(e.base)||0,s={},a=i>0&&i<1,o=isNaN(i)||a,u=e.axis,h=i,f=i;return M(i)?h=f={center:.5,edges:.5,end:1}[i]||0:!a&&o&&(h=i[0],f=i[1]),function(t,a,_){var l,c,d,p,m,v,y,T,w,b=(_||e).length,x=s[b];if(!x){if(!(w="auto"===e.grid?0:(e.grid||[1,g])[1])){for(y=-g;y<(y=_[w++].getBoundingClientRect().left)&&wy&&(y=m),mb?b-1:u?"y"===u?b/w:w:Math.max(w,b/w))||0)*("edges"===i?-1:1),x.b=b<0?n-b:n,x.u=Ht(e.amount||e.each)||0,r=r&&b<0?Re(r):r}return b=(x[t]-x.min)/x.max||0,lt(x.b+(r?r(b):b)*x.v)+x.u}},ie=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=lt(Math.round(parseFloat(r)/t)*t*e);return(i-i%1)/e+(C(r)?0:Ht(r))}},ne=function(t,e){var r,i,n=F(t);return!n&&E(t)&&(r=n=t.radius||g,t.values?(t=Zt(t.values),(i=!C(t[0]))&&(r*=r)):t=ie(t.increment)),Yt(e,n?A(t)?function(e){return i=t(e),Math.abs(i-e)<=r?i:e}:function(e){for(var n,s,a=parseFloat(i?e.x:e),o=parseFloat(i?e.y:0),u=g,h=0,f=t.length;f--;)(n=i?(n=t[f].x-a)*n+(s=t[f].y-o)*s:Math.abs(t[f]-a))(n=Math.abs(n))&&(s=i,o=n);return s},fe=function(t,e,r){var i,n,s,a=t.vars,u=a[e],h=o,f=t._ctx;if(u)return i=a[e+"Params"],n=a.callbackScope||t,r&&tt.length&&pt(),f&&(o=f),s=i?u.apply(n,i):u.call(n),o=h,s},_e=function(t){return Mt(t),t.scrollTrigger&&t.scrollTrigger.kill(!!a),t.progress()<1&&fe(t,"onInterrupt"),t},le=[],ce=function(t){if(O()&&t){var e=(t=!t.name&&t.default||t).name,r=A(t),i=e&&!r&&t.init?function(){this._props=[]}:t,n={init:H,render:nr,add:Qe,kill:ar,modifier:sr,rawVars:0},s={targetTest:0,get:0,getSetter:tr,aliases:{},register:0};if(xe(),t!==i){if(rt[e])return;yt(i,yt(bt(t,n),s)),Tt(i.prototype,Tt(n,bt(t,s))),rt[i.prop=e]=i,t.targetTest&&(st.push(i),Z[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}$(e,i),t.register&&t.register(br,i,hr)}else t&&le.push(t)},de=255,pe={aqua:[0,de,de],lime:[0,de,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,de],navy:[0,0,128],white:[de,de,de],olive:[128,128,0],yellow:[de,de,0],orange:[de,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[de,0,0],pink:[de,192,203],cyan:[0,de,de],transparent:[de,de,de,0]},me=function(t,e,r){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)*de+.5|0},ve=function(t,e,r){var i,n,s,a,o,u,h,f,_,l,c=t?C(t)?[t>>16,t>>8&de,t&de]:0:pe.black;if(!c){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),pe[t])c=pe[t];else if("#"===t.charAt(0)){if(t.length<6&&(i=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+i+i+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(c=parseInt(t.substr(1,6),16))>>16,c>>8&de,c&de,parseInt(t.substr(7),16)/255];c=[(t=parseInt(t.substr(1),16))>>16,t>>8&de,t&de]}else if("hsl"===t.substr(0,3))if(c=l=t.match(L),e){if(~t.indexOf("="))return c=t.match(I),r&&c.length<4&&(c[3]=1),c}else a=+c[0]%360/360,o=+c[1]/100,i=2*(u=+c[2]/100)-(n=u<=.5?u*(o+1):u+o-u*o),c.length>3&&(c[3]*=1),c[0]=me(a+1/3,i,n),c[1]=me(a,i,n),c[2]=me(a-1/3,i,n);else c=t.match(L)||pe.transparent;c=c.map(Number)}return e&&!l&&(i=c[0]/de,n=c[1]/de,s=c[2]/de,u=((h=Math.max(i,n,s))+(f=Math.min(i,n,s)))/2,h===f?a=o=0:(_=h-f,o=u>.5?_/(2-h-f):_/(h+f),a=h===i?(n-s)/_+(no&&(c+=y-u),((f=(l=(d+=y)-c)-v)>0||T)&&(p=++i.frame,n=l-1e3*i.time,i.time=l/=1e3,v+=f+(f>=m?4:m-f),_=1),T||(t=e(r)),_)for(s=0;s=e&&s--},_listeners:g}}(),xe=function(){return!p&&ke.wake()},De={},Me=/^[\d.\-M][\d.\-,\s]/,Ae=/["']/g,Ce=function(t){for(var e,r,i,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,u=s.length;o1&&r.config?r.config.apply(null,~t.indexOf("{")?[Ce(e[1])]:function(t){var e=t.indexOf("(")+1,r=t.indexOf(")"),i=t.indexOf("(",e);return t.substring(e,~i&&i=1?r:1,s=(i||(e?.3:.45))/(r<1?r:1),a=s/T*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*D((t-a)*s)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:ze(o);return s=T/s,u.config=function(r,i){return t(e,r,i)},u},Fe=function t(e,r){void 0===r&&(r=1.70158);var i=function(t){return t?--t*t*((r+1)*t+r)+1:0},n="out"===e?i:"in"===e?function(t){return 1-i(1-t)}:ze(i);return n.config=function(r){return t(e,r)},n};ft("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Oe(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),De.Linear.easeNone=De.none=De.Linear.easeIn,Oe("Elastic",Pe("in"),Pe("out"),Pe()),function(t,e){var r=1/e,i=function(i){return i0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Qt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(xe(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ft(this,t),!r._dp||r.parent||Lt(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&It(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===y||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),mt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+St(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+St(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Ot(this._tTime,r)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var r=this.parent&&this._ts?zt(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime($t(-Math.abs(this._delay),this._tDur,r),!1!==e),Pt(this),Ct(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==y&&(this._tTime-=y)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&It(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(S(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?zt(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=X);var e=a;return a=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),a=e,this},e.globalTime=function(t){for(var e=this,r=arguments.length?t:e.rawTime();e;)r=e._start+r/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):r},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Vt(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Vt(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Gt(this,t),S(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,S(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,r=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=r&&t1?(e?(i[t]=e,r&&(i[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete i[t],this):i[t]},e.then=function(t){var e=this;return new Promise((function(r){var i=A(t)?t:gt,n=function(){var t=e.then;e.then=null,A(i)&&(i=i(e))&&(i.then||i===e)&&(e.then=t),r(i),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n}))},e.kill=function(){_e(this)},t}();yt(Ie.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ue=function(t){function e(e,r){var n;return void 0===e&&(e={}),(n=t.call(this,e)||this).labels={},n.smoothChildTiming=!!e.smoothChildTiming,n.autoRemoveChildren=!!e.autoRemoveChildren,n._sort=S(e.sortChildren),u&&It(e.parent||u,i(n),r),e.reversed&&n.reverse(),e.paused&&n.paused(!0),e.scrollTrigger&&Ut(i(n),e.scrollTrigger),n}n(e,t);var r=e.prototype;return r.to=function(t,e,r){return Wt(0,arguments,this),this},r.from=function(t,e,r){return Wt(1,arguments,this),this},r.fromTo=function(t,e,r,i){return Wt(2,arguments,this),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,kt(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new He(t,e,Gt(this,r),1),this},r.call=function(t,e,r){return It(this,He.delayedCall(0,t,e),r)},r.staggerTo=function(t,e,r,i,n,s,a){return r.duration=e,r.stagger=r.stagger||i,r.onComplete=s,r.onCompleteParams=a,r.parent=this,new He(t,r,Gt(this,n)),this},r.staggerFrom=function(t,e,r,i,n,s,a){return r.runBackwards=1,kt(r).immediateRender=S(r.immediateRender),this.staggerTo(t,e,r,i,n,s,a)},r.staggerFromTo=function(t,e,r,i,n,s,a,o){return i.startAt=r,kt(i).immediateRender=S(i.immediateRender),this.staggerTo(t,e,i,n,s,a,o)},r.render=function(t,e,r){var i,n,s,o,h,f,_,l,c,d,p,m,v=this._time,g=this._dirty?this.totalDuration():this._tDur,T=this._dur,w=t<=0?0:lt(t),b=this._zTime<0!==t<0&&(this._initted||!T);if(this!==u&&w>g&&t>=0&&(w=g),w!==this._tTime||r||b){if(v!==this._time&&T&&(w+=this._time-v,t+=this._time-v),i=w,c=this._start,f=!(l=this._ts),b&&(T||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,h=T+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*h+t,e,r);if(i=lt(w%h),w===g?(o=this._repeat,i=T):((o=~~(w/h))&&o===w/h&&(i=T,o--),i>T&&(i=T)),d=Ot(this._tTime,h),!v&&this._tTime&&d!==o&&this._tTime-d*h-this._dur<=0&&(d=o),p&&1&o&&(i=T-i,m=1),o!==d&&!this._lock){var k=p&&1&d,x=k===(p&&1&o);if(oe)for(i=t._first;i&&i._start<=r;){if("isPause"===i.data&&i._start>e)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if("isPause"===i.data&&i._start=v&&t>=0)for(n=this._first;n;){if(s=n._next,(n._act||i>=n._start)&&n._ts&&_!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(i-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(i-n._start)*n._ts,e,r),i!==this._time||!this._ts&&!f){_=0,s&&(w+=this._zTime=-1e-8);break}}n=s}else{n=this._last;for(var D=t<0?t:i;n;){if(s=n._prev,(n._act||D<=n._end)&&n._ts&&_!==n){if(n.parent!==this)return this.render(t,e,r);if(n.render(n._ts>0?(D-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(D-n._start)*n._ts,e,r||a&&(n._initted||n._startAt)),i!==this._time||!this._ts&&!f){_=0,s&&(w+=this._zTime=D?-1e-8:y);break}}n=s}}if(_&&!e&&(this.pause(),_.render(i>=v?0:-1e-8)._zTime=i>=v?1:-1,this._ts))return this._start=c,Pt(this),this.render(t,e,r);this._onUpdate&&!e&&fe(this,"onUpdate",!0),(w===g&&this._tTime>=this.totalDuration()||!w&&v)&&(c!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||((t||!T)&&(w===g&&this._ts>0||!w&&this._ts<0)&&Mt(this,1),e||t<0&&!v||!w&&!v&&g||(fe(this,w===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(w0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(C(e)||(e=Gt(this,e,t)),!(t instanceof Ie)){if(F(t))return t.forEach((function(t){return r.add(t,e)})),this;if(M(t))return this.addLabel(t,e);if(!A(t))return this;t=He.delayedCall(0,t)}return this!==t?It(this,t,e):this},r.getChildren=function(t,e,r,i){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===i&&(i=-g);for(var n=[],s=this._first;s;)s._start>=i&&(s instanceof He?e&&n.push(s):(r&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,r)))),s=s._next;return n},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return M(t)?this.removeLabel(t):A(t)?this.killTweensOf(t):(Dt(this,t),t===this._recent&&(this._recent=this._last),At(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=lt(ke.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=Gt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var i=He.delayedCall(0,e||H,r);return i.data="isPause",this._hasPause=1,It(this,i,Gt(this,t))},r.removePause=function(t){var e=this._first;for(t=Gt(this,t);e;)e._start===t&&"isPause"===e.data&&Mt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var i=this.getTweensOf(t,r),n=i.length;n--;)Be!==i[n]&&i[n].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,i=[],n=Zt(t),s=this._first,a=C(e);s;)s instanceof He?dt(s._targets,n)&&(a?(!Be||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&i.push(s):(r=s.getTweensOf(n,e)).length&&i.push.apply(i,r),s=s._next;return i},r.tweenTo=function(t,e){e=e||{};var r,i=this,n=Gt(i,t),s=e,a=s.startAt,o=s.onStart,u=s.onStartParams,h=s.immediateRender,f=He.to(i,yt({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale())||y,onStart:function(){if(i.pause(),!r){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:i._time))/i.timeScale());f._dur!==t&&Qt(f,t,0,1).render(f._time,!0,!0),r=1}o&&o.apply(f,u||[])}},e));return h?f.render(0):f},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,yt({startAt:{time:Gt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),he(this,Gt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+y)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var i,n=this._first,s=this.labels;n;)n._start>=r&&(n._start+=t,n._end+=t),n=n._next;if(e)for(i in s)s[i]>=r&&(s[i]+=t);return At(this)},r.invalidate=function(e){var r=this._first;for(this._lock=0;r;)r.invalidate(e),r=r._next;return t.prototype.invalidate.call(this,e)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),At(this)},r.totalDuration=function(t){var e,r,i,n=0,s=this,a=s._last,o=g;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(r=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,It(s,a,r-a._delay,1)._lock=0):o=r,r<0&&a._ts&&(n-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),o=0),a._end>n&&a._ts&&(n=a._end),a=e;Qt(s,s===u&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(u._ts&&(mt(u,zt(t,u)),c=ke.frame),ke.frame>=nt){nt+=m.autoSleep||120;var e=u._first;if((!e||!e._ts)&&m.autoSleep&&ke._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ke.sleep()}}},e}(Ie);yt(Ue.prototype,{_lock:0,_hasPause:0,_forcing:0});var Be,Ne,qe=function(t,e,r,i,n,s,a){var o,u,h,f,_,l,c,d,p=new hr(this._pt,t,e,0,1,ir,null,n),m=0,v=0;for(p.b=r,p.e=i,r+="",(c=~(i+="").indexOf("random("))&&(i=oe(i)),s&&(s(d=[r,i],t,e),r=d[0],i=d[1]),u=r.match(B)||[];o=B.exec(i);)f=o[0],_=i.substring(m,o.index),h?h=(h+1)%5:"rgba("===_.substr(-5)&&(h=1),f!==u[v++]&&(l=parseFloat(u[v-1])||0,p._pt={_next:p._pt,p:_||1===v?_:",",s:l,c:"="===f.charAt(1)?ct(l,f)-l:parseFloat(f)-l,m:h&&h<4?Math.round:0},m=B.lastIndex);return p.c=m")})),h.duration();else{for(c in _={},x)"ease"===c||"easeEach"===c||Ge(c,x[c],_,x.easeEach);for(c in _)for(L=_[c].sort((function(t,e){return t.t-e.t})),B=0,f=0;fd-y&&!m?d:tp&&(i=p)),(h=this._yoyo&&1&s)&&(l=this._yEase,i=p-i),u=Ot(this._tTime,o),i===c&&!r&&this._initted&&s===u)return this._tTime=v,this;s!==u&&(_&&this._yEase&&Ee(_,h),this.vars.repeatRefresh&&!h&&!this._lock&&this._time!==p&&this._initted&&(this._lock=r=1,this.render(lt(o*s),!0).invalidate()._lock=0))}if(!this._initted){if(Bt(this,m?t:i,r,e,v))return this._tTime=0,this;if(c!==this._time&&(!r||!this.vars.repeatRefresh||s===u))return this;if(p!==this._dur)return this.render(t,e,r)}if(this._tTime=v,this._time=i,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=f=(l||this._ease)(i/p),this._from&&(this.ratio=f=1-f),i&&!c&&!e&&!s&&(fe(this,"onStart"),this._tTime!==v))return this;for(n=this._pt;n;)n.r(f,n.d),n=n._next;_&&_.render(t<0?t:!i&&h?-1e-8:_._dur*_._ease(i/this._dur),e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Rt(this,t,0,r),fe(this,"onUpdate")),this._repeat&&s!==u&&this.vars.onRepeat&&!e&&this.parent&&fe(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(m&&!this._onUpdate&&Rt(this,t,0,!0),(t||!p)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&Mt(this,1),e||m&&!c||!(v||c||h)||(fe(this,v===d?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(t,e,r,i){var n,s,o,u=t.ratio,h=e<0||!e&&(!t._start&&Nt(t)&&(t._initted||!qt(t))||(t._ts<0||t._dp._ts<0)&&!qt(t))?0:1,f=t._rDelay,_=0;if(f&&t._repeat&&(_=$t(0,t._tDur,e),s=Ot(_,f),t._yoyo&&1&s&&(h=1-h),s!==Ot(t._tTime,f)&&(u=1-h,t.vars.repeatRefresh&&t._initted&&t.invalidate())),h!==u||a||i||t._zTime===y||!e&&t._zTime){if(!t._initted&&Bt(t,e,i,r,_))return;for(o=t._zTime,t._zTime=e||(r?y:0),r||(r=e&&!o),t.ratio=h,t._from&&(h=1-h),t._time=0,t._tTime=_,n=t._pt;n;)n.r(h,n.d),n=n._next;e<0&&Rt(t,e,0,!0),t._onUpdate&&!r&&fe(t,"onUpdate"),_&&t._repeat&&!r&&t.parent&&fe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===h&&(h&&Mt(t,1),r||a||(fe(t,h?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},r.resetTo=function(t,e,r,i,n){p||ke.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||je(this,s),function(t,e,r,i,n,s,a,o){var u,h,f,_,l=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!l)for(l=t._ptCache[e]=[],f=t._ptLookup,_=t._targets.length;_--;){if((u=f[_][e])&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==e&&u.fp!==e;)u=u._next;if(!u)return Ne=1,t.vars[e]="+=0",je(t,a),Ne=0,o?Y(e+" not eligible for reset"):1;l.push(u)}for(_=l.length;_--;)(u=(h=l[_])._pt||h).s=!i&&0!==i||n?u.s+(i||0)+s*u.c:i,u.c=r-u.s,h.e&&(h.e=_t(r)+Ht(h.e)),h.b&&(h.b=u.s+Ht(h.b))}(this,t,e,r,i,this._ease(s/this._dur),s,n)?this.resetTo(t,e,r,i,1):(Ft(this,0),this.parent||xt(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(t,e){if(void 0===e&&(e="all"),!t&&(!e||"all"===e))return this._lazy=this._pt=0,this.parent?_e(this):this;if(this.timeline){var r=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Be&&!0!==Be.vars.overwrite)._first||_e(this),this.parent&&r!==this.timeline.totalDuration()&&Qt(this,this._dur*this.timeline._tDur/r,0,1),this}var i,n,s,a,o,u,h,f=this._targets,_=t?Zt(t):f,l=this._ptLookup,c=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,i=r===e.length;i&&r--&&t[r]===e[r];);return r<0}(f,_))return"all"===e&&(this._pt=0),_e(this);for(i=this._op=this._op||[],"all"!==e&&(M(e)&&(o={},ft(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var r,i,n,s,a=t[0]?ut(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(i in r=Tt({},e),o)if(i in r)for(n=(s=o[i].split(",")).length;n--;)r[s[n]]=r[i];return r}(f,e)),h=f.length;h--;)if(~_.indexOf(f[h]))for(o in n=l[h],"all"===e?(i[h]=e,a=n,s={}):(s=i[h]=i[h]||{},a=e),a)(u=n&&n[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Dt(this,u,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&c&&_e(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,e){return Wt(1,arguments)},e.delayedCall=function(t,r,i,n){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:i,onReverseCompleteParams:i,callbackScope:n})},e.fromTo=function(t,e,r){return Wt(2,arguments)},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return u.killTweensOf(t,e,r)},e}(Ie);yt(He.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ft("staggerTo,staggerFrom,staggerFromTo",(function(t){He[t]=function(){var e=new Ue,r=Jt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var Je=function(t,e,r){return t[e]=r},Ke=function(t,e,r){return t[e](r)},Xe=function(t,e,r,i){return t[e](i.fp,r)},Ze=function(t,e,r){return t.setAttribute(e,r)},tr=function(t,e){return A(t[e])?Ke:R(t[e])&&t.setAttribute?Ze:Je},er=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},rr=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ir=function(t,e){var r=e._pt,i="";if(!t&&e.b)i=e.b;else if(1===t&&e.e)i=e.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+i,r=r._next;i+=e.c}e.set(e.t,e.p,i,e)},nr=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},sr=function(t,e,r,i){for(var n,s=this._pt;s;)n=s._next,s.p===i&&s.modifier(t,e,r),s=n},ar=function(t){for(var e,r,i=this._pt;i;)r=i._next,i.p===t&&!i.op||i.op===t?Dt(this,i,"_pt"):i.dep||(e=1),i=r;return!e},or=function(t,e,r,i){i.mSet(t,e,i.m.call(i.tween,r,i.mt),i)},ur=function(t){for(var e,r,i,n,s=t._pt;s;){for(e=s._next,r=i;r&&r.pr>s.pr;)r=r._next;(s._prev=r?r._prev:n)?s._prev._next=s:i=s,(s._next=r)?r._prev=s:n=s,s=e}t._pt=i},hr=function(){function t(t,e,r,i,n,s,a,o,u){this.t=e,this.s=i,this.c=n,this.p=r,this.r=s||er,this.d=a||this,this.set=o||Je,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=or,this.m=t,this.mt=r,this.tween=e},t}();ft(at+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Z[t]=1})),V.TweenMax=V.TweenLite=He,V.TimelineLite=V.TimelineMax=Ue,u=new Ue({sortChildren:!1,defaults:v,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),m.stringFilter=be;var fr=[],_r={},lr=[],cr=0,dr=0,pr=function(t){return(_r[t]||lr).map((function(t){return t()}))},mr=function(){var t=Date.now(),e=[];t-cr>2&&(pr("matchMediaInit"),fr.forEach((function(t){var r,i,n,s,a=t.queries,o=t.conditions;for(i in a)(r=h.matchMedia(a[i]).matches)&&(n=1),r!==o[i]&&(o[i]=r,s=1);s&&(t.revert(),n&&e.push(t))})),pr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),cr=t,pr("matchMedia"))},vr=function(){function t(t,e){this.selector=e&&te(e),this.data=[],this._r=[],this.isReverted=!1,this.id=dr++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,r){A(t)&&(r=e,e=t,t=A);var i=this,n=function(){var t,n=o,s=i.selector;return n&&n!==i&&n.data.push(i),r&&(i.selector=te(r)),o=i,t=e.apply(i,arguments),A(t)&&i._r.push(t),o=n,i.selector=s,i.isReverted=!1,t};return i.last=n,t===A?n(i,(function(t){return i.add(null,t)})):t?i[t]=n:n},e.ignore=function(t){var e=o;o=null,t(this),o=e},e.getTweens=function(){var e=[];return this.data.forEach((function(r){return r instanceof t?e.push.apply(e,r.getTweens()):r instanceof He&&!(r.parent&&"nested"===r.parent.data)&&e.push(r)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var r=this;if(t?function(){for(var e,i=r.getTweens(),n=r.data.length;n--;)"isFlip"===(e=r.data[n]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return i.splice(i.indexOf(t),1)})));for(i.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),n=r.data.length;n--;)(e=r.data[n])instanceof Ue?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof He)&&e.revert&&e.revert(t);r._r.forEach((function(e){return e(t,r)})),r.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var i=fr.length;i--;)fr[i].id===this.id&&fr.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),gr=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,r){E(t)||(t={matches:t});var i,n,s,a=new vr(0,r||this.scope),u=a.conditions={};for(n in o&&!a.selector&&(a.selector=o.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===n?s=1:(i=h.matchMedia(t[n]))&&(fr.indexOf(a)<0&&fr.push(a),(u[n]=i.matches)&&(s=1),i.addListener?i.addListener(mr):i.addEventListener("change",mr));return s&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),yr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var i=t.map((function(t){return br.quickSetter(t,e,r)})),n=i.length;return function(t){for(var e=n;e--;)i[e](t)}}t=t[0]||{};var s=rt[e],a=ut(t),o=a.harness&&(a.harness.aliases||{})[e]||e,u=s?function(e){var i=new s;d._pt=0,i.init(t,r?e+r:e,d,0,[t]),i.render(1,i),d._pt&&nr(1,d)}:a.set(t,o);return s?u:function(e){return u(t,o,r?e+r:e,a,1)}},quickTo:function(t,e,r){var i,n=br.to(t,Tt(((i={})[e]="+=0.1",i.paused=!0,i),r||{})),s=function(t,r,i){return n.resetTo(e,t,r,i)};return s.tween=n,s},isTweening:function(t){return u.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Se(t.ease,v.ease)),wt(v,t||{})},config:function(t){return wt(m,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,i=t.plugins,n=t.defaults,s=t.extendTimeline;(i||"").split(",").forEach((function(t){return t&&!rt[t]&&!V[t]&&Y(e+" effect requires "+t+" plugin.")})),it[e]=function(t,e,i){return r(Zt(t),yt(e||{},n),i)},s&&(Ue.prototype[e]=function(t,r,i){return this.add(it[e](t,E(r)?r:(i=r)&&{},this),i)})},registerEase:function(t,e){De[t]=Se(e)},parseEase:function(t,e){return arguments.length?Se(t,e):De},getById:function(t){return u.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,i,n=new Ue(t);for(n.smoothChildTiming=S(t.smoothChildTiming),u.remove(n),n._dp=0,n._time=n._tTime=u._time,r=u._first;r;)i=r._next,!e&&!r._dur&&r instanceof He&&r.vars.onComplete===r._targets[0]||It(n,r,r._start-r._delay),r=i;return It(u,n,0),n},context:function(t,e){return t?new vr(t,e):o},matchMedia:function(t){return new gr(t)},matchMediaRefresh:function(){return fr.forEach((function(t){var e,r,i=t.conditions;for(r in i)i[r]&&(i[r]=!1,e=1);e&&t.revert()}))||mr()},addEventListener:function(t,e){var r=_r[t]||(_r[t]=[]);~r.indexOf(e)||r.push(e)},removeEventListener:function(t,e){var r=_r[t],i=r&&r.indexOf(e);i>=0&&r.splice(i,1)},utils:{wrap:function t(e,r,i){var n=r-e;return F(e)?ae(e,t(0,e.length),r):Yt(i,(function(t){return(n+(t-e)%n)%n+e}))},wrapYoyo:function t(e,r,i){var n=r-e,s=2*n;return F(e)?ae(e,t(0,e.length-1),r):Yt(i,(function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)}))},distribute:re,random:se,snap:ne,normalize:function(t,e,r){return ue(t,e,0,1,r)},getUnit:Ht,clamp:function(t,e,r){return Yt(r,(function(r){return $t(t,e,r)}))},splitColor:ve,toArray:Zt,selector:te,mapRange:ue,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r1?function(t){for(var e=new C,n=0;n4&&(a=s.offsetLeft,u=s.offsetTop,s=0);if("absolute"!==(d=r.getComputedStyle(t)).position&&"fixed"!==d.position)for(i=t.offsetParent;M&&M!==i;)a+=M.scrollLeft||0,u+=M.scrollTop||0,M=M.parentNode;(s=n.style).top=t.offsetTop-u+"px",s.left=t.offsetLeft-a+"px",s[p]=d[p],s[f]=d[f],s.position="fixed"===d.position?"fixed":"absolute",t.parentNode.appendChild(n)}return n},O=function(t,e,n,i,r,s,a){return t.a=e,t.b=n,t.c=i,t.d=r,t.e=s,t.f=a,t},C=function(){function t(t,e,n,i,r,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=1),void 0===r&&(r=0),void 0===s&&(s=0),O(this,t,e,n,i,r,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.e,s=this.f,a=t*i-e*n||1e-10;return O(this,i/a,-e/a,-n/a,t/a,(n*s-i*r)/a,-(t*s-e*r)/a)},e.multiply=function(t){var e=this.a,n=this.b,i=this.c,r=this.d,s=this.e,a=this.f,o=t.a,l=t.c,c=t.b,u=t.d,h=t.e,p=t.f;return O(this,o*e+c*i,o*n+c*r,l*e+u*i,l*n+u*r,s+h*e+p*i,a+h*n+p*r)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,n=this.b,i=this.c,r=this.d,s=this.e,a=this.f;return e===t.a&&n===t.b&&i===t.c&&r===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var n=t.x,i=t.y,r=this.a,s=this.b,a=this.c,o=this.d,l=this.e,c=this.f;return e.x=n*r+i*a+l||0,e.y=n*s+i*o+c||0,e},t}();function S(t,e,n,r){if(!t||!t.parentNode||(i||d(t)).documentElement===t)return new C;var s=function(t){for(var e,n;t&&t!==a;)(n=t._gsap)&&n.uncache&&n.get(t,"x"),n&&!n.scaleX&&!n.scaleY&&n.renderTransform&&(n.scaleX=n.scaleY=1e-4,n.renderTransform(1,n),e?e.push(n):e=[n]),t=t.parentNode;return e}(t),o=x(t)?g:m,l=M(t,n),c=o[0].getBoundingClientRect(),u=o[1].getBoundingClientRect(),h=o[2].getBoundingClientRect(),p=l.parentNode,f=!r&&b(t),w=new C((u.left-c.left)/100,(u.top-c.top)/100,(h.left-c.left)/100,(h.top-c.top)/100,c.left+(f?0:v()),c.top+(f?0:y()));if(p.removeChild(l),s)for(c=s.length;c--;)(u=s[c]).scaleX=u.scaleY=0,u.renderTransform(1,u);return e?w.inverse():w}var _,P,z,V,T,E,B,L,A=1,F=function(t,e){return t.actions.forEach((function(t){return t.vars[e]&&t.vars[e](t)}))},X={},Y=180/Math.PI,Z=Math.PI/180,I={},N={},H={},j=function(t){return"string"===typeof t?t.split(" ").join("").split(","):t},W=j("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),D=j("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),R=function(t){return _(t)[0]||console.warn("Element not found:",t)},q=function(t){return Math.round(1e4*t)/1e4||0},G=function(t,e,n){return t.forEach((function(t){return t.classList[n](e)}))},U={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},$={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},J=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},K=function(t,e){var n,i={};for(n in t)e[n]||(i[n]=t[n]);return i},Q={},tt=function(t){var e=Q[t]=j(t);return H[t]=e.concat(D),e},et=function t(e,n,i){void 0===i&&(i=0);for(var r=e.parentNode,s=1e3*Math.pow(10,i)*(n?-1:1),a=n?900*-s:0;e;)a+=s,e=e.previousSibling;return r?a+t(r,n,i+1):a},nt=function(t,e,n){return t.forEach((function(t){return t.d=et(n?t.element:t.t,e)})),t.sort((function(t,e){return t.d-e.d})),t},it=function(t,e){for(var n,i,r=t.element.style,s=t.css=t.css||[],a=e.length;a--;)i=r[n=e[a]]||r.getPropertyValue(n),s.push(i?n:N[n]||(N[n]=J(n)),i);return r},rt=function(t){var e=t.css,n=t.element.style,i=0;for(t.cache.uncache=1;i0&&Y&&(l.style.opacity=pt?m.opacity-y.opacity:"0"),gt(m,y,X,j)):y.isVisible!==m.isVisible&&(y.isVisible?m.isVisible||(y.css=m.css,rt.push(y),at.splice(o--,1),M&&A&>(m,y,X,j)):(m.isVisible&&et.push(m),at.splice(o--,1))),X||(l.style.maxWidth=Math.max(m.width,y.width)+"px",l.style.maxHeight=Math.max(m.height,y.height)+"px",l.style.minWidth=Math.min(m.width,y.width)+"px",l.style.minHeight=Math.min(m.height,y.height)+"px"),A&&L&&l.classList.add(L)):at.splice(o--,1),p.push(m);var e;if(L&&(e=p.map((function(t){return t.element})),A&&e.forEach((function(t){return t.classList.remove(L)}))),bt(!1),X?(R.scaleX=function(t){return at[t].a.scaleX},R.scaleY=function(t){return at[t].a.scaleY}):(R.width=function(t){return at[t].a.width+"px"},R.height=function(t){return at[t].a.height+"px"},R.autoRound=n.autoRound||!1),R.x=function(t){return at[t].a.x+"px"},R.y=function(t){return at[t].a.y+"px"},R.rotation=function(t){return at[t].a.rotation+(I?360*ht(t,h[t],h):0)},R.skewX=function(t){return at[t].a.skewX},h=at.map((function(t){return t.t})),(F||0===F)&&(R.modifiers={zIndex:function(){return F}},R.zIndex=F,R.immediateRender=!1!==n.immediateRender),Y&&(R.opacity=function(t){return at[t].sd<0?0:at[t].sd>0?at[t].a.opacity:"+=0"}),ot.length){Z=P.utils.distribute(Z);var i=h.slice(ot.length);R.stagger=function(t,e){return Z(~ot.indexOf(e)?h.indexOf(at[t].swap.t):t,e,i)}}if(W.forEach((function(t){return n[t]&&q.eventCallback(t,n[t],n[t+"Params"])})),C&&h.length)for(s in J=K(R,U),"scale"in C&&(C.scaleX=C.scaleY=C.scale,delete C.scale),C)(r=K(C[s],$))[s]=R[s],!("duration"in r)&&"duration"in R&&(r.duration=R.duration),r.stagger=R.stagger,ft.call(q,h,r,0),delete J[s];(h.length||rt.length||et.length)&&(L&&q.add((function(){return G(e,L,q._zTime<0?"remove":"add")}),0)&&!V&&G(e,L,"add"),h.length&&ft.call(q,h,J,0)),dt(w,et,q),dt(k,rt,q);var f=z&&z.timeline;f&&(f.add(q,0),z._final.push((function(){return st(at,!b)}))),a=q.duration(),q.call((function(){var t=q.time()>=a;t&&!f&&st(at,!b),L&&G(e,L,t?"remove":"add")}))},O&&(M=at.filter((function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible})).map((function(t){return t.a.element}))),z)?(M&&(v=z._abs).push.apply(v,lt(at,M)),z._run.push(g)):(M&&ct(lt(at,M)),g());var mt=z?z.timeline:q;return mt.revert=function(){return Mt(mt,1,1)},mt},kt=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},Mt=function(t,e,n){if(t&&t.progress()<1&&(!t.paused()||n))return e&&(kt(t),e<2&&t.progress(1),t.kill()),!0},Ot=function(t){for(var e,n=t.idLookup={},i=t.alt={},r=t.elementStates,s=r.length;s--;)n[(e=r[s]).id]?i[e.id]=e:n[e.id]=e},Ct=function(){function t(t,e,n){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),n)this.targets=ft(t),this.elementStates=t,Ot(this);else{this.targets=_(t);var i=e&&(!1===e.kill||e.batch&&!e.kill);z&&!i&&z._kill.push(this),this.update(i||!!z)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map((function(t){return new St(t,e.props,e.simple)})),Ot(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,Ot(this),this},e.fit=function(t,e,n){for(var i,r,s=nt(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;o=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,n=z,i=V;return z=this,this.state.clear(),this._kill.length=0,this.actions.forEach((function(n){n.vars.getState&&(n.states.length=0,V=n,n.state=n.vars.getState(n)),t&&n.states.forEach((function(t){return e.state.add(t)}))})),V=i,z=n,this.killConflicts(),this},e.animate=function(){var t,e,n=this,i=z,r=this.timeline,s=this.actions.length;for(z=this,r.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach((function(t){t.vars.animate&&t.vars.animate(t);var e,n,i=t.vars.onEnter,r=t.vars.onLeave,s=t.targets;s&&s.length&&(i||r)&&(e=new Ct,t.states.forEach((function(t){return e.add(t)})),(n=e.compare(zt.getState(s))).enter.length&&i&&i(n.enter),n.leave.length&&r&&r(n.leave))})),ct(this._abs),this._run.forEach((function(t){return t()})),e=r.duration(),t=this._final.slice(0),r.add((function(){e<=r.time()&&(t.forEach((function(t){return t()})),F(n,"onComplete"))})),z=i;s--;)this.actions[s].vars.once&&this.actions[s].kill();return F(this,"onStart"),r.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach((function(n){if(n.vars.loadState){var i,r=function r(s){s&&(n.targets=s),~(i=e.indexOf(r))&&(e.splice(i,1),e.length||t())};e.push(r),n.vars.loadState(r)}})),e.length||t(),this},e.setState=function(){return this.actions.forEach((function(t){return t.targets=t.vars.setState&&t.vars.setState(t)})),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach((function(e){return e.interrupt(t)})),this},e.run=function(t,e){var n=this;return this!==z&&(t||this.getState(e),this.loadState((function(){n._killed||(n.setState(),n.animate())}))),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,n=this.actions.length;n--;)if(e=this.actions[n].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete X[this.id]},t}(),zt=function(){function t(){}return t.getState=function(e,n){var i=mt(e,n);return V&&V.states.push(i),n&&n.batch&&t.batch(n.batch).state.add(i),i},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),wt(t,mt(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return wt(t,mt(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,n){return wt(t,e,n)},t.fit=function(t,e,n){var i=n?K(n,$):{},r=n||i,s=r.absolute,a=r.scale,o=r.getVars,l=r.props,c=r.runBackwards,u=r.onComplete,h=r.simple,p=n&&n.fitChild&&R(n.fitChild),f=ht(e,l,h,t),d=ht(t,0,h,f),g=l?H[l]:D,m=P.context();return l&&pt(i,f.props),it(d,g),c&&("immediateRender"in i||(i.immediateRender=!0),i.onComplete=function(){rt(d),u&&u.apply(this,arguments)}),s&&ot(d,f),i=gt(d,f,a||p,l,p,i.duration||o?i:0),m&&!o&&m.add((function(){return function(){return rt(d)}})),o?i:i.duration?P.to(d.element,i):null},t.makeAbsolute=function(t,e){return(t instanceof Ct?t:new Ct(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),X[t]||(X[t]=new Pt(t))},t.killFlipsOf=function(t,e){(t instanceof Ct?t.targets:_(t)).forEach((function(t){return t&&Mt(t._flip,!1!==e?1:2)}))},t.isFlipping=function(e){var n=t.getByTarget(e);return!!n&&n.isActive()},t.getByTarget=function(t){return(R(t)||I)._flip},t.getElementState=function(t,e){return new St(R(t),e)},t.convertCoordinates=function(t,e,n){var i=S(e,!0,!0).multiply(S(t));return n?i.apply(n):i},t.register=function(t){if(T="undefined"!==typeof document&&document.body){P=t,d(T),_=P.utils.toArray,B=P.core.getStyleSaver;var e=P.utils.snap(.1);E=function(t,n){return e(parseFloat(t)+n)}}},t}();zt.version="3.12.4","undefined"!==typeof window&&window.gsap&&window.gsap.registerPlugin(zt)},10990:function(t,e,n){n.d(e,{ZP:function(){return Mt}});var i,r,s,a,o,l,c,u,h=n(25317),p={},f=180/Math.PI,d=Math.PI/180,g=Math.atan2,m=/([A-Z])/g,y=/(left|right|width|margin|padding|x)/i,v=/[\s,\(]\S/,x={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},b=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},w=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},k=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},M=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},O=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},C=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},S=function(t,e,n){return t.style[e]=n},_=function(t,e,n){return t.style.setProperty(e,n)},P=function(t,e,n){return t._gsap[e]=n},z=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},V=function(t,e,n,i,r){var s=t._gsap;s.scaleX=s.scaleY=n,s.renderTransform(r,s)},T=function(t,e,n,i,r){var s=t._gsap;s[e]=n,s.renderTransform(r,s)},E="transform",B=E+"Origin",L=function t(e,n){var i=this,r=this.target,s=r.style,a=r._gsap;if(e in p&&s){if(this.tfm=this.tfm||{},"transform"===e)return x.transform.split(",").forEach((function(e){return t.call(i,e,n)}));if(~(e=x[e]||e).indexOf(",")?e.split(",").forEach((function(t){return i.tfm[t]=K(r,t)})):this.tfm[e]=a.x?a[e]:K(r,e),e===B&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(E)>=0)return;a.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(B,n,"")),e=E}(s||n)&&this.props.push(e,n,s[e])},A=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},F=function(){var t,e,n=this.props,i=this.target,r=i.style,s=i._gsap;for(t=0;t=0?I[r]:"")+t},H=function(){"undefined"!==typeof window&&window.document&&(i=window,r=i.document,s=r.documentElement,o=Y("div")||{style:{}},Y("div"),E=N(E),B=E+"Origin",o.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",u=!!N("perspective"),c=h.p8.core.reverting,a=1)},j=function t(e){var n,i=Y("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(s.appendChild(i),i.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(l){}else this._gsapBBox&&(n=this._gsapBBox());return r&&(a?r.insertBefore(this,a):r.appendChild(this)),s.removeChild(i),this.style.cssText=o,n},W=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},D=function(t){var e;try{e=t.getBBox()}catch(n){e=j.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===j||(e=j.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+W(t,["x","cx","x1"])||0,y:+W(t,["y","cy","y1"])||0,width:0,height:0}},R=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!D(t))},q=function(t,e){if(e){var n,i=t.style;e in p&&e!==B&&(e=E),i.removeProperty?("ms"!==(n=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),i.removeProperty("--"===n?e:e.replace(m,"-$1").toLowerCase())):i.removeAttribute(e)}},G=function(t,e,n,i,r,s){var a=new h.Fo(t._pt,e,n,0,1,s?C:O);return t._pt=a,a.b=i,a.e=r,t._props.push(n),a},U={deg:1,rad:1,turn:1},$={grid:1,flex:1},J=function t(e,n,i,s){var a,l,c,u,f=parseFloat(i)||0,d=(i+"").trim().substr((f+"").length)||"px",g=o.style,m=y.test(n),v="svg"===e.tagName.toLowerCase(),x=(v?"client":"offset")+(m?"Width":"Height"),b=100,w="px"===s,k="%"===s;if(s===d||!f||U[s]||U[d])return f;if("px"!==d&&!w&&(f=t(e,n,i,"px")),u=e.getCTM&&R(e),(k||"%"===d)&&(p[n]||~n.indexOf("adius")))return a=u?e.getBBox()[m?"width":"height"]:e[x],(0,h.Pr)(k?f/a*b:f/100*a);if(g[m?"width":"height"]=b+(w?d:s),l=~n.indexOf("adius")||"em"===s&&e.appendChild&&!v?e:e.parentNode,u&&(l=(e.ownerSVGElement||{}).parentNode),l&&l!==r&&l.appendChild||(l=r.body),(c=l._gsap)&&k&&c.width&&m&&c.time===h.xr.time&&!c.uncache)return(0,h.Pr)(f/c.width*b);if(!k||"height"!==n&&"width"!==n)(k||"%"===d)&&!$[Z(l,"display")]&&(g.position=Z(e,"position")),l===e&&(g.position="static"),l.appendChild(o),a=o[x],l.removeChild(o),g.position="absolute";else{var M=e.style[n];e.style[n]=b+s,a=e[x],M?e.style[n]=M:q(e,n)}return m&&k&&((c=(0,h.DY)(l)).time=h.xr.time,c.width=l[x]),(0,h.Pr)(w?a*f/b:a&&f?b/a*f:0)},K=function(t,e,n,i){var r;return a||H(),e in x&&"transform"!==e&&~(e=x[e]).indexOf(",")&&(e=e.split(",")[0]),p[e]&&"transform"!==e?(r=ut(t,i),r="transformOrigin"!==e?r[e]:r.svg?r.origin:ht(Z(t,B))+" "+r.zOrigin+"px"):(!(r=t.style[e])||"auto"===r||i||~(r+"").indexOf("calc("))&&(r=it[e]&&it[e](t,e,n)||Z(t,e)||(0,h.Ok)(t,e)||("opacity"===e?1:0)),n&&!~(r+"").trim().indexOf(" ")?J(t,e,r,n)+n:r},Q=function(t,e,n,i){if(!n||"none"===n){var r=N(e,t,1),s=r&&Z(t,r,1);s&&s!==n?(e=r,n=s):"borderColor"===e&&(n=Z(t,"borderTopColor"))}var a,o,l,c,u,p,f,d,g,m,y,v=new h.Fo(this._pt,t.style,e,0,1,h.Ks),x=0,b=0;if(v.b=n,v.e=i,n+="","auto"===(i+="")&&(p=t.style[e],t.style[e]=i,i=Z(t,e)||i,p?t.style[e]=p:q(t,e)),a=[n,i],(0,h.kr)(a),i=a[1],l=(n=a[0]).match(h.d4)||[],(i.match(h.d4)||[]).length){for(;o=h.d4.exec(i);)f=o[0],g=i.substring(x,o.index),u?u=(u+1)%5:"rgba("!==g.substr(-5)&&"hsla("!==g.substr(-5)||(u=1),f!==(p=l[b++]||"")&&(c=parseFloat(p)||0,y=p.substr((c+"").length),"="===f.charAt(1)&&(f=(0,h.cy)(c,f)+y),d=parseFloat(f),m=f.substr((d+"").length),x=h.d4.lastIndex-m.length,m||(m=m||h.Fc.units[e]||y,x===i.length&&(i+=m,v.e+=m)),y!==m&&(c=J(t,e,p,m)||0),v._pt={_next:v._pt,p:g||1===b?g:",",s:c,c:d-c,m:u&&u<4||"zIndex"===e?Math.round:0});v.c=x-1;)n=o[r],p[n]&&(i=1,n="transformOrigin"===n?B:E),q(s,n);i&&(q(s,E),l&&(l.svg&&s.removeAttribute("transform"),ut(s,1),l.uncache=1,A(a)))}},it={clearProps:function(t,e,n,i,r){if("isFromStart"!==r.data){var s=t._pt=new h.Fo(t._pt,e,n,0,0,nt);return s.u=i,s.pr=-10,s.tween=r,t._props.push(n),1}}},rt=[1,0,0,1,0,0],st={},at=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},ot=function(t){var e=Z(t,E);return at(e)?rt:e.substr(7).match(h.SI).map(h.Pr)},lt=function(t,e){var n,i,r,a,o=t._gsap||(0,h.DY)(t),l=t.style,c=ot(t);return o.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(c=[(r=t.transform.baseVal.consolidate().matrix).a,r.b,r.c,r.d,r.e,r.f]).join(",")?rt:c:(c!==rt||t.offsetParent||t===s||o.svg||(r=l.display,l.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,i=t.nextElementSibling,s.appendChild(t)),c=ot(t),r?l.display=r:q(t,"display"),a&&(i?n.insertBefore(t,i):n?n.appendChild(t):s.removeChild(t))),e&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},ct=function(t,e,n,i,r,s){var a,o,l,c=t._gsap,u=r||lt(t,!0),h=c.xOrigin||0,p=c.yOrigin||0,f=c.xOffset||0,d=c.yOffset||0,g=u[0],m=u[1],y=u[2],v=u[3],x=u[4],b=u[5],w=e.split(" "),k=parseFloat(w[0])||0,M=parseFloat(w[1])||0;n?u!==rt&&(o=g*v-m*y)&&(l=k*(-m/o)+M*(g/o)-(g*b-m*x)/o,k=k*(v/o)+M*(-y/o)+(y*b-v*x)/o,M=l):(k=(a=D(t)).x+(~w[0].indexOf("%")?k/100*a.width:k),M=a.y+(~(w[1]||w[0]).indexOf("%")?M/100*a.height:M)),i||!1!==i&&c.smooth?(x=k-h,b=M-p,c.xOffset=f+(x*g+b*y)-x,c.yOffset=d+(x*m+b*v)-b):c.xOffset=c.yOffset=0,c.xOrigin=k,c.yOrigin=M,c.smooth=!!i,c.origin=e,c.originIsAbsolute=!!n,t.style[B]="0px 0px",s&&(G(s,c,"xOrigin",h,k),G(s,c,"yOrigin",p,M),G(s,c,"xOffset",f,c.xOffset),G(s,c,"yOffset",d,c.yOffset)),t.setAttribute("data-svg-origin",k+" "+M)},ut=function(t,e){var n=t._gsap||new h.l1(t);if("x"in n&&!e&&!n.uncache)return n;var i,r,s,a,o,l,c,p,m,y,v,x,b,w,k,M,O,C,S,_,P,z,V,T,L,A,F,X,Y,I,N,H,j=t.style,W=n.scaleX<0,D="px",q="deg",G=getComputedStyle(t),U=Z(t,B)||"0";return i=r=s=l=c=p=m=y=v=0,a=o=1,n.svg=!(!t.getCTM||!R(t)),G.translate&&("none"===G.translate&&"none"===G.scale&&"none"===G.rotate||(j[E]=("none"!==G.translate?"translate3d("+(G.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==G.rotate?"rotate("+G.rotate+") ":"")+("none"!==G.scale?"scale("+G.scale.split(" ").join(",")+") ":"")+("none"!==G[E]?G[E]:"")),j.scale=j.rotate=j.translate="none"),w=lt(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),U=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",T=""):T=!e&&t.getAttribute("data-svg-origin"),ct(t,T||U,!!T||n.originIsAbsolute,!1!==n.smooth,w)),x=n.xOrigin||0,b=n.yOrigin||0,w!==rt&&(C=w[0],S=w[1],_=w[2],P=w[3],i=z=w[4],r=V=w[5],6===w.length?(a=Math.sqrt(C*C+S*S),o=Math.sqrt(P*P+_*_),l=C||S?g(S,C)*f:0,(m=_||P?g(_,P)*f+l:0)&&(o*=Math.abs(Math.cos(m*d))),n.svg&&(i-=x-(x*C+b*_),r-=b-(x*S+b*P))):(H=w[6],I=w[7],F=w[8],X=w[9],Y=w[10],N=w[11],i=w[12],r=w[13],s=w[14],c=(k=g(H,Y))*f,k&&(T=z*(M=Math.cos(-k))+F*(O=Math.sin(-k)),L=V*M+X*O,A=H*M+Y*O,F=z*-O+F*M,X=V*-O+X*M,Y=H*-O+Y*M,N=I*-O+N*M,z=T,V=L,H=A),p=(k=g(-_,Y))*f,k&&(M=Math.cos(-k),N=P*(O=Math.sin(-k))+N*M,C=T=C*M-F*O,S=L=S*M-X*O,_=A=_*M-Y*O),l=(k=g(S,C))*f,k&&(T=C*(M=Math.cos(k))+S*(O=Math.sin(k)),L=z*M+V*O,S=S*M-C*O,V=V*M-z*O,C=T,z=L),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,p=180-p),a=(0,h.Pr)(Math.sqrt(C*C+S*S+_*_)),o=(0,h.Pr)(Math.sqrt(V*V+H*H)),k=g(z,V),m=Math.abs(k)>2e-4?k*f:0,v=N?1/(N<0?-N:N):0),n.svg&&(T=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!at(Z(t,E)),T&&t.setAttribute("transform",T))),Math.abs(m)>90&&Math.abs(m)<270&&(W?(a*=-1,m+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,m+=m<=0?180:-180)),e=e||n.uncache,n.x=i-((n.xPercent=i&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-i)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+D,n.y=r-((n.yPercent=r&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-r)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+D,n.z=s+D,n.scaleX=(0,h.Pr)(a),n.scaleY=(0,h.Pr)(o),n.rotation=(0,h.Pr)(l)+q,n.rotationX=(0,h.Pr)(c)+q,n.rotationY=(0,h.Pr)(p)+q,n.skewX=m+q,n.skewY=y+q,n.transformPerspective=v+D,(n.zOrigin=parseFloat(U.split(" ")[2])||!e&&n.zOrigin||0)&&(j[B]=ht(U)),n.xOffset=n.yOffset=0,n.force3D=h.Fc.force3D,n.renderTransform=n.svg?vt:u?yt:ft,n.uncache=0,n},ht=function(t){return(t=t.split(" "))[0]+" "+t[1]},pt=function(t,e,n){var i=(0,h.Wy)(e);return(0,h.Pr)(parseFloat(e)+parseFloat(J(t,"x",n+"px",i)))+i},ft=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,yt(t,e)},dt="0deg",gt="0px",mt=") ",yt=function(t,e){var n=e||this,i=n.xPercent,r=n.yPercent,s=n.x,a=n.y,o=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,h=n.skewX,p=n.skewY,f=n.scaleX,g=n.scaleY,m=n.transformPerspective,y=n.force3D,v=n.target,x=n.zOrigin,b="",w="auto"===y&&t&&1!==t||!0===y;if(x&&(u!==dt||c!==dt)){var k,M=parseFloat(c)*d,O=Math.sin(M),C=Math.cos(M);M=parseFloat(u)*d,k=Math.cos(M),s=pt(v,s,O*k*-x),a=pt(v,a,-Math.sin(M)*-x),o=pt(v,o,C*k*-x+x)}m!==gt&&(b+="perspective("+m+mt),(i||r)&&(b+="translate("+i+"%, "+r+"%) "),(w||s!==gt||a!==gt||o!==gt)&&(b+=o!==gt||w?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+mt),l!==dt&&(b+="rotate("+l+mt),c!==dt&&(b+="rotateY("+c+mt),u!==dt&&(b+="rotateX("+u+mt),h===dt&&p===dt||(b+="skew("+h+", "+p+mt),1===f&&1===g||(b+="scale("+f+", "+g+mt),v.style[E]=b||"translate(0, 0)"},vt=function(t,e){var n,i,r,s,a,o=e||this,l=o.xPercent,c=o.yPercent,u=o.x,p=o.y,f=o.rotation,g=o.skewX,m=o.skewY,y=o.scaleX,v=o.scaleY,x=o.target,b=o.xOrigin,w=o.yOrigin,k=o.xOffset,M=o.yOffset,O=o.forceCSS,C=parseFloat(u),S=parseFloat(p);f=parseFloat(f),g=parseFloat(g),(m=parseFloat(m))&&(g+=m=parseFloat(m),f+=m),f||g?(f*=d,g*=d,n=Math.cos(f)*y,i=Math.sin(f)*y,r=Math.sin(f-g)*-v,s=Math.cos(f-g)*v,g&&(m*=d,a=Math.tan(g-m),r*=a=Math.sqrt(1+a*a),s*=a,m&&(a=Math.tan(m),n*=a=Math.sqrt(1+a*a),i*=a)),n=(0,h.Pr)(n),i=(0,h.Pr)(i),r=(0,h.Pr)(r),s=(0,h.Pr)(s)):(n=y,s=v,i=r=0),(C&&!~(u+"").indexOf("px")||S&&!~(p+"").indexOf("px"))&&(C=J(x,"x",u,"px"),S=J(x,"y",p,"px")),(b||w||k||M)&&(C=(0,h.Pr)(C+b-(b*n+w*r)+k),S=(0,h.Pr)(S+w-(b*i+w*s)+M)),(l||c)&&(a=x.getBBox(),C=(0,h.Pr)(C+l/100*a.width),S=(0,h.Pr)(S+c/100*a.height)),a="matrix("+n+","+i+","+r+","+s+","+C+","+S+")",x.setAttribute("transform",a),O&&(x.style[E]=a)},xt=function(t,e,n,i,r){var s,a,o=360,l=(0,h.r9)(r),c=parseFloat(r)*(l&&~r.indexOf("rad")?f:1)-i,u=i+c+"deg";return l&&("short"===(s=r.split("_")[1])&&(c%=o)!==c%180&&(c+=c<0?o:-360),"cw"===s&&c<0?c=(c+36e9)%o-~~(c/o)*o:"ccw"===s&&c>0&&(c=(c-36e9)%o-~~(c/o)*o)),t._pt=a=new h.Fo(t._pt,e,n,i,c,w),a.e=u,a.u="deg",t._props.push(n),a},bt=function(t,e){for(var n in e)t[n]=e[n];return t},wt=function(t,e,n){var i,r,s,a,o,l,c,u=bt({},n._gsap),f=n.style;for(r in u.svg?(s=n.getAttribute("transform"),n.setAttribute("transform",""),f[E]=e,i=ut(n,1),q(n,E),n.setAttribute("transform",s)):(s=getComputedStyle(n)[E],f[E]=e,i=ut(n,1),f[E]=s),p)(s=u[r])!==(a=i[r])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(r)<0&&(o=(0,h.Wy)(s)!==(c=(0,h.Wy)(a))?J(n,r,s,c):parseFloat(s),l=parseFloat(a),t._pt=new h.Fo(t._pt,i,r,o,l-o,b),t._pt.u=c||0,t._props.push(r));bt(i,u)};(0,h.fS)("padding,margin,Width,Radius",(function(t,e){var n="Top",i="Right",r="Bottom",s="Left",a=(e<3?[n,i,r,s]:[n+s,n+i,r+i,r+s]).map((function(n){return e<2?t+n:"border"+n+t}));it[e>1?"border"+t:t]=function(t,e,n,i,r){var s,o;if(arguments.length<4)return s=a.map((function(e){return K(t,e,n)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(i+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,r)}}));var kt={name:"css",register:H,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,i,r){var s,o,l,c,u,f,d,g,m,y,w,O,C,S,_,P,z=this._props,V=t.style,T=n.vars.startAt;for(d in a||H(),this.styles=this.styles||X(t),P=this.styles.props,this.tween=n,e)if("autoRound"!==d&&(o=e[d],!h.$i[d]||!(0,h.if)(d,e,n,i,t,r)))if(u=typeof o,f=it[d],"function"===u&&(u=typeof(o=o.call(n,i,t,r))),"string"===u&&~o.indexOf("random(")&&(o=(0,h.UI)(o)),f)f(this,t,d,o,n)&&(_=1);else if("--"===d.substr(0,2))s=(getComputedStyle(t).getPropertyValue(d)+"").trim(),o+="",h.GN.lastIndex=0,h.GN.test(s)||(g=(0,h.Wy)(s),m=(0,h.Wy)(o)),m?g!==m&&(s=J(t,d,s,m)+m):g&&(o+=g),this.add(V,"setProperty",s,o,i,r,0,0,d),z.push(d),P.push(d,0,V[d]);else if("undefined"!==u){if(T&&d in T?(s="function"===typeof T[d]?T[d].call(n,i,t,r):T[d],(0,h.r9)(s)&&~s.indexOf("random(")&&(s=(0,h.UI)(s)),(0,h.Wy)(s+"")||"auto"===s||(s+=h.Fc.units[d]||(0,h.Wy)(K(t,d))||""),"="===(s+"").charAt(1)&&(s=K(t,d))):s=K(t,d),c=parseFloat(s),(y="string"===u&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),l=parseFloat(o),d in x&&("autoAlpha"===d&&(1===c&&"hidden"===K(t,"visibility")&&l&&(c=0),P.push("visibility",0,V.visibility),G(this,V,"visibility",c?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==d&&"transform"!==d&&~(d=x[d]).indexOf(",")&&(d=d.split(",")[0])),w=d in p)if(this.styles.save(d),O||((C=t._gsap).renderTransform&&!e.parseTransform||ut(t,e.parseTransform),S=!1!==e.smoothOrigin&&C.smooth,(O=this._pt=new h.Fo(this._pt,V,E,0,1,C.renderTransform,C,0,-1)).dep=1),"scale"===d)this._pt=new h.Fo(this._pt,C,"scaleY",C.scaleY,(y?(0,h.cy)(C.scaleY,y+l):l)-C.scaleY||0,b),this._pt.u=0,z.push("scaleY",d),d+="X";else{if("transformOrigin"===d){P.push(B,0,V[B]),o=et(o),C.svg?ct(t,o,0,S,0,this):((m=parseFloat(o.split(" ")[2])||0)!==C.zOrigin&&G(this,C,"zOrigin",C.zOrigin,m),G(this,V,d,ht(s),ht(o)));continue}if("svgOrigin"===d){ct(t,o,1,S,0,this);continue}if(d in st){xt(this,C,d,c,y?(0,h.cy)(c,y+o):o);continue}if("smoothOrigin"===d){G(this,C,"smooth",C.smooth,o);continue}if("force3D"===d){C[d]=o;continue}if("transform"===d){wt(this,o,t);continue}}else d in V||(d=N(d)||d);if(w||(l||0===l)&&(c||0===c)&&!v.test(o)&&d in V)l||(l=0),(g=(s+"").substr((c+"").length))!==(m=(0,h.Wy)(o)||(d in h.Fc.units?h.Fc.units[d]:g))&&(c=J(t,d,s,m)),this._pt=new h.Fo(this._pt,w?C:V,d,c,(y?(0,h.cy)(c,y+l):l)-c,w||"px"!==m&&"zIndex"!==d||!1===e.autoRound?b:M),this._pt.u=m||0,g!==m&&"%"!==m&&(this._pt.b=s,this._pt.r=k);else if(d in V)Q.call(this,t,d,s,y?y+o:o);else if(d in t)this.add(t,d,s||t[d],y?y+o:o,i,r);else if("parseTransform"!==d){(0,h.lC)(d,o);continue}w||(d in V?P.push(d,0,V[d]):P.push(d,1,s||t[d])),z.push(d)}_&&(0,h.JV)(this)},render:function(t,e){if(e.tween._time||!c())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:K,aliases:x,getSetter:function(t,e,n){var i=x[e];return i&&i.indexOf(",")<0&&(e=i),e in p&&e!==B&&(t._gsap.x||K(t,"x"))?n&&l===n?"scale"===e?z:P:(l=n||{})&&("scale"===e?V:T):t.style&&!(0,h.m2)(t.style[e])?S:~e.indexOf("-")?_:(0,h.S5)(t,e)},core:{_removeProperty:q,_getMatrix:lt}};h.p8.utils.checkPrefix=N,h.p8.core.getStyleSaver=X,function(t,e,n,i){var r=(0,h.fS)(t+","+e+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){p[t]=1}));(0,h.fS)(e,(function(t){h.Fc.units[t]="deg",st[t]=1})),x[r[13]]=t+","+e,(0,h.fS)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");x[e[1]]=r[e[0]]}))}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY"),(0,h.fS)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){h.Fc.units[t]="px"})),h.p8.registerPlugin(kt);var Mt=h.p8.registerPlugin(kt)||h.p8;Mt.core.Tween},57150:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("BookText",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20",key:"t4utmx"}],["path",{d:"M8 7h6",key:"1f0q6e"}],["path",{d:"M8 11h8",key:"vwpz6n"}]])},76915:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},33587:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]])},3848:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("FileKey2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v6",key:"rc0qvx"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"4",cy:"16",r:"2",key:"1ehqvc"}],["path",{d:"m10 10-4.5 4.5",key:"7fwrp6"}],["path",{d:"m9 11 1 1",key:"wa6s5q"}]])},4844:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]])},68599:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]])},78107:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]])},62888:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]])},58261:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},49525:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},41352:function(t,e,n){n.d(e,{Z:function(){return i}});const i=(0,n(45711).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},29815:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(20943);var r=n(13375);var s=n(91566);function a(t){return function(t){if(Array.isArray(t))return(0,i.Z)(t)}(t)||(0,r.Z)(t)||(0,s.Z)(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.")}()}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9654-126cc84864d517d8.js b/dsql-app/.local_dist/static/chunks/9654-126cc84864d517d8.js new file mode 100644 index 0000000..330edda --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/9654-126cc84864d517d8.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9654],{42361:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(74848);function l(e){let{image:t,title:a,description:l,color:r,imageHeight:i}=e;return(0,s.jsxs)("div",{className:"color-card shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":""):""),children:[(0,s.jsx)("h3",{className:"title m-0 text-2xl",children:a}),l&&(0,s.jsx)("span",{className:"text-slate-600 dark:text-slate-400 text-left",children:l}),(0,s.jsx)("div",{className:"image-block",style:i?{height:"".concat(i,"px")}:void 0,children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})})]})}function r(e){let{image:t,title:a,description:l,color:r,height:i,h2:c,url:n,cta:o}=e;return(0,s.jsxs)("div",{className:"contained-section shadow-xl"+(r?" "+("green"==r?"green":"gray"==r?"gray":"purple"==r?"purple":""):""),style:i?{height:"".concat(i,"px")}:void 0,children:[(0,s.jsxs)("div",{className:"content text-left",children:[c?(0,s.jsx)("h2",{className:"m-0 text-white",children:a}):(0,s.jsx)("h3",{className:"m-0 text-white",children:a}),l&&(0,s.jsx)("span",{className:"text-slate-400",children:l}),n&&o&&(0,s.jsx)("a",{href:n,className:"button mt-4",children:o})]}),(0,s.jsx)("div",{className:"image-block",children:(0,s.jsx)("img",{src:t,alt:"".concat(a," Image")})}),(0,s.jsx)("img",{src:"/images/geometric-overlay.webp",className:"absolute z-0 left-0 top-0 w-full h-full opacity-80 mix-blend-overlay",alt:"Background Image"})]})}function i(e){return(0,s.jsx)("section",{className:"py-20",children:(0,s.jsxs)("div",{className:"main-container flex-col items-center text-center",children:[(0,s.jsx)("h2",{className:"m-0 lg:text-left",children:"All your data storage needs in one place"}),(0,s.jsx)("p",{className:"m-0 ",children:"Datasquirel solves the hassle of storing data across different platforms using a centralized, easy-to-use, SQL-based cloud database administration system. Now you can have all your data in one place and retrieve from any location or environment using HTTP REST API calls and SQL queries."}),(0,s.jsxs)("div",{className:"grid grid-cols-1 xl:grid-cols-2 w-full mt-10 gap-10",children:[(0,s.jsx)(l,{image:"/images/screenshots/databases-light.webp",title:"Data and Content",description:"Create databases, tables, dynamic datatypes including rich text, JSON and other editable code blocks",imageHeight:400}),(0,s.jsx)(l,{image:"/images/screenshots/media-list-white.webp",title:"Images, Videos, and other Media",description:"Static images automatically compressed with multiple format support, videos, pdf, excel documents, and more.",color:"green",imageHeight:400})]}),(0,s.jsx)("div",{className:"mt-10 w-full",children:(0,s.jsx)(r,{image:"/images/screenshots/tables-list-white.webp",title:"All the power of SQL without the hassle",description:"Indexes, Foreign keys, encryption, triggers, stored proceedures, etc. You get the best of both worlds: the full power of SQL, and the best UI yet to better manipulate your data.",cta:"Learn More",url:"/about",height:500})})]})})}a(96540)},26659:(e,t,a)=>{a.d(t,{A:()=>r});var s=a(74848);a(96540);var l=a(57457);function r(e){let{user:t}=e;return(0,s.jsxs)("section",{className:"py-24 border-0 border-t border-b border-slate-100 dark:border-slate-100/10 border-solid",children:[(0,s.jsx)("div",{className:"w-full max-w-6xl gap-10 justify-between flex-col relative z-10",children:(0,s.jsxs)("div",{className:"flex-col items-center max-w-2xl text-center ",style:{minWidth:"45%"},children:[(0,s.jsx)("h2",{className:"m-0 leading-tight",children:"Get started For Free."}),(0,s.jsx)("span",{className:"text-lg font-normal",children:"Get Started At no cost. Learn how to create and retrieve data by viewing our documentation."}),(0,s.jsxs)("div",{className:"flex items-start justify-center w-full mt-4",children:[!(null==t?void 0:t.logged_in_status)&&(0,s.jsx)("a",{href:"/create-account",className:"button",children:(0,s.jsx)("span",{className:"",children:"Sign Up For Free"})}),(0,s.jsxs)("a",{href:"/docs",className:"button outlined gray",children:[(0,s.jsx)(l.A,{sx:{opacity:.8,fontSize:16}}),(0,s.jsx)("span",{children:"See The Docs"})]})]})]})}),(0,s.jsx)("img",{src:"/images/grid.webp",alt:"Dotted image background",className:"absolute top-0 left-0 w-full h-full object-cover opacity-80 dark:opacity-10 z-0"})]})}},96869:(e,t,a)=>{a(74848),a(96540)},62900:(e,t,a)=>{a.d(t,{A:()=>l});var s=a(23698);function l(e){let{setUser:t}=e,a=localStorage.getItem("user");if(a)try{t(JSON.parse(a));return}catch(e){t({});return}(0,s.A)("/api/clientSideAuth",{method:"post",body:{}},!0).then(e=>{let a=e.user?e.user:{};t(a),localStorage.setItem("user",JSON.stringify(a))}).catch(e=>{console.log(e)})}},57457:(e,t,a)=>{var s=a(24994);t.A=void 0;var l=s(a(44888)),r=a(74848);t.A=(0,l.default)([(0,r.jsx)("path",{d:"M5 5v14h14V5zm9 12H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z",opacity:".3"},"0"),(0,r.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V5h14zm-2-6H7v-2h10zm0-4H7V7h10zm-3 8H7v-2h7z"},"1")],"ArticleTwoTone")}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9719-14cc8b76a1deed3c.js b/dsql-app/.local_dist/static/chunks/9719-14cc8b76a1deed3c.js deleted file mode 100644 index a169a16..0000000 --- a/dsql-app/.local_dist/static/chunks/9719-14cc8b76a1deed3c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9719],{5467:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M7 3h10v1H7zm0 17h10v1H7z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"m22 12-4-4v3h-5v2h5v3l4-4zm-5 6H7V6h10v1h2V3c0-1.1-.9-2-2-2L7 1.01C5.9 1.01 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-4h-2v1zM7 3h10v1H7V3zm10 18H7v-1h10v1z"},"1")],"SendToMobileTwoTone");a.Z=r},57632:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M14 5H5v14h14v-9h-5V5zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",opacity:".3"},"0"),(0,n.jsx)("circle",{cx:"8",cy:"8",r:"1"},"1"),(0,n.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9l-6-6zm4 16H5V5h9v5h5v9z"},"2"),(0,n.jsx)("circle",{cx:"8",cy:"12",r:"1"},"3"),(0,n.jsx)("circle",{cx:"8",cy:"16",r:"1"},"4")],"SummarizeTwoTone");a.Z=r},85541:function(e,a,s){var t=s(64836);a.Z=void 0;var l=t(s(64938)),n=s(85893),r=(0,l.default)([(0,n.jsx)("path",{d:"M14.5 9.5C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5z",opacity:".3"},"0"),(0,n.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm-2 0C14.5 6.47 12.03 4 9 4S3.5 6.47 3.5 9.5c0 2.47 1.49 3.89 2.35 4.5h6.3c.86-.61 2.35-2.03 2.35-4.5zm6.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"},"1")],"TipsAndUpdatesTwoTone");a.Z=r},76915:function(e,a,s){s.d(a,{Z:function(){return t}});const t=(0,s(45711).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},58261:function(e,a,s){s.d(a,{Z:function(){return t}});const t=(0,s(45711).Z)("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]])},81926:function(e,a,s){s.d(a,{Z:function(){return u}});var t,l=s(828),n=s(85893),r=s(67294),i=s(86729),c=s(97037),o=s(95264),m=s(27901),d=s(72733);function u(e){var a=e.targetDb,s=(e.database,e.user,e.userImage),u=e.setUserImage,p=(0,l.Z)(r.useState(null),2),h=p[0],x=p[1],v=(0,l.Z)(r.useState(!1),2),f=v[0];v[1];return(0,n.jsxs)(r.Fragment,{children:[f&&(0,n.jsx)(o.Z,{}),h&&(0,n.jsx)(c.Z,{message:h}),(0,n.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600 mt-4",children:"User information"}),(0,n.jsx)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:(0,n.jsx)(m.Z,{title:"First Name",inputType:"text",name:"first_name",autoComplete:"given-name",onInputHandler:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"last_name",children:"Last Name"}),(0,n.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Last Name",autoComplete:"family-name",onInput:function(e){var a=e.target;a.value.match(/./)?(a.classList.remove("warning"),x(null)):a.classList.add("warning")},required:!0})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"username",children:"Username"}),(0,n.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Username",autoComplete:"username",onInput:function(e){var s=e.target;s.value.match(/./)?(s.classList.remove("warning"),x(null)):s.classList.add("warning"),window.clearTimeout(t),t=setTimeout((function(){(0,i.Z)("/api/checkDuplicateData?type=username&value=".concat(s.value,"&tableName=users&dbFullName=").concat(a)).then((function(e){(null===e||void 0===e?void 0:e.result)?(x("Username Already Exists"),s.classList.add("warning")):(x(null),s.classList.remove("warning"))}))}),300)}})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"email_address",children:"Email Address"}),(0,n.jsx)("input",{type:"email",name:"email_address",id:"email_address",placeholder:"Email Address",autoComplete:"email",onInput:function(e){window.clearTimeout(t);var s=e.target;t=setTimeout((function(){(0,i.Z)("/api/checkDuplicateData?type=email&value=".concat(s.value,"&tableName=users&dbFullName=").concat(a)).then((function(e){(null===e||void 0===e?void 0:e.result)?(x("Email Already Exists"),s.classList.add("warning")):(x(null),s.classList.remove("warning"))}))}),300)},required:!0})]}),(0,n.jsx)(m.Z,{title:"Phone Number",inputType:"text",name:"phone",autoComplete:"tel"}),(0,n.jsx)(m.Z,{title:"Address",name:"address",autoComplete:"address"}),(0,n.jsxs)("div",{className:"flex-wrap xl:flex-nowrap",children:[(0,n.jsx)(m.Z,{title:"City",name:"city",autoComplete:"city"}),(0,n.jsx)(m.Z,{title:"State",name:"state",autoComplete:"state"}),(0,n.jsx)(m.Z,{title:"Country",name:"country",autoComplete:"country"}),(0,n.jsx)(m.Z,{title:"Zip Code",name:"zip_code",autoComplete:"zip_code"})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"password",children:"Password"}),(0,n.jsx)("input",{type:"password",name:"password",id:"password",placeholder:"Password",required:!0})]}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",children:[(0,n.jsx)("label",{htmlFor:"confirm_password",children:"Confirm Password"}),(0,n.jsx)("input",{type:"password",name:"confirm_password",id:"confirm_password",placeholder:"Confirm Password",onInput:function(e){var a,s=e.target;(null===(a=s.closest("form"))||void 0===a?void 0:a.password.value)===s.value?s.classList.remove("warning"):s.classList.add("warning")},required:!0})]}),(0,n.jsxs)("div",{className:"paper",children:[(0,n.jsx)("h3",{className:"m-0 text-lg font-semibold mb-1 text-slate-600",children:"User Image"}),(0,n.jsx)(d.Z,{userImage:s,setUserImage:u,className:"w-full"})]})]})}},97037:function(e,a,s){s.d(a,{Z:function(){return l}});var t=s(85893);s(67294);function l(e){var a=e.message;return(0,t.jsxs)("div",{className:"p-2 bg-orange-50 w-full justify-center rounded text-sm text-orange-700 border border-orange-400 border-solid",children:[(0,t.jsx)("img",{src:"/images/warning.png",alt:"Warning Image Icon",width:22,className:"-my-2"}),(0,t.jsx)("span",{children:a})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9788-84477f8e20625988.js b/dsql-app/.local_dist/static/chunks/9788-84477f8e20625988.js deleted file mode 100644 index e5967d7..0000000 --- a/dsql-app/.local_dist/static/chunks/9788-84477f8e20625988.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9788],{54559:function(e,t,a){a.d(t,{Z:function(){return w}});var l=a(85893),i=a(67294);var d=a(828),r=a(95264),n=a(63845),o=a(90918),s=a(20745);function c(e){var t=e.editor,a=e.rootElement;return(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper text-sm mt-2 flex-wrap bg-white p-10 rounded max-w-2xl w-full",children:(0,l.jsxs)("form",{onSubmit:function(e){e.preventDefault();var l=e.target["embed-text-area"].value;if(!(null===l||void 0===l?void 0:l.match(/./)))return alert("Please Enter HTML Text to continue.");t.insertContent(l),document.body.removeChild(a)},className:"w-full flex flex-col items-stretch gap-2",children:[(0,l.jsx)("h3",{className:"m-0 text-center text-lg",children:"Enter HTML code"}),(0,l.jsx)("textarea",{name:"embed-text-area",id:"embed-text-area",cols:30,rows:10,placeholder:"Paste Code here ..."}),(0,l.jsx)("button",{type:"submit",children:"Embed"})]})})}function u(e){var t=e.editor;navigator.clipboard.writeText((null===t||void 0===t?void 0:t.getContent())||"").then((function(){alert("Html Copied to Clipboard!")}))}var m=a(41352),f=a(52652),p=a.n(f);function x(e){var t=e.editor,a=e.rootElement,r=t.getContent(),n=i.useRef(),o=i.useRef(),s=(0,d.Z)(i.useState(null),2),c=s[0],u=s[1];return i.useEffect((function(){try{if(!(null===ace||void 0===ace?void 0:ace.edit)||!n.current)return void console.log("Ace Editor not found!");var e=ace.edit(n.current);e.setOptions({mode:"ace/mode/html",value:p()(r)}),u(e);try{ace.require("ace/ext/beautify").beautify(e.session)}catch(t){}}catch(a){console.log("JSON Editor ERROR =>",a.message)}}),[]),(0,l.jsxs)("div",{onKeyUp:function(e){var t;e.ctrlKey&&"Enter"==e.key&&(null===(t=o.current)||void 0===t||t.click())},children:[(0,l.jsx)("div",{className:"embed-popup-form-content-wrapper relative flex flex-col items-center justify-center",children:(0,l.jsxs)("div",{className:"max-w-[1200px] rounded-md overflow-hidden bg-white w-[90vw] items-start justify-start relative",children:[(0,l.jsx)("div",{ref:n,className:"w-full h-[80vh] text-[18px]"}),(0,l.jsx)("button",{className:"absolute bottom-4 right-4",onClick:function(e){if(c){var l=c.getValue();t.setContent(l),setTimeout((function(){document.body.removeChild(a)}),200)}},ref:o,children:"Save"})]})}),(0,l.jsx)("button",{className:"absolute top-4 right-8 rounded-full white",onClick:function(){try{document.body.removeChild(a)}catch(e){}},style:{width:"40px",height:"40px",padding:"0",zIndex:"12039800000"},children:(0,l.jsx)(m.Z,{})})]})}function h(e){var t=e.editor,a=document.createElement("div");(a.style.position="fixed",a.style.width="100vw",a.style.height="100vh",a.style.zIndex="123000000000000000",a.style.backgroundColor="rgba(0,0,0,0.8)",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.top="0",a.style.left="0",document.body.append(a),a.onclick=function(e){e.target.closest(".embed-popup-form-content-wrapper")||document.body.removeChild(a)},t)&&s.createRoot(a).render((0,l.jsx)(x,{editor:t,rootElement:a}))}function v(e){var t=e.editor,a=document.createElement("div");(a.style.position="fixed",a.style.width="100vw",a.style.height="100vh",a.style.zIndex="123000000000000000",a.style.backgroundColor="rgba(0,0,0,0.8)",a.style.display="flex",a.style.alignItems="center",a.style.justifyContent="center",a.style.top="0",a.style.left="0",document.body.append(a),a.onclick=function(e){e.target.closest(".embed-popup-form-content-wrapper")?console.log("Still In Form"):document.body.removeChild(a)},t)&&s.createRoot(a).render((0,l.jsx)(c,{editor:t,rootElement:a}))}function y(e){var t=e.fieldObject,a=(e.dataTypeSchema,e.richTextEditors),s=e.entry,c=e.currentRichTextEditorForms,m=e.entryPage,f=e.formButtonId,p=(0,d.Z)(i.useState(!1),2),x=p[0],y=p[1],b=i.useRef(),g=i.useRef();return i.useEffect((function(){y(!0)}),[]),i.useEffect((function(){x&&(a.current.push({fieldName:t.fieldName||"",ref:g}),c.current.push({fieldName:t.fieldName||"",ref:g}))}),[x]),(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:t.fieldName,children:[t.encrypted&&(0,l.jsx)(n.Z,{fontSize:"small",className:"opacity-50"}),(0,l.jsx)("span",{children:t.fieldName})]}),(0,l.jsxs)("div",{ref:b,id:t.fieldName,className:"w-full p-0 sm:p-4 flex-col items-stretch bg-slate-100 relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},children:[!x&&(0,l.jsx)(r.Z,{}),x&&(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(o.M,{tinymceScriptSrc:"/tinymce/tinymce.min.js",onInit:function(e,t){g.current=t},initialValue:t.defaultValue||(s&&t.fieldName&&s[t.fieldName]?s[t.fieldName]:""),init:{height:m?400:300,width:"100%",convert_urls:!1,menubar:!1,plugins:["advlist","lists","link","image","charmap","anchor","searchreplace","visualblocks","code","fullscreen","insertdatetime","media","table","preview","help","wordcount"],toolbar:"undo redo | blocks | bold italic forecolor | link image | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat help | editCode embedCode copyCode",placeholder:"Type something ...",document_base_url:"/",content_css:t.cssFiles||void 0,setup:function(e){!function(e){var t=e.editor,a=e.formButtonId;t.addShortcut("meta+13","Save Entry.",(function(){var e;window.confirm("Update this Form?")&&a&&(null===(e=document.getElementById(a))||void 0===e||e.click())})),t.addShortcut("meta+shift+e","Edit Code.",(function(){h({editor:t})})),t.addShortcut("meta+shift+d","Embed Code.",(function(){v({editor:t})})),t.addShortcut("meta+shift+c","Copy Code.",(function(){u({editor:t})})),t.ui.registry.addButton("editCode",{icon:"edit-block",onAction:function(e){return h({editor:t})},tooltip:"Edit HTML Code"}),t.ui.registry.addButton("embedCode",{icon:"sourcecode",onAction:function(e){return v({editor:t})},tooltip:"Embed Code"}),t.ui.registry.addButton("copyCode",{icon:"copy",onAction:function(e){return u({editor:t})},tooltip:"Copy HTML"})}({editor:e,formButtonId:f})}}})})]})]})}var b=a(86729);a(63764);var g=a(31571),j=a(31325);function N(e){var t=e.fieldObject,a=e.typeFinal,i=e.isExpanded,d=e.setHeight,r=e.COLLAPSED_HEIGHT,o=e.EXPANDED_HEIGHT;return(0,l.jsxs)("div",{className:"gap-2 w-full",children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:t.fieldName,children:[t.encrypted&&(0,l.jsx)(n.Z,{fontSize:"small",className:"opacity-50"}),(0,l.jsx)("span",{children:t.fieldName})]}),(0,l.jsx)("div",{className:"px-4 py-1 bg-secondary text-white rounded-full text-sm font-bold -mt-2",children:(0,l.jsx)("span",{children:a})}),(0,l.jsxs)("div",{className:"ml-auto cursor-pointer gap-1 text-slate-400 hover:text-slate-800 -mt-2 items-center flex",onClick:function(e){d(i?r:o)},children:[(0,l.jsx)("span",{className:"font-semibold text-sm",children:i?"Collapse":"Expand"}),i?(0,l.jsx)(g.Z,{size:18,className:"mt-[-1px]"}):(0,l.jsx)(j.Z,{size:18,className:"mt-[-1px]"})]})]})}function E(e){var t=e.fieldObject,a=(e.dataTypeSchema,e.entry),r=(e.entryPage,e.jsonTextEditors),n=e.type||"json";try{var o=(0,d.Z)(i.useState(0),2),s=o[0],c=o[1],u=(0,d.Z)(i.useState(300),2),m=u[0],f=u[1],p=300!==m,x=i.useRef(),h=i.useRef();return i.useEffect((function(){!function(e){var t=e.jsonEditorRef,a=e.fieldObject,l=e.setRefresh,i=e.typeFinal,d=e.entry,r=e.jsonTextEditors,n=e.editorRef;try{if(!(null===ace||void 0===ace?void 0:ace.edit)||!t.current||!a.fieldName)return console.log("Ace Editor not found!"),void setTimeout((function(){l((function(e){return e+1}))}),1e3);var o=ace.edit(t.current);o.setOptions({mode:"ace/mode/"+i,value:a.defaultValue?a.defaultValue:(null===d||void 0===d?void 0:d[a.fieldName])?function(){if("json"!==i)return d[a.fieldName];try{return JSON.stringify(JSON.parse(d[a.fieldName]),null,4)}catch(e){return d[a.fieldName]}}():"",placeholder:"json"==i?"{} ...":"",enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),r.current.push({fieldName:a.fieldName,ref:n}),n.current=o;try{ace.require("ace/ext/beautify").beautify(o.session)}catch(s){}}catch(c){console.log("JSON Editor ERROR =>",c.message)}}({editorRef:h,entry:a,fieldObject:t,jsonEditorRef:x,jsonTextEditors:r,setRefresh:c,typeFinal:n})}),[s]),(0,l.jsx)(i.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full rich-text-editor-wrapper",children:[(0,l.jsx)(N,{fieldObject:t,isExpanded:p,setHeight:f,typeFinal:n,COLLAPSED_HEIGHT:300,EXPANDED_HEIGHT:600}),(0,l.jsx)(T,{height:m,jsonEditorRef:x})]})})}catch(v){return i.useEffect((function(){(0,b.Z)("/api/admin/clientError",{method:"post",body:{component:"DatabaseShellContent/catch-error-return",message:v.message}})}),[]),(0,l.jsx)(i.Fragment,{children:(0,l.jsx)("span",{children:"Editor Load Error"})})}}function T(e){var t=e.height,a=e.jsonEditorRef;return(0,l.jsx)("div",{className:"w-full p-0 sm:p-4 flex-col relative dark:bg-slate-700 border border-solid border-slate-300 dark:border-slate-300/20 overflow-hidden",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px",height:"".concat(t,"px")},children:(0,l.jsx)("div",{ref:a,className:"w-full text-[18px] h-full"})})}function w(e){var t,a,d,r,o,s,c,u,m,f=e.fieldObject,p=e.dataTypeSchema,x=e.richTextEditors,h=e.jsonTextEditors,v=e.entry,b=e.currentRichTextEditorForms,g=e.confirmedDelegetedUser,j=(e.query,e.entryPage),N=e.formButtonId,T=(null===g||void 0===g||g.delegated,null===g||void 0===g||null===(t=g.priviledges)||void 0===t||t.match(/Edit Tables/i),null===g||void 0===g||null===(a=g.priviledges)||void 0===a||a.match(/Delete Tables/i),null===g||void 0===g||null===(d=g.priviledges)||void 0===d||d.match(/Create Tables/i),null===g||void 0===g||null===(r=g.priviledges)||void 0===r||r.match(/Edit Entries/i),null===g||void 0===g||null===(o=g.priviledges)||void 0===o||o.match(/Delete Entries/i),i.useRef()),w=function(e){var t,a,i,d,r,n,o,s,c,u=e.fieldObject,m=e.dataTypeSchema,f=e.elementRef,p=e.entry;return u.defaultField?r=(0,l.jsx)("input",{ref:f,type:"text",name:"def_field_"+u.fieldName,id:"def_field_"+u.fieldName,placeholder:u.fieldName,defaultValue:p&&p[u.fieldName||""]?p[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},readOnly:!0,"data-default":"true"}):((null===(t=u.dataType)||void 0===t?void 0:t.match(/varchar/i))&&(r=(0,l.jsx)("textarea",{ref:f,name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,maxLength:(null===(o=null===(n=u.dataType)||void 0===n?void 0:n.match(/\d+/))||void 0===o?void 0:o[0])?parseInt((null===(c=null===(s=u.dataType)||void 0===s?void 0:s.match(/\d+/))||void 0===c?void 0:c[0])||""):void 0,defaultValue:p&&p[u.fieldName||""]?p[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},onChange:function(e){var t;(null===(t=u.fieldName)||void 0===t?void 0:t.match(/^title$/))&&function(e){var t=e.target.closest("form");if(t){var a=null===t||void 0===t?void 0:t.querySelector("#slug");a&&(a.value=e.target.value.toLowerCase().replace(/ /g,"-").replace(/[^a-z\-0-9]/g,""))}}(e)}})),(null===(a=u.dataType)||void 0===a?void 0:a.match(/int$/i))&&(r=(0,l.jsx)("input",{ref:f,type:"number",name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,max:m.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:p&&p[u.fieldName||""]?p[u.fieldName||""]:u.defaultValue?u.defaultValue:"",onChange:function(e){}})),(null===(i=u.dataType)||void 0===i?void 0:i.match(/text$/i))&&(r=(0,l.jsx)("textarea",{ref:f,name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,defaultValue:p&&p[u.fieldName||""]?p[u.fieldName||""]:u.defaultValue?u.defaultValue:"",style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},rows:10,onChange:function(e){}})),(null===(d=u.fieldName)||void 0===d?void 0:d.match(/password|^pass$|^key$/i))&&(r=(0,l.jsxs)("div",{className:"w-full relative",children:[(0,l.jsx)("input",{ref:f,type:"password",name:u.fieldName,id:u.fieldName,placeholder:u.fieldName,required:!!u.notNullValue,max:m.maxValue,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:p&&p[u.fieldName]?p[u.fieldName]:u.defaultValue?u.defaultValue:"",onChange:function(e){}}),(0,l.jsx)("span",{className:"absolute right-4 cursor-pointer",onClick:function(e){var t=e.target.closest("div").querySelector("input");"password"===t.type?(t.type="text",e.target.innerText="Hide"):(t.type="password",e.target.innerText="Reveal")},children:"Reveal"})]})),r||(r=(0,l.jsx)("input",{ref:f,type:"text",name:u.fieldName,id:u.fieldName,style:{borderRadius:"0 5px 5px 5px",marginTop:"-1px"},defaultValue:p&&p[u.fieldName||""]?p[u.fieldName||""]:u.defaultValue?u.defaultValue:"",onChange:function(e){}})),r)}({fieldObject:f,dataTypeSchema:p,elementRef:T,entry:v});if((null===(s=f.dataType)||void 0===s?void 0:s.match(/text$/i))&&f.richText&&!f.plainText&&!(null===(c=f.fieldName)||void 0===c?void 0:c.match(/^pass|^key$/i))&&!f.encrypted||f.encrypted&&f.richText)return(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(y,{fieldObject:f,dataTypeSchema:p,richTextEditors:x,currentRichTextEditorForms:b,entry:v,entryPage:j,formButtonId:N})});var C=f.json||f.yaml||f.html||f.css||f.javascript||f.shell;return(null===(u=f.dataType)||void 0===u?void 0:u.match(/text$/i))&&C&&!f.plainText&&!(null===(m=f.fieldName)||void 0===m?void 0:m.match(/^pass|^key$/i))&&!f.encrypted||f.encrypted&&C?(0,l.jsx)(E,{fieldObject:f,dataTypeSchema:p,entry:v,entryPage:j,jsonTextEditors:h,type:f.json?"json":f.yaml?"yaml":f.html?"html":f.css?"css":f.javascript?"javascript":f.shell?"shell":"json"}):(0,l.jsxs)("div",{className:"flex flex-col items-start gap-0 w-full"+(f.defaultField?" opacity-50":""),children:[(0,l.jsxs)("label",{className:"font-bold text-slate-700 dark:text-slate-300 text-base px-3 py-1 bg-slate-100 dark:bg-slate-700 rounded-t-md border border-solid border-slate-300 dark:border-slate-300/20 flex items-center gap-2",htmlFor:f.fieldName,children:[f.encrypted&&(0,l.jsx)(i.Fragment,{children:(0,l.jsx)(n.Z,{fontSize:"small",className:"opacity-50"})}),(0,l.jsx)("span",{children:f.fieldName}),f.defaultField&&(0,l.jsx)("span",{className:"bg-white dark:bg-slate-900 text-primary dark:text-slate-300 font-semibold text-xs px-2 py-0.5 rounded-xs",children:"Default Field"})]}),w]})}},88515:function(e,t,a){a.d(t,{Z:function(){return d}});var l=a(85893),i=a(67294);function d(e){var t=e.table,a=e.database,d=e.user,r=(e.activeDbClone,(null===t||void 0===t?void 0:t.childTableDbFullName)?t.childTableDbFullName.replace(new RegExp(/datasquirel_user_\d+_/),""):null),n=t.childTableDbFullName===a.db_full_name;return r?(0,l.jsxs)("span",{className:"info small green gap-1"+((null===a||void 0===a?void 0:a.active_clone)?" -mt-6":""),style:{fontWeight:"500"},children:["This Table is an active clone of"," ",(0,l.jsx)("a",{href:"/admin/".concat(null===d||void 0===d?void 0:d.id,"/databases/").concat(r,"/tables/").concat(t.childTableName),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:t.childTableName})})," ","in"," ",n?(0,l.jsxs)("span",{children:["this current database(",(0,l.jsx)("b",{children:a.db_name}),")."]}):(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)("a",{href:"/admin/".concat(null===d||void 0===d?void 0:d.id,"/databases/").concat(r),target:"_blank",className:"button gray outlined small-text",style:{display:"inline-block",fontSize:"12px",padding:"3px 7px"},children:(0,l.jsx)("b",{children:r})}),(0,l.jsx)("span",{children:"database."})]})," ",(null===a||void 0===a?void 0:a.active_clone)?"":"Only Foreign keys and Entries can be updated."]}):(0,l.jsx)(i.Fragment,{})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9799-f2854771cb0bce5c.js b/dsql-app/.local_dist/static/chunks/9799-f2854771cb0bce5c.js new file mode 100644 index 0000000..12146e8 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/9799-f2854771cb0bce5c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9799],{4709:(e,s,a)=>{a.d(s,{A:()=>n});var l=a(74848),t=a(96540);function n(e){var s,a,n;let{confirmedDelegetedUser:i,linksArray:r,user:c}=e;null==i||i.delegated,null==i||null===(s=i.priviledges)||void 0===s||s.match(/Edit Tables/i),null==i||null===(a=i.priviledges)||void 0===a||a.match(/Delete Tables/i),null==i||null===(n=i.priviledges)||void 0===n||n.match(/Create Tables/i);let[d,o]=t.useState(r||null);return(t.useEffect(()=>{var e;if(r)return;let s=window.location.pathname,a=s.split("/"),l=[];l.push({title:"Home",path:s.match(/admin/)?"/admin":"/"}),null===(e=window.location.search)||void 0===e||e.match(/delegated=true/),a.forEach((e,s,a)=>{!(null==e?void 0:e.match(/./))||1==s||e.match(/^\d+$/)&&c||l.push({title:e,path:(()=>{let e="";for(let l=0;ls)&&t.match(/./)&&(e+="/".concat(t))}return e})()})}),o(l)},[]),d&&d[1])?(0,l.jsx)("div",{className:"text-sm mt-2 flex-wrap",children:d.map((e,s,a)=>s===d.length-1?(0,l.jsx)("a",{href:e.path,className:"text-slate-400 dark:text-slate-500 pointer-events-none",children:e.title},s):(0,l.jsxs)(t.Fragment,{children:[(0,l.jsx)("a",{href:e.path,className:"query-url",children:e.title}),(0,l.jsx)("span",{className:"opacity-20",children:"|"})]},s))}):(0,l.jsx)(t.Fragment,{})}},41238:(e,s,a)=>{a.d(s,{A:()=>x});var l=a(74848),t=a(96540),n=a(23698),i=a(17531),r=a(620),c=a(34181),d=a(79753),o=a(87273);function x(e){let[s,a]=t.useState(!0),[x,h]=t.useState(0),[u,m]=t.useState(0);return(t.useEffect(()=>{x||(0,n.A)("/api/getDiskUsage").then(e=>{(null==e?void 0:e.total)&&(h(e.total),localStorage.setItem("disk_usage",e.total)),a(!1)})},[]),s)?(0,l.jsx)("div",{className:"button ghost small-text",style:{height:"30px"},children:(0,l.jsx)(r.A,{width:"15px",position:"relative"})}):(0,l.jsx)(t.Fragment,{children:x?(0,l.jsxs)("div",{className:"button ghost small-text normal-weight p-0",style:{height:"30px",padding:0},onClick:e=>{a(!0),(0,i.A)().then(()=>{m(e=>e+1),a(!1)})},children:[s&&(0,l.jsx)(r.A,{width:"15px"}),(0,l.jsx)(d.A,{size:20,className:"text-slate-400 mr-[3px]"}),(0,l.jsx)("span",{className:"font-bold text-slate-700 dark:text-white",children:x&&x.toFixed(2)}),(0,l.jsx)("span",{className:"text-slate-500",children:"mb"}),(0,l.jsx)(o.A,{size:17,className:"text-slate-400",strokeWidth:2})]}):(0,l.jsxs)("span",{className:"text-sm info gray font-normal w-auto",children:[(0,l.jsx)(c.A,{color:"inherit",className:"opacity-50 text-slate-500",fontSize:"small"}),(0,l.jsx)("span",{children:"No Disk Usage Data Available Yet"})]})})}},17531:(e,s,a)=>{a.d(s,{A:()=>t});var l=a(23698);async function t(){let e=await (0,l.A)("/api/getDiskUsage");localStorage.setItem("disk_usage",e.total)}},56086:(e,s,a)=>{var l=a(77836);e.exports=function(e,s){return s?(null==e?void 0:e.id)&&String(null==e?void 0:e.id)==(l.env.DSQL_SU_USER_ID||"1")&&"true":(null==e?void 0:e.id)&&"1"==String(null==e?void 0:e.id)&&"true"}},51187:(e,s,a)=>{a.d(s,{A:()=>y});var l=a(74848),t=a(96540),n=a(13368),i=a.n(n);a(13980);var r=a(61638),c=a(98631),d=a(59140),o=a(1915),x=a(94909),h=a(45014),u=a(2894),m=a(79508),j=a(5922),p=a(56086),g=a.n(p);function f(e){let{user:s}=e,[a,n]=t.useState(!0);return(0,l.jsxs)("aside",{className:"aside"+(a?" mobile-collapsed":" mobile-expanded"),children:[(0,l.jsx)(r.A,{adminAside:!0,collapseAsideMobile:a,setCollapseAsideMobile:n}),(0,l.jsx)("hr",{className:"opacity-0 mt-4"}),(0,l.jsxs)("div",{className:"main-links"+(a?" hidden lg:flex":" "),children:[(0,l.jsxs)("a",{href:"/admin","data-currentlink":"/admin","data-strictlink":"true",children:[(0,l.jsx)(c.A,{size:20}),(0,l.jsx)("span",{children:"Dashboard"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/databases"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/databases"),children:[(0,l.jsx)(d.A,{size:20}),(0,l.jsx)("span",{children:"Databases"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/media"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/media"),children:[(0,l.jsx)(o.A,{size:20}),(0,l.jsx)("span",{children:"Media"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/users"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/users"),children:[(0,l.jsx)(x.A,{size:20}),(0,l.jsx)("span",{children:"Users"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/schema"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/schema"),children:[(0,l.jsx)(h.A,{size:20}),(0,l.jsx)("span",{children:"Schema"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/api-keys"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/api-keys"),children:[(0,l.jsx)(u.A,{size:20}),(0,l.jsx)("span",{children:"API Keys"})]}),(0,l.jsxs)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/connect"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/connect"),children:[(0,l.jsx)(m.A,{size:20}),(0,l.jsx)("span",{children:"Connect"})]}),g()(s)&&(0,l.jsx)(t.Fragment,{children:(0,l.jsxs)("a",{href:"/su","data-currentlink":"/su",children:[(0,l.jsx)(j.A,{size:20}),(0,l.jsx)("span",{children:"Super Admin User"})]})}),(0,l.jsx)("hr",{className:"opacity-80"}),(0,l.jsxs)("div",{className:"flex-col gap-0 items-start w-full",children:[(0,l.jsx)("a",{href:"/admin/".concat(null==s?void 0:s.id,"/settings"),"data-currentlink":"/admin/".concat(null==s?void 0:s.id,"/settings"),children:(0,l.jsx)("span",{children:"Settings"})}),(0,l.jsx)("a",{href:"/docs","data-currentlink":"/docs",target:"_blank",children:(0,l.jsx)("span",{children:"Documentation"})}),(0,l.jsx)("a",{href:"/logout","data-currentlink":"/logout",children:(0,l.jsx)("span",{children:"Logout"})})]})]})]})}a(63782);var v=a(37452);function b(e){let{user:s,extraHeaderContent:a}=e,[n,i]=t.useState(s||null);return t.useEffect(()=>{(null==s?void 0:s.logged_in_status)&&i(s||null)},[s]),(0,l.jsx)("section",{className:"overflow-visible w-full px-0 md:px-8 py-0 flex justify-center bg-white dark:bg-slate-800 shadow-lg gap-4 dark:shadow-black/10 z-50 shadow-slate-900/5",style:{zIndex:700,border:"none"},children:(0,l.jsxs)("div",{className:"w-full items-center justify-between gap-4 md:gap-8",children:[(0,l.jsxs)("div",{className:"hidden xl:flex flex-col items-stretch grow fixed xl:static top-0 right-0 px-4 xl:px-0 shadow-xl xl:shadow-none h-screen xl:h-auto overflow-auto xl:overflow-visible w-screen sl:w-auto bg-white xl:bg-transparent pb-10 xl:pb-0",id:"main-nav-content-wrapper",children:[(0,l.jsxs)("div",{className:"items-center mb-2 flex xl:hidden",children:[(0,l.jsx)("a",{href:"/",className:"hidden xl:flex",children:(0,l.jsx)("img",{src:"/images/logo-icon-alt-2.png",alt:"Logo Icon",width:37})}),(0,l.jsx)("button",{className:"outlined gray ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{border:"none"},children:(0,l.jsx)("span",{className:"font-semibold text-4xl",children:"✕"})})]}),(0,l.jsxs)("div",{className:"flex items-center w-full gap-6 grow flex-col xl:flex-row justify-start xl:justify-between",children:[(0,l.jsx)("div",{className:"gap-6",children:a}),(0,l.jsx)(v.A,{activeUser:n})]})]}),(0,l.jsxs)("button",{className:"bg-transparent w-16 p-4 gap-1.5 flex xl:hidden flex-col hover:bg-transparent transition-all ml-auto",onClick:e=>{let s=document.getElementById("main-nav-content-wrapper");null==s||s.classList.toggle("hidden")},style:{minWidth:"50px",backgroundColor:"transparent"},id:"main-header-hamburger-button","aria-label":"Mobile Hambutget Button",children:[(0,l.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,l.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"}),(0,l.jsx)("div",{className:"w-full h-1 bg-slate-600 dark:bg-slate-400 rounded-full"})]})]})})}var w=a(26709),k=a(41238),N=a(23698);function y(e){let{children:s,head:a,user:n,productionEnvironment:c,extraHeaderContent:d,aceEditor:o}=e;return d||(d=(0,l.jsx)(k.A,{})),t.useEffect(()=>{let e=document.querySelectorAll("aside .main-links a");(0,w.A)({links:e}),document.cookie.match(/user_refresh=1/)&&(0,N.A)("/api/reAuthenticateUser",{method:"post",body:{}},!0).then(e=>{e.status&&e.user&&(document.cookie="user_refresh=0;max-age=0",localStorage.setItem("csrf",e.user.csrf_k),localStorage.setItem("user",JSON.stringify(e.user)),window.location.reload())})},[]),(0,l.jsxs)(t.Fragment,{children:[(0,l.jsxs)(i(),{children:[a,(0,l.jsxs)(t.Fragment,{children:[(0,l.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ace.min.js",integrity:"sha512-q6CTB0jS+VuJnSct82rVcWlI06LGzNjaG3CWenHWVUncRvc4UQMFkA3a5Ip880xr+lBx38FcHDclOxPdSg+sBw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"}),(0,l.jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/ace/1.22.0/ext-language_tools.min.js",integrity:"sha512-6g6cvocV7eT/J8L44lL8gJKqq9onqQeYGgJO0DmrsYFcCfRl6wYkYA/KHS768r4QVTB4JxsCcMQ9gIezxpTCZw==",crossOrigin:"anonymous",referrerPolicy:"no-referrer"})]})]}),(0,l.jsxs)("div",{className:"admin w-full flex items-start gap-0",children:[(0,l.jsx)(f,{user:n}),(0,l.jsxs)("main",{className:"relative",children:[(0,l.jsx)(b,{user:n,extraHeaderContent:d}),(0,l.jsx)("div",{className:"admin-content",children:s}),(0,l.jsx)("footer",{className:"flex justify-center w-full items-center p-4",children:(0,l.jsxs)("div",{className:"max-w-6xl w-full justify-center flex-wrap",children:[(0,l.jsx)("div",{className:"flex items-center gap-2 scale-75",children:(0,l.jsx)(r.A,{})}),(0,l.jsx)("span",{className:"opacity-25",children:"|"}),(0,l.jsxs)("span",{className:"text-sm text-slate-400 dark:text-slate-600 text-center",children:[new Date().getFullYear()," \xa9 Datasquirel. All rights reserved."]}),(0,l.jsx)("span",{className:"opacity-25",children:"|"}),(0,l.jsx)("a",{href:"/docs",children:"Docs"}),(0,l.jsx)("span",{className:"opacity-25",children:"|"}),(0,l.jsx)("a",{href:"/terms",children:"Terms"})]})})]})]})]})}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9907-8d988ae445ccee04.js b/dsql-app/.local_dist/static/chunks/9907-8d988ae445ccee04.js new file mode 100644 index 0000000..066190b --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/9907-8d988ae445ccee04.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9907],{29907:(e,c,a)=>{a.d(c,{A:()=>s}),a(74848),a(96540),a(23698),a(43586);function s(e){let{user:c,userType:a,setLoading:s}=e;return null}},43586:(e,c,a)=>{a.d(c,{A:()=>s});async function s(){try{let e=await caches.keys();e[0]&&await Promise.all(e.map(e=>caches.delete(e)))}catch(e){console.log("Error in clearing cache =>",e.message)}}}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/9967-c027b915261dae19.js b/dsql-app/.local_dist/static/chunks/9967-c027b915261dae19.js deleted file mode 100644 index 5003074..0000000 --- a/dsql-app/.local_dist/static/chunks/9967-c027b915261dae19.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{99967:function(e,t,l){l.d(t,{Z:function(){return m}});var a=l(47568),n=l(828),i=l(97582),s=l(85893),r=l(67294),d=l(24209),o=l(64838),u=l(96486),c=l.n(u);function m(e){var t,u,m,f=e.targetField,v=e.fieldIndex,x=e.tableFields,h=e.setTableFields,p=e.refreshFieldsListRef,g=e.setActiveEdit,N=e.database,j=e.currentTable,y=e.user,b=(null===f||void 0===f?void 0:f.dataType)?f.dataType.replace(/\d|\(|\)/g,""):null,T=(null===f||void 0===f?void 0:f.dataType)?f.dataType.replace(/[^\d]/g,""):"200",w=l(89594),_=r.useRef(c().cloneDeep(f)),F=r.useRef(),C=(0,n.Z)(r.useState(f),2),I=C[0],V=C[1],E=(0,n.Z)(r.useState(null===f||void 0===f?void 0:f.fieldName),2),S=E[0],D=(E[1],(0,n.Z)(r.useState(b),2)),k=D[0],Z=D[1],K=(0,n.Z)(r.useState(T),2),R=K[0],A=K[1],L=(0,n.Z)(r.useState("Varchar is simply letters and numbers within the range 0 - 255"),2),U=L[0],M=L[1],Y=(0,n.Z)(r.useState((null===f||void 0===f?void 0:f.richText)&&!(null===f||void 0===f?void 0:f.encrypted)?"Yes":"No"),2),q=(Y[0],Y[1],Boolean(null===k||void 0===k?void 0:k.match(/uuid/i)));return(0,s.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:F,children:(0,s.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:function(e){var t,l;e.preventDefault(),h((function(e){var t=e;return t[v]=I,t})),p.current((function(e){return e+1})),null===(l=null===(t=e.target.closest(".table-field-wrapper"))||void 0===t?void 0:t.querySelector(".edit-table-field-section"))||void 0===l||l.classList.toggle("hidden")},children:[(0,s.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,s.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,s.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:function(){var e=(0,a.Z)((function(e){var t;return(0,i.__generator)(this,(function(l){return(t=e.target).value=t.value.toLowerCase().replace(/ /g,"_"),V((function(e){var l=e;return l.fieldName=t.value,l.updatedField=!0,l.originName||(l.originName=S),l})),[2]}))}));return function(t){return e.apply(this,arguments)}}(),required:!0,defaultValue:S})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,s.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,s.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,s.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,s.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,s.jsx)("span",{children:U})})]})]}),(0,s.jsxs)("div",{className:"w-auto",children:[(0,s.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:function(e){var t=e.target;Z(t.value),t.childNodes.forEach((function(e){e.value===t.value&&e.dataset.desc&&M(e.dataset.desc),e.value===t.value&&e.dataset.literal?(I.defaultValueLiteral=e.dataset.literal,I.nullValue=!1):delete I.defaultValueLiteral})),f.dataType=t.value+(t.value.match(/VARCHAR/)?"(".concat(R||200,")"):"")},defaultValue:k||void 0,children:w.map((function(e,t){return e.name.match(/VARCHAR/)?(0,s.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(R||200)+")"},t+1):(0,s.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},t+1)}))}),(null===k||void 0===k?void 0:k.match(/VARCHAR/))&&(0,s.jsx)("input",{type:"number",defaultValue:R||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:function(e){A(e.target.value),f.dataType=k+"(".concat(e.target.value,")")}})]})]}),(null===k||void 0===k?void 0:k.match(/text/i))&&(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(o.Z,{targetField:f})}),!(null===(t=f.dataType)||void 0===t?void 0:t.match(/text/i))&&!q&&(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,s.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,s.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:(null===f||void 0===f?void 0:f.notNullValue)?"Yes":"No",onChange:function(e){console.log(f),"Yes"===e.target.value?f.notNullValue=!0:(f.notNullValue=!1,delete f.notNullValue)},children:[(0,s.jsx)("option",{value:"No",children:"No"}),(0,s.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!q&&(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,s.jsx)("label",{htmlFor:"new_field_default_value",children:(null===I||void 0===I||null===(u=I.dataType)||void 0===u?void 0:u.match(/text$/i))?"Can't Set Default for text values":"Default Value (optional)"}),(0,s.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:(null===I||void 0===I||null===(m=I.dataType)||void 0===m?void 0:m.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null===I||void 0===I?void 0:I.defaultValue)?I.defaultValue:(null===I||void 0===I?void 0:I.nullValue)?"NULL":"",onInput:function(e){var t,l=e.target;(null===(t=I.dataType)||void 0===t?void 0:t.match(/text$/i))||V((function(e){var t=e;return l.value.match(/./)?delete t.notNullValue:(delete t.defaultValue,delete t.nullValue),l.value.match(/^null$/i)?(delete t.defaultValue,t.nullValue=!0):l.value.match(/./)&&(delete t.nullValue,t.defaultValue=l.value),t}))}})]}),!q&&(0,s.jsx)(d.Z,{database:N,setFieldData:V,setTableFields:h,tableFields:x,targetField:f,user:y,currentTable:j,fieldIndex:v})]}),(0,s.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,s.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,s.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:function(e){_.current&&(f=c().cloneDeep(_.current)),h((function(e){var t=c().cloneDeep(e);return v&&_.current&&(t[v]=c().cloneDeep(_.current)),t})),g&&g(!1)},children:"Cancel"})]})]})})}},24209:function(e,t,l){l.d(t,{Z:function(){return g}});var a=l(828),n=l(85893),i=l(67294),s=l(29815),r=l(27901),d=l(41352);function o(e){var t=e.targetField;if(!(null===t||void 0===t?void 0:t.richText))return null;var l=(0,a.Z)(i.useState(t.cssFiles||[]),2),o=l[0],u=l[1],c=i.useRef(null);return i.useEffect((function(){t.cssFiles=o}),[o]),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,n.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),o.map((function(e,t){return(0,n.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(d.Z,{size:20,onClick:function(){u((function(t){return t.filter((function(t){return t!==e}))}))},className:"cursor-pointer hover:opacity-60 "})]},t+1)})),(0,n.jsxs)("div",{className:"row w-full",children:[(0,n.jsx)(r.Z,{name:"css-file",placeholder:"CSS file URL",elementRef:c}),(0,n.jsx)("button",{className:"secondary outlined",onClick:function(){var e,t=null===(e=c.current)||void 0===e?void 0:e.value;(null===t||void 0===t?void 0:t.match(/./))&&u((function(e){return(0,s.Z)(new Set((0,s.Z)(e).concat([t])))}))},children:"Add"})]}),(0,n.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function u(e){var t=e.targetField,l=e.setFieldData;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,n.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:(null===t||void 0===t?void 0:t.encrypted)?"Yes":"No",onChange:function(e){l&&l((function(t){var l=t;return e.target.value.match(/yes/i)?l.encrypted=!0:(l.encrypted=!1,delete l.encrypted),l}))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=l(3699);function m(e){e.targetField,e.setFieldData;return null}function f(e){var t=e.targetField;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,n.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,n.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:function(e){var l,a=e.target;(null===a||void 0===a||null===(l=a.value)||void 0===l?void 0:l.length)>0?t.pattern=a.value:delete t.pattern},defaultValue:null===t||void 0===t?void 0:t.pattern}),(0,n.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:function(e){var l,a=e.target;(null===a||void 0===a||null===(l=a.value)||void 0===l?void 0:l.length)>0?t.patternFlags=a.value:delete t.patternFlags},defaultValue:null===t||void 0===t?void 0:t.patternFlags})]})}var v=l(96486),x=l.n(v),h=l(59471);function p(e){var t=e.targetField,l=e.setFieldData;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,n.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:(null===t||void 0===t?void 0:t.unique)?"Yes":"No",onChange:function(e){l&&l((function(t){var l=t;return e.target.value.match(/yes/i)?l.unique=!0:(l.unique=!1,delete l.unique),l}))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g(e){var t=e.targetField,l=e.currentTable,s=e.database,r=e.tableFields,d=e.setTableFields,v=e.setFieldData,g=e.user,N=(e.fieldIndex,(0,a.Z)(i.useState(!1),2)),j=N[0],y=N[1],b=i.useRef(x().cloneDeep(t));return i.useEffect((function(){}),[]),(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:function(){y(!0)},children:"More"}),(0,n.jsx)(h.Z,{open:j,onClose:function(){if(b.current){var e=x().cloneDeep(b.current);t=e}y(!1)},maxWidth:"600px",children:(0,n.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,n.jsx)("div",{className:"w-full justify-between",children:(0,n.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,n.jsx)(o,{targetField:t}),(0,n.jsx)(p,{targetField:t,setFieldData:v}),(0,n.jsx)(u,{targetField:t,setFieldData:v}),l&&(0,n.jsx)(c.Z,{targetField:t,setFieldData:v,database:s,tableFields:r,setTableFields:d,currentTable:l,user:g}),(0,n.jsx)(m,{targetField:t,setFieldData:v}),(0,n.jsx)(f,{targetField:t}),(0,n.jsx)("button",{className:"w-full outlined more-padding",onClick:function(){y(!1)},children:"Done"})]})})]})}},3699:function(e,t,l){l.d(t,{Z:function(){return d}});var a=l(828),n=l(85893),i=l(67294),s=l(86729),r=l(95264);function d(e){var t,l,d=e.targetField,o=e.setFieldData,u=(e.tableFields,e.setTableFields,e.database),c=e.currentTable,m=e.user,f=e.setActiveEdit,v=e.activeClonedTable,x=(0,a.Z)(i.useState(!!(null===d||void 0===d?void 0:d.foreignKey)),2),h=x[0],p=x[1],g=i.useState(null),N=(0,a.Z)(g,2),j=N[0],y=N[1],b=i.useState(null),T=(0,a.Z)(b,2),w=T[0],_=T[1],F=i.useState(null),C=(0,a.Z)(F,2),I=C[0],V=C[1],E=i.useState(null),S=(0,a.Z)(E,2),D=S[0],k=S[1],Z=(0,a.Z)(i.useState(!1),2),K=Z[0],R=Z[1];return i.useEffect((function(){(h||(null===d||void 0===d?void 0:d.foreignKey))&&(0,s.Z)("/api/getUserSchemaData").then((function(e){if(e.success)try{var t=e.schemaData.filter((function(e){return e.dbFullName===u.db_full_name})),l=c?t[0].tables.filter((function(e){return e.tableName!==c.tableName})):t[0].tables;if(y(l),null===d||void 0===d?void 0:d.foreignKey){var a,n=l.filter((function(e){var t;return e.tableName===(null===d||void 0===d||null===(t=d.foreignKey)||void 0===t?void 0:t.destinationTableName)}));_(n[0]),(null===(a=n[0])||void 0===a?void 0:a.fields)&&V(n[0].fields)}}catch(i){(0,s.Z)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:i.message,user:m}})}}))}),[h]),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[K&&(0,n.jsx)(r.Z,{}),(0,n.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,n.jsx)("span",{children:"Foreign Key?"}),(0,n.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,n.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,n.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,n.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,n.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:(null===d||void 0===d?void 0:d.foreignKey)?"Yes":"No",onChange:function(e){e.target.value.match(/yes/i)?(p(!0),o&&o((function(e){var t=e;return t.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},t}))):(p(!1),o&&o((function(e){var t=e;return delete t.foreignKey,t})))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]}),h&&j&&(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:(null===d||void 0===d||null===(t=d.foreignKey)||void 0===t?void 0:t.destinationTableName)?d.foreignKey.destinationTableName:void 0,onChange:function(e){var t,l=e.target;if(null===(t=e.target.value)||void 0===t?void 0:t.match(/--/))o?o((function(e){var t=e,l=t.foreignKey;return l&&(l.destinationTableName=void 0),t})):l.dataset.destinationTableName=void 0;else{var a=j.filter((function(t){return t.tableName===e.target.value}))[0];_(a),(null===a||void 0===a?void 0:a.fields)&&V(a.fields),o?o((function(t){var l=t,a=l.foreignKey;return a&&(a.destinationTableName=e.target.value),l})):e.target.dataset.destinationTableName=e.target.value}},children:[(0,n.jsx)("option",{value:"--",children:"--Select Table--"}),j.map((function(e,t){return(0,n.jsx)("option",{value:e.tableName,children:e.tableFullName},t+1)}))]})}),w&&I&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:(null===d||void 0===d||null===(l=d.foreignKey)||void 0===l?void 0:l.destinationTableColumnName)?d.foreignKey.destinationTableColumnName:void 0,onChange:function(e){try{var t,l=I.filter((function(t){return t.fieldName===e.target.value}))[0];if(k(l),null===(t=e.target.value)||void 0===t?void 0:t.match(/--/))return void(o&&o((function(e){var t=e,l=t.foreignKey;return l&&(l.destinationTableColumnName=void 0),t})));var a="dsql_".concat(u.user_id,"_").concat(u.db_slug,"_").concat(Date.now());o?o((function(e){var t=e;t.dataType=l.dataType;var n=t.foreignKey;return n&&(n.destinationTableColumnName=l.fieldName,n.destinationTableColumnType=l.dataType,n.foreignKeyName=a),t})):(e.target.dataset.dataType=l.dataType,e.target.dataset.destinationTableColumnName=l.fieldName,e.target.dataset.foreignKeyName=a)}catch(n){(0,s.Z)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:n.message,user:m}})}},children:[(0,n.jsx)("option",{value:"--",children:"--Select Column--"}),I.map((function(e,t){return(0,n.jsx)("option",{value:e.fieldName,children:e.fieldName},t+1)}))]}),v&&D&&(0,n.jsx)("button",{className:"secondary w-full",onClick:function(e){var t,l;R(!0),(0,s.Z)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:u.db_full_name,dbSlug:u.db_slug,delegated:!!(null===(t=window.location)||void 0===t||null===(l=t.search)||void 0===l?void 0:l.match(/delegated=true/i))}},!0).then((function(e){e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout((function(){f&&f(!1)}),1e3)}))},children:"Add Foreign Key"})]}),v&&(0,n.jsx)("button",{className:"light-gray w-full",onClick:function(e){delete d.foreignKey,f&&f(!1)},children:"Cancel"})]})}},64838:function(e,t,l){l.d(t,{Z:function(){return n}});var a=l(85893);l(67294);function n(e){var t=e.targetField;return(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,a.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,a.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:function(e){switch(delete t.json,delete t.richText,delete t.yaml,delete t.html,delete t.javascript,delete t.shell,e.target.value){case"plain":default:break;case"rte":t.richText=!0;break;case"json":t.json=!0;break;case"yaml":t.yaml=!0;break;case"html":t.html=!0;break;case"css":t.css=!0;break;case"javascript":t.javascript=!0;break;case"shell":t.shell=!0}},defaultValue:t.richText?"rte":t.json?"json":t.yaml?"yaml":t.html?"html":t.javascript?"javascript":t.shell?"shell":t.css?"css":"plain",children:[(0,a.jsx)("option",{value:"plain",children:"Plain Text"}),(0,a.jsx)("option",{value:"rte",children:"Rich Text"}),(0,a.jsx)("option",{value:"json",children:"JSON"}),(0,a.jsx)("option",{value:"yaml",children:"YAML"}),(0,a.jsx)("option",{value:"html",children:"HTML"}),(0,a.jsx)("option",{value:"css",children:"CSS"}),(0,a.jsx)("option",{value:"javascript",children:"Javascript"}),(0,a.jsx)("option",{value:"shell",children:"Shell"})]})]})}},59471:function(e,t,l){l.d(t,{Z:function(){return r}});var a=l(85893),n=l(67294),i=l(20745),s=l(41352);function r(e){var t=e.children,l=e.open,s=(e.setOpen,e.onClose),r=e.maxWidth;return n.useEffect((function(){if(l){var e=document.createElement("div");e.className="modal-wrapper",(0,i.createRoot)(e).render((0,a.jsx)(d,{onClose:s,maxWidth:r,children:t})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach((function(e){var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)}))}),[l]),(0,a.jsx)(a.Fragment,{})}function d(e){var t=e.children,l=e.onClose,i=e.maxWidth,r=(e.open,n.useRef());return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{className:"modal-cancel",onClick:function(e){o({modalEl:e.target.closest(".modal-wrapper"),closeFn:l})}}),(0,a.jsxs)("div",{className:"modal-content",style:{maxWidth:i||void 0},ref:r,children:[t," ",(0,a.jsx)("button",{className:"ghost modal-cancel-button",onClick:function(e){o({modalEl:e.target.closest(".modal-wrapper"),closeFn:l})},children:(0,a.jsx)(s.Z,{})})]})]})}function o(e){var t,l=e.modalEl,a=e.closeFn;a&&a(),null===(t=l.parentElement)||void 0===t||t.removeChild(l)}},89594:function(e){e.exports=JSON.parse('[{"title":"VARCHAR","name":"VARCHAR","value":"0-255","argument":true,"description":"Varchar is simply letters and numbers within the range 0 - 255","maxValue":255},{"title":"TINYINT","name":"TINYINT","value":"0-100","description":"TINYINT means Integers: 0 to 100","maxValue":127},{"title":"SMALLINT","name":"SMALLINT","value":"0-255","description":"SMALLINT means Integers: 0 to 240933","maxValue":32767},{"title":"MEDIUMINT","name":"MEDIUMINT","value":"0-255","description":"MEDIUMINT means Integers: 0 to 1245568545560","maxValue":8388607},{"title":"INT","name":"INT","value":"0-255","description":"INT means Integers: 0 to 12560","maxValue":2147483647},{"title":"BIGINT","name":"BIGINT","value":"0-255","description":"BIGINT means Integers: 0 to 1245569056767568545560","maxValue":2e+63},{"title":"TINYTEXT","name":"TINYTEXT","value":"0-255","description":"Text with 255 max characters","maxValue":127},{"title":"TEXT","name":"TEXT","value":"0-100","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/ed150ef9-713e0b995a8779c6.js b/dsql-app/.local_dist/static/chunks/ed150ef9-713e0b995a8779c6.js deleted file mode 100644 index 77f6a2c..0000000 --- a/dsql-app/.local_dist/static/chunks/ed150ef9-713e0b995a8779c6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6142],{12320:function(e){var t;self,t=()=>(()=>{"use strict";var e={4567:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const n=i(9042),o=i(6114),a=i(9924),h=i(844),c=i(5596),l=i(4725),d=i(3656);let _=t.AccessibilityManager=class extends h.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let i=0;ithis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new a.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((e=>this._handleResize(e.rows)))),this.register(this._terminal.onRender((e=>this._refreshRows(e.start,e.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((e=>this._handleChar(e)))),this.register(this._terminal.onLineFeed((()=>this._handleChar("\n")))),this.register(this._terminal.onA11yTab((e=>this._handleTab(e)))),this.register(this._terminal.onKey((e=>this._handleKey(e.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this._screenDprMonitor=new c.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener((()=>this._refreshRowsDimensions())),this.register((0,d.addDisposableDomListener)(window,"resize",(()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,h.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=n.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((()=>{this._accessibilityContainer.appendChild(this._liveRegion)}),0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.remove()}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const i=this._terminal.buffer,s=i.lines.length.toString();for(let r=e;r<=t;r++){const e=i.translateBufferLineToString(i.ydisp+r,!0),t=(i.ydisp+r+1).toString(),n=this._rowElements[r];n&&(0===e.length?n.innerText="\xa0":n.textContent=e,n.setAttribute("aria-posinset",t),n.setAttribute("aria-setsize",s))}this._announceCharacters()}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){const i=e.target,s=this._rowElements[0===t?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")===(0===t?"1":`${this._terminal.buffer.lines.length}`))return;if(e.relatedTarget!==s)return;let r,n;if(0===t?(r=i,n=this._rowElements.pop(),this._rowContainer.removeChild(n)):(r=this._rowElements.shift(),n=i,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),n.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){const e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{const e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;te;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function i(e){return e.replace(/\r?\n/g,"\r")}function s(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function r(e,t,r,n){e=s(e=i(e),r.decPrivateModes.bracketedPasteMode&&!0!==n.rawOptions.ignoreBracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function n(e,t,i){const s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=s,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,s){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,i,s)},t.paste=r,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(e,t,i,s,r){n(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},6465:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const n=i(3656),o=i(8460),a=i(844),h=i(2585);let c=t.Linkifier2=class extends a.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new o.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)((()=>{this._lastMouseEvent=void 0}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0})))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const t=this._linkProviders.indexOf(e);-1!==t&&this._linkProviders.splice(t,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;const i=e.composedPath();for(let s=0;s{null==e||e.forEach((e=>{e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(const[n,o]of this._linkProviders.entries())t?(null===(s=this._activeProviderReplies)||void 0===s?void 0:s.get(n))&&(r=this._checkLinkProviderResult(n,e,r)):o.provideLinks(e.y,(t=>{var i,s;if(this._isMouseOut)return;const o=null==t?void 0:t.map((e=>({link:e})));null===(i=this._activeProviderReplies)||void 0===i||i.set(n,o),r=this._checkLinkProviderResult(n,e,r),(null===(s=this._activeProviderReplies)||void 0===s?void 0:s.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)}))}_removeIntersectingLinks(e,t){const i=new Set;for(let s=0;se?this._bufferService.cols:s.link.range.end.x;for(let e=n;e<=o;e++){if(i.has(e)){r.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){var s;if(!this._activeProviderReplies)return i;const r=this._activeProviderReplies.get(e);let n=!1;for(let o=0;othis._linkAtPosition(e.link,t)));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let o=0;othis._linkAtPosition(e.link,t)));if(e){i=!0,this._handleNewLink(e);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.pointerCursor},set:e=>{var t,i;(null===(t=this._currentLink)||void 0===t?void 0:t.state)&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&(null===(i=this._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.underline},set:t=>{var i,s,r;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(s=this._currentLink)||void 0===s?void 0:s.state)||void 0===r?void 0:r.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((e=>{if(!this._currentLink)return;const t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(t,i),this._lastMouseEvent&&this._element)){const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}}))))}_linkHover(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){const i=e.range,s=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-s-1,i.end.x,i.end.y-s-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=s}_positionFromMouseEvent(e,t,i){const s=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}};t.Linkifier2=c=s([r(0,h.IBufferService)],c)},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const n=i(511),o=i(2585);let a=t.OscLinkProvider=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var i;const s=this._bufferService.buffer.lines.get(e-1);if(!s)return void t(void 0);const r=[],o=this._optionsService.rawOptions.linkHandler,a=new n.CellData,c=s.getTrimmedLength();let l=-1,d=-1,_=!1;for(let n=0;no?o.activate(e,t,i):h(0,t),hover:(e,t)=>{var s;return null===(s=null==o?void 0:o.hover)||void 0===s?void 0:s.call(o,e,t,i)},leave:(e,t)=>{var s;return null===(s=null==o?void 0:o.leave)||void 0===s?void 0:s.call(o,e,t,i)}})}_=!1,a.hasExtendedAttrs()&&a.extended.urlId?(d=n,l=a.extended.urlId):(d=-1,l=-1)}}t(r)}};function h(e,t){if(confirm(`Do you want to navigate to ${t}?\n\nWARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch(e){}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}t.OscLinkProvider=a=s([r(0,o.IBufferService),r(1,o.IOptionsService),r(2,o.IOscLinkService)],a)},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;const s=i(844);class r extends s.Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,s.toDisposable)((()=>{this.clearListener()})))}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=r},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const s=i(3614),r=i(3656),n=i(6465),o=i(9042),a=i(3730),h=i(1680),c=i(3107),l=i(5744),d=i(2950),_=i(1296),u=i(428),f=i(4269),v=i(5114),p=i(8934),g=i(3230),m=i(9312),S=i(4725),C=i(6731),b=i(8055),y=i(8969),w=i(8460),E=i(844),k=i(6114),L=i(8437),D=i(2584),R=i(7399),x=i(5941),A=i(9074),B=i(2585),T=i(5435),M=i(4567),O="undefined"!=typeof window?window.document:null;class P extends y.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(e={}){super(e),this.browser=k,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new E.MutableDisposable),this._onCursorMove=this.register(new w.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new w.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new w.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new w.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new w.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new w.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new w.EventEmitter),this._onBlur=this.register(new w.EventEmitter),this._onA11yCharEmitter=this.register(new w.EventEmitter),this._onA11yTabEmitter=this.register(new w.EventEmitter),this._onWillOpen=this.register(new w.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(a.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(A.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((e,t)=>this.refresh(e,t)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((e=>this._reportWindowsOptions(e)))),this.register(this._inputHandler.onColor((e=>this._handleColorEvent(e)))),this.register((0,w.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,w.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((e=>this._afterResize(e.cols,e.rows)))),this.register((0,E.toDisposable)((()=>{var e,t;this._customKeyEventHandler=void 0,null===(t=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.element)})))}_handleColorEvent(e){if(this._themeService)for(const t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:const s=b.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${D.C0.ESC}]${i};${(0,x.toRgbString)(s)}${D.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors((e=>e.ansi[t.index]=b.rgba.toColor(...t.color)));else{const i=e;this._themeService.modifyColors((e=>e[i]=b.rgba.toColor(...t.color)))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(D.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(D.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;const i=Math.min(this.buffer.x,this.cols-1),s=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*r,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=s+"px",this.textarea.style.lineHeight=s+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,r.addDisposableDomListener)(this.element,"copy",(e=>{this.hasSelection()&&(0,s.copyHandler)(e,this._selectionService)})));const e=e=>(0,s.handlePasteEvent)(e,this.textarea,this.coreService,this.optionsService);this.register((0,r.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,r.addDisposableDomListener)(this.element,"paste",e)),k.isFirefox?this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>{2===e.button&&(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,r.addDisposableDomListener)(this.element,"contextmenu",(e=>{(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),k.isLinux&&this.register((0,r.addDisposableDomListener)(this.element,"auxclick",(e=>{1===e.button&&(0,s.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,r.addDisposableDomListener)(this.textarea,"keyup",(e=>this._keyUp(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keydown",(e=>this._keyDown(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keypress",(e=>this._keyPress(e)),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionupdate",(e=>this._compositionHelper.compositionupdate(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,r.addDisposableDomListener)(this.textarea,"input",(e=>this._inputEvent(e)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(e){var t;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);const i=O.createDocumentFragment();this._viewportElement=O.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=O.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=O.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=O.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this.textarea=O.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.promptLabel),k.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(v.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(S.ICoreBrowserService,this._coreBrowserService),this.register((0,r.addDisposableDomListener)(this.textarea,"focus",(e=>this._handleTextAreaFocus(e)))),this.register((0,r.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(u.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(C.ThemeService),this._instantiationService.setService(S.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(f.CharacterJoinerService),this._instantiationService.setService(S.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(g.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((e=>this._onRender.fire(e)))),this.onResize((e=>this._renderService.resize(e.cols,e.rows))),this._compositionView=O.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(d.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(i);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(p.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent,1))),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(m.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,r.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(c.BufferDecorationRenderer,this.screenElement)),this.register((0,r.addDisposableDomListener)(this.element,"mousedown",(e=>this._selectionService.handleMouseDown(e)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(e=>this._handleScreenReaderModeOptionChange(e)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(l.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(_.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const e=this,t=this.element;function i(t){const i=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!i)return!1;let s,r;switch(t.overrideType||t.type){case"mousemove":r=32,void 0===t.buttons?(s=3,void 0!==t.button&&(s=t.button<3?t.button:3)):s=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":r=0,s=t.button<3?t.button:3;break;case"mousedown":r=1,s=t.button<3?t.button:3;break;case"wheel":if(0===e.viewport.getLinesScrolled(t))return!1;r=t.deltaY<0?0:1,s=4;break;default:return!1}return!(void 0===r||void 0===s||s>4)&&e.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:s,action:r,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}const s={mouseup:null,wheel:null,mousedrag:null,mousemove:null},n={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.removeEventListener("mousemove",s.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange((e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?s.mousemove||(t.addEventListener("mousemove",n.mousemove),s.mousemove=n.mousemove):(t.removeEventListener("mousemove",s.mousemove),s.mousemove=null),16&e?s.wheel||(t.addEventListener("wheel",n.wheel,{passive:!1}),s.wheel=n.wheel):(t.removeEventListener("wheel",s.wheel),s.wheel=null),2&e?s.mouseup||(t.addEventListener("mouseup",n.mouseup),s.mouseup=n.mouseup):(this._document.removeEventListener("mouseup",s.mouseup),t.removeEventListener("mouseup",s.mouseup),s.mouseup=null),4&e?s.mousedrag||(s.mousedrag=n.mousedrag):(this._document.removeEventListener("mousemove",s.mousedrag),s.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,r.addDisposableDomListener)(t,"mousedown",(e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),s.mouseup&&this._document.addEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.addEventListener("mousemove",s.mousedrag),this.cancel(e)}))),this.register((0,r.addDisposableDomListener)(t,"wheel",(e=>{if(!s.wheel){if(!this.buffer.hasScrollback){const t=this.viewport.getLinesScrolled(e);if(0===t)return;const i=D.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let s="";for(let e=0;e{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)}),{passive:!0})),this.register((0,r.addDisposableDomListener)(t,"touchmove",(e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)}),{passive:!1}))}refresh(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)}updateCursorStyle(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){var s;1===i?(super.scrollLines(e,t,i),this.refresh(0,this.rows-1)):null===(s=this.viewport)||void 0===s||s.scrollLines(e)}paste(e){(0,s.paste)(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}selectAll(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}selectLines(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);const i=(0,R.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==D.C0.ETX&&i.key!==D.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){const i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i,s;null===(i=this._charSizeService)||void 0===i||i.measure(),null===(s=this.viewport)||void 0===s||s.syncScrollArea(!0)}clear(){var e;if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;const s=Date.now();if(s-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=s,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=s-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(3656),o=i(4725),a=i(8460),h=i(844),c=i(2585);let l=t.Viewport=class extends h.Disposable{constructor(e,t,i,s,r,o,h,c){super(),this._viewportElement=e,this._scrollArea=t,this._bufferService=i,this._optionsService=s,this._charSizeService=r,this._renderService=o,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new a.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((e=>this._renderDimensions=e))),this._handleThemeChange(c.colors),this.register(c.onChangeColors((e=>this._handleThemeChange(e)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()))}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame((()=>this.syncScrollArea()))}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){const i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&i0&&(s=e),r=""}}return{bufferElements:n,cursorElement:s}}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){const i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){const t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};t.Viewport=l=s([r(2,c.IBufferService),r(3,c.IOptionsService),r(4,o.ICharSizeService),r(5,o.IRenderService),r(6,o.ICoreBrowserService),r(7,o.IThemeService)],l)},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(3656),o=i(4725),a=i(844),h=i(2585);let c=t.BufferDecorationRenderer=class extends a.Disposable{constructor(e,t,i,s){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register((0,n.addDisposableDomListener)(window,"resize",(()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((e=>this._removeDecoration(e)))),this.register((0,a.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t,i;const s=document.createElement("div");s.classList.add("xterm-decoration"),s.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),s.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,s.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",s.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",s.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const r=null!==(i=e.options.x)&&void 0!==i?i:0;return r&&r>this._bufferService.cols&&(s.style.display="none"),this._refreshXPosition(e,s),s}_refreshStyle(e){const t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose((()=>{this._decorationElements.delete(e),i.remove()}))),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){var i;if(!t)return;const s=null!==(i=e.options.x)&&void 0!==i?i:0;"right"===(e.options.anchor||"left")?t.style.right=s?s*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=s?s*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}};t.BufferDecorationRenderer=c=s([r(1,h.IBufferService),r(2,h.IDecorationService),r(3,o.IRenderService)],c)},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const n=i(5871),o=i(3656),a=i(4725),h=i(844),c=i(2585),l={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0},_={full:0,left:0,center:0,right:0};let u=t.OverviewRulerRenderer=class extends h.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(e,t,i,s,r,o,a){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=o,this._coreBrowseService=a,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(c=this._viewportElement.parentElement)||void 0===c||c.insertBefore(this._canvas,this._viewportElement);const l=this._canvas.getContext("2d");if(!l)throw new Error("Ctx cannot be null");this._ctx=l,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,h.toDisposable)((()=>{var e;null===(e=this._canvas)||void 0===e||e.remove()})))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register((0,o.addDisposableDomListener)(this._coreBrowseService.window,"resize",(()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);d.full=this._canvas.width,d.left=e,d.center=t,d.right=e,this._refreshDrawHeightConstants(),_.full=0,_.left=0,_.center=d.left,_.right=d.left+d.center}_refreshDrawHeightConstants(){l.full=Math.round(2*this._coreBrowseService.dpr);const e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);l.left=t,l.center=t,l.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(_[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-l[e.position||"full"]/2),d[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+l[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};t.OverviewRulerRenderer=u=s([r(2,c.IBufferService),r(3,c.IDecorationService),r(4,a.IRenderService),r(5,c.IOptionsService),r(6,a.ICoreBrowserService)],u)},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);let h=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}}),0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const e=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0)),0)}}};t.CompositionHelper=h=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],h)},9806:(e,t)=>{function i(e,t,i){const s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,s,r,n,o,a,h,c){if(!o)return;const l=i(e,t,s);return l?(l[0]=Math.ceil((l[0]+(c?a/2:0))/a),l[1]=Math.ceil(l[1]/h),l[0]=Math.min(Math.max(l[0],1),r+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),n),l):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const s=i(2584);function r(e,t,i,s){const r=e-n(e,i),a=t-n(t,i),l=Math.abs(r-a)-function(e,t,i){let s=0;const r=e-n(e,i),a=t-n(t,i);for(let n=0;n=0&&et?"A":"B"}function a(e,t,i,s,r,n){let o=e,a=t,h="";for(;o!==i||a!==s;)o+=r?1:-1,r&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),o=n.cols-1,e=o,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function h(e,t){const i=t?"O":"[";return s.C0.ESC+i+e}function c(e,t){e=Math.floor(e);let i="";for(let s=0;s0?s-n(s,o):t;const _=s,u=function(e,t,i,s,o,a){let h;return h=r(i,s,o,a).length>0?s-n(s,o):t,e=i&&he?"D":"C",c(Math.abs(o-e),h(d,s));d=l>t?"D":"C";const _=Math.abs(l-t);return c(function(e,t){return t.cols-e}(l>t?e:o,i)+(_-1)*i.cols+1+((l>t?o:e)-1),h(d,s))}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const n=i(3787),o=i(2550),a=i(2223),h=i(6171),c=i(4725),l=i(8055),d=i(8460),_=i(844),u=i(2585),f="xterm-dom-renderer-owner-",v="xterm-rows",p="xterm-fg-",g="xterm-bg-",m="xterm-focus",S="xterm-selection";let C=1,b=t.DomRenderer=class extends _.Disposable{constructor(e,t,i,s,r,a,c,l,u,p){super(),this._element=e,this._screenElement=t,this._viewportElement=i,this._linkifier2=s,this._charSizeService=a,this._optionsService=c,this._bufferService=l,this._coreBrowserService=u,this._themeService=p,this._terminalClass=C++,this._rowElements=[],this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(v),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(S),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,h.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._themeService.onChangeColors((e=>this._injectCss(e)))),this._injectCss(this._themeService.colors),this._rowFactory=r.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(f+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((e=>this._handleLinkHover(e)))),this.register(this._linkifier2.onHideLinkUnderline((e=>this._handleLinkLeave(e)))),this.register((0,_.toDisposable)((()=>{this._element.classList.remove(f+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()}))),this._widthCache=new o.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const i of this._rowElements)i.style.width=`${this.dimensions.css.canvas.width}px`,i.style.height=`${this.dimensions.css.cell.height}px`,i.style.lineHeight=`${this.dimensions.css.cell.height}px`,i.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const t=`${this._terminalSelector} .${v} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${v} { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;t+=`${this._terminalSelector} .${v} .xterm-dim { color: ${l.color.multiplyOpacity(e.foreground,.5).css};}`,t+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`,t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { border-bottom-style: hidden; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css}; } 50% { background-color: inherit;`+` color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .${v}.${m} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${v}.${m} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-block {`+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css};}`+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-outline {`+` outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}`+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-bar {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}`+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-underline {`+` border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,t+=`${this._terminalSelector} .${S} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${S} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${S} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(const[i,s]of e.ansi.entries())t+=`${this._terminalSelector} .${p}${i} { color: ${s.css}; }${this._terminalSelector} .${p}${i}.xterm-dim { color: ${l.color.multiplyOpacity(s,.5).css}; }${this._terminalSelector} .${g}${i} { background-color: ${s.css}; }`;t+=`${this._terminalSelector} .${p}${a.INVERTED_DEFAULT_COLOR} { color: ${l.color.opaque(e.background).css}; }${this._terminalSelector} .${p}${a.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${l.color.multiplyOpacity(l.color.opaque(e.background),.5).css}; }${this._terminalSelector} .${g}${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){const e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let i=this._rowElements.length;i<=t;i++){const e=document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(m)}handleFocus(){this._rowContainer.classList.add(m),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;const s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),o=Math.min(r,this._bufferService.rows-1);if(n>=this._bufferService.rows||o<0)return;const a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,i?t[0]:e[0],i?e[0]:t[0],o-n+1))}else{const i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(n,i,h));const c=o-n-1;if(a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,c)),n!==o){const e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,s=1){const r=document.createElement("div");return r.style.height=s*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=t*this.dimensions.css.cell.width+"px",r.style.width=this.dimensions.css.cell.width*(i-t)+"px",r}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(const e of this._rowElements)e.replaceChildren()}renderRows(e,t){const i=this._bufferService.buffer,s=i.ybase+i.y,r=Math.min(i.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink,o=this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let h=e;h<=t;h++){const e=h+i.ydisp,t=this._rowElements[h],c=i.lines.get(e);if(!t||!c)break;t.replaceChildren(...this._rowFactory.createRow(c,e,e===s,o,a,r,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${f}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){i<0&&(e=0),s<0&&(t=0);const o=this._bufferService.rows-1;i=Math.max(Math.min(i,o),0),s=Math.max(Math.min(s,o),0),r=Math.min(r,this._bufferService.cols);const a=this._bufferService.buffer,h=a.ybase+a.y,c=Math.min(a.x,r-1),l=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,_=this._optionsService.rawOptions.cursorInactiveStyle;for(let u=i;u<=s;++u){const o=u+a.ydisp,f=this._rowElements[u],v=a.lines.get(o);if(!f||!v)break;f.replaceChildren(...this._rowFactory.createRow(v,o,o===h,d,_,c,l,this.dimensions.css.cell.width,this._widthCache,n?u===i?e:0:-1,n?(u===s?t:r)-1:-1))}}};t.DomRenderer=b=s([r(4,u.IInstantiationService),r(5,c.ICharSizeService),r(6,u.IOptionsService),r(7,u.IBufferService),r(8,c.ICoreBrowserService),r(9,c.IThemeService)],b)},3787:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;const n=i(2223),o=i(643),a=i(511),h=i(2585),c=i(8055),l=i(4725),d=i(4269),_=i(6171),u=i(3734);let f=t.DomRendererRowFactory=class{constructor(e,t,i,s,r,n,o){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=s,this._coreService=r,this._decorationService=n,this._themeService=o,this._workCell=new a.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,s,r,a,h,l,_,f,p){const g=[],m=this._characterJoinerService.getJoinedCharacters(t),S=this._themeService.colors;let C,b=e.getNoBgTrimmedLength();i&&b0&&M===m[0][0]){O=!0;const t=m.shift();I=new d.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),P=t[1]-1,b=I.getWidth()}const H=this._isCellInSelection(M,t),F=i&&M===a,W=T&&M>=f&&M<=p;let U=!1;this._decorationService.forEachDecorationAtCell(M,t,void 0,(e=>{U=!0}));let N=I.getChars()||o.WHITESPACE_CELL_CHAR;if(" "===N&&(I.isUnderline()||I.isOverline())&&(N="\xa0"),A=b*l-_.get(N,I.isBold(),I.isItalic()),C){if(y&&(H&&x||!H&&!x&&I.bg===E)&&(H&&x&&S.selectionForeground||I.fg===k)&&I.extended.ext===L&&W===D&&A===R&&!F&&!O&&!U){w+=N,y++;continue}y&&(C.textContent=w),C=this._document.createElement("span"),y=0,w=""}else C=this._document.createElement("span");if(E=I.bg,k=I.fg,L=I.extended.ext,D=W,R=A,x=H,O&&a>=M&&a<=P&&(a=M),!this._coreService.isCursorHidden&&F)if(B.push("xterm-cursor"),this._coreBrowserService.isFocused)h&&B.push("xterm-cursor-blink"),B.push("bar"===s?"xterm-cursor-bar":"underline"===s?"xterm-cursor-underline":"xterm-cursor-block");else if(r)switch(r){case"outline":B.push("xterm-cursor-outline");break;case"block":B.push("xterm-cursor-block");break;case"bar":B.push("xterm-cursor-bar");break;case"underline":B.push("xterm-cursor-underline")}if(I.isBold()&&B.push("xterm-bold"),I.isItalic()&&B.push("xterm-italic"),I.isDim()&&B.push("xterm-dim"),w=I.isInvisible()?o.WHITESPACE_CELL_CHAR:I.getChars()||o.WHITESPACE_CELL_CHAR,I.isUnderline()&&(B.push(`xterm-underline-${I.extended.underlineStyle}`)," "===w&&(w="\xa0"),!I.isUnderlineColorDefault()))if(I.isUnderlineColorRGB())C.style.textDecorationColor=`rgb(${u.AttributeData.toColorRGB(I.getUnderlineColor()).join(",")})`;else{let e=I.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&I.isBold()&&e<8&&(e+=8),C.style.textDecorationColor=S.ansi[e].css}I.isOverline()&&(B.push("xterm-overline")," "===w&&(w="\xa0")),I.isStrikethrough()&&B.push("xterm-strikethrough"),W&&(C.style.textDecoration="underline");let $=I.getFgColor(),j=I.getFgColorMode(),z=I.getBgColor(),K=I.getBgColorMode();const q=!!I.isInverse();if(q){const e=$;$=z,z=e;const t=j;j=K,K=t}let V,G,X,J=!1;switch(this._decorationService.forEachDecorationAtCell(M,t,void 0,(e=>{"top"!==e.options.layer&&J||(e.backgroundColorRGB&&(K=50331648,z=e.backgroundColorRGB.rgba>>8&16777215,V=e.backgroundColorRGB),e.foregroundColorRGB&&(j=50331648,$=e.foregroundColorRGB.rgba>>8&16777215,G=e.foregroundColorRGB),J="top"===e.options.layer)})),!J&&H&&(V=this._coreBrowserService.isFocused?S.selectionBackgroundOpaque:S.selectionInactiveBackgroundOpaque,z=V.rgba>>8&16777215,K=50331648,J=!0,S.selectionForeground&&(j=50331648,$=S.selectionForeground.rgba>>8&16777215,G=S.selectionForeground)),J&&B.push("xterm-decoration-top"),K){case 16777216:case 33554432:X=S.ansi[z],B.push(`xterm-bg-${z}`);break;case 50331648:X=c.rgba.toColor(z>>16,z>>8&255,255&z),this._addStyle(C,`background-color:#${v((z>>>0).toString(16),"0",6)}`);break;default:q?(X=S.foreground,B.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):X=S.background}switch(V||I.isDim()&&(V=c.color.multiplyOpacity(X,.5)),j){case 16777216:case 33554432:I.isBold()&&$<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&($+=8),this._applyMinimumContrast(C,X,S.ansi[$],I,V,void 0)||B.push(`xterm-fg-${$}`);break;case 50331648:const e=c.rgba.toColor($>>16&255,$>>8&255,255&$);this._applyMinimumContrast(C,X,e,I,V,G)||this._addStyle(C,`color:#${v($.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(C,X,S.foreground,I,V,void 0)||q&&B.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}B.length&&(C.className=B.join(" "),B.length=0),F||O||U?C.textContent=w:y++,A!==this.defaultSpacing&&(C.style.letterSpacing=`${A}px`),g.push(C),M=P}return C&&y&&(C.textContent=w),g}_applyMinimumContrast(e,t,i,s,r,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,_.excludeFromContrastRatioDemands)(s.getCode()))return!1;const o=this._getContrastCache(s);let a;if(r||n||(a=o.getColor(t.rgba,i.rgba)),void 0===a){const e=this._optionsService.rawOptions.minimumContrastRatio/(s.isDim()?2:1);a=c.color.ensureContrastRatio(r||t,n||i,e),o.setColor((r||t).rgba,(n||i).rgba,null!=a?a:null)}return!!a&&(this._addStyle(e,`color:${a.css}`),!0)}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){const i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t=i[0]&&e=i[0])}};function v(e,t,i){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(e){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";const t=e.createElement("span"),i=e.createElement("span");i.style.fontWeight="bold";const s=e.createElement("span");s.style.fontStyle="italic";const r=e.createElement("span");r.style.fontWeight="bold",r.style.fontStyle="italic",this._measureElements=[t,i,s,r],this._container.appendChild(t),this._container.appendChild(i),this._container.appendChild(s),this._container.appendChild(r),e.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,s){e===this._font&&t===this._fontSize&&i===this._weight&&s===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=s,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${s}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${s}`,this.clear())}get(e,t,i){let s=0;if(!t&&!i&&1===e.length&&(s=e.charCodeAt(0))<256)return-9999!==this._flat[s]?this._flat[s]:this._flat[s]=this._measure(e,0);let r=e;t&&(r+="B"),i&&(r+="I");let n=this._holey.get(r);if(void 0===n){let s=0;t&&(s|=1),i&&(s|=2),n=this._measure(e,s),this._holey.set(r,n)}return n}_measure(e,t){const i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}}},2223:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460),a=i(844);let h=t.CharSizeService=class extends a.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new o.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new c(e,t,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};t.CharSizeService=h=s([r(2,n.IOptionsService)],h);class c{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const e={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return 0!==e.width&&0!==e.height&&(this._result.width=e.width/32,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const n=i(3734),o=i(643),a=i(511),h=i(2585);class c extends n.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=c;let l=t.CharacterJoinerService=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);let a=t.MouseService=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){const i=(0,o.getCoordsRelativeToElement)(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};t.MouseService=a=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],a)},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const n=i(3656),o=i(6193),a=i(5596),h=i(4725),c=i(8460),l=i(844),d=i(7226),_=i(2585);let u=t.RenderService=class extends l.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(e,t,i,s,r,h,_,u){if(super(),this._rowCount=e,this._charSizeService=s,this._renderer=this.register(new l.MutableDisposable),this._pausedResizeTask=new d.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new c.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new c.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new c.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new c.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new o.RenderDebouncer(_.window,((e,t)=>this._renderRows(e,t))),this.register(this._renderDebouncer),this._screenDprMonitor=new a.ScreenDprMonitor(_.window),this._screenDprMonitor.setListener((()=>this.handleDevicePixelRatioChange())),this.register(this._screenDprMonitor),this.register(h.onResize((()=>this._fullRefresh()))),this.register(h.buffers.onBufferActivate((()=>{var e;return null===(e=this._renderer.value)||void 0===e?void 0:e.clear()}))),this.register(i.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(r.onDecorationRegistered((()=>this._fullRefresh()))),this.register(r.onDecorationRemoved((()=>this._fullRefresh()))),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],(()=>{this.clear(),this.handleResize(h.cols,h.rows),this._fullRefresh()}))),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(h.buffer.y,h.buffer.y,!0)))),this.register((0,n.addDisposableDomListener)(_.window,"resize",(()=>this.handleDevicePixelRatioChange()))),this.register(u.onChangeColors((()=>this._fullRefresh()))),"IntersectionObserver"in _.window){const e=new _.window.IntersectionObserver((e=>this._handleIntersectionChange(e[e.length-1])),{threshold:0});e.observe(t),this.register({dispose:()=>e.disconnect()})}}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.value&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value.onRequestRedraw((e=>this.refreshRows(e.start,e.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&(null===(t=(e=this._renderer.value).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set((()=>this._renderer.value.handleResize(e,t))):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCharSizeChanged()}handleBlur(){var e;null===(e=this._renderer.value)||void 0===e||e.handleBlur()}handleFocus(){var e;null===(e=this._renderer.value)||void 0===e||e.handleFocus()}handleSelectionChanged(e,t,i){var s;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,null===(s=this._renderer.value)||void 0===s||s.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCursorMove()}clear(){var e;null===(e=this._renderer.value)||void 0===e||e.clear()}};t.RenderService=u=s([r(2,_.IOptionsService),r(3,h.ICharSizeService),r(4,_.IDecorationService),r(5,_.IBufferService),r(6,h.ICoreBrowserService),r(7,h.IThemeService)],u)},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const n=i(9806),o=i(9504),a=i(456),h=i(4725),c=i(8460),l=i(844),d=i(6114),_=i(4841),u=i(511),f=i(2585),v=String.fromCharCode(160),p=new RegExp(v,"g");let g=t.SelectionService=class extends l.Disposable{constructor(e,t,i,s,r,n,o,h,d){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=o,this._renderService=h,this._coreBrowserService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new u.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new c.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new c.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new c.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new c.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((e=>this._handleTrim(e))),this.register(this._bufferService.buffers.onBufferActivate((e=>this._handleBufferActivate(e)))),this.enable(),this._model=new a.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,l.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";const i=this._bufferService.buffer,s=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";const r=e[0]e.replace(p," "))).join(d.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),d.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){const t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!!(i&&s&&t)&&this._areCoordsInSelection(t,i,s)}isCellInSelection(e,t){const i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){var i,s;const r=null===(s=null===(i=this._linkifier.currentLink)||void 0===i?void 0:i.link)||void 0===s?void 0:s.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=(0,_.getRangeLength)(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const n=this._getMouseBufferCoords(e);return!!n&&(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];const i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return d.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){const t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(d.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;const t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,o.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((e=>this._handleTrim(e)))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let s=0;t>=s;s++){const r=e.loadCell(s,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:r>1&&t!==s&&(i+=r-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,s=!0){if(e[0]>=this._bufferService.cols)return;const r=this._bufferService.buffer,n=r.lines.get(e[1]);if(!n)return;const o=r.translateBufferLineToString(e[1],!1);let a=this._convertViewportColToCharacterIndex(n,e[0]),h=a;const c=e[0]-a;let l=0,d=0,_=0,u=0;if(" "===o.charAt(a)){for(;a>0&&" "===o.charAt(a-1);)a--;for(;h1&&(u+=s-1,h+=s-1);t>0&&a>0&&!this._isCharWordSeparator(n.loadCell(t-1,this._workCell));){n.loadCell(t-1,this._workCell);const e=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,t--):e>1&&(_+=e-1,a-=e-1),a--,t--}for(;i1&&(u+=e-1,h+=e-1),h++,i++}}h++;let f=a+c-l+_,v=Math.min(this._bufferService.cols,h-a+l+d-_-u);if(t||""!==o.slice(a,h).trim()){if(i&&0===f&&32!==n.getCodePoint(0)){const t=r.lines.get(e[1]-1);if(t&&n.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){const t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){const e=this._bufferService.cols-t.start;f-=e,v+=e}}}if(s&&f+v===this._bufferService.cols&&32!==n.getCodePoint(this._bufferService.cols-1)){const t=r.lines.get(e[1]+1);if((null==t?void 0:t.isWrapped)&&32!==t.getCodePoint(0)){const t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(v+=t.length)}}return{start:f,length:v}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){const t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){const t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,_.getRangeLength)(i,this._bufferService.cols)}};t.SelectionService=g=s([r(3,f.IBufferService),r(4,f.ICoreService),r(5,h.IMouseService),r(6,f.IOptionsService),r(7,h.IRenderService),r(8,h.ICoreBrowserService)],g)},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const s=i(8343);t.ICharSizeService=(0,s.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,s.createDecorator)("CoreBrowserService"),t.IMouseService=(0,s.createDecorator)("MouseService"),t.IRenderService=(0,s.createDecorator)("RenderService"),t.ISelectionService=(0,s.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,s.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,s.createDecorator)("ThemeService")},6731:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const n=i(7239),o=i(8055),a=i(8460),h=i(844),c=i(2585),l=o.css.toColor("#ffffff"),d=o.css.toColor("#000000"),_=o.css.toColor("#ffffff"),u=o.css.toColor("#000000"),f={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[o.css.toColor("#2e3436"),o.css.toColor("#cc0000"),o.css.toColor("#4e9a06"),o.css.toColor("#c4a000"),o.css.toColor("#3465a4"),o.css.toColor("#75507b"),o.css.toColor("#06989a"),o.css.toColor("#d3d7cf"),o.css.toColor("#555753"),o.css.toColor("#ef2929"),o.css.toColor("#8ae234"),o.css.toColor("#fce94f"),o.css.toColor("#729fcf"),o.css.toColor("#ad7fa8"),o.css.toColor("#34e2e2"),o.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){const s=t[i/36%6|0],r=t[i/6%6|0],n=t[i%6];e.push({css:o.channels.toCss(s,r,n),rgba:o.channels.toRgba(s,r,n)})}for(let i=0;i<24;i++){const t=8+10*i;e.push({css:o.channels.toCss(t,t,t),rgba:o.channels.toRgba(t,t,t)})}return e})());let v=t.ThemeService=class extends h.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:l,background:d,cursor:_,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:f,selectionBackgroundOpaque:o.color.blend(d,f),selectionInactiveBackgroundTransparent:f,selectionInactiveBackgroundOpaque:o.color.blend(d,f),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}_setTheme(e={}){const i=this._colors;if(i.foreground=p(e.foreground,l),i.background=p(e.background,d),i.cursor=p(e.cursor,_),i.cursorAccent=p(e.cursorAccent,u),i.selectionBackgroundTransparent=p(e.selectionBackground,f),i.selectionBackgroundOpaque=o.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=p(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=o.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?p(e.selectionForeground,o.NULL_COLOR):void 0,i.selectionForeground===o.NULL_COLOR&&(i.selectionForeground=void 0),o.color.isOpaque(i.selectionBackgroundTransparent)){const e=.3;i.selectionBackgroundTransparent=o.color.opacity(i.selectionBackgroundTransparent,e)}if(o.color.isOpaque(i.selectionInactiveBackgroundTransparent)){const e=.3;i.selectionInactiveBackgroundTransparent=o.color.opacity(i.selectionInactiveBackgroundTransparent,e)}if(i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=p(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=p(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=p(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=p(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=p(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=p(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=p(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=p(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=p(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=p(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=p(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=p(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=p(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=p(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=p(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=p(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const s=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new s.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new s.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new s.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;const t=new Array(e);for(let i=0;ithis._length)for(let t=this._length;t=e;s--)this._array[this._getCyclicIndex(s+i.length)]=this._array[this._getCyclicIndex(s)];for(let s=0;sthis._maxLength){const e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));const s=e+t+i-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const s=Array.isArray(t)?[]:{};for(const r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const s=i(6114);let r=0,n=0,o=0,a=0;var h,c,l,d,_;function u(e){const t=e.toString(16);return t.length<2?"0"+t:t}function f(e,t){return e>>0}}(h||(t.channels=h={})),function(e){function t(e,t){return a=Math.round(255*t),[r,n,o]=_.toChannels(e.rgba),{css:h.toCss(r,n,o,a),rgba:h.toRgba(r,n,o,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,s=t.rgba>>16&255,c=t.rgba>>8&255,l=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return r=l+Math.round((i-l)*a),n=d+Math.round((s-d)*a),o=_+Math.round((c-_)*a),{css:h.toCss(r,n,o),rgba:h.toRgba(r,n,o)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=_.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return _.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[r,n,o]=_.toChannels(t),{css:h.toCss(r,n,o),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(c||(t.color=c={})),function(e){let t,i;if(!s.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const s=e.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return r=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),_.toColor(r,n,o);case 5:return r=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),_.toColor(r,n,o,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const s=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return r=parseInt(s[1]),n=parseInt(s[2]),o=parseInt(s[3]),a=Math.round(255*(void 0===s[5]?1:parseFloat(s[5]))),_.toColor(r,n,o,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[r,n,o,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:h.toRgba(r,n,o,a),css:e}}}(l||(t.css=l={})),function(e){function t(e,t,i){const s=e/255,r=t/255,n=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(d||(t.rgb=d={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,c=f(d.relativeLuminance2(o,a,h),d.relativeLuminance2(s,r,n));for(;c0||a>0||h>0);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),c=f(d.relativeLuminance2(o,a,h),d.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function i(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,c=f(d.relativeLuminance2(o,a,h),d.relativeLuminance2(s,r,n));for(;c>>0}e.ensureContrastRatio=function(e,s,r){const n=d.relativeLuminance(e>>8),o=d.relativeLuminance(s>>8);if(f(n,o)>8));if(af(n,d.relativeLuminance(t>>8))?o:t}return o}const a=i(e,s,r),h=f(n,d.relativeLuminance(a>>8));if(hf(n,d.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,s){return{css:h.toCss(e,t,i,s),rgba:h.toRgba(e,t,i,s)}}}(_||(t.rgba=_={})),t.toPaddedHex=u,t.contrastRatio=f},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),c=i(6975),l=i(8460),d=i(1753),_=i(1480),u=i(7994),f=i(9282),v=i(5435),p=i(5981),g=i(2660);let m=!1;class S extends s.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event((e=>{var t;null===(t=this._onScrollApi)||void 0===t||t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new s.MutableDisposable),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new h.OptionsService(e)),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(c.CoreService)),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(_.UnicodeService)),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(u.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(g.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new v.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],(()=>this._handleWindowsPtyOptionChange()))),this.register(this._bufferService.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new p.WriteBuffer(((e,t)=>this._inputHandler.parse(e,t)))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!m&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){const t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1;const t=this.optionsService.rawOptions.windowsPty;t&&void 0!==t.buildNumber&&void 0!==t.buildNumber?e=!!("conpty"===t.backend&&t.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){const e=[];e.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},(()=>((0,f.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsWrappingHeuristics.value=(0,s.toDisposable)((()=>{for(const t of e)t.dispose()}))}}}t.CoreTerminal=S},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))}},5435:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const n=i(2584),o=i(7116),a=i(2015),h=i(844),c=i(482),l=i(8437),d=i(8460),_=i(643),u=i(511),f=i(3734),v=i(2585),p=i(6242),g=i(6351),m=i(5941),S={"(":0,")":1,"*":2,"+":3,"-":1,".":2},C=131072;function b(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var y;!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(y||(t.WindowsOptionsReportType=y={}));let w=0;class E extends h.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,i,s,r,h,_,f,v=new a.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=s,this._optionsService=r,this._oscLinkService=h,this._coreMouseService=_,this._unicodeService=f,this._parser=v,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new c.StringToUtf32,this._utf8Decoder=new c.Utf8ToUtf32,this._workCell=new u.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new d.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new d.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new d.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new d.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new d.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new d.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new d.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new d.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new d.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new d.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new d.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new d.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new k(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._parser.setCsiHandlerFallback(((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})})),this._parser.setEscHandlerFallback((e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})})),this._parser.setExecuteHandlerFallback((e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})})),this._parser.setOscHandlerFallback(((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})})),this._parser.setDcsHandlerFallback(((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})})),this._parser.setPrintHandler(((e,t,i)=>this.print(e,t,i))),this._parser.registerCsiHandler({final:"@"},(e=>this.insertChars(e))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(e=>this.scrollLeft(e))),this._parser.registerCsiHandler({final:"A"},(e=>this.cursorUp(e))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(e=>this.scrollRight(e))),this._parser.registerCsiHandler({final:"B"},(e=>this.cursorDown(e))),this._parser.registerCsiHandler({final:"C"},(e=>this.cursorForward(e))),this._parser.registerCsiHandler({final:"D"},(e=>this.cursorBackward(e))),this._parser.registerCsiHandler({final:"E"},(e=>this.cursorNextLine(e))),this._parser.registerCsiHandler({final:"F"},(e=>this.cursorPrecedingLine(e))),this._parser.registerCsiHandler({final:"G"},(e=>this.cursorCharAbsolute(e))),this._parser.registerCsiHandler({final:"H"},(e=>this.cursorPosition(e))),this._parser.registerCsiHandler({final:"I"},(e=>this.cursorForwardTab(e))),this._parser.registerCsiHandler({final:"J"},(e=>this.eraseInDisplay(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(e=>this.eraseInDisplay(e,!0))),this._parser.registerCsiHandler({final:"K"},(e=>this.eraseInLine(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(e=>this.eraseInLine(e,!0))),this._parser.registerCsiHandler({final:"L"},(e=>this.insertLines(e))),this._parser.registerCsiHandler({final:"M"},(e=>this.deleteLines(e))),this._parser.registerCsiHandler({final:"P"},(e=>this.deleteChars(e))),this._parser.registerCsiHandler({final:"S"},(e=>this.scrollUp(e))),this._parser.registerCsiHandler({final:"T"},(e=>this.scrollDown(e))),this._parser.registerCsiHandler({final:"X"},(e=>this.eraseChars(e))),this._parser.registerCsiHandler({final:"Z"},(e=>this.cursorBackwardTab(e))),this._parser.registerCsiHandler({final:"`"},(e=>this.charPosAbsolute(e))),this._parser.registerCsiHandler({final:"a"},(e=>this.hPositionRelative(e))),this._parser.registerCsiHandler({final:"b"},(e=>this.repeatPrecedingCharacter(e))),this._parser.registerCsiHandler({final:"c"},(e=>this.sendDeviceAttributesPrimary(e))),this._parser.registerCsiHandler({prefix:">",final:"c"},(e=>this.sendDeviceAttributesSecondary(e))),this._parser.registerCsiHandler({final:"d"},(e=>this.linePosAbsolute(e))),this._parser.registerCsiHandler({final:"e"},(e=>this.vPositionRelative(e))),this._parser.registerCsiHandler({final:"f"},(e=>this.hVPosition(e))),this._parser.registerCsiHandler({final:"g"},(e=>this.tabClear(e))),this._parser.registerCsiHandler({final:"h"},(e=>this.setMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(e=>this.setModePrivate(e))),this._parser.registerCsiHandler({final:"l"},(e=>this.resetMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(e=>this.resetModePrivate(e))),this._parser.registerCsiHandler({final:"m"},(e=>this.charAttributes(e))),this._parser.registerCsiHandler({final:"n"},(e=>this.deviceStatus(e))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(e=>this.deviceStatusPrivate(e))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(e=>this.softReset(e))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(e=>this.setCursorStyle(e))),this._parser.registerCsiHandler({final:"r"},(e=>this.setScrollRegion(e))),this._parser.registerCsiHandler({final:"s"},(e=>this.saveCursor(e))),this._parser.registerCsiHandler({final:"t"},(e=>this.windowOptions(e))),this._parser.registerCsiHandler({final:"u"},(e=>this.restoreCursor(e))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(e=>this.insertColumns(e))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(e=>this.deleteColumns(e))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(e=>this.selectProtected(e))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(e=>this.requestMode(e,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(e=>this.requestMode(e,!1))),this._parser.setExecuteHandler(n.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(n.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(n.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(n.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(n.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(n.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(n.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(n.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(n.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new p.OscHandler((e=>(this.setTitle(e),this.setIconName(e),!0)))),this._parser.registerOscHandler(1,new p.OscHandler((e=>this.setIconName(e)))),this._parser.registerOscHandler(2,new p.OscHandler((e=>this.setTitle(e)))),this._parser.registerOscHandler(4,new p.OscHandler((e=>this.setOrReportIndexedColor(e)))),this._parser.registerOscHandler(8,new p.OscHandler((e=>this.setHyperlink(e)))),this._parser.registerOscHandler(10,new p.OscHandler((e=>this.setOrReportFgColor(e)))),this._parser.registerOscHandler(11,new p.OscHandler((e=>this.setOrReportBgColor(e)))),this._parser.registerOscHandler(12,new p.OscHandler((e=>this.setOrReportCursorColor(e)))),this._parser.registerOscHandler(104,new p.OscHandler((e=>this.restoreIndexedColor(e)))),this._parser.registerOscHandler(110,new p.OscHandler((e=>this.restoreFgColor(e)))),this._parser.registerOscHandler(111,new p.OscHandler((e=>this.restoreBgColor(e)))),this._parser.registerOscHandler(112,new p.OscHandler((e=>this.restoreCursorColor(e)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const n in o.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:n},(()=>this.selectCharset("("+n))),this._parser.registerEscHandler({intermediates:")",final:n},(()=>this.selectCharset(")"+n))),this._parser.registerEscHandler({intermediates:"*",final:n},(()=>this.selectCharset("*"+n))),this._parser.registerEscHandler({intermediates:"+",final:n},(()=>this.selectCharset("+"+n))),this._parser.registerEscHandler({intermediates:"-",final:n},(()=>this.selectCharset("-"+n))),this._parser.registerEscHandler({intermediates:".",final:n},(()=>this.selectCharset("."+n))),this._parser.registerEscHandler({intermediates:"/",final:n},(()=>this.selectCharset("/"+n)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((e=>(this._logService.error("Parsing error: ",e),e))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new g.DcsHandler(((e,t)=>this.requestStatusString(e,t))))}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(((e,t)=>setTimeout((()=>t("#SLOW_TIMEOUT")),5e3)))]).catch((e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>C&&(n=this._parseStack.position+C)}if(this._logService.logLevel<=v.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,(e=>String.fromCharCode(e))).join("")}"`),"string"==typeof e?e.split("").map((e=>e.charCodeAt(0))):e),this._parseBuffer.lengthC)for(let a=n;a0&&2===u.getWidth(this._activeBuffer.x-1)&&u.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(let f=t;f=a)if(h){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),u=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===r)continue;if(l&&(u.insertCells(this._activeBuffer.x,r,this._activeBuffer.getNullCell(d),d),2===u.getWidth(a-1)&&u.setCellFromCodePoint(a-1,_.NULL_CELL_CODE,_.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),u.setCellFromCodePoint(this._activeBuffer.x++,s,r,d.fg,d.bg,d.extended),r>0)for(;--r;)u.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else u.getWidth(this._activeBuffer.x-1)?u.addCodepointToCell(this._activeBuffer.x-1,s):u.addCodepointToCell(this._activeBuffer.x-2,s)}i-t>0&&(u.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===u.getWidth(this._activeBuffer.x)&&!u.hasContent(this._activeBuffer.x)&&u.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(e=>!b(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new g.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new p.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){const t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){const t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){const t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){const t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){const n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),s&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;te?1:2,u=e.params[0];return f=u,v=t?2===u?4:4===u?_(o.modes.insertMode):12===u?3:20===u?_(d.convertEol):0:1===u?_(i.applicationCursorKeys):3===u?d.windowOptions.setWinLines?80===h?2:132===h?1:0:0:6===u?_(i.origin):7===u?_(i.wraparound):8===u?3:9===u?_("X10"===s):12===u?_(d.cursorBlink):25===u?_(!o.isCursorHidden):45===u?_(i.reverseWraparound):66===u?_(i.applicationKeypad):67===u?4:1e3===u?_("VT200"===s):1002===u?_("DRAG"===s):1003===u?_("ANY"===s):1004===u?_(i.sendFocus):1005===u?4:1006===u?_("SGR"===r):1015===u?4:1016===u?_("SGR_PIXELS"===r):1048===u?1:47===u||1047===u||1049===u?_(c===l):2004===u?_(i.bracketedPasteMode):0,o.triggerDataEvent(`${n.C0.ESC}[${t?"":"?"}${f};${v}$y`),!0;var f,v}_updateAttrColor(e,t,i,s,r){return 2===t?(e|=50331648,e&=-16777216,e|=f.AttributeData.fromColorRGB([i,s,r])):5===t&&(e&=-50331904,e|=33554432|255&i),e}_extractColor(e,t,i){const s=[0,0,-1,0,0,0];let r=0,n=0;do{if(s[n+r]=e.params[t+n],e.hasSubParams(t+n)){const i=e.getSubParams(t+n);let o=0;do{5===s[1]&&(r=1),s[n+o+1+r]=i[o]}while(++o=2||2===s[1]&&n+r>=5)break;s[1]&&(r=1)}while(++n+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=l.DEFAULT_ATTR_DATA.fg,e.bg=l.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;const t=e.length;let i;const s=this._curAttrData;for(let r=0;r=30&&i<=37?(s.fg&=-50331904,s.fg|=16777216|i-30):i>=40&&i<=47?(s.bg&=-50331904,s.bg|=16777216|i-40):i>=90&&i<=97?(s.fg&=-50331904,s.fg|=16777224|i-90):i>=100&&i<=107?(s.bg&=-50331904,s.bg|=16777224|i-100):0===i?this._processSGR0(s):1===i?s.fg|=134217728:3===i?s.bg|=67108864:4===i?(s.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,s)):5===i?s.fg|=536870912:7===i?s.fg|=67108864:8===i?s.fg|=1073741824:9===i?s.fg|=2147483648:2===i?s.bg|=134217728:21===i?this._processUnderline(2,s):22===i?(s.fg&=-134217729,s.bg&=-134217729):23===i?s.bg&=-67108865:24===i?(s.fg&=-268435457,this._processUnderline(0,s)):25===i?s.fg&=-536870913:27===i?s.fg&=-67108865:28===i?s.fg&=-1073741825:29===i?s.fg&=2147483647:39===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===i?(s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?r+=this._extractColor(e,r,s):53===i?s.bg|=1073741824:55===i?s.bg&=-1073741825:59===i?(s.extended=s.extended.clone(),s.extended.underlineColor=-1,s.updateExtended()):100===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){const t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const i=t%2==1;return this._optionsService.options.cursorBlink=i,!0}setScrollRegion(e){const t=e.params[0]||1;let i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||0===i)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!b(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;const t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;i.length>1;){const e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(L(i))if("?"===s)t.push({type:0,index:i});else{const e=(0,m.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){const t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();const i=e.split(":");let s;const r=i.findIndex((e=>e.startsWith("id=")));return-1!==r&&(s=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:s,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){const i=e.split(";");for(let s=0;s=this._specialColors.length);++s,++t)if("?"===i[s])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{const e=(0,m.parseColor)(i[s]);e&&this._onColor.fire([{type:1,index:this._specialColors[t],color:e}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let s=0;s=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const e=new u.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t(this._coreService.triggerDataEvent(`${n.C0.ESC}${e}${n.C0.ESC}\\`),!0))('"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=E;let k=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){ethis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(w=e,e=t,t=w),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function L(e){return 0<=e&&e<256}k=s([r(0,v.IBufferService)],k)},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,n){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,n)}get(e,t,i,s){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e)),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;const t=this._getKey(e);if(void 0===t)return!1;if(i=this._search(t),-1===i)return!1;if(this._getKey(this._array[i])!==t)return!1;do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{yield this._array[i]}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{t(this._array[i])}while(++i=t;){let s=t+i>>1;const r=this._getKey(this._array[s]);if(r>e)i=s-1;else{if(!(r0&&this._getKey(this._array[s-1])===e;)s--;return s}t=s+1}}return t}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(6114);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class n extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const s=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&i&&(r.isWrapped=i[s.CHAR_DATA_CODE_INDEX]!==s.NULL_CELL_CODE&&i[s.CHAR_DATA_CODE_INDEX]!==s.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class s{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;const s=i(6349),r=i(7226),n=i(3734),o=i(8437),a=i(4634),h=i(511),c=i(643),l=i(4863),d=i(7116);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=d.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,c.NULL_CELL_CHAR,c.NULL_CELL_WIDTH,c.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,c.WHITESPACE_CELL_CHAR,c.WHITESPACE_CELL_WIDTH,c.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new r.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){const i=this.getNullCell(o.DEFAULT_ATTR_DATA);let s=0;const r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let n=0;n.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){const e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){const i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(i.length>0){const s=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,s.layout),this._reflowLargerAdjustViewport(e,t,s.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){const s=this.getNullCell(o.DEFAULT_ATTR_DATA);let r=i;for(;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;n--){let h=this.lines.get(n);if(!h||!h.isWrapped&&h.getTrimmedLength()<=e)continue;const c=[h];for(;h.isWrapped&&n>0;)h=this.lines.get(--n),c.unshift(h);const l=this.ybase+this.y;if(l>=n&&l0&&(s.push({start:n+c.length+r,newLines:v}),r+=v.length),c.push(...v);let p=_.length-1,g=_[p];0===g&&(p--,g=_[p]);let m=c.length-u-1,S=d;for(;m>=0;){const e=Math.min(S,g);if(void 0===c[p])break;if(c[p].copyCellsFrom(c[m],S-e,g-e,e,!0),g-=e,0===g&&(p--,g=_[p]),S-=e,0===S){m--;const e=Math.max(m,0);S=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t0;)0===this.ybase?this.y0){const e=[],t=[];for(let s=0;s=0;d--)if(a&&a.start>n+h){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(d--,a.newLines[e]);d++,e.push({index:n+1,amount:a.newLines.length}),h+=a.newLines.length,a=s[++o]}else this.lines.set(d,t[n--]);let c=0;for(let s=e.length-1;s>=0;s--)e[s].index+=c,this.lines.onInsertEmitter.fire(e[s]),c+=e[s].amount;const l=Math.max(0,i+r-this.lines.maxLength);l>0&&this.lines.onTrimEmitter.fire(l)}}translateBufferLineToString(e,t,i=0,s){const r=this.lines.get(e);return r?r.translateToString(t,i,s):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((e=>{t.line>=e.index&&(t.line+=e.amount)}))),t.register(this.lines.onDelete((e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)}))),t.register(t.onDispose((()=>this._removeMarker(t)))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const s=i(3734),r=i(511),n=i(643),o=i(482);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);let a=0;class h{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const s=t||r.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let r=0;r>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],t[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,o.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,s,r,n){268435456&r&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,o.stringFromCodePoint)(t):(2097151&i?(this._combined[e]=(0,o.stringFromCodePoint)(2097151&i)+(0,o.stringFromCodePoint)(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)}insertCells(e,t,i,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs),t=0;--i)this.setCell(e+t+i,this.loadCell(e+i,s));for(let r=0;rthis.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{const e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i=e&&delete this._combined[s]}const s=Object.keys(this._extendedAttrs);for(let i=0;i=e&&delete this._extendedAttrs[t]}}return this.length=e,4*i*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||50331648&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,s,r){const n=e._data;if(r)for(let a=s-1;a>=0;a--){for(let e=0;e<3;e++)this._data[3*(i+a)+e]=n[3*(t+a)+e];268435456&n[3*(t+a)+2]&&(this._extendedAttrs[i+a]=e._extendedAttrs[t+a])}else for(let a=0;a=t&&(this._combined[s-t+i]=e._combined[s])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let s="";for(;t>22||1}return s}}t.BufferLine=h},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();const s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),r=2===e[t+1].getWidth(0);return s&&r?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,s,r,n){const o=[];for(let a=0;a=a&&r0&&(e>d||0===l[e].getTrimmedLength());e--)v++;v>0&&(o.push(a+l.length-v),o.push(v)),a+=l.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){const i=[];let s=0,r=t[s],n=0;for(let o=0;oi(e,r,t))).reduce(((e,t)=>e+t));let o=0,a=0,h=0;for(;hc&&(o-=c,a++);const l=2===e[a].getWidth(o-1);l&&o--;const d=l?s-1:s;r.push(d),h+=d}return r},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const s=i(8460),r=i(844),n=i(9092);class o extends r.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new s.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const s=i(8460),r=i(844);class n{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new s.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=n,n._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"\u25c6",a:"\u2592",b:"\u2409",c:"\u240c",d:"\u240d",e:"\u240a",f:"\xb0",g:"\xb1",h:"\u2424",i:"\u240b",j:"\u2518",k:"\u2510",l:"\u250c",m:"\u2514",n:"\u253c",o:"\u23ba",p:"\u23bb",q:"\u2500",r:"\u23bc",s:"\u23bd",t:"\u251c",u:"\u2524",v:"\u2534",w:"\u252c",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03c0","|":"\u2260","}":"\xa3","~":"\xb7"},t.CHARSETS.A={"#":"\xa3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},t.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},t.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},t.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},t.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:(e,t)=>{var i,s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(i||(t.C0=i={})),function(e){e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8a",e.PLD="\x8b",e.PLU="\x8c",e.RI="\x8d",e.SS2="\x8e",e.SS3="\x8f",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9a",e.CSI="\x9b",e.ST="\x9c",e.OSC="\x9d",e.PM="\x9e",e.APC="\x9f"}(s||(t.C1=s={})),function(e){e.ST=`${i.ESC}\\`}(r||(t.C1_ESCAPED=r={}))},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const s=i(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,n){const o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B");break;case 8:if(e.altKey){o.key=s.C0.ESC+s.C0.DEL;break}o.key=s.C0.DEL;break;case 9:if(e.shiftKey){o.key=s.C0.ESC+"[Z";break}o.key=s.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?s.C0.ESC+s.C0.CR:s.C0.CR,o.cancel=!0;break;case 27:o.key=s.C0.ESC,e.altKey&&(o.key=s.C0.ESC+s.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"D",o.key===s.C0.ESC+"[1;3D"&&(o.key=s.C0.ESC+(i?"b":"[1;5D"))):o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"C",o.key===s.C0.ESC+"[1;3C"&&(o.key=s.C0.ESC+(i?"f":"[1;5C"))):o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"A",i||o.key!==s.C0.ESC+"[1;3A"||(o.key=s.C0.ESC+"[1;5A")):o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"B",i||o.key!==s.C0.ESC+"[1;3B"||(o.key=s.C0.ESC+"[1;5B")):o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=s.C0.ESC+"[2~");break;case 46:o.key=a?s.C0.ESC+"[3;"+(a+1)+"~":s.C0.ESC+"[3~";break;case 36:o.key=a?s.C0.ESC+"[1;"+(a+1)+"H":t?s.C0.ESC+"OH":s.C0.ESC+"[H";break;case 35:o.key=a?s.C0.ESC+"[1;"+(a+1)+"F":t?s.C0.ESC+"OF":s.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=s.C0.ESC+"[5;"+(a+1)+"~":o.key=s.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=s.C0.ESC+"[6;"+(a+1)+"~":o.key=s.C0.ESC+"[6~";break;case 112:o.key=a?s.C0.ESC+"[1;"+(a+1)+"P":s.C0.ESC+"OP";break;case 113:o.key=a?s.C0.ESC+"[1;"+(a+1)+"Q":s.C0.ESC+"OQ";break;case 114:o.key=a?s.C0.ESC+"[1;"+(a+1)+"R":s.C0.ESC+"OR";break;case 115:o.key=a?s.C0.ESC+"[1;"+(a+1)+"S":s.C0.ESC+"OS";break;case 116:o.key=a?s.C0.ESC+"[15;"+(a+1)+"~":s.C0.ESC+"[15~";break;case 117:o.key=a?s.C0.ESC+"[17;"+(a+1)+"~":s.C0.ESC+"[17~";break;case 118:o.key=a?s.C0.ESC+"[18;"+(a+1)+"~":s.C0.ESC+"[18~";break;case 119:o.key=a?s.C0.ESC+"[19;"+(a+1)+"~":s.C0.ESC+"[19~";break;case 120:o.key=a?s.C0.ESC+"[20;"+(a+1)+"~":s.C0.ESC+"[20~";break;case 121:o.key=a?s.C0.ESC+"[21;"+(a+1)+"~":s.C0.ESC+"[21~";break;case 122:o.key=a?s.C0.ESC+"[23;"+(a+1)+"~":s.C0.ESC+"[23~";break;case 123:o.key=a?s.C0.ESC+"[24;"+(a+1)+"~":s.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!n||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(o.key=s.C0.US),"@"===e.key&&(o.key=s.C0.NUL)):65===e.keyCode&&(o.type=1);else{const t=r[e.keyCode],i=null==t?void 0:t[e.shiftKey?1:0];if(i)o.key=s.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){const t=e.ctrlKey?e.keyCode-64:e.keyCode+32;let i=String.fromCharCode(t);e.shiftKey&&(i=i.toUpperCase()),o.key=s.C0.ESC+i}else if(32===e.keyCode)o.key=s.C0.ESC+(e.ctrlKey?s.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=s.C0.ESC+t,o.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=s.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=s.C0.DEL:219===e.keyCode?o.key=s.C0.ESC:220===e.keyCode?o.key=s.C0.FS:221===e.keyCode&&(o.key=s.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let n=r;n=i)return this._interim=r,s;const o=e.charCodeAt(n);56320<=o&&o<=57343?t[s++]=1024*(r-55296)+o-56320+65536:(t[s++]=r,t[s++]=o)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,n,o,a=0,h=0,c=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let n,o=0;for(;(n=63&this.interim[++o])&&o<4;)r<<=6,r|=n;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,l=h-o;for(;c=i)return 0;if(n=e[c++],128!=(192&n)){c--,s=!0;break}this.interim[o++]=n,r<<=6,r|=63&n}s||(2===h?r<128?c--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const l=i-4;let d=c;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&n,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=n,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&n)<<6|63&o,h<65536||h>1114111)continue;t[a++]=h}}return a}}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const i=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let r;t.UnicodeV6=class{constructor(){if(this.version="6",!r){r=new Uint8Array(65536),r.fill(1),r[0]=0,r.fill(0,1,32),r.fill(0,127,160),r.fill(2,4352,4448),r[9001]=2,r[9002]=2,r.fill(2,11904,42192),r[12351]=1,r.fill(2,44032,55204),r.fill(2,63744,64256),r.fill(2,65040,65050),r.fill(2,65072,65136),r.fill(2,65280,65377),r.fill(2,65504,65511);for(let e=0;et[r][1])return!1;for(;r>=s;)if(i=s+r>>1,e>t[i][1])s=i+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new s.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,t);if(s){const e=e=>Date.now()-i>=12?setTimeout((()=>this._innerWrite(0,e))):this._innerWrite(i,e);return void s.catch((e=>(queueMicrotask((()=>{throw e})),Promise.resolve(!1)))).then(e)}const r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,s=/^[\da-f]+$/;function r(e,t){const i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const e=i.exec(t);if(e){const t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),s.exec(t)&&[3,6,9,12].includes(t.length))){const e=t.length/3,i=[0,0,0];for(let s=0;s<3;++s){const r=parseInt(t.slice(e*s,e*s+e),16);i[s]=1===e?r<<4:2===e?r:3===e?r>>4:r>>8}return i}},t.toRgbString=function(e,t=16){const[i,s,n]=e;return`rgb:${r(i,t)}/${r(s,t)}/${r(n,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const s=i(482),r=i(8742),n=i(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,s.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].unhook(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=o,this._ident=0}};const a=new r.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,s.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then((e=>(this._params=a,this._data="",this._hitLimit=!1,e)));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const s=i(844),r=i(8742),n=i(6242),o=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(e,t,i,s){for(let r=0;rt)),i=(e,i)=>t.slice(e,i),s=i(32,127),r=i(0,24);r.push(25),r.push.apply(r,i(28,32));const n=i(0,14);let o;for(o in e.setDefault(1,0),e.addMany(s,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(i(128,144),o,3,0),e.addMany(i(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();class c extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new r.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,s.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let t=0;ts||s>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=s}}if(1!==e.final.length)throw new Error("final must be a single byte");const s=e.final.charCodeAt(0);if(t[0]>s||s>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=s,i}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){const i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);const s=this._escHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){const i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);const s=this._csiHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(e,t,i){let s,r=0,n=0,o=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const t=this._parseStack.handlers;let n=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](this._params),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 4:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],s=this._dcsParser.unhook(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],s=this._oscParser.end(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let a=o;a>4){case 2:for(let s=a+1;;++s){if(s>=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=0&&(s=i[o](this._params),!0!==s);o--)if(s instanceof Promise)return this._preserveStack(3,i,o,n,a),s;o<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++a47&&r<60);a--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:const c=this._escHandlers[this._collect<<8|r];let l=c?c.length-1:-1;for(;l>=0&&(s=c[l](),!0!==s);l--)if(s instanceof Promise)return this._preserveStack(4,c,l,n,a),s;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let s=a+1;;++s)if(s>=t||24===(r=e[s])||26===r||27===r||r>127&&r=t||(r=e[s])<32||r>127&&r{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].end(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then((e=>(this._data="",this._hitLimit=!1,e)));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const i=2147483647;class s{static fromArray(e){const t=new s;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){const e=new s(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){const e=[];for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,s))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>i?i:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>i?i:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){const t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){const e={};for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&(e[t]=this._subParams.slice(i,s))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const s=this._digitIsSub?this._subParams:this.params,r=s[t-1];s[t-1]=~r?Math.min(10*r+e,i):e}}t.Params=s},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){const t=this._buffer.lines.get(e);if(t)return new s.BufferLineApiView(t)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const s=i(8771),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new r.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,(e=>t(e.toArray())))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,((e,i)=>t(e,i.toArray())))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(8460),o=i(844),a=i(5295),h=i(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let c=t.BufferService=class extends o.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new a.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let s;s=this._cachedBlankLine,s&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=i.getBlankLine(e,t),this._cachedBlankLine=s),s.isWrapped=t;const r=i.ybase+i.scrollTop,n=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;n===i.lines.length-1?e?i.lines.recycle().copyFrom(s):i.lines.push(s.clone()):i.lines.splice(n+1,0,s.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=n-r+1;i.lines.shiftElements(r+1,e-1,-1),i.lines.set(n,s.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);const r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r!==s.ydisp&&(t||this._onScroll.fire(s.ydisp))}};t.BufferService=c=s([r(0,h.IOptionsService)],c)},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a=i(844),h={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function c(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,d={DEFAULT:e=>{const t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`\x1b[M${l(t[0])}${l(t[1])}${l(t[2])}`},SGR:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`\x1b[<${c(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`\x1b[<${c(e,!0)};${e.x};${e.y}${t}`}};let _=t.CoreMouseService=class extends a.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const i of Object.keys(h))this.addProtocol(i,h[i]);for(const i of Object.keys(d))this.addEncoding(i,d[i]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;const t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=_=s([r(0,n.IBufferService),r(1,n.ICoreService)],_)},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(1439),o=i(8460),a=i(844),h=i(2585),c=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let d=t.CoreService=class extends a.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}reset(){this.modes=(0,n.clone)(c),this.decPrivateModes=(0,n.clone)(l)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;const i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onBinary.fire(e))}};t.CoreService=d=s([r(0,h.IBufferService),r(1,h.ILogService),r(2,h.IOptionsService)],d)},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const s=i(8055),r=i(8460),n=i(844),o=i(6106);let a=0,h=0;class c extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new o.SortedList((e=>null==e?void 0:e.marker.line)),this._onDecorationRegistered=this.register(new r.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new r.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)((()=>this.reset())))}registerDecoration(e){if(e.marker.isDisposed)return;const t=new l(e);if(t){const e=t.marker.onDispose((()=>t.dispose()));t.onDispose((()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())})),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var s,r,n;let o=0,a=0;for(const h of this._decorations.getKeyIterator(t))o=null!==(s=h.options.x)&&void 0!==s?s:0,a=o+(null!==(r=h.options.width)&&void 0!==r?r:1),e>=o&&e{var r,n,o;a=null!==(r=t.options.x)&&void 0!==r?r:0,h=a+(null!==(n=t.options.width)&&void 0!==n?n:1),e>=a&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const s=i(2585),r=i(8343);class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(const[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,r.getServiceDependencies)(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of i){const t=this._services.get(r.id);if(!t)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`);s.push(t)}const n=i.length>0?i[0].index:t.length;if(t.length!==n)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${n+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...s])}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;const n=i(844),o=i(2585),a={trace:o.LogLevelEnum.TRACE,debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF};let h,c=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel()))),h=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tJSON.stringify(e))).join(", ")})`);const t=s.apply(this,e);return h.trace(`GlyphRenderer#${s.name} return`,t),t}}},7302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;const s=i(8460),r=i(844),n=i(6114);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const o=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends r.Disposable{constructor(e){super(),this._onOptionChange=this.register(new s.EventEmitter),this.onOptionChange=this._onOptionChange.event;const i=Object.assign({},t.DEFAULT_OPTIONS);for(const t in e)if(t in i)try{const s=e[t];i[t]=this._sanitizeAndValidateOption(t,s)}catch(e){console.error(e)}this.rawOptions=i,this.options=Object.assign({},i),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange((i=>{i===e&&t(this.rawOptions[e])}))}onMultipleOptionChange(e,t){return this.onOptionChange((i=>{-1!==e.indexOf(i)&&t()}))}_setupOptions(){const e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(const t in this.rawOptions){const s={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,s)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":if(i||(i=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(i))throw new Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=o.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${i}`);break;case"rows":case"cols":if(!i&&0!==i)throw new Error(`${e} must be numeric, value: ${i}`);break;case"windowsPty":i=null!=i?i:{}}return i}}t.OptionsService=a},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;const n=i(2585);let o=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose((()=>this._removeMarkerFromLink(s,i))),this._dataByLinkId.set(s.id,s),s.id}const i=e,s=this._getEntryIdKey(i),r=this._entriesWithId.get(s);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose((()=>this._removeMarkerFromLink(o,n))),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every((e=>e.line!==t))){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(i,e)))}}getLinkData(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){const i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=o=s([r(0,n.IBufferService)],o)},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;const i="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const r=function(e,t,n){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");!function(e,t,r){t[i]===t?t[s].push({id:e,index:r}):(t[s]=[{id:e,index:r}],t[i]=t)}(r,e,n)};return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(8343);var r;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(r||(t.LogLevelEnum=r={})),t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const s=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter,this.onChange=this._onChange.event;const e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0;const i=e.length;for(let s=0;s=i)return t+this.wcwidth(r);const n=e.charCodeAt(s);56320<=n&&n<=57343?r=1024*(r-55296)+n-56320+65536:t+=this.wcwidth(n)}t+=this.wcwidth(r)}return t}}}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;const t=i(9042),r=i(3236),n=i(844),o=i(5741),a=i(8285),h=i(7975),c=i(7090),l=["cols","rows"];class d extends n.Disposable{constructor(e){super(),this._core=this.register(new r.Terminal(e)),this._addonManager=this.register(new o.AddonManager),this._publicOptions=Object.assign({},this._core.options);const t=e=>this._core.options[e],i=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const s in this._core.options){const e={get:t.bind(this,s),set:i.bind(this,s)};Object.defineProperty(this._publicOptions,s,e)}}_checkReadonlyOptions(e){if(l.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new h.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new c.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new a.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){var t,i,s;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(i=e.width)&&void 0!==i?i:0,null!==(s=e.height)&&void 0!==s?s:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return t}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}e.Terminal=d})(),s})(),e.exports=t()}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/ed150ef9-f63505ffd7e6bb38.js b/dsql-app/.local_dist/static/chunks/ed150ef9-f63505ffd7e6bb38.js new file mode 100644 index 0000000..e95ef68 --- /dev/null +++ b/dsql-app/.local_dist/static/chunks/ed150ef9-f63505ffd7e6bb38.js @@ -0,0 +1,3 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[160],{62975:e=>{var t;self,t=()=>(()=>{"use strict";var e={4567:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;let n=i(9042),o=i(6114),a=i(9924),h=i(844),l=i(5596),c=i(4725),d=i(3656),_=t.AccessibilityManager=class extends h.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let e=0;ethis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new a.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(e=>this._handleResize(e.rows))),this.register(this._terminal.onRender(e=>this._refreshRows(e.start,e.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(e=>this._handleChar(e))),this.register(this._terminal.onLineFeed(()=>this._handleChar("\n"))),this.register(this._terminal.onA11yTab(e=>this._handleTab(e))),this.register(this._terminal.onKey(e=>this._handleKey(e.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new l.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,d.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,h.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=n.tooMuchOutput)),o.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,o.isMac&&this._liveRegion.remove()}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._liveRegionDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){let i=this._terminal.buffer,s=i.lines.length.toString();for(let r=e;r<=t;r++){let e=i.translateBufferLineToString(i.ydisp+r,!0),t=(i.ydisp+r+1).toString(),n=this._rowElements[r];n&&(0===e.length?n.innerText="\xa0":n.textContent=e,n.setAttribute("aria-posinset",t),n.setAttribute("aria-setsize",s))}this._announceCharacters()}_announceCharacters(){0!==this._charsToAnnounce.length&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,t){let i,s;let r=e.target,n=this._rowElements[0===t?1:this._rowElements.length-2];if(r.getAttribute("aria-posinset")!==(0===t?"1":`${this._terminal.buffer.lines.length}`)&&e.relatedTarget===n){if(0===t?(i=r,s=this._rowElements.pop(),this._rowContainer.removeChild(s)):(i=this._rowElements.shift(),s=r,this._rowContainer.removeChild(i)),i.removeEventListener("focus",this._topBoundaryFocusListener),s.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){let e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{let e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let e=this._rowContainer.children.length;ee;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function i(e){return e.replace(/\r?\n/g,"\r")}function s(e,t){return t?"\x1b[200~"+e+"\x1b[201~":e}function r(e,t,r,n){e=s(e=i(e),r.decPrivateModes.bracketedPasteMode&&!0!==n.rawOptions.ignoreBracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function n(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=s,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i,s){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,i,s)},t.paste=r,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(e,t,i,s,r){n(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;let s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},6465:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;let n=i(3656),o=i(8460),a=i(844),h=i(2585),l=t.Linkifier2=class extends a.Disposable{get currentLink(){return this._currentLink}constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new o.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{let t=this._linkProviders.indexOf(e);-1!==t&&this._linkProviders.splice(t,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;let i=e.composedPath();for(let e=0;e{null==e||e.forEach(e=>{e.link.dispose&&e.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(let[i,n]of this._linkProviders.entries())t?(null===(s=this._activeProviderReplies)||void 0===s?void 0:s.get(i))&&(r=this._checkLinkProviderResult(i,e,r)):n.provideLinks(e.y,t=>{var s,n;if(this._isMouseOut)return;let o=null==t?void 0:t.map(e=>({link:e}));null===(s=this._activeProviderReplies)||void 0===s||s.set(i,o),r=this._checkLinkProviderResult(i,e,r),(null===(n=this._activeProviderReplies)||void 0===n?void 0:n.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)})}_removeIntersectingLinks(e,t){let i=new Set;for(let s=0;se?this._bufferService.cols:s.link.range.end.x;for(let e=n;e<=o;e++){if(i.has(e)){r.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){var s;if(!this._activeProviderReplies)return i;let r=this._activeProviderReplies.get(e),n=!1;for(let t=0;tthis._linkAtPosition(e.link,t));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let e=0;ethis._linkAtPosition(e.link,t));if(r){i=!0,this._handleNewLink(r);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;let t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;let t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.pointerCursor},set:e=>{var t,i;(null===(t=this._currentLink)||void 0===t?void 0:t.state)&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&(null===(i=this._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.underline},set:t=>{var i,s,r;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(s=this._currentLink)||void 0===s?void 0:s.state)||void 0===r?void 0:r.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e=>{if(!this._currentLink)return;let t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._bufferService.buffer.ydisp+1+e.end;if(this._currentLink.link.range.start.y>=t&&this._currentLink.link.range.end.y<=i&&(this._clearCurrentLink(t,i),this._lastMouseEvent&&this._element)){let e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._askForLink(e,!1)}})))}_linkHover(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){let i=e.range,s=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-s-1,i.end.x,i.end.y-s-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){let i=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=s}_positionFromMouseEvent(e,t,i){let s=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}};t.Linkifier2=s([r(0,h.IBufferService)],l)},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;let n=i(511),o=i(2585),a=t.OscLinkProvider=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var i;let s=this._bufferService.buffer.lines.get(e-1);if(!s)return void t(void 0);let r=[],o=this._optionsService.rawOptions.linkHandler,a=new n.CellData,h=s.getTrimmedLength(),l=-1,c=-1,d=!1;for(let t=0;to?o.activate(e,t,i):function(e,t){if(confirm(`Do you want to navigate to ${t}? + +WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch(e){}e.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}(0,t),hover:(e,t)=>{var s;return null===(s=null==o?void 0:o.hover)||void 0===s?void 0:s.call(o,e,t,i)},leave:(e,t)=>{var s;return null===(s=null==o?void 0:o.leave)||void 0===s?void 0:s.call(o,e,t,i)}})}d=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,l=a.extended.urlId):(c=-1,l=-1)}}t(r)}};t.OscLinkProvider=s([r(0,o.IBufferService),r(1,o.IOptionsService),r(2,o.IOscLinkService)],a)},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;let s=i(844);class r extends s.Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,s.toDisposable)(()=>{this.clearListener()}))}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=r},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;let s=i(3614),r=i(3656),n=i(6465),o=i(9042),a=i(3730),h=i(1680),l=i(3107),c=i(5744),d=i(2950),_=i(1296),u=i(428),f=i(4269),v=i(5114),g=i(8934),p=i(3230),m=i(9312),S=i(4725),C=i(6731),b=i(8055),y=i(8969),w=i(8460),E=i(844),k=i(6114),x=i(8437),L=i(2584),D=i(7399),R=i(5941),A=i(9074),B=i(2585),T=i(5435),M=i(4567),O="undefined"!=typeof window?window.document:null;class P extends y.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(e={}){super(e),this.browser=k,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new E.MutableDisposable),this._onCursorMove=this.register(new w.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new w.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new w.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new w.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new w.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new w.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new w.EventEmitter),this._onBlur=this.register(new w.EventEmitter),this._onA11yCharEmitter=this.register(new w.EventEmitter),this._onA11yTabEmitter=this.register(new w.EventEmitter),this._onWillOpen=this.register(new w.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(n.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(a.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(A.DecorationService),this._instantiationService.setService(B.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((e,t)=>this.refresh(e,t))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(e=>this._reportWindowsOptions(e))),this.register(this._inputHandler.onColor(e=>this._handleColorEvent(e))),this.register((0,w.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,w.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,w.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(e=>this._afterResize(e.cols,e.rows))),this.register((0,E.toDisposable)(()=>{var e,t;this._customKeyEventHandler=void 0,null===(t=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.element)}))}_handleColorEvent(e){if(this._themeService)for(let t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:let s=b.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${L.C0.ESC}]${i};${(0,R.toRgbString)(s)}${L.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors(e=>e.ansi[t.index]=b.rgba.toColor(...t.color));else{let i=e;this._themeService.modifyColors(e=>e[i]=b.rgba.toColor(...t.color))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){e?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(L.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(L.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;let i=Math.min(this.buffer.x,this.cols-1),s=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*r,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=s+"px",this.textarea.style.lineHeight=s+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,r.addDisposableDomListener)(this.element,"copy",e=>{this.hasSelection()&&(0,s.copyHandler)(e,this._selectionService)}));let e=e=>(0,s.handlePasteEvent)(e,this.textarea,this.coreService,this.optionsService);this.register((0,r.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,r.addDisposableDomListener)(this.element,"paste",e)),k.isFirefox?this.register((0,r.addDisposableDomListener)(this.element,"mousedown",e=>{2===e.button&&(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,r.addDisposableDomListener)(this.element,"contextmenu",e=>{(0,s.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),k.isLinux&&this.register((0,r.addDisposableDomListener)(this.element,"auxclick",e=>{1===e.button&&(0,s.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,r.addDisposableDomListener)(this.textarea,"keyup",e=>this._keyUp(e),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keydown",e=>this._keyDown(e),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"keypress",e=>this._keyPress(e),!0)),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionupdate",e=>this._compositionHelper.compositionupdate(e))),this.register((0,r.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,r.addDisposableDomListener)(this.textarea,"input",e=>this._inputEvent(e),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(e){var t;if(!e)throw Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),e.appendChild(this.element);let i=O.createDocumentFragment();this._viewportElement=O.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=O.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=O.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=O.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this.textarea=O.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",o.promptLabel),k.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(v.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(S.ICoreBrowserService,this._coreBrowserService),this.register((0,r.addDisposableDomListener)(this.textarea,"focus",e=>this._handleTextAreaFocus(e))),this.register((0,r.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(u.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(C.ThemeService),this._instantiationService.setService(S.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(f.CharacterJoinerService),this._instantiationService.setService(S.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(p.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(e=>this._onRender.fire(e))),this.onResize(e=>this._renderService.resize(e.cols,e.rows)),this._compositionView=O.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(d.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(i);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(g.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(h.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(m.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(e=>this.scrollLines(e.amount,e.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,r.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(l.BufferDecorationRenderer,this.screenElement)),this.register((0,r.addDisposableDomListener)(this.element,"mousedown",e=>this._selectionService.handleMouseDown(e))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(M.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",e=>this._handleScreenReaderModeOptionChange(e))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(c.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(c.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(_.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){let e=this,t=this.element;function i(t){let i,s;let r=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!r)return!1;switch(t.overrideType||t.type){case"mousemove":s=32,void 0===t.buttons?(i=3,void 0!==t.button&&(i=t.button<3?t.button:3)):i=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":s=0,i=t.button<3?t.button:3;break;case"mousedown":s=1,i=t.button<3?t.button:3;break;case"wheel":if(0===e.viewport.getLinesScrolled(t))return!1;s=t.deltaY<0?0:1,i=4;break;default:return!1}return!(void 0===s||void 0===i||i>4)&&e.coreMouseService.triggerMouseEvent({col:r.col,row:r.row,x:r.x,y:r.y,button:i,action:s,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}let s={mouseup:null,wheel:null,mousedrag:null,mousemove:null},n={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.removeEventListener("mousemove",s.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange(e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?s.mousemove||(t.addEventListener("mousemove",n.mousemove),s.mousemove=n.mousemove):(t.removeEventListener("mousemove",s.mousemove),s.mousemove=null),16&e?s.wheel||(t.addEventListener("wheel",n.wheel,{passive:!1}),s.wheel=n.wheel):(t.removeEventListener("wheel",s.wheel),s.wheel=null),2&e?s.mouseup||(t.addEventListener("mouseup",n.mouseup),s.mouseup=n.mouseup):(this._document.removeEventListener("mouseup",s.mouseup),t.removeEventListener("mouseup",s.mouseup),s.mouseup=null),4&e?s.mousedrag||(s.mousedrag=n.mousedrag):(this._document.removeEventListener("mousemove",s.mousedrag),s.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,r.addDisposableDomListener)(t,"mousedown",e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),s.mouseup&&this._document.addEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.addEventListener("mousemove",s.mousedrag),this.cancel(e)})),this.register((0,r.addDisposableDomListener)(t,"wheel",e=>{if(!s.wheel){if(!this.buffer.hasScrollback){let t=this.viewport.getLinesScrolled(e);if(0===t)return;let i=L.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B"),s="";for(let e=0;e{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)},{passive:!0})),this.register((0,r.addDisposableDomListener)(t,"touchmove",e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)},{passive:!1}))}refresh(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)}updateCursorStyle(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){var s;1===i?(super.scrollLines(e,t,i),this.refresh(0,this.rows-1)):null===(s=this.viewport)||void 0===s||s.scrollLines(e)}paste(e){(0,s.paste)(e,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw Error("Terminal must be opened first");let t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}selectAll(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}selectLines(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;let t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);let i=(0,D.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){let t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&90>=e.key.charCodeAt(0))||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==L.C0.ETX&&i.key!==L.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){let i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(16===e.keyCode||17===e.keyCode||18===e.keyCode||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i,s;null===(i=this._charSizeService)||void 0===i||i.measure(),null===(s=this.viewport)||void 0===s||s.syncScrollArea(!0)}clear(){var e;if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;let s=Date.now();if(s-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=s,this._innerRefresh();else if(!this._additionalRefreshRequested){let e=s-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;let e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;let n=i(3656),o=i(4725),a=i(8460),h=i(844),l=i(2585),c=t.Viewport=class extends h.Disposable{constructor(e,t,i,s,r,o,h,l){super(),this._viewportElement=e,this._scrollArea=t,this._bufferService=i,this._optionsService=s,this._charSizeService=r,this._renderService=o,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new a.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,n.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(e=>this._renderDimensions=e)),this._handleThemeChange(l.colors),this.register(l.onChangeColors(e=>this._handleThemeChange(e))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;let e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}let e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});let t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:t,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;let e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){let i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&ithis._smoothScrollPercent()?(this._smoothScrollState.origin=this._viewportElement.scrollTop,-1===this._smoothScrollState.target?this._smoothScrollState.target=this._viewportElement.scrollTop+t:this._smoothScrollState.target+=t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()):this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}scrollLines(e){if(0!==e){if(this._optionsService.rawOptions.smoothScrollDuration){let t=e*this._currentRowHeight;this._smoothScrollState.startTime=Date.now(),1>this._smoothScrollPercent()?(this._smoothScrollState.origin=this._viewportElement.scrollTop,this._smoothScrollState.target=this._smoothScrollState.origin+t,this._smoothScrollState.target=Math.max(Math.min(this._smoothScrollState.target,this._viewportElement.scrollHeight),0),this._smoothScroll()):this._clearSmoothScrollState()}else this._onRequestScrollLines.fire({amount:e,suppressScrollEvent:!1})}}_getPixelsScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._currentRowHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._currentRowHeight*this._bufferService.rows),t}getBufferElements(e,t){var i;let s,r="",n=[],o=null!=t?t:this._bufferService.buffer.lines.length,a=this._bufferService.buffer.lines;for(let t=e;t0&&(s=e),r=""}}return{bufferElements:n,cursorElement:s}}getLinesScrolled(e){if(0===e.deltaY||e.shiftKey)return 0;let t=this._applyScrollModifier(e.deltaY,e);return e.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(t/=this._currentRowHeight+0,this._wheelPartialScroll+=t,t=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){let i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){let t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};t.Viewport=s([r(2,l.IBufferService),r(3,l.IOptionsService),r(4,o.ICharSizeService),r(5,o.IRenderService),r(6,o.ICoreBrowserService),r(7,o.IThemeService)],c)},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;let n=i(3656),o=i(4725),a=i(844),h=i(2585),l=t.BufferDecorationRenderer=class extends a.Disposable{constructor(e,t,i,s){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register((0,n.addDisposableDomListener)(window,"resize",()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(e=>this._removeDecoration(e))),this.register((0,a.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t,i;let s=document.createElement("div");s.classList.add("xterm-decoration"),s.classList.toggle("xterm-decoration-top-layer","top"===(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.layer)),s.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,s.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",s.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",s.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let r=null!==(i=e.options.x)&&void 0!==i?i:0;return r&&r>this._bufferService.cols&&(s.style.display="none"),this._refreshXPosition(e,s),s}_refreshStyle(e){let t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i),e.onDispose(()=>{this._decorationElements.delete(e),i.remove()})),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){var i;if(!t)return;let s=null!==(i=e.options.x)&&void 0!==i?i:0;"right"===(e.options.anchor||"left")?t.style.right=s?s*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=s?s*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}};t.BufferDecorationRenderer=s([r(1,h.IBufferService),r(2,h.IDecorationService),r(3,o.IRenderService)],l)},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(let t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;let n=i(5871),o=i(3656),a=i(4725),h=i(844),l=i(2585),c={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0},_={full:0,left:0,center:0,right:0},u=t.OverviewRulerRenderer=class extends h.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(e,t,i,s,r,o,a){var l;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=o,this._coreBrowseService=a,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(l=this._viewportElement.parentElement)||void 0===l||l.insertBefore(this._canvas,this._viewportElement);let c=this._canvas.getContext("2d");if(!c)throw Error("Ctx cannot be null");this._ctx=c,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,h.toDisposable)(()=>{var e;null===(e=this._canvas)||void 0===e||e.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register((0,o.addDisposableDomListener)(this._coreBrowseService.window,"resize",()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){let e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);d.full=this._canvas.width,d.left=e,d.center=t,d.right=e,this._refreshDrawHeightConstants(),_.full=0,_.left=0,_.center=d.left,_.right=d.left+d.center}_refreshDrawHeightConstants(){c.full=Math.round(2*this._coreBrowseService.dpr);let e=Math.round(Math.max(Math.min(this._canvas.height/this._bufferService.buffer.lines.length,12),6)*this._coreBrowseService.dpr);c.left=e,c.center=e,c.right=e}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*c.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){for(let e of(this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear(),this._decorationService.decorations))this._colorZoneStore.addDecoration(e);this._ctx.lineWidth=1;let e=this._colorZoneStore.zones;for(let t of e)"full"!==t.position&&this._renderColorZone(t);for(let t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(_[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-c[e.position||"full"]/2),d[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+c[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};t.OverviewRulerRenderer=s([r(2,l.IBufferService),r(3,l.IDecorationService),r(4,a.IRenderService),r(5,l.IOptionsService),r(6,a.ICoreBrowserService)],u)},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;let n=i(4725),o=i(2585),a=i(2584),h=t.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode||16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){let e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,(t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start)).length>0&&this._coreService.triggerDataEvent(t,!0)}},0)}else{this._isSendingComposition=!1;let e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){let e=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0),0)}}};t.CompositionHelper=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],h)},9806:(e,t)=>{function i(e,t,i){let s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,s,r,n,o,a,h,l){if(!o)return;let c=i(e,t,s);return c?(c[0]=Math.ceil((c[0]+(l?a/2:0))/a),c[1]=Math.ceil(c[1]/h),c[0]=Math.min(Math.max(c[0],1),r+(l?1:0)),c[1]=Math.min(Math.max(c[1],1),n),c):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;let s=i(2584);function r(e,t,i,s){return h(Math.abs(e-n(e,i)-(t-n(t,i)))-function(e,t,i){let s=0,r=e-n(e,i),o=t-n(t,i);for(let n=0;nt?"A":"B")?-1:1,a=i.buffer.lines.get(r+o*n);(null==a?void 0:a.isWrapped)&&s++}return s}(e,t,i),a(e>t?"A":"B",s))}function n(e,t){let i=0,s=t.buffer.lines.get(e),r=null==s?void 0:s.isWrapped;for(;r&&e>=0&&en.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),e=o=n.cols-1,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function a(e,t){return s.C0.ESC+(t?"O":"[")+e}function h(e,t){e=Math.floor(e);let i="";for(let s=0;s0?s-n(s,l):t;let u=(_=r(i,s,l,c).length>0?s-n(s,l):t,e=i&&_e?"D":"C",h(Math.abs(d-e),a(c,s));c=_>t?"D":"C";let u=Math.abs(_-t);return h((l=_>t?e:d,i.cols-l+(u-1)*i.cols+1+((_>t?d:e)-1)),a(c,s))}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;let n=i(3787),o=i(2550),a=i(2223),h=i(6171),l=i(4725),c=i(8055),d=i(8460),_=i(844),u=i(2585),f="xterm-dom-renderer-owner-",v="xterm-rows",g="xterm-fg-",p="xterm-bg-",m="xterm-focus",S="xterm-selection",C=1,b=t.DomRenderer=class extends _.Disposable{constructor(e,t,i,s,r,a,l,c,u,g){super(),this._element=e,this._screenElement=t,this._viewportElement=i,this._linkifier2=s,this._charSizeService=a,this._optionsService=l,this._bufferService=c,this._coreBrowserService=u,this._themeService=g,this._terminalClass=C++,this._rowElements=[],this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add(v),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add(S),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,h.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(e=>this._injectCss(e))),this._injectCss(this._themeService.colors),this._rowFactory=r.createInstance(n.DomRendererRowFactory,document),this._element.classList.add(f+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(e=>this._handleLinkHover(e))),this.register(this._linkifier2.onHideLinkUnderline(e=>this._handleLinkLeave(e))),this.register((0,_.toDisposable)(()=>{this._element.classList.remove(f+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new o.WidthCache(document),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let e=this._coreBrowserService.dpr;for(let t of(this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows,this._rowElements))t.style.width=`${this.dimensions.css.canvas.width}px`,t.style.height=`${this.dimensions.css.cell.height}px`,t.style.lineHeight=`${this.dimensions.css.cell.height}px`,t.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let t=`${this._terminalSelector} .${v} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .${v} { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;for(let[i,s]of(t+=`${this._terminalSelector} .${v} .xterm-dim { color: ${c.color.multiplyOpacity(e.foreground,.5).css};}${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}@keyframes blink_box_shadow_`+this._terminalClass+" { 50% { border-bottom-style: hidden; }}"+("@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${e.cursor.css};`)+` color: ${e.cursorAccent.css}; } 50% { background-color: inherit;`+` color: ${e.cursor.css}; }}`+(`${this._terminalSelector} .${v}.${m} .xterm-cursor.xterm-cursor-blink:not(.xterm-cursor-block) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${v}.${m} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-block {`+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css};}`+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-outline {`+` outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}`+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-bar {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}`)+`${this._terminalSelector} .${v} .xterm-cursor.xterm-cursor-underline {`+` border-bottom: 1px ${e.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`+`${this._terminalSelector} .${S} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${S} div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .${S} div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`,e.ansi.entries()))t+=`${this._terminalSelector} .${g}${i} { color: ${s.css}; }${this._terminalSelector} .${g}${i}.xterm-dim { color: ${c.color.multiplyOpacity(s,.5).css}; }${this._terminalSelector} .${p}${i} { background-color: ${s.css}; }`;t+=`${this._terminalSelector} .${g}${a.INVERTED_DEFAULT_COLOR} { color: ${c.color.opaque(e.background).css}; }${this._terminalSelector} .${g}${a.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${c.color.multiplyOpacity(c.color.opaque(e.background),.5).css}; }${this._terminalSelector} .${p}${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}_setDefaultSpacing(){let e=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${e}px`,this._rowFactory.defaultSpacing=e}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(e,t){for(let e=this._rowElements.length;e<=t;e++){let e=document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(m)}handleFocus(){this._rowContainer.classList.add(m),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(e,t,i){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;let s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),o=Math.min(r,this._bufferService.rows-1);if(n>=this._bufferService.rows||o<0)return;let a=document.createDocumentFragment();if(i){let i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,i?t[0]:e[0],i?e[0]:t[0],o-n+1))}else{let i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;if(a.appendChild(this._createSelectionElement(n,i,h)),a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,o-n-1)),n!==o){let e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,s=1){let r=document.createElement("div");return r.style.height=s*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=t*this.dimensions.css.cell.width+"px",r.style.width=this.dimensions.css.cell.width*(i-t)+"px",r}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let e of this._rowElements)e.replaceChildren()}renderRows(e,t){let i=this._bufferService.buffer,s=i.ybase+i.y,r=Math.min(i.x,this._bufferService.cols-1),n=this._optionsService.rawOptions.cursorBlink,o=this._optionsService.rawOptions.cursorStyle,a=this._optionsService.rawOptions.cursorInactiveStyle;for(let h=e;h<=t;h++){let e=h+i.ydisp,t=this._rowElements[h],l=i.lines.get(e);if(!t||!l)break;t.replaceChildren(...this._rowFactory.createRow(l,e,e===s,o,a,r,n,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${f}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){i<0&&(e=0),s<0&&(t=0);let o=this._bufferService.rows-1;i=Math.max(Math.min(i,o),0),s=Math.max(Math.min(s,o),0),r=Math.min(r,this._bufferService.cols);let a=this._bufferService.buffer,h=a.ybase+a.y,l=Math.min(a.x,r-1),c=this._optionsService.rawOptions.cursorBlink,d=this._optionsService.rawOptions.cursorStyle,_=this._optionsService.rawOptions.cursorInactiveStyle;for(let o=i;o<=s;++o){let u=o+a.ydisp,f=this._rowElements[o],v=a.lines.get(u);if(!f||!v)break;f.replaceChildren(...this._rowFactory.createRow(v,u,u===h,d,_,l,c,this.dimensions.css.cell.width,this._widthCache,n?o===i?e:0:-1,n?(o===s?t:r)-1:-1))}}};t.DomRenderer=s([r(4,u.IInstantiationService),r(5,l.ICharSizeService),r(6,u.IOptionsService),r(7,u.IBufferService),r(8,l.ICoreBrowserService),r(9,l.IThemeService)],b)},3787:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=void 0;let n=i(2223),o=i(643),a=i(511),h=i(2585),l=i(8055),c=i(4725),d=i(4269),_=i(6171),u=i(3734),f=t.DomRendererRowFactory=class{constructor(e,t,i,s,r,n,o){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=s,this._coreService=r,this._decorationService=n,this._themeService=o,this._workCell=new a.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,t,i,s,r,a,h,c,_,f,g){let p=[],m=this._characterJoinerService.getJoinedCharacters(t),S=this._themeService.colors,C,b=e.getNoBgTrimmedLength();i&&b0&&M===m[0][0]){O=!0;let t=m.shift();I=new d.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),P=t[1]-1,b=I.getWidth()}let H=this._isCellInSelection(M,t),F=i&&M===a,W=T&&M>=f&&M<=g,U=!1;this._decorationService.forEachDecorationAtCell(M,t,void 0,e=>{U=!0});let N=I.getChars()||o.WHITESPACE_CELL_CHAR;if(" "===N&&(I.isUnderline()||I.isOverline())&&(N="\xa0"),A=b*c-_.get(N,I.isBold(),I.isItalic()),C){if(y&&(H&&R||!H&&!R&&I.bg===E)&&(H&&R&&S.selectionForeground||I.fg===k)&&I.extended.ext===x&&W===L&&A===D&&!F&&!O&&!U){w+=N,y++;continue}y&&(C.textContent=w),C=this._document.createElement("span"),y=0,w=""}else C=this._document.createElement("span");if(E=I.bg,k=I.fg,x=I.extended.ext,L=W,D=A,R=H,O&&a>=M&&a<=P&&(a=M),!this._coreService.isCursorHidden&&F){if(B.push("xterm-cursor"),this._coreBrowserService.isFocused)h&&B.push("xterm-cursor-blink"),B.push("bar"===s?"xterm-cursor-bar":"underline"===s?"xterm-cursor-underline":"xterm-cursor-block");else if(r)switch(r){case"outline":B.push("xterm-cursor-outline");break;case"block":B.push("xterm-cursor-block");break;case"bar":B.push("xterm-cursor-bar");break;case"underline":B.push("xterm-cursor-underline")}}if(I.isBold()&&B.push("xterm-bold"),I.isItalic()&&B.push("xterm-italic"),I.isDim()&&B.push("xterm-dim"),w=I.isInvisible()?o.WHITESPACE_CELL_CHAR:I.getChars()||o.WHITESPACE_CELL_CHAR,I.isUnderline()&&(B.push(`xterm-underline-${I.extended.underlineStyle}`)," "===w&&(w="\xa0"),!I.isUnderlineColorDefault())){if(I.isUnderlineColorRGB())C.style.textDecorationColor=`rgb(${u.AttributeData.toColorRGB(I.getUnderlineColor()).join(",")})`;else{let e=I.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&I.isBold()&&e<8&&(e+=8),C.style.textDecorationColor=S.ansi[e].css}}I.isOverline()&&(B.push("xterm-overline")," "===w&&(w="\xa0")),I.isStrikethrough()&&B.push("xterm-strikethrough"),W&&(C.style.textDecoration="underline");let $=I.getFgColor(),j=I.getFgColorMode(),z=I.getBgColor(),K=I.getBgColorMode(),q=!!I.isInverse();if(q){let e=$;$=z,z=e;let t=j;j=K,K=t}let V,G,X,J=!1;switch(this._decorationService.forEachDecorationAtCell(M,t,void 0,e=>{"top"!==e.options.layer&&J||(e.backgroundColorRGB&&(K=0x3000000,z=e.backgroundColorRGB.rgba>>8&0xffffff,V=e.backgroundColorRGB),e.foregroundColorRGB&&(j=0x3000000,$=e.foregroundColorRGB.rgba>>8&0xffffff,G=e.foregroundColorRGB),J="top"===e.options.layer)}),!J&&H&&(z=(V=this._coreBrowserService.isFocused?S.selectionBackgroundOpaque:S.selectionInactiveBackgroundOpaque).rgba>>8&0xffffff,K=0x3000000,J=!0,S.selectionForeground&&(j=0x3000000,$=S.selectionForeground.rgba>>8&0xffffff,G=S.selectionForeground)),J&&B.push("xterm-decoration-top"),K){case 0x1000000:case 0x2000000:X=S.ansi[z],B.push(`xterm-bg-${z}`);break;case 0x3000000:X=l.rgba.toColor(z>>16,z>>8&255,255&z),this._addStyle(C,`background-color:#${v((z>>>0).toString(16),"0",6)}`);break;default:q?(X=S.foreground,B.push(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):X=S.background}switch(V||I.isDim()&&(V=l.color.multiplyOpacity(X,.5)),j){case 0x1000000:case 0x2000000:I.isBold()&&$<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&($+=8),this._applyMinimumContrast(C,X,S.ansi[$],I,V,void 0)||B.push(`xterm-fg-${$}`);break;case 0x3000000:let Y=l.rgba.toColor($>>16&255,$>>8&255,255&$);this._applyMinimumContrast(C,X,Y,I,V,G)||this._addStyle(C,`color:#${v($.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(C,X,S.foreground,I,V,void 0)||q&&B.push(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}B.length&&(C.className=B.join(" "),B.length=0),F||O||U?C.textContent=w:y++,A!==this.defaultSpacing&&(C.style.letterSpacing=`${A}px`),p.push(C),M=P}return C&&y&&(C.textContent=w),p}_applyMinimumContrast(e,t,i,s,r,n){let o;if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,_.excludeFromContrastRatioDemands)(s.getCode()))return!1;let a=this._getContrastCache(s);if(r||n||(o=a.getColor(t.rgba,i.rgba)),void 0===o){let e=this._optionsService.rawOptions.minimumContrastRatio/(s.isDim()?2:1);o=l.color.ensureContrastRatio(r||t,n||i,e),a.setColor((r||t).rgba,(n||i).rgba,null!=o?o:null)}return!!o&&(this._addStyle(e,`color:${o.css}`),!0)}_getContrastCache(e){return e.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){let i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t=i[0]&&e=i[0])}};function v(e,t,i){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.WidthCache=void 0,t.WidthCache=class{constructor(e){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=e.createElement("div"),this._container.style.position="absolute",this._container.style.top="-50000px",this._container.style.width="50000px",this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let t=e.createElement("span"),i=e.createElement("span");i.style.fontWeight="bold";let s=e.createElement("span");s.style.fontStyle="italic";let r=e.createElement("span");r.style.fontWeight="bold",r.style.fontStyle="italic",this._measureElements=[t,i,s,r],this._container.appendChild(t),this._container.appendChild(i),this._container.appendChild(s),this._container.appendChild(r),e.body.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(e,t,i,s){e===this._font&&t===this._fontSize&&i===this._weight&&s===this._weightBold||(this._font=e,this._fontSize=t,this._weight=i,this._weightBold=s,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${i}`,this._measureElements[1].style.fontWeight=`${s}`,this._measureElements[2].style.fontWeight=`${i}`,this._measureElements[3].style.fontWeight=`${s}`,this.clear())}get(e,t,i){let s=0;if(!t&&!i&&1===e.length&&(s=e.charCodeAt(0))<256)return -9999!==this._flat[s]?this._flat[s]:this._flat[s]=this._measure(e,0);let r=e;t&&(r+="B"),i&&(r+="I");let n=this._holey.get(r);if(void 0===n){let s=0;t&&(s|=1),i&&(s|=2),n=this._measure(e,s),this._holey.set(r,n)}return n}_measure(e,t){let i=this._measureElements[t];return i.textContent=e.repeat(32),i.offsetWidth/32}}},2223:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;let s=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||9472<=e&&e<=9631},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;let n=i(2585),o=i(8460),a=i(844),h=t.CharSizeService=class extends a.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new o.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new l(e,t,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){let e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};t.CharSizeService=h=s([r(2,n.IOptionsService)],h);class l{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;let e={height:Number(this._measureElement.offsetHeight),width:Number(this._measureElement.offsetWidth)};return 0!==e.width&&0!==e.height&&(this._result.width=e.width/32,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;let n=i(3734),o=i(643),a=i(511),h=i(2585);class l extends n.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=l;let c=t.CharacterJoinerService=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){let t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){let e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t1){let e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;let n=i(4725),o=i(9806),a=t.MouseService=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){let i=(0,o.getCoordsRelativeToElement)(window,e,t);if(this._charSizeService.hasValidSize)return i[0]=Math.min(Math.max(i[0],0),this._renderService.dimensions.css.canvas.width-1),i[1]=Math.min(Math.max(i[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};t.MouseService=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],a)},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;let n=i(3656),o=i(6193),a=i(5596),h=i(4725),l=i(8460),c=i(844),d=i(7226),_=i(2585),u=t.RenderService=class extends c.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(e,t,i,s,r,h,_,u){if(super(),this._rowCount=e,this._charSizeService=s,this._renderer=this.register(new c.MutableDisposable),this._pausedResizeTask=new d.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new l.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new l.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new l.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new l.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new o.RenderDebouncer(_.window,(e,t)=>this._renderRows(e,t)),this.register(this._renderDebouncer),this._screenDprMonitor=new a.ScreenDprMonitor(_.window),this._screenDprMonitor.setListener(()=>this.handleDevicePixelRatioChange()),this.register(this._screenDprMonitor),this.register(h.onResize(()=>this._fullRefresh())),this.register(h.buffers.onBufferActivate(()=>{var e;return null===(e=this._renderer.value)||void 0===e?void 0:e.clear()})),this.register(i.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(r.onDecorationRegistered(()=>this._fullRefresh())),this.register(r.onDecorationRemoved(()=>this._fullRefresh())),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],()=>{this.clear(),this.handleResize(h.cols,h.rows),this._fullRefresh()})),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(h.buffer.y,h.buffer.y,!0))),this.register((0,n.addDisposableDomListener)(_.window,"resize",()=>this.handleDevicePixelRatioChange())),this.register(u.onChangeColors(()=>this._fullRefresh())),"IntersectionObserver"in _.window){let e=new _.window.IntersectionObserver(e=>this._handleIntersectionChange(e[e.length-1]),{threshold:0});e.observe(t),this.register({dispose:()=>e.disconnect()})}}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer.value&&(e=Math.min(e,this._rowCount-1),t=Math.min(t,this._rowCount-1),this._renderer.value.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(e){this._renderer.value=e,this._renderer.value.onRequestRedraw(e=>this.refreshRows(e.start,e.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer.value&&(null===(t=(e=this._renderer.value).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value.handleResize(e,t)):this._renderer.value.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCharSizeChanged()}handleBlur(){var e;null===(e=this._renderer.value)||void 0===e||e.handleBlur()}handleFocus(){var e;null===(e=this._renderer.value)||void 0===e||e.handleFocus()}handleSelectionChanged(e,t,i){var s;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,null===(s=this._renderer.value)||void 0===s||s.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;null===(e=this._renderer.value)||void 0===e||e.handleCursorMove()}clear(){var e;null===(e=this._renderer.value)||void 0===e||e.clear()}};t.RenderService=s([r(2,_.IOptionsService),r(3,h.ICharSizeService),r(4,_.IDecorationService),r(5,_.IBufferService),r(6,h.ICoreBrowserService),r(7,h.IThemeService)],u)},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;let n=i(9806),o=i(9504),a=i(456),h=i(4725),l=i(8460),c=i(844),d=i(6114),_=i(4841),u=i(511),f=i(2585),v=RegExp(String.fromCharCode(160),"g"),g=t.SelectionService=class extends c.Disposable{constructor(e,t,i,s,r,n,o,h,d){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=o,this._renderService=h,this._coreBrowserService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new u.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new l.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new l.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new l.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new l.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(e=>this._handleTrim(e)),this.register(this._bufferService.buffers.onBufferActivate(e=>this._handleBufferActivate(e))),this.enable(),this._model=new a.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,c.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";let i=this._bufferService.buffer,s=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";let r=e[0]e.replace(v," ")).join(d.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),d.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){let t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!!(i&&s&&t)&&this._areCoordsInSelection(t,i,s)}isCellInSelection(e,t){let i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){var i,s;let r=null===(s=null===(i=this._linkifier.currentLink)||void 0===i?void 0:i.link)||void 0===s?void 0:s.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=(0,_.getRangeLength)(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let n=this._getMouseBufferCoords(e);return!!n&&(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){let t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,n.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1],i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),(t=Math.min(Math.max(t,-50),50)/50)/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return d.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){let t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(d.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;let t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let i=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){let t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){let e=(0,o.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim(e=>this._handleTrim(e))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let s=0;t>=s;s++){let r=e.loadCell(s,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:r>1&&t!==s&&(i+=r-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,s=!0){if(e[0]>=this._bufferService.cols)return;let r=this._bufferService.buffer,n=r.lines.get(e[1]);if(!n)return;let o=r.translateBufferLineToString(e[1],!1),a=this._convertViewportColToCharacterIndex(n,e[0]),h=a,l=e[0]-a,c=0,d=0,_=0,u=0;if(" "===o.charAt(a)){for(;a>0&&" "===o.charAt(a-1);)a--;for(;h1&&(u+=s-1,h+=s-1);t>0&&a>0&&!this._isCharWordSeparator(n.loadCell(t-1,this._workCell));){n.loadCell(t-1,this._workCell);let e=this._workCell.getChars().length;0===this._workCell.getWidth()?(c++,t--):e>1&&(_+=e-1,a-=e-1),a--,t--}for(;i1&&(u+=e-1,h+=e-1),h++,i++}}h++;let f=a+l-c+_,v=Math.min(this._bufferService.cols,h-a+c+d-_-u);if(t||""!==o.slice(a,h).trim()){if(i&&0===f&&32!==n.getCodePoint(0)){let t=r.lines.get(e[1]-1);if(t&&n.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){let t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){let e=this._bufferService.cols-t.start;f-=e,v+=e}}}if(s&&f+v===this._bufferService.cols&&32!==n.getCodePoint(this._bufferService.cols-1)){let t=r.lines.get(e[1]+1);if((null==t?void 0:t.isWrapped)&&32!==t.getCodePoint(0)){let t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(v+=t.length)}}return{start:f,length:v}}}_selectWordAt(e,t){let i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){let t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){let t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,_.getRangeLength)(i,this._bufferService.cols)}};t.SelectionService=s([r(3,f.IBufferService),r(4,f.ICoreService),r(5,h.IMouseService),r(6,f.IOptionsService),r(7,h.IRenderService),r(8,h.ICoreBrowserService)],g)},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;let s=i(8343);t.ICharSizeService=(0,s.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,s.createDecorator)("CoreBrowserService"),t.IMouseService=(0,s.createDecorator)("MouseService"),t.IRenderService=(0,s.createDecorator)("RenderService"),t.ISelectionService=(0,s.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,s.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,s.createDecorator)("ThemeService")},6731:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;let n=i(7239),o=i(8055),a=i(8460),h=i(844),l=i(2585),c=o.css.toColor("#ffffff"),d=o.css.toColor("#000000"),_=o.css.toColor("#ffffff"),u=o.css.toColor("#000000"),f={css:"rgba(255, 255, 255, 0.3)",rgba:0xffffff4d};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let e=[o.css.toColor("#2e3436"),o.css.toColor("#cc0000"),o.css.toColor("#4e9a06"),o.css.toColor("#c4a000"),o.css.toColor("#3465a4"),o.css.toColor("#75507b"),o.css.toColor("#06989a"),o.css.toColor("#d3d7cf"),o.css.toColor("#555753"),o.css.toColor("#ef2929"),o.css.toColor("#8ae234"),o.css.toColor("#fce94f"),o.css.toColor("#729fcf"),o.css.toColor("#ad7fa8"),o.css.toColor("#34e2e2"),o.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){let s=t[i/36%6|0],r=t[i/6%6|0],n=t[i%6];e.push({css:o.channels.toCss(s,r,n),rgba:o.channels.toRgba(s,r,n)})}for(let t=0;t<24;t++){let i=8+10*t;e.push({css:o.channels.toCss(i,i,i),rgba:o.channels.toRgba(i,i,i)})}return e})());let v=t.ThemeService=class extends h.Disposable{get colors(){return this._colors}constructor(e){super(),this._optionsService=e,this._contrastCache=new n.ColorContrastCache,this._halfContrastCache=new n.ColorContrastCache,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:c,background:d,cursor:_,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:f,selectionBackgroundOpaque:o.color.blend(d,f),selectionInactiveBackgroundTransparent:f,selectionInactiveBackgroundOpaque:o.color.blend(d,f),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(e={}){let i=this._colors;if(i.foreground=g(e.foreground,c),i.background=g(e.background,d),i.cursor=g(e.cursor,_),i.cursorAccent=g(e.cursorAccent,u),i.selectionBackgroundTransparent=g(e.selectionBackground,f),i.selectionBackgroundOpaque=o.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=g(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=o.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?g(e.selectionForeground,o.NULL_COLOR):void 0,i.selectionForeground===o.NULL_COLOR&&(i.selectionForeground=void 0),o.color.isOpaque(i.selectionBackgroundTransparent)&&(i.selectionBackgroundTransparent=o.color.opacity(i.selectionBackgroundTransparent,.3)),o.color.isOpaque(i.selectionInactiveBackgroundTransparent)&&(i.selectionInactiveBackgroundTransparent=o.color.opacity(i.selectionInactiveBackgroundTransparent,.3)),i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=g(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=g(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=g(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=g(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=g(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=g(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=g(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=g(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=g(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=g(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=g(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=g(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=g(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=g(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=g(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=g(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){let s=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;let s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new s.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new s.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new s.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;let t=Array(e);for(let i=0;ithis._length)for(let t=this._length;t=e;t--)this._array[this._getCyclicIndex(t+i.length)]=this._array[this._getCyclicIndex(t)];for(let t=0;tthis._maxLength){let e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw Error("start argument out of range");if(e+i<0)throw Error("Cannot shift elements in list beyond index 0");if(i>0){for(let s=t-1;s>=0;s--)this.set(e+s+i,this.get(e+s));let s=e+t+i-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;let s=Array.isArray(t)?[]:{};for(let r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t,i)=>{var s,r,n,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;let h=i(6114),l=0,c=0,d=0,_=0;function u(e){let t=e.toString(16);return t.length<2?"0"+t:t}function f(e,t){return e>>0}}(s||(t.channels=s={})),function(e){function t(e,t){return _=Math.round(255*t),[l,c,d]=a.toChannels(e.rgba),{css:s.toCss(l,c,d,_),rgba:s.toRgba(l,c,d,_)}}e.blend=function(e,t){if(1==(_=(255&t.rgba)/255))return{css:t.css,rgba:t.rgba};let i=t.rgba>>24&255,r=t.rgba>>16&255,n=t.rgba>>8&255,o=e.rgba>>24&255,a=e.rgba>>16&255,h=e.rgba>>8&255;return l=o+Math.round((i-o)*_),c=a+Math.round((r-a)*_),d=h+Math.round((n-h)*_),{css:s.toCss(l,c,d),rgba:s.toRgba(l,c,d)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){let s=a.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return a.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){let t=(255|e.rgba)>>>0;return[l,c,d]=a.toChannels(t),{css:s.toCss(l,c,d),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return _=255&e.rgba,t(e,_*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(r||(t.color=r={})),function(e){let t,i;if(!h.isNode){let e=document.createElement("canvas");e.width=1,e.height=1;let s=e.getContext("2d",{willReadFrequently:!0});s&&((t=s).globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return l=parseInt(e.slice(1,2).repeat(2),16),c=parseInt(e.slice(2,3).repeat(2),16),d=parseInt(e.slice(3,4).repeat(2),16),a.toColor(l,c,d);case 5:return l=parseInt(e.slice(1,2).repeat(2),16),c=parseInt(e.slice(2,3).repeat(2),16),d=parseInt(e.slice(3,4).repeat(2),16),_=parseInt(e.slice(4,5).repeat(2),16),a.toColor(l,c,d,_);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}let r=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(r)return l=parseInt(r[1]),c=parseInt(r[2]),d=parseInt(r[3]),_=Math.round(255*(void 0===r[5]?1:parseFloat(r[5]))),a.toColor(l,c,d,_);if(!t||!i||(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)||(t.fillRect(0,0,1,1),[l,c,d,_]=t.getImageData(0,0,1,1).data,255!==_))throw Error("css.toColor: Unsupported css format");return{rgba:s.toRgba(l,c,d,_),css:e}}}(n||(t.css=n={})),function(e){function t(e,t,i){let s=e/255,r=t/255,n=i/255;return .2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(o||(t.rgb=o={})),function(e){function t(e,t,i){let s=e>>24&255,r=e>>16&255,n=e>>8&255,a=t>>24&255,h=t>>16&255,l=t>>8&255,c=f(o.relativeLuminance2(a,h,l),o.relativeLuminance2(s,r,n));for(;c0||h>0||l>0);)a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),l-=Math.max(0,Math.ceil(.1*l)),c=f(o.relativeLuminance2(a,h,l),o.relativeLuminance2(s,r,n));return(a<<24|h<<16|l<<8|255)>>>0}function i(e,t,i){let s=e>>24&255,r=e>>16&255,n=e>>8&255,a=t>>24&255,h=t>>16&255,l=t>>8&255,c=f(o.relativeLuminance2(a,h,l),o.relativeLuminance2(s,r,n));for(;c>>0}e.ensureContrastRatio=function(e,s,r){let n=o.relativeLuminance(e>>8),a=o.relativeLuminance(s>>8);if(f(n,a)>8));if(hf(n,o.relativeLuminance(t>>8))?a:t}return a}let h=i(e,s,r),l=f(n,o.relativeLuminance(h>>8));if(lf(n,o.relativeLuminance(i>>8))?h:i}return h}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,r){return{css:s.toCss(e,t,i,r),rgba:s.toRgba(e,t,i,r)}}}(a||(t.rgba=a={})),t.toPaddedHex=u,t.contrastRatio=f},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;let s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),l=i(6975),c=i(8460),d=i(1753),_=i(1480),u=i(7994),f=i(9282),v=i(5435),g=i(5981),p=i(2660),m=!1;class S extends s.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new c.EventEmitter),this._onScroll.event(e=>{var t;null===(t=this._onScrollApi)||void 0===t||t.fire(e.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(let t in e)this.optionsService.options[t]=e[t]}constructor(e){super(),this._windowsWrappingHeuristics=this.register(new s.MutableDisposable),this._onBinary=this.register(new c.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new c.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new c.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new c.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new c.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new h.OptionsService(e)),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(l.CoreService)),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(_.UnicodeService)),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(u.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(p.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new v.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,c.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,c.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,c.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,c.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new g.WriteBuffer((e,t)=>this._inputHandler.parse(e,t))),this.register((0,c.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!m&&(this._logService.warn("writeSync is unreliable and will be removed soon."),m=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(e){let t=e-this._bufferService.buffer.ydisp;0!==t&&this.scrollLines(t)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let e=!1,t=this.optionsService.rawOptions.windowsPty;t&&void 0!==t.buildNumber&&void 0!==t.buildNumber?e=!!("conpty"===t.backend&&t.buildNumber<21376):this.optionsService.rawOptions.windowsMode&&(e=!0),e?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let e=[];e.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},()=>((0,f.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,s.toDisposable)(()=>{for(let t of e)t.dispose()})}}}t.CoreTerminal=S},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed){for(let t=0;tt.fire(e))}},5435:function(e,t,i){var s,r,n=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},o=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;let a=i(2584),h=i(7116),l=i(2015),c=i(844),d=i(482),_=i(8437),u=i(8460),f=i(643),v=i(511),g=i(3734),p=i(2585),m=i(6242),S=i(6351),C=i(5941),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function y(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}(s=r||(t.WindowsOptionsReportType=r={}))[s.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",s[s.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS";let w=0;class E extends c.Disposable{getAttrData(){return this._curAttrData}constructor(e,t,i,s,r,n,o,c,f=new l.EscapeSequenceParser){for(let l in super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=s,this._optionsService=r,this._oscLinkService=n,this._coreMouseService=o,this._unicodeService=c,this._parser=f,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new d.StringToUtf32,this._utf8Decoder=new d.Utf8ToUtf32,this._workCell=new v.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=_.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=_.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new u.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new u.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new u.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new u.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new u.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new u.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new u.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new u.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new u.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new u.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new u.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new u.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new u.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new k(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(e=>this._activeBuffer=e.activeBuffer)),this._parser.setCsiHandlerFallback((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})}),this._parser.setEscHandlerFallback(e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})}),this._parser.setExecuteHandlerFallback(e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})}),this._parser.setOscHandlerFallback((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})}),this._parser.setDcsHandlerFallback((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})}),this._parser.setPrintHandler((e,t,i)=>this.print(e,t,i)),this._parser.registerCsiHandler({final:"@"},e=>this.insertChars(e)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},e=>this.scrollLeft(e)),this._parser.registerCsiHandler({final:"A"},e=>this.cursorUp(e)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},e=>this.scrollRight(e)),this._parser.registerCsiHandler({final:"B"},e=>this.cursorDown(e)),this._parser.registerCsiHandler({final:"C"},e=>this.cursorForward(e)),this._parser.registerCsiHandler({final:"D"},e=>this.cursorBackward(e)),this._parser.registerCsiHandler({final:"E"},e=>this.cursorNextLine(e)),this._parser.registerCsiHandler({final:"F"},e=>this.cursorPrecedingLine(e)),this._parser.registerCsiHandler({final:"G"},e=>this.cursorCharAbsolute(e)),this._parser.registerCsiHandler({final:"H"},e=>this.cursorPosition(e)),this._parser.registerCsiHandler({final:"I"},e=>this.cursorForwardTab(e)),this._parser.registerCsiHandler({final:"J"},e=>this.eraseInDisplay(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},e=>this.eraseInDisplay(e,!0)),this._parser.registerCsiHandler({final:"K"},e=>this.eraseInLine(e,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},e=>this.eraseInLine(e,!0)),this._parser.registerCsiHandler({final:"L"},e=>this.insertLines(e)),this._parser.registerCsiHandler({final:"M"},e=>this.deleteLines(e)),this._parser.registerCsiHandler({final:"P"},e=>this.deleteChars(e)),this._parser.registerCsiHandler({final:"S"},e=>this.scrollUp(e)),this._parser.registerCsiHandler({final:"T"},e=>this.scrollDown(e)),this._parser.registerCsiHandler({final:"X"},e=>this.eraseChars(e)),this._parser.registerCsiHandler({final:"Z"},e=>this.cursorBackwardTab(e)),this._parser.registerCsiHandler({final:"`"},e=>this.charPosAbsolute(e)),this._parser.registerCsiHandler({final:"a"},e=>this.hPositionRelative(e)),this._parser.registerCsiHandler({final:"b"},e=>this.repeatPrecedingCharacter(e)),this._parser.registerCsiHandler({final:"c"},e=>this.sendDeviceAttributesPrimary(e)),this._parser.registerCsiHandler({prefix:">",final:"c"},e=>this.sendDeviceAttributesSecondary(e)),this._parser.registerCsiHandler({final:"d"},e=>this.linePosAbsolute(e)),this._parser.registerCsiHandler({final:"e"},e=>this.vPositionRelative(e)),this._parser.registerCsiHandler({final:"f"},e=>this.hVPosition(e)),this._parser.registerCsiHandler({final:"g"},e=>this.tabClear(e)),this._parser.registerCsiHandler({final:"h"},e=>this.setMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"h"},e=>this.setModePrivate(e)),this._parser.registerCsiHandler({final:"l"},e=>this.resetMode(e)),this._parser.registerCsiHandler({prefix:"?",final:"l"},e=>this.resetModePrivate(e)),this._parser.registerCsiHandler({final:"m"},e=>this.charAttributes(e)),this._parser.registerCsiHandler({final:"n"},e=>this.deviceStatus(e)),this._parser.registerCsiHandler({prefix:"?",final:"n"},e=>this.deviceStatusPrivate(e)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},e=>this.softReset(e)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},e=>this.setCursorStyle(e)),this._parser.registerCsiHandler({final:"r"},e=>this.setScrollRegion(e)),this._parser.registerCsiHandler({final:"s"},e=>this.saveCursor(e)),this._parser.registerCsiHandler({final:"t"},e=>this.windowOptions(e)),this._parser.registerCsiHandler({final:"u"},e=>this.restoreCursor(e)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},e=>this.insertColumns(e)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},e=>this.deleteColumns(e)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},e=>this.selectProtected(e)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},e=>this.requestMode(e,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},e=>this.requestMode(e,!1)),this._parser.setExecuteHandler(a.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(a.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(a.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(a.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(a.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(a.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(a.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(a.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(a.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(a.C1.IND,()=>this.index()),this._parser.setExecuteHandler(a.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(a.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new m.OscHandler(e=>(this.setTitle(e),this.setIconName(e),!0))),this._parser.registerOscHandler(1,new m.OscHandler(e=>this.setIconName(e))),this._parser.registerOscHandler(2,new m.OscHandler(e=>this.setTitle(e))),this._parser.registerOscHandler(4,new m.OscHandler(e=>this.setOrReportIndexedColor(e))),this._parser.registerOscHandler(8,new m.OscHandler(e=>this.setHyperlink(e))),this._parser.registerOscHandler(10,new m.OscHandler(e=>this.setOrReportFgColor(e))),this._parser.registerOscHandler(11,new m.OscHandler(e=>this.setOrReportBgColor(e))),this._parser.registerOscHandler(12,new m.OscHandler(e=>this.setOrReportCursorColor(e))),this._parser.registerOscHandler(104,new m.OscHandler(e=>this.restoreIndexedColor(e))),this._parser.registerOscHandler(110,new m.OscHandler(e=>this.restoreFgColor(e))),this._parser.registerOscHandler(111,new m.OscHandler(e=>this.restoreBgColor(e))),this._parser.registerOscHandler(112,new m.OscHandler(e=>this.restoreCursorColor(e))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset()),h.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:l},()=>this.selectCharset("("+l)),this._parser.registerEscHandler({intermediates:")",final:l},()=>this.selectCharset(")"+l)),this._parser.registerEscHandler({intermediates:"*",final:l},()=>this.selectCharset("*"+l)),this._parser.registerEscHandler({intermediates:"+",final:l},()=>this.selectCharset("+"+l)),this._parser.registerEscHandler({intermediates:"-",final:l},()=>this.selectCharset("-"+l)),this._parser.registerEscHandler({intermediates:".",final:l},()=>this.selectCharset("."+l)),this._parser.registerEscHandler({intermediates:"/",final:l},()=>this.selectCharset("/"+l));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(e=>(this._logService.error("Parsing error: ",e),e)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new S.DcsHandler((e,t)=>this.requestStatusString(e,t)))}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=p.LogLevelEnum.WARN&&Promise.race([e,new Promise((e,t)=>setTimeout(()=>t("#SLOW_TIMEOUT"),5e3))]).catch(e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0,o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>131072&&(n=this._parseStack.position+131072)}if(this._logService.logLevel<=p.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,e=>String.fromCharCode(e)).join("")}"`),"string"==typeof e?e.split("").map(e=>e.charCodeAt(0)):e),this._parseBuffer.length131072)for(let t=n;t0&&2===_.getWidth(this._activeBuffer.x-1)&&_.setCellFromCodePoint(this._activeBuffer.x-1,0,1,c.fg,c.bg,c.extended);for(let u=t;u=a){if(h){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),_=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===r)continue}if(l&&(_.insertCells(this._activeBuffer.x,r,this._activeBuffer.getNullCell(c),c),2===_.getWidth(a-1)&&_.setCellFromCodePoint(a-1,f.NULL_CELL_CODE,f.NULL_CELL_WIDTH,c.fg,c.bg,c.extended)),_.setCellFromCodePoint(this._activeBuffer.x++,s,r,c.fg,c.bg,c.extended),r>0)for(;--r;)_.setCellFromCodePoint(this._activeBuffer.x++,0,0,c.fg,c.bg,c.extended)}else _.getWidth(this._activeBuffer.x-1)?_.addCodepointToCell(this._activeBuffer.x-1,s):_.addCodepointToCell(this._activeBuffer.x-2,s)}i-t>0&&(_.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===_.getWidth(this._activeBuffer.x)&&!_.hasContent(this._activeBuffer.x)&&_.setCellFromCodePoint(this._activeBuffer.x,0,1,c.fg,c.bg,c.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,e=>!y(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new S.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new m.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){let t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){let t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){let t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){let t=e.params[0];return 1===t&&(this._curAttrData.bg|=0x20000000),2!==t&&0!==t||(this._curAttrData.bg&=-0x20000001),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){let n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),s&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){let i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i&&(i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1)}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:let s=this._activeBuffer.lines.length-this._bufferService.rows;s>0&&(this._activeBuffer.lines.trimStart(s),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-s,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-s,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(a.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(a.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(a.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(a.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(a.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;te?1:2,f=e.params[0];return i=t?2===f?4:4===f?u(o.modes.insertMode):12===f?3:20===f?u(_.convertEol):0:1===f?u(s.applicationCursorKeys):3===f?_.windowOptions.setWinLines?80===l?2:132===l?1:0:0:6===f?u(s.origin):7===f?u(s.wraparound):8===f?3:9===f?u("X10"===r):12===f?u(_.cursorBlink):25===f?u(!o.isCursorHidden):45===f?u(s.reverseWraparound):66===f?u(s.applicationKeypad):67===f?4:1e3===f?u("VT200"===r):1002===f?u("DRAG"===r):1003===f?u("ANY"===r):1004===f?u(s.sendFocus):1005===f?4:1006===f?u("SGR"===n):1015===f?4:1016===f?u("SGR_PIXELS"===n):1048===f?1:47===f||1047===f||1049===f?u(c===d):2004===f?u(s.bracketedPasteMode):0,o.triggerDataEvent(`${a.C0.ESC}[${t?"":"?"}${f};${i}$y`),!0}_updateAttrColor(e,t,i,s,r){return 2===t?(e|=0x3000000,e&=-0x1000000,e|=g.AttributeData.fromColorRGB([i,s,r])):5===t&&(e&=-0x3000100,e|=0x2000000|255&i),e}_extractColor(e,t,i){let s=[0,0,-1,0,0,0],r=0,n=0;do{if(s[n+r]=e.params[t+n],e.hasSubParams(t+n)){let i=e.getSubParams(t+n),o=0;do 5===s[1]&&(r=1),s[n+o+1+r]=i[o];while(++o=2||2===s[1]&&n+r>=5)break;s[1]&&(r=1)}while(++n+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=0x10000000,0===e&&(t.fg&=-0x10000001),t.updateExtended()}_processSGR0(e){e.fg=_.DEFAULT_ATTR_DATA.fg,e.bg=_.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-0x4000000,e.updateExtended()}charAttributes(e){let t;if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;let i=e.length,s=this._curAttrData;for(let r=0;r=30&&t<=37?(s.fg&=-0x3000100,s.fg|=0x1000000|t-30):t>=40&&t<=47?(s.bg&=-0x3000100,s.bg|=0x1000000|t-40):t>=90&&t<=97?(s.fg&=-0x3000100,s.fg|=0x1000008|t-90):t>=100&&t<=107?(s.bg&=-0x3000100,s.bg|=0x1000008|t-100):0===t?this._processSGR0(s):1===t?s.fg|=0x8000000:3===t?s.bg|=0x4000000:4===t?(s.fg|=0x10000000,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,s)):5===t?s.fg|=0x20000000:7===t?s.fg|=0x4000000:8===t?s.fg|=0x40000000:9===t?s.fg|=0x80000000:2===t?s.bg|=0x8000000:21===t?this._processUnderline(2,s):22===t?(s.fg&=-0x8000001,s.bg&=-0x8000001):23===t?s.bg&=-0x4000001:24===t?(s.fg&=-0x10000001,this._processUnderline(0,s)):25===t?s.fg&=-0x20000001:27===t?s.fg&=-0x4000001:28===t?s.fg&=-0x40000001:29===t?s.fg&=0x7fffffff:39===t?(s.fg&=-0x4000000,s.fg|=0xffffff&_.DEFAULT_ATTR_DATA.fg):49===t?(s.bg&=-0x4000000,s.bg|=0xffffff&_.DEFAULT_ATTR_DATA.bg):38===t||48===t||58===t?r+=this._extractColor(e,r,s):53===t?s.bg|=0x40000000:55===t?s.bg&=-0x40000001:59===t?(s.extended=s.extended.clone(),s.extended.underlineColor=-1,s.updateExtended()):100===t?(s.fg&=-0x4000000,s.fg|=0xffffff&_.DEFAULT_ATTR_DATA.fg,s.bg&=-0x4000000,s.bg|=0xffffff&_.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",t);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${a.C0.ESC}[0n`);break;case 6:let t=this._activeBuffer.y+1,i=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${a.C0.ESC}[${t};${i}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){let e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${a.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=_.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){let t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}return this._optionsService.options.cursorBlink=t%2==1,!0}setScrollRegion(e){let t;let i=e.params[0]||1;return(e.length<2||(t=e.params[1])>this._bufferService.rows||0===t)&&(t=this._bufferService.rows),t>i&&(this._activeBuffer.scrollTop=i-1,this._activeBuffer.scrollBottom=t-1,this._setCursor(0,0)),!0}windowOptions(e){if(!y(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;let t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(r.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(r.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${a.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){let t=[],i=e.split(";");for(;i.length>1;){let e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){let i=parseInt(e);if(x(i)){if("?"===s)t.push({type:0,index:i});else{let e=(0,C.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){let t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){let i;this._getCurrentLinkId()&&this._finishHyperlink();let s=e.split(":"),r=s.findIndex(e=>e.startsWith("id="));return -1!==r&&(i=s[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:i,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){let i=e.split(";");for(let e=0;e=this._specialColors.length);++e,++t)if("?"===i[e])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{let s=(0,C.parseColor)(i[e]);s&&this._onColor.fire([{type:1,index:this._specialColors[t],color:s}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;let t=[],i=e.split(";");for(let e=0;e=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=_.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=_.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-0x4000000,this._eraseAttrDataInternal.bg|=0x3ffffff&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){let e=new v.CellData;e.content=4194373,e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;tthis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(w=e,e=t,t=w),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function x(e){return 0<=e&&e<256}k=n([o(0,p.IBufferService)],k)},844:(e,t)=>{function i(e){for(let t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.MutableDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){for(let e of(this._isDisposed=!0,this._disposables))e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){let t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;this._isDisposed||e===this._value||(null===(t=this._value)||void 0===t||t.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,n){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,n)}get(e,t,i,s){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;let i=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;let e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e)),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;let t=this._getKey(e);if(void 0===t||-1===(i=this._search(t))||this._getKey(this._array[i])!==t)return!1;do if(this._array[i]===e)return this._array.splice(i,1),!0;while(++i=this._array.length)&&this._getKey(this._array[i])===e)do yield this._array[i];while(++i=this._array.length)&&this._getKey(this._array[i])===e)do t(this._array[i]);while(++i=t;){let s=t+i>>1,r=this._getKey(this._array[s]);if(r>e)i=s-1;else{if(!(r0&&this._getKey(this._array[s-1])===e;)s--;return s}t=s+1}}return t}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;let s=i(6114);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._i(r=e.timeRemaining()))return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class n extends r{_requestCallback(e){return setTimeout(()=>e(this._createDeadline(16)))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){let t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;let s=i(643);t.updateWindowsModeWrappedState=function(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&i&&(r.isWrapped=i[s.CHAR_DATA_CODE_INDEX]!==s.NULL_CELL_CODE&&i[s.CHAR_DATA_CODE_INDEX]!==s.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){let e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 0x4000000&this.fg}isBold(){return 0x8000000&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:0x10000000&this.fg}isBlink(){return 0x20000000&this.fg}isInvisible(){return 0x40000000&this.fg}isItalic(){return 0x4000000&this.bg}isDim(){return 0x8000000&this.bg}isStrikethrough(){return 0x80000000&this.fg}isProtected(){return 0x20000000&this.bg}isOverline(){return 0x40000000&this.bg}getFgColorMode(){return 0x3000000&this.fg}getBgColorMode(){return 0x3000000&this.bg}isFgRGB(){return 0x3000000==(0x3000000&this.fg)}isBgRGB(){return 0x3000000==(0x3000000&this.bg)}isFgPalette(){return 0x1000000==(0x3000000&this.fg)||0x2000000==(0x3000000&this.fg)}isBgPalette(){return 0x1000000==(0x3000000&this.bg)||0x2000000==(0x3000000&this.bg)}isFgDefault(){return 0==(0x3000000&this.fg)}isBgDefault(){return 0==(0x3000000&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(0x3000000&this.fg){case 0x1000000:case 0x2000000:return 255&this.fg;case 0x3000000:return 0xffffff&this.fg;default:return -1}}getBgColor(){switch(0x3000000&this.bg){case 0x1000000:case 0x2000000:return 255&this.bg;case 0x3000000:return 0xffffff&this.bg;default:return -1}}hasExtendedAttrs(){return 0x10000000&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-0x10000001:this.bg|=0x10000000}getUnderlineColor(){if(0x10000000&this.bg&&~this.extended.underlineColor)switch(0x3000000&this.extended.underlineColor){case 0x1000000:case 0x2000000:return 255&this.extended.underlineColor;case 0x3000000:return 0xffffff&this.extended.underlineColor}return this.getFgColor()}getUnderlineColorMode(){return 0x10000000&this.bg&&~this.extended.underlineColor?0x3000000&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 0x10000000&this.bg&&~this.extended.underlineColor?0x3000000==(0x3000000&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 0x10000000&this.bg&&~this.extended.underlineColor?0x1000000==(0x3000000&this.extended.underlineColor)||0x2000000==(0x3000000&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 0x10000000&this.bg&&~this.extended.underlineColor?0==(0x3000000&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 0x10000000&this.fg?0x10000000&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class s{get ext(){return this._urlId?-0x1c000001&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(0x1c000000&this._ext)>>26}set underlineStyle(e){this._ext&=-0x1c000001,this._ext|=e<<26&0x1c000000}get underlineColor(){return 0x3ffffff&this._ext}set underlineColor(e){this._ext&=-0x4000000,this._ext|=0x3ffffff&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Buffer=t.MAX_BUFFER_SIZE=void 0;let s=i(6349),r=i(7226),n=i(3734),o=i(8437),a=i(4634),h=i(511),l=i(643),c=i(4863),d=i(7116);t.MAX_BUFFER_SIZE=0xffffffff,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=o.DEFAULT_ATTR_DATA.clone(),this.savedCharset=d.DEFAULT_CHARSET,this.markers=[],this._nullCell=h.CellData.fromCharData([0,l.NULL_CELL_CHAR,l.NULL_CELL_WIDTH,l.NULL_CELL_CODE]),this._whitespaceCell=h.CellData.fromCharData([0,l.WHITESPACE_CELL_CHAR,l.WHITESPACE_CELL_WIDTH,l.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new r.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new n.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new n.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new o.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=o.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){let i=this.getNullCell(o.DEFAULT_ATTR_DATA),s=0,r=this._getCorrectBufferLength(t);if(r>this.lines.maxLength&&(this.lines.maxLength=r),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+n+1?(this.ybase--,n++,this.ydisp>0&&this.ydisp--):this.lines.push(new o.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(r0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=r}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),n&&(this.y+=n),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let t=0;t.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){let e=this._optionsService.rawOptions.windowsPty;return e&&e.buildNumber?this._hasScrollback&&"conpty"===e.backend&&e.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){let i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(o.DEFAULT_ATTR_DATA));if(i.length>0){let s=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,s.layout),this._reflowLargerAdjustViewport(e,t,s.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){let s=this.getNullCell(o.DEFAULT_ATTR_DATA),r=i;for(;r-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;n--){let h,l=this.lines.get(n);if(!l||!l.isWrapped&&l.getTrimmedLength()<=e)continue;let c=[l];for(;l.isWrapped&&n>0;)l=this.lines.get(--n),c.unshift(l);let d=this.ybase+this.y;if(d>=n&&d0&&(s.push({start:n+c.length+r,newLines:v}),r+=v.length),c.push(...v);let g=u.length-1,p=u[g];0===p&&(p=u[--g]);let m=c.length-f-1,S=_;for(;m>=0;){let e=Math.min(S,p);if(void 0===c[g])break;if(c[g].copyCellsFrom(c[m],S-e,p-e,e,!0),0==(p-=e)&&(p=u[--g]),0==(S-=e)){let e=Math.max(--m,0);S=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t0;)0===this.ybase?this.y0){let e=[],t=[];for(let e=0;e=0;l--)if(a&&a.start>n+h){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(l--,a.newLines[e]);l++,e.push({index:n+1,amount:a.newLines.length}),h+=a.newLines.length,a=s[++o]}else this.lines.set(l,t[n--]);let l=0;for(let t=e.length-1;t>=0;t--)e[t].index+=l,this.lines.onInsertEmitter.fire(e[t]),l+=e[t].amount;let c=Math.max(0,i+r-this.lines.maxLength);c>0&&this.lines.onTrimEmitter.fire(c)}}translateBufferLineToString(e,t,i=0,s){let r=this.lines.get(e);return r?r.translateToString(t,i,s):""}getWrappedRangeForLine(e){let t=e,i=e;for(;t>0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()})),t.register(this.lines.onInsert(e=>{t.line>=e.index&&(t.line+=e.amount)})),t.register(this.lines.onDelete(e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)})),t.register(t.onDispose(()=>this._removeMarker(t))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}}},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;let s=i(3734),r=i(511),n=i(643),o=i(482);t.DEFAULT_ATTR_DATA=Object.freeze(new s.AttributeData);let a=0;class h{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);let s=t||r.CellData.fromCharData([0,n.NULL_CELL_CHAR,n.NULL_CELL_WIDTH,n.NULL_CELL_CODE]);for(let t=0;t>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[n.CHAR_DATA_ATTR_INDEX],t[n.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[n.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[n.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[n.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 0xc00000&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){let t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){let t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,o.stringFromCodePoint)(2097151&t):""}isProtected(e){return 0x20000000&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),0x10000000&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),0x10000000&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,s,r,n){0x10000000&r&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,o.stringFromCodePoint)(t):(2097151&i?(this._combined[e]=(0,o.stringFromCodePoint)(2097151&i)+(0,o.stringFromCodePoint)(t),i&=-2097152,i|=2097152):i=4194304|t,this._data[3*e+0]=i)}insertCells(e,t,i,n){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==n?void 0:n.fg)||0,(null==n?void 0:n.bg)||0,(null==n?void 0:n.extended)||new s.ExtendedAttrs),t=0;--i)this.setCell(e+t+i,this.loadCell(e+i,s));for(let s=0;sthis.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{let e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i=e&&delete this._combined[s]}let s=Object.keys(this._extendedAttrs);for(let t=0;t=e&&delete this._extendedAttrs[i]}}return this.length=e,4*i*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}getNoBgTrimmedLength(){for(let e=this.length-1;e>=0;--e)if(4194303&this._data[3*e+0]||0x3000000&this._data[3*e+2])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,s,r){let n=e._data;if(r)for(let r=s-1;r>=0;r--){for(let e=0;e<3;e++)this._data[3*(i+r)+e]=n[3*(t+r)+e];0x10000000&n[3*(t+r)+2]&&(this._extendedAttrs[i+r]=e._extendedAttrs[t+r])}else for(let r=0;r=t&&(this._combined[r-t+i]=e._combined[r])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let s="";for(;t>22||1}return s}}t.BufferLine=h},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();let s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),r=2===e[t+1].getWidth(0);return s&&r?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,s,r,n){let o=[];for(let a=0;a=a&&r0&&(e>d||0===c[e].getTrimmedLength());e--)v++;v>0&&(o.push(a+c.length-v),o.push(v)),a+=c.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){let i=[],s=0,r=t[0],n=0;for(let o=0;oi(e,r,t)).reduce((e,t)=>e+t),o=0,a=0,h=0;for(;hl&&(o-=l,a++);let c=2===e[a].getWidth(o-1);c&&o--;let d=c?s-1:s;r.push(d),h+=d}return r},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;let s=i(8460),r=i(844),n=i(9092);class o extends r.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new s.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new n.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new n.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;let s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){let t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){let i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){let s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;let s=i(8460),r=i(844);class n{get id(){return this._id}constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new s.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=n,n._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"\xb0",g:"\xb1",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"\xa3","~":"\xb7"},t.CHARSETS.A={"#":"\xa3"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"\xa3","@":"\xbe","[":"ij","\\":"\xbd","]":"|","{":"\xa8","|":"f","}":"\xbc","~":"\xb4"},t.CHARSETS.C=t.CHARSETS[5]={"[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS.R={"#":"\xa3","@":"\xe0","[":"\xb0","\\":"\xe7","]":"\xa7","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xa8"},t.CHARSETS.Q={"@":"\xe0","[":"\xe2","\\":"\xe7","]":"\xea","^":"\xee","`":"\xf4","{":"\xe9","|":"\xf9","}":"\xe8","~":"\xfb"},t.CHARSETS.K={"@":"\xa7","[":"\xc4","\\":"\xd6","]":"\xdc","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xdf"},t.CHARSETS.Y={"#":"\xa3","@":"\xa7","[":"\xb0","\\":"\xe7","]":"\xe9","`":"\xf9","{":"\xe0","|":"\xf2","}":"\xe8","~":"\xec"},t.CHARSETS.E=t.CHARSETS[6]={"@":"\xc4","[":"\xc6","\\":"\xd8","]":"\xc5","^":"\xdc","`":"\xe4","{":"\xe6","|":"\xf8","}":"\xe5","~":"\xfc"},t.CHARSETS.Z={"#":"\xa3","@":"\xa7","[":"\xa1","\\":"\xd1","]":"\xbf","{":"\xb0","|":"\xf1","}":"\xe7"},t.CHARSETS.H=t.CHARSETS[7]={"@":"\xc9","[":"\xc4","\\":"\xd6","]":"\xc5","^":"\xdc","`":"\xe9","{":"\xe4","|":"\xf6","}":"\xe5","~":"\xfc"},t.CHARSETS["="]={"#":"\xf9","@":"\xe0","[":"\xe9","\\":"\xe7","]":"\xea","^":"\xee",_:"\xe8","`":"\xf4","{":"\xe4","|":"\xf6","}":"\xfc","~":"\xfb"}},2584:(e,t)=>{var i,s,r;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="\x01",e.STX="\x02",e.ETX="\x03",e.EOT="\x04",e.ENQ="\x05",e.ACK="\x06",e.BEL="\x07",e.BS="\b",e.HT=" ",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="\x0e",e.SI="\x0f",e.DLE="\x10",e.DC1="\x11",e.DC2="\x12",e.DC3="\x13",e.DC4="\x14",e.NAK="\x15",e.SYN="\x16",e.ETB="\x17",e.CAN="\x18",e.EM="\x19",e.SUB="\x1a",e.ESC="\x1b",e.FS="\x1c",e.GS="\x1d",e.RS="\x1e",e.US="\x1f",e.SP=" ",e.DEL="\x7f"}(i||(t.C0=i={})),function(e){e.PAD="\x80",e.HOP="\x81",e.BPH="\x82",e.NBH="\x83",e.IND="\x84",e.NEL="\x85",e.SSA="\x86",e.ESA="\x87",e.HTS="\x88",e.HTJ="\x89",e.VTS="\x8a",e.PLD="\x8b",e.PLU="\x8c",e.RI="\x8d",e.SS2="\x8e",e.SS3="\x8f",e.DCS="\x90",e.PU1="\x91",e.PU2="\x92",e.STS="\x93",e.CCH="\x94",e.MW="\x95",e.SPA="\x96",e.EPA="\x97",e.SOS="\x98",e.SGCI="\x99",e.SCI="\x9a",e.CSI="\x9b",e.ST="\x9c",e.OSC="\x9d",e.PM="\x9e",e.APC="\x9f"}(s||(t.C1=s={})),(r||(t.C1_ESCAPED=r={})).ST=`${i.ESC}\\`},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;let s=i(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,n){let o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B");break;case 8:if(e.altKey){o.key=s.C0.ESC+s.C0.DEL;break}o.key=s.C0.DEL;break;case 9:if(e.shiftKey){o.key=s.C0.ESC+"[Z";break}o.key=s.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?s.C0.ESC+s.C0.CR:s.C0.CR,o.cancel=!0;break;case 27:o.key=s.C0.ESC,e.altKey&&(o.key=s.C0.ESC+s.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"D",o.key===s.C0.ESC+"[1;3D"&&(o.key=s.C0.ESC+(i?"b":"[1;5D"))):o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"C",o.key===s.C0.ESC+"[1;3C"&&(o.key=s.C0.ESC+(i?"f":"[1;5C"))):o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"A",i||o.key!==s.C0.ESC+"[1;3A"||(o.key=s.C0.ESC+"[1;5A")):o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"B",i||o.key!==s.C0.ESC+"[1;3B"||(o.key=s.C0.ESC+"[1;5B")):o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=s.C0.ESC+"[2~");break;case 46:o.key=a?s.C0.ESC+"[3;"+(a+1)+"~":s.C0.ESC+"[3~";break;case 36:o.key=a?s.C0.ESC+"[1;"+(a+1)+"H":t?s.C0.ESC+"OH":s.C0.ESC+"[H";break;case 35:o.key=a?s.C0.ESC+"[1;"+(a+1)+"F":t?s.C0.ESC+"OF":s.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=s.C0.ESC+"[5;"+(a+1)+"~":o.key=s.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=s.C0.ESC+"[6;"+(a+1)+"~":o.key=s.C0.ESC+"[6~";break;case 112:o.key=a?s.C0.ESC+"[1;"+(a+1)+"P":s.C0.ESC+"OP";break;case 113:o.key=a?s.C0.ESC+"[1;"+(a+1)+"Q":s.C0.ESC+"OQ";break;case 114:o.key=a?s.C0.ESC+"[1;"+(a+1)+"R":s.C0.ESC+"OR";break;case 115:o.key=a?s.C0.ESC+"[1;"+(a+1)+"S":s.C0.ESC+"OS";break;case 116:o.key=a?s.C0.ESC+"[15;"+(a+1)+"~":s.C0.ESC+"[15~";break;case 117:o.key=a?s.C0.ESC+"[17;"+(a+1)+"~":s.C0.ESC+"[17~";break;case 118:o.key=a?s.C0.ESC+"[18;"+(a+1)+"~":s.C0.ESC+"[18~";break;case 119:o.key=a?s.C0.ESC+"[19;"+(a+1)+"~":s.C0.ESC+"[19~";break;case 120:o.key=a?s.C0.ESC+"[20;"+(a+1)+"~":s.C0.ESC+"[20~";break;case 121:o.key=a?s.C0.ESC+"[21;"+(a+1)+"~":s.C0.ESC+"[21~";break;case 122:o.key=a?s.C0.ESC+"[23;"+(a+1)+"~":s.C0.ESC+"[23~";break;case 123:o.key=a?s.C0.ESC+"[24;"+(a+1)+"~":s.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){if(i&&!n||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?!e.key||e.ctrlKey||e.altKey||e.metaKey||!(e.keyCode>=48)||1!==e.key.length?e.key&&e.ctrlKey&&("_"===e.key&&(o.key=s.C0.US),"@"===e.key&&(o.key=s.C0.NUL)):o.key=e.key:65===e.keyCode&&(o.type=1);else{let t=r[e.keyCode],i=null==t?void 0:t[e.shiftKey?1:0];if(i)o.key=s.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){let t=String.fromCharCode(e.ctrlKey?e.keyCode-64:e.keyCode+32);e.shiftKey&&(t=t.toUpperCase()),o.key=s.C0.ESC+t}else if(32===e.keyCode)o.key=s.C0.ESC+(e.ctrlKey?s.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=s.C0.ESC+t,o.cancel=!0}}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=s.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=s.C0.DEL:219===e.keyCode?o.key=s.C0.ESC:220===e.keyCode?o.key=s.C0.FS:221===e.keyCode&&(o.key=s.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?String.fromCharCode(55296+((e-=65536)>>10))+String.fromCharCode(e%1024+56320):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let n=r;n=i)return this._interim=r,s;let o=e.charCodeAt(n);56320<=o&&o<=57343?t[s++]=1024*(r-55296)+o-56320+65536:(t[s++]=r,t[s++]=o)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s,r,n,o,a=0,h=0,l=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let n,o=0;for(;(n=63&this.interim[++o])&&o<4;)r<<=6,r|=n;let h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-o;for(;l=i)return 0;if(128!=(192&(n=e[l++]))){l--,s=!0;break}this.interim[o++]=n,r<<=6,r|=63&n}s||(2===h?r<128?l--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}let c=i-4,d=l;for(;d=i)return this.interim[0]=s,a;if(128!=(192&(r=e[d++]))||(h=(31&s)<<6|63&r)<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(128!=(192&(r=e[d++]))){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(128!=(192&(n=e[d++]))){d--;continue}if((h=(15&s)<<12|(63&r)<<6|63&n)<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(128!=(192&(r=e[d++]))){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(128!=(192&(n=e[d++]))){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=n,a;if(128!=(192&(o=e[d++]))){d--;continue}if((h=(7&s)<<18|(63&r)<<12|(63&n)<<6|63&o)<65536||h>1114111)continue;t[a++]=h}}return a}}},225:(e,t)=>{let i;Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;let s=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],r=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];t.UnicodeV6=class{constructor(){if(this.version="6",!i){(i=new Uint8Array(65536)).fill(1),i[0]=0,i.fill(0,1,32),i.fill(0,127,160),i.fill(2,4352,4448),i[9001]=2,i[9002]=2,i.fill(2,11904,42192),i[12351]=1,i.fill(2,44032,55204),i.fill(2,63744,64256),i.fill(2,65040,65050),i.fill(2,65072,65136),i.fill(2,65280,65377),i.fill(2,65504,65511);for(let e=0;et[r][1])return!1;for(;r>=s;)if(e>t[i=s+r>>1][1])s=i+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1:0}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;let s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new s.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){let i;if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,!this._isSyncWriting){for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);let e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=0x7fffffff,this._isSyncWriting=!1,this._syncCalls=0}}write(e,t){if(this._pendingData>5e7)throw Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){let i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let e=this._writeBuffer[this._bufferOffset],s=this._action(e,t);if(s){let e=e=>Date.now()-i>=12?setTimeout(()=>this._innerWrite(0,e)):this._innerWrite(i,e);return void s.catch(e=>(queueMicrotask(()=>{throw e}),Promise.resolve(!1))).then(e)}let r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;let i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,s=/^[\da-f]+$/;function r(e,t){let i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);let e=i.exec(t);if(e){let t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),s.exec(t)&&[3,6,9,12].includes(t.length))){let e=t.length/3,i=[0,0,0];for(let s=0;s<3;++s){let r=parseInt(t.slice(e*s,e*s+e),16);i[s]=1===e?r<<4:2===e?r:3===e?r>>4:r>>8}return i}},t.toRgbString=function(e,t=16){let[i,s,n]=e;return`rgb:${r(i,t)}/${r(s,t)}/${r(n,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;let s=i(482),r=i(8742),n=i(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);let i=this._handlers[e];return i.push(t),{dispose:()=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,s.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&!0!==(i=this._active[s].unhook(e));s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if((i=this._active[s].unhook(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=o,this._ident=0}};let a=new r.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,s.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params))instanceof Promise)return t.then(e=>(this._params=a,this._data="",this._hitLimit=!1,e));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;let s=i(844),r=i(8742),n=i(6242),o=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(e,t,i,s){for(let r=0;rt),s=(e,t)=>i.slice(e,t),r=s(32,127),n=s(0,24);n.push(25),n.push.apply(n,s(28,32));let o=s(0,14);for(e in t.setDefault(1,0),t.addMany(r,0,2,0),o)t.addMany([24,26,153,154],e,3,0),t.addMany(s(128,144),e,3,0),t.addMany(s(144,152),e,3,0),t.add(156,e,0,0),t.add(27,e,11,1),t.add(157,e,4,8),t.addMany([152,158,159],e,0,7),t.add(155,e,11,3),t.add(144,e,11,9);return t.addMany(n,0,3,0),t.addMany(n,1,3,1),t.add(127,1,0,1),t.addMany(n,8,0,8),t.addMany(n,3,3,3),t.add(127,3,0,3),t.addMany(n,4,3,4),t.add(127,4,0,4),t.addMany(n,6,3,6),t.addMany(n,5,3,5),t.add(127,5,0,5),t.addMany(n,2,3,2),t.add(127,2,0,2),t.add(93,1,4,8),t.addMany(r,8,5,8),t.add(127,8,5,8),t.addMany([156,27,24,26,7],8,6,0),t.addMany(s(28,32),8,0,8),t.addMany([88,94,95],1,0,7),t.addMany(r,7,0,7),t.addMany(n,7,0,7),t.add(156,7,0,0),t.add(127,7,0,7),t.add(91,1,11,3),t.addMany(s(64,127),3,7,0),t.addMany(s(48,60),3,8,4),t.addMany([60,61,62,63],3,9,4),t.addMany(s(48,60),4,8,4),t.addMany(s(64,127),4,7,0),t.addMany([60,61,62,63],4,0,6),t.addMany(s(32,64),6,0,6),t.add(127,6,0,6),t.addMany(s(64,127),6,0,0),t.addMany(s(32,48),3,9,5),t.addMany(s(32,48),5,9,5),t.addMany(s(48,64),5,0,6),t.addMany(s(64,127),5,7,0),t.addMany(s(32,48),4,9,5),t.addMany(s(32,48),1,9,2),t.addMany(s(32,48),2,9,2),t.addMany(s(48,127),2,10,0),t.addMany(s(48,80),1,10,0),t.addMany(s(81,88),1,10,0),t.addMany([89,90,92],1,10,0),t.addMany(s(96,127),1,10,0),t.add(80,1,11,9),t.addMany(n,9,0,9),t.add(127,9,0,9),t.addMany(s(28,32),9,0,9),t.addMany(s(32,48),9,9,12),t.addMany(s(48,60),9,8,10),t.addMany([60,61,62,63],9,9,10),t.addMany(n,11,0,11),t.addMany(s(32,128),11,0,11),t.addMany(s(28,32),11,0,11),t.addMany(n,10,0,10),t.add(127,10,0,10),t.addMany(s(28,32),10,0,10),t.addMany(s(48,60),10,8,10),t.addMany([60,61,62,63],10,0,11),t.addMany(s(32,48),10,9,12),t.addMany(n,12,0,12),t.add(127,12,0,12),t.addMany(s(28,32),12,0,12),t.addMany(s(32,48),12,9,12),t.addMany(s(48,64),12,0,11),t.addMany(s(64,127),12,12,13),t.addMany(s(64,127),10,12,13),t.addMany(s(64,127),9,12,13),t.addMany(n,13,13,13),t.addMany(r,13,13,13),t.add(127,13,0,13),t.addMany([27,156,24,26],13,14,0),t.add(160,0,2,0),t.add(160,8,5,8),t.add(160,6,0,6),t.add(160,11,0,11),t.add(160,13,13,13),t}();class h extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new r.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,s.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw Error("only one byte as prefix supported");if((i=e.prefix.charCodeAt(0))&&60>i||i>63)throw Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw Error("only two bytes as intermediates are supported");for(let t=0;ts||s>47)throw Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=s}}if(1!==e.final.length)throw Error("final must be a single byte");let s=e.final.charCodeAt(0);if(t[0]>s||s>t[1])throw Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=s}identToString(e){let t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){let i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);let s=this._escHandlers[i];return s.push(t),{dispose:()=>{let e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){let i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);let s=this._csiHandlers[i];return s.push(t),{dispose:()=>{let e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(e,t,i){let s,r=0,n=0,o=0;if(this._parseStack.state){if(2===this._parseStack.state)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,Error("improper continuation due to previous async handler, giving up parsing");let t=this._parseStack.handlers,n=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&n>-1){for(;n>=0&&!0!==(s=t[n](this._params));n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s}this._parseStack.handlers=[];break;case 4:if(!1===i&&n>-1){for(;n>=0&&!0!==(s=t[n]());n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s}this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],s=this._dcsParser.unhook(24!==r&&26!==r,i))return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],s=this._oscParser.end(24!==r&&26!==r,i))return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}}for(let i=o;i>4){case 2:for(let s=i+1;;++s)if(s>=t||(r=e[s])<32||r>126&&r<160||++s>=t||(r=e[s])<32||r>126&&r<160||++s>=t||(r=e[s])<32||r>126&&r<160||++s>=t||(r=e[s])<32||r>126&&r<160){this._printHandler(e,i,s),i=s-1;break}break;case 3:this._executeHandlers[r]?this._executeHandlers[r]():this._executeHandlerFb(r),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:i,code:r,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:let o=this._csiHandlers[this._collect<<8|r],a=o?o.length-1:-1;for(;a>=0&&!0!==(s=o[a](this._params));a--)if(s instanceof Promise)return this._preserveStack(3,o,a,n,i),s;a<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}while(++i47&&r<60);i--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:let h=this._escHandlers[this._collect<<8|r],l=h?h.length-1:-1;for(;l>=0&&!0!==(s=h[l]());l--)if(s instanceof Promise)return this._preserveStack(4,h,l,n,i),s;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let s=i+1;;++s)if(s>=t||24===(r=e[s])||26===r||27===r||r>127&&r<160){this._dcsParser.put(e,i,s),i=s-1;break}break;case 14:if(s=this._dcsParser.unhook(24!==r&&26!==r))return this._preserveStack(6,[],0,n,i),s;27===r&&(n|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let s=i+1;;s++)if(s>=t||(r=e[s])<32||r>127&&r<160){this._oscParser.put(e,i,s),i=s-1;break}break;case 6:if(s=this._oscParser.end(24!==r&&26!==r))return this._preserveStack(5,[],0,n,i),s;27===r&&(n|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&n}}}t.EscapeSequenceParser=h},6242:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;let s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);let i=this._handlers[e];return i.push(t),{dispose:()=>{let e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state){if(1===this._state&&this._start(),this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&!0!==(i=this._active[s].end(e));s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if((i=this._active[s].end(!1))instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e)}this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data))instanceof Promise)return t.then(e=>(this._data="",this._hitLimit=!1,e));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;class i{static fromArray(e){let t=new i;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i256)throw Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let e=new i(this.maxLength,this.maxSubParamsLength);return e.params.set(this.params),e.length=this.length,e._subParams.set(this._subParams),e._subParamsLength=this._subParamsLength,e._subParamsIdx.set(this._subParamsIdx),e._rejectDigits=this._rejectDigits,e._rejectSubDigits=this._rejectSubDigits,e._digitIsSub=this._digitIsSub,e}toArray(){let e=[];for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,s))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>0x7fffffff?0x7fffffff:e}}addSubParam(e){if(this._digitIsSub=!0,this.length){if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>0x7fffffff?0x7fffffff:e,this._subParamsIdx[this.length-1]++}}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){let t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){let e={};for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&(e[t]=this._subParams.slice(i,s))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let i=this._digitIsSub?this._subParams:this.params,s=i[t-1];i[t-1]=~s?Math.min(10*s+e,0x7fffffff):e}}t.Params=i},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){let i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;let s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){let t=this._buffer.lines.get(e);if(t)return new s.BufferLineApiView(t)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;let s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;let s=i(8771),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e){super(),this._core=e,this._onBufferChange=this.register(new r.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}t.BufferNamespaceApi=o},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,e=>t(e.toArray()))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,(e,i)=>t(e,i.toArray()))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;let n=i(8460),o=i(844),a=i(5295),h=i(2585);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let l=t.BufferService=class extends o.Disposable{get buffer(){return this.buffers.active}constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new n.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new n.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new a.BufferSet(e,this))}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){let i;let s=this.buffer;(i=this._cachedBlankLine)&&i.length===this.cols&&i.getFg(0)===e.fg&&i.getBg(0)===e.bg||(i=s.getBlankLine(e,t),this._cachedBlankLine=i),i.isWrapped=t;let r=s.ybase+s.scrollTop,n=s.ybase+s.scrollBottom;if(0===s.scrollTop){let e=s.lines.isFull;n===s.lines.length-1?e?s.lines.recycle().copyFrom(i):s.lines.push(i.clone()):s.lines.splice(n+1,0,i.clone()),e?this.isUserScrolling&&(s.ydisp=Math.max(s.ydisp-1,0)):(s.ybase++,this.isUserScrolling||s.ydisp++)}else{let e=n-r+1;s.lines.shiftElements(r+1,e-1,-1),s.lines.set(n,i.clone())}this.isUserScrolling||(s.ydisp=s.ybase),this._onScroll.fire(s.ydisp)}scrollLines(e,t,i){let s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);let r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r!==s.ydisp&&(t||this._onScroll.fire(s.ydisp))}};t.BufferService=s([r(0,h.IOptionsService)],l)},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;let n=i(2585),o=i(8460),a=i(844),h={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function l(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}let c=String.fromCharCode,d={DEFAULT:e=>{let t=[l(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`${c(t[0])}${c(t[1])}${c(t[2])}`},SGR:e=>{let t=0===e.action&&4!==e.button?"m":"M";return`[<${l(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{let t=0===e.action&&4!==e.button?"m":"M";return`[<${l(e,!0)};${e.x};${e.y}${t}`}},_=t.CoreMouseService=class extends a.Disposable{constructor(e,t){for(let i of(super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event,Object.keys(h)))this.addProtocol(i,h[i]);for(let e of Object.keys(d))this.addEncoding(e,d[e]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows||4===e.button&&32===e.action||3===e.button&&32!==e.action||4!==e.button&&(2===e.action||3===e.action)||(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))||!this._protocols[this._activeProtocol].restrict(e))return!1;let t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x||e.y!==t.y)return!1}else if(e.col!==t.col||e.row!==t.row)return!1;return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};t.CoreMouseService=s([r(0,n.IBufferService),r(1,n.ICoreService)],_)},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;let n=i(1439),o=i(8460),a=i(844),h=i(2585),l=Object.freeze({insertMode:!1}),c=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),d=t.CoreService=class extends a.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,n.clone)(l),this.decPrivateModes=(0,n.clone)(c)}reset(){this.modes=(0,n.clone)(l),this.decPrivateModes=(0,n.clone)(c)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;let i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,()=>e.split("").map(e=>e.charCodeAt(0))),this._onBinary.fire(e))}};t.CoreService=s([r(0,h.IBufferService),r(1,h.ILogService),r(2,h.IOptionsService)],d)},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;let s=i(8055),r=i(8460),n=i(844),o=i(6106),a=0,h=0;class l extends n.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new o.SortedList(e=>null==e?void 0:e.marker.line),this._onDecorationRegistered=this.register(new r.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new r.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)(()=>this.reset()))}registerDecoration(e){if(e.marker.isDisposed)return;let t=new c(e);if(t){let e=t.marker.onDispose(()=>t.dispose());t.onDispose(()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())}),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(let e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var s,r,n;let o=0,a=0;for(let h of this._decorations.getKeyIterator(t))a=(o=null!==(s=h.options.x)&&void 0!==s?s:0)+(null!==(r=h.options.width)&&void 0!==r?r:1),e>=o&&e{var r,n,o;h=(a=null!==(r=t.options.x)&&void 0!==r?r:0)+(null!==(n=t.options.width)&&void 0!==n?n:1),e>=a&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;let s=i(2585),r=i(8343);class n{constructor(...e){for(let[t,i]of(this._entries=new Map,e))this.set(t,i)}set(e,t){let i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(let[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){let i=(0,r.getServiceDependencies)(e).sort((e,t)=>e.index-t.index),s=[];for(let t of i){let i=this._services.get(t.id);if(!i)throw Error(`[createInstance] ${e.name} depends on UNKNOWN service ${t.id}.`);s.push(i)}let n=i.length>0?i[0].index:t.length;if(t.length!==n)throw Error(`[createInstance] First service dependency of ${e.name} at position ${n+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...s])}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.traceCall=t.setTraceLogger=t.LogService=void 0;let n=i(844),o=i(2585),a={trace:o.LogLevelEnum.TRACE,debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF},h,l=t.LogService=class extends n.Disposable{get logLevel(){return this._logLevel}constructor(e){super(),this._optionsService=e,this._logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),h=this}_updateLogLevel(){this._logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;tJSON.stringify(e)).join(", ")})`);let t=s.apply(this,e);return h.trace(`GlyphRenderer#${s.name} return`,t),t}}},7302:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;let s=i(8460),r=i(844),n=i(6114);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:n.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};let o=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends r.Disposable{constructor(e){super(),this._onOptionChange=this.register(new s.EventEmitter),this.onOptionChange=this._onOptionChange.event;let i=Object.assign({},t.DEFAULT_OPTIONS);for(let t in e)if(t in i)try{let s=e[t];i[t]=this._sanitizeAndValidateOption(t,s)}catch(e){console.error(e)}this.rawOptions=i,this.options=Object.assign({},i),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange(i=>{i===e&&t(this.rawOptions[e])})}onMultipleOptionChange(e,t){return this.onOptionChange(i=>{-1!==e.indexOf(i)&&t()})}_setupOptions(){let e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(let t in this.rawOptions){let s={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,s)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":var s;if(i||(i=t.DEFAULT_OPTIONS[e]),!("block"===(s=i)||"underline"===s||"bar"===s))throw Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=o.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,0xffffffff))<0)throw Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw Error(`${e} cannot be less than or equal to 0, value: ${i}`);break;case"rows":case"cols":if(!i&&0!==i)throw Error(`${e} must be numeric, value: ${i}`);break;case"windowsPty":i=null!=i?i:{}}return i}}t.OptionsService=a},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;let n=i(2585),o=t.OscLinkService=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){let t=this._bufferService.buffer;if(void 0===e.id){let i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose(()=>this._removeMarkerFromLink(s,i)),this._dataByLinkId.set(s.id,s),s.id}let i=this._getEntryIdKey(e),s=this._entriesWithId.get(i);if(s)return this.addLineToLink(s.id,t.ybase+t.y),s.id;let r=t.addMarker(t.ybase+t.y),n={id:this._nextId++,key:this._getEntryIdKey(e),data:e,lines:[r]};return r.onDispose(()=>this._removeMarkerFromLink(n,r)),this._entriesWithId.set(n.key,n),this._dataByLinkId.set(n.id,n),n.id}addLineToLink(e,t){let i=this._dataByLinkId.get(e);if(i&&i.lines.every(e=>e.line!==t)){let e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose(()=>this._removeMarkerFromLink(i,e))}}getLinkData(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){let i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};t.OscLinkService=s([r(0,n.IBufferService)],o)},8343:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0;let i="di$target",s="di$dependencies";t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e[s]||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);let r=function(e,t,n){if(3!=arguments.length)throw Error("@IServiceName-decorator can only be used to decorate a parameter");e[i]===e?e[s].push({id:r,index:n}):(e[s]=[{id:r,index:n}],e[i]=e)};return r.toString=()=>e,t.serviceRegistry.set(e,r),r}},2585:(e,t,i)=>{var s;Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;let r=i(8343);t.IBufferService=(0,r.createDecorator)("BufferService"),t.ICoreMouseService=(0,r.createDecorator)("CoreMouseService"),t.ICoreService=(0,r.createDecorator)("CoreService"),t.ICharsetService=(0,r.createDecorator)("CharsetService"),t.IInstantiationService=(0,r.createDecorator)("InstantiationService"),function(e){e[e.TRACE=0]="TRACE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.OFF=5]="OFF"}(s||(t.LogLevelEnum=s={})),t.ILogService=(0,r.createDecorator)("LogService"),t.IOptionsService=(0,r.createDecorator)("OptionsService"),t.IOscLinkService=(0,r.createDecorator)("OscLinkService"),t.IUnicodeService=(0,r.createDecorator)("UnicodeService"),t.IDecorationService=(0,r.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;let s=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter,this.onChange=this._onChange.event;let e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0,i=e.length;for(let s=0;s=i)return t+this.wcwidth(r);let n=e.charCodeAt(s);56320<=n&&n<=57343?r=1024*(r-55296)+n-56320+65536:t+=this.wcwidth(n)}t+=this.wcwidth(r)}return t}}}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}var s={};return(()=>{Object.defineProperty(s,"__esModule",{value:!0}),s.Terminal=void 0;let e=i(9042),t=i(3236),r=i(844),n=i(5741),o=i(8285),a=i(7975),h=i(7090),l=["cols","rows"];class c extends r.Disposable{constructor(e){super(),this._core=this.register(new t.Terminal(e)),this._addonManager=this.register(new n.AddonManager),this._publicOptions=Object.assign({},this._core.options);let i=e=>this._core.options[e],s=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(let e in this._core.options){let t={get:i.bind(this,e),set:s.bind(this,e)};Object.defineProperty(this._publicOptions,e,t)}}_checkReadonlyOptions(e){if(l.includes(e))throw Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new a.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new h.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new o.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let e=this._core.coreService.decPrivateModes,t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(let t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.registerMarker(e)}registerDecoration(e){var t,i,s;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(i=e.width)&&void 0!==i?i:0,null!==(s=e.height)&&void 0!==s?s:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){super.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){this._addonManager.loadAddon(this,e)}static get strings(){return e}_verifyIntegers(...e){for(let t of e)if(t===1/0||isNaN(t)||t%1!=0)throw Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(let t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw Error("This API only accepts positive integers")}}s.Terminal=c})(),s})(),e.exports=t()}}]); \ No newline at end of file diff --git a/dsql-app/.local_dist/static/chunks/framework-4ed89e9640adfb9e.js b/dsql-app/.local_dist/static/chunks/framework-4ed89e9640adfb9e.js deleted file mode 100644 index 684086c..0000000 --- a/dsql-app/.local_dist/static/chunks/framework-4ed89e9640adfb9e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9774],{64448:function(e,n,t){var r=t(67294),l=t(63840);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t